code logs -> 2016 -> Thu, 24 Nov 2016< code.20161123.log - code.20161125.log >
--- Log opened Thu Nov 24 00:00:37 2016
00:14
<@ion_>
[22/11:15:16:23] ~Vornicus:� Okay, this still makes a certain level of sense then: fullwidth characters -- you'd need to find this out from reading the stride widths I suspect,
00:14
<@ion_>
but you can safely assume all cjk ideographs -- need extra space or they push each other out
00:14
<@ion_>
[22/11:15:22:14] �� catalyst �� :catalyst@Nightstar-bt5k4h.81.in-addr.arpa: joins #code
00:14
<@ion_>
[22/11:15:36:59] Derakon[AFK] is now known as Derakon
00:14
<@ion_>
[22/11:15:59:15] Kindamoody is now known as Kindamoody[zZz]
00:14
<@ion_>
[22/11:16:18:53] �� catalyst �� :catalyst@Nightstar-bt5k4h.81.in-addr.arpa: quits [[NS] Quit: Leaving]
00:14
<@ion_>
[22/11:16:40:39] @celticminstrel:� Why is it that most of the Unicode arrows are right-pointing only...
00:14
<@ion_>
[22/11:16:52:14] &McMartin:� They're replacing the *s on bulleted lists
00:14
<@ion_>
[22/11:18:33:35] ** celticminstrel typoed, and thought of "var o = 0"; dismissed it right away.
00:14
<@ion_>
[22/11:19:36:58] macdjord|wurk is now known as macdjord
00:14 ion_ was kicked from #code by Derakon [Derakon]
00:18 ion_ [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code
00:18 mode/#code [+o ion_] by ChanServ
00:22 macdjord|wurkAndWoe is now known as macdjord
02:38
<&McMartin>
This is an unusual bundle
02:38
<&McMartin>
https://www.humblebundle.com/books
02:38
<&McMartin>
Arguably relevant to this channel
02:50 Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has joined #code
04:23 Vash is now known as Vash[Pi|chezcaek]
05:15 Derakon is now known as Derakon[AFK]
05:27
<@celticminstrel>
So is Object.assign() basically the same as jQuery.extend...? If so, then I really don't need jQuery at all for this.
05:28
<@celticminstrel>
Ah, hm, it doesn't work if the source contains properties...
05:29
<@celticminstrel>
$.extend does work in that case.
05:32
<@celticminstrel>
Unrelatedly, what the heck are the ECMAScript "symbols" for... I sorta get the feeling that they'd be a great way to add operator overloading...
05:36
<@celticminstrel>
Oh wait, I didn't actually use $.extend with getters or setters. That was a direct f.prototype = {...}.
05:36
<@celticminstrel>
So it probably doesn't work with them.
05:36
<@celticminstrel>
In which case Object.assign may be sufficient after all.
06:50 himi [sjjf@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
06:54 catadroid [catalyst@Nightstar-elj.klt.132.82.IP] has joined #code
07:17
<&McMartin>
https://twitter.com/SwiftOnSecurity/status/801631274276372480
07:23
<&McMartin>
My work in progress is up to 800 lines of code
07:39 macdjord is now known as macdjord|slep
07:54 Emmy-zZz is now known as Emmy
07:54 Vash[Pi|chezcaek] [Vash@Nightstar-uhn82m.ct.comcast.net] has quit [Connection closed]
07:55 celticminstrel [celticminst@Nightstar-h4m24u.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
08:03 Kindamoody[zZz] is now known as Kindamoody
08:13
<@gnolam>
https://github.com/dspinellis/unix-history-repo
08:20
<@ion_>
That's pretty cool
08:20 * ion_ links it to all my retrocomputing friends
08:43 Kindamoody is now known as Kindamoody|afk
--- Log opened Thu Nov 24 09:08:38 2016
09:08 TheWatcher [chris@GlobalOperator.Nightstar.Net] has joined #code
09:08 Irssi: #code: Total of 36 nicks [34 ops, 0 halfops, 0 voices, 2 normal]
09:08 mode/#code [+o TheWatcher] by ChanServ
09:09 Irssi: Join to #code was synced in 51 secs
09:23 catadroid [catalyst@Nightstar-elj.klt.132.82.IP] has quit [Ping timeout: 121 seconds]
09:24 catadroid [catalyst@Nightstar-elj.klt.132.82.IP] has joined #code
09:44
<@simon_>
http://today.ucf.edu/phone-charges-seconds-ucf-scientists-bring-closer-reality/
09:50 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
09:50 mode/#code [+o himi] by ChanServ
09:53
<@gnolam>
simon_: urgh. Bullshit press release.
09:57 catadroid [catalyst@Nightstar-elj.klt.132.82.IP] has quit [[NS] Quit: Bye]
09:57
<@gnolam>
Even the best capacitors have energy densities orders of magnitude less than current batteries.
10:00
<@simon_>
gnolam, sure.
10:00
<@simon_>
gnolam, I was hoping this might indicate a change in the huge difference.
10:00
<@simon_>
gnolam, also, it seems that they're advertising not that capacitors will outgrow batteries in capacity, but in rechargeability.
10:01
<@gnolam>
It does not, and that has always been the case.
10:47 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
12:10 catadroid [catalyst@Nightstar-418vfa.dab.02.net] has joined #code
13:03 Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has joined #code
13:03 mode/#code [+o Emmy-werk] by ChanServ
15:40 Emmy-werk [NSkiwiirc@Nightstar-41pbej.static.chello.nl] has quit [[NS] Quit: ]
15:51 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:52 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:01 Derakon[AFK] [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [Ping timeout: 121 seconds]
16:09 celticminstrel [celticminst@Nightstar-h4m24u.dsl.bell.ca] has joined #code
16:09 mode/#code [+o celticminstrel] by ChanServ
16:59 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
17:03 Vorntastic [Vorn@Nightstar-j1alhs.sub-174-199-23.myvzw.com] has joined #code
17:19 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has joined #code
17:19 mode/#code [+ao Derakon Derakon] by ChanServ
17:39 Vornlicious [Vorn@Nightstar-iou4du.ct.comcast.net] has joined #code
17:39 Vorntastic [Vorn@Nightstar-j1alhs.sub-174-199-23.myvzw.com] has quit [Connection closed]
17:57 catadroid [catalyst@Nightstar-418vfa.dab.02.net] has quit [[NS] Quit: Bye]
18:33 Tarinaky [Tarinaky@Nightstar-ak1gaj.programmingresearch.com] has quit [Connection closed]
18:38
<@celticminstrel>
So I just realized that I was attempting to use $.extend / Object.assign to add getters...
18:39
<@celticminstrel>
Neither of them work for that, as expected.
18:39
<@celticminstrel>
I guess I need to either call Object.defineProperty myself or write my own extend() function...
18:39
<@celticminstrel>
(Though I think I saw something on MDN I could grab.)
18:56
<&jerith>
It sounds like you're trying to do complicated JS things.
19:04
<@celticminstrel>
It's not really that complicated?
19:05
<@celticminstrel>
I don't actually need those two getters... at least, not yet. Maybe later. I could turn one into a function though and make the other a plain attribute.
19:09
<&jerith>
JS has a very high complexity per line of code ratio.
19:12
<@celticminstrel>
Uhh. Okay then?
19:12 * celticminstrel isn't quite sure what that means.
19:16
<&jerith>
I think it's mostly just me being grumpy.
19:18
<@celticminstrel>
I seem to be needlessly using constructors for single instances in several cases... >_>
19:18
<@celticminstrel>
Though it may be the case that I need to reset the instance in some circumstances...
19:23 * Vornlicious wrote some nasty dice simulation code the other day. Simple arithmetic vs four word variable names is not really that fun
19:42
<@celticminstrel>
Hmm, is it weird to not allow diagonal movement.
19:42
<&[R]>
Nope
19:42
< Vornlicious>
Crypt of the necrodancer disallows diagonal movement
19:43
<@celticminstrel>
Then I think I'll delete this code I just wrote for determining whether the diagonally adjacent space is passable.
19:43
< Vornlicious>
Less fraught than allowing it, often
19:44
<@celticminstrel>
Two reasons: 1) I think diagonal movement doesn't even makes sense when moving between a region on the belt and a region on the cap, if you start in the corner of that region.
19:44
<@celticminstrel>
2) I want to use 7 and 9 for "rotate view".
20:07
< Vornlicious>
Sensible
20:25 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
20:55 Kindamoody|afk is now known as Kindamoody
21:08 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [Ping timeout: 121 seconds]
21:10 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has joined #code
21:10 mode/#code [+ao Derakon Derakon] by ChanServ
21:25
< Vornlicious>
Celticminstrel: How are you planning to render near corners?
21:25
<@celticminstrel>
Render?
21:25
<@celticminstrel>
I'm only rendering the current patch.
21:26
< Vornlicious>
OK so you get to the edge of the world and that's that?
21:44 macdjord|slep is now known as macdjord
21:45 macdjord is now known as macdjord|HomeSick
22:20 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [Ping timeout: 121 seconds]
22:34 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has joined #code
22:34 mode/#code [+ao Derakon Derakon] by ChanServ
22:38 * celticminstrel wonders what the rationale is for making the modulus operator return negative numbers if the LHS is negative.
22:39
<@celticminstrel>
Vornlicious: You get to the edge of the world, but you can then walk off the edge into the next patch.
22:39
<@celticminstrel>
The overall world (sum of all patches) is edgeless.
22:39
< Vornlicious>
The *left* side? Psychosis
22:40
<@celticminstrel>
Eh?
22:40
< Vornlicious>
Re modulus
22:40
<@celticminstrel>
eg -15%7==-1
22:40 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [Connection reset by peer]
22:40
< Vornlicious>
Yes, psychosis
22:42
<@abudhabi>
If my Mint crashes for whatever reason, taking Chromium with it, I can restore the tabs upon restart.
22:42
<@celticminstrel>
Well, it's still mathematically true though.
22:42
<@abudhabi>
But if I click the X button in the upper right, I cannot.
22:42
<@abudhabi>
why.jpg
22:42 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has joined #code
22:42 mode/#code [+ao Derakon Derakon] by ChanServ
22:42
<@celticminstrel>
-15, -1, and 6 are all equivalent modulo 7.
22:42
< Vornlicious>
Ctrl shift t
22:43
<@abudhabi>
What, for Chromium to restore tabs?
22:43
<@celticminstrel>
And in some situations it could be useful to have a -(n/2)..(n/2) modulus mapping rather than a 0..(n-1).
22:43 * celticminstrel probably got the first range off by one.
22:45
< Vornlicious>
It's way better for it to be always nonnegative, because array indexing
22:46
< Vornlicious>
For positive rhs that is
22:46
<@celticminstrel>
It's not like array indexing is the sole use for modulus.
22:47
<@celticminstrel>
Apparently 15%-7 yields 1.
22:49
< Vornlicious>
No, but keeping the same sign for the same right side makes way more sense than the other way
22:52
<@celticminstrel>
Why does 15%-7 yield 1?
23:03
< Vornlicious>
It's truncating division
23:03
< Vornlicious>
-7*-2=14
23:05 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [Ping timeout: 121 seconds]
23:10 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has joined #code
23:10 mode/#code [+ao Derakon Derakon] by ChanServ
23:31 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [Ping timeout: 121 seconds]
23:43 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has joined #code
23:43 mode/#code [+ao Derakon Derakon] by ChanServ
23:52
< Vornlicious>
Problem with truncating division is that you have an inconsistently sized island around 0. Flooring division gives -2 -2 -2 -1 -1 -1 0 0 0 1 1 1 2 2 2, truncating division goes -2 -1 -1 -1 0 0 0 0 0 1 1 1 2 2 2
23:54
< Vornlicious>
(k // 3 for k in range(-6, 9))
--- Log closed Fri Nov 25 00:00:40 2016
code logs -> 2016 -> Thu, 24 Nov 2016< code.20161123.log - code.20161125.log >

[ Latest log file ]