03:10:38 <int-e> `thanks javascript for + " " + "x" == "0x"
03:10:40 <HackEso> Thanks, javascript for + " " + "x" == "0x". Thavascript for + " " + "x" == "0x".
04:19:39 <zzo38> Can slow scan pictures be transmitted/received using cell phones even despite the compression?
04:32:32 <shachaf> The other day I remembered that these two programs print different things in JavaScript:
04:32:35 <shachaf> for (let i = 0; i < 4; i++) { setTimeout(function() { console.log(i); }, 100); }
04:32:41 <shachaf> let i; for (i = 0; i < 4; i++) { setTimeout(function() { console.log(i); }, 100); }
05:00:38 <esolangs> [[255]] https://esolangs.org/w/index.php?diff=94715&oldid=94714 * AceKiron * (+191)
05:33:52 <esolangs> [[Deadfish]] https://esolangs.org/w/index.php?diff=94716&oldid=93920 * Dnm * (+1038) Added Deadfish in XPL0
05:38:41 -!- BarryNL has quit (Read error: Connection reset by peer).
05:38:52 -!- BarryNL has joined.
06:39:53 -!- Sgeo has quit (Read error: Connection reset by peer).
06:51:52 <myname> lambdas don't capture values on creation
06:54:12 -!- sunarch has quit (Ping timeout: 240 seconds).
06:55:53 -!- sunarch has joined.
07:52:19 <shachaf> Why does that make it "of course"?
07:59:31 -!- dyeplexer has joined.
08:06:05 <b_jonas> what does i refer to in the lambda if it doesn't capture?
08:07:00 <b_jonas> when the lambda is called then, what i will it access?
08:07:14 <b_jonas> luckily I don't know much javascript
08:08:39 -!- razetime has joined.
08:46:07 <shachaf> Each iteration of the loop has its own i.
08:46:48 <shachaf> The lambda captures the inner i, which is implicitly copied from the outer i.
08:47:02 <shachaf> Also the inner i is implicitly copied to the outer i at the end of the loop.
09:26:05 -!- Thelie has joined.
09:27:20 <esolangs> [[Brainf***-]] https://esolangs.org/w/index.php?diff=94717&oldid=74935 * Kaveh Yousefi * (+197) Added a hyperlink to my implementation of the BrainF***- programming language on GitHub and changed the category tag Unimplemented to Implemented.
09:31:36 <esolangs> [[Brainf***-]] https://esolangs.org/w/index.php?diff=94718&oldid=94717 * Kaveh Yousefi * (+59) Rectified the random program example, which would print nothing on entering the letter A, and introduced sections.
10:02:25 -!- razetime has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.).
10:02:40 -!- razetime has joined.
10:39:52 -!- BarryNL has quit (Ping timeout: 248 seconds).
10:56:22 -!- BarryNL has joined.
11:16:56 -!- definitelya has joined.
11:28:32 -!- shachaf has quit (Ping timeout: 252 seconds).
11:29:57 -!- shachaf has joined.
11:30:53 <definitelya> fungot: Can't spell "gastronomy" without "astronomy".
11:30:54 <fungot> definitelya: stalin is really a natural consequence of the fnord scheme compilers... :d.
11:48:58 -!- tech_exorcist has joined.
12:39:27 -!- Thelie has quit (Ping timeout: 240 seconds).
12:56:23 <myname> that's not at all a js thing
12:56:57 -!- BarryNL has quit (Ping timeout: 256 seconds).
12:57:02 <myname> the former solution just has an i for each iteration that does not get removed after the loop finishes
12:57:35 <myname> the later finishes the loop, has 4 as the last value of i, therefore each timeout prints the current value of i
13:00:56 -!- ArthurStrong has quit (Remote host closed the connection).
13:01:50 -!- Thelie has joined.
13:02:45 <fizzie> It is a *bit* of a JS thing, because the way it looks, I don't think it's at all obvious there's a dedicated `i` value per iteration in either of them. The let "declaration" is in the first for loop section, which is "executed once", before the loop starts. A for-loop initial declaration in C makes a single variable that survives from one iteration to another.
13:03:45 <fizzie> If it was a for-in / for-of style loop, then I think it would be more natural there's a new instance of the loop variable for each iteration.
13:06:27 -!- BarryNL has joined.
13:06:35 -!- Thelie has quit (Ping timeout: 256 seconds).
13:08:51 <fizzie> (Not a given, though, even in that case. A Go `for _, x := range list { go func(){ time.Sleep(100 * time.Millisecond); fmt.Println(x) }() }` loop would print the last element len(list) times.)
13:10:48 -!- razetime has quit (Ping timeout: 248 seconds).
13:10:58 -!- BarryNL has quit (Read error: Connection reset by peer).
13:11:20 -!- razetime has joined.
13:11:59 -!- BarryNL has joined.
13:14:38 <fizzie> `js for (let i = 0; i < 4; i++) { setTimeout(() => console.log(i), 10) }; null
13:14:42 <fizzie> `js let i; for (i = 0; i < 4; i++) { setTimeout(() => console.log(i), 10) }; null
13:15:18 <fizzie> (Just wanted to check if we had a `js in place. Also, couldn't figure out to quiet it from printing a result.)
13:19:26 -!- definitelya_ has joined.
13:21:00 -!- definitelya has quit (Ping timeout: 246 seconds).
13:28:42 -!- tech_exorcist has quit (Remote host closed the connection).
13:29:08 -!- tech_exorcist has joined.
13:48:39 -!- Sgeo has joined.
15:20:08 -!- razetime has quit (Ping timeout: 250 seconds).
15:20:32 -!- razetime has joined.
15:29:44 <esolangs> [[Special:Log/newusers]] create * Ohead * New user account
15:53:54 -!- razetime has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.).
15:54:01 -!- razetime has joined.
16:23:16 -!- littlebobeep has quit (Remote host closed the connection).
16:28:36 -!- littlebobeep has joined.
17:21:15 -!- SGautam has joined.
17:36:55 -!- razetime has quit (Remote host closed the connection).
17:44:27 <esolangs> [[Special:Log/newusers]] create * QuarticSushi * New user account
17:47:10 <esolangs> [[Esolang:Introduce yourself]] M https://esolangs.org/w/index.php?diff=94719&oldid=94712 * QuarticSushi * (+199) /* Introductions */
17:56:20 -!- ArthurStrong has joined.
18:17:00 <esolangs> [[SOS]] https://esolangs.org/w/index.php?diff=94720&oldid=94679 * Celtschk * (+801) /* Example programs */ Added rule 110
18:29:42 -!- dyeplexer has quit (Ping timeout: 246 seconds).
19:05:36 -!- littlebobeep has quit (Ping timeout: 240 seconds).
19:52:14 <esolangs> [[NDBall]] https://esolangs.org/w/index.php?diff=94721&oldid=85373 * Aspwil * (-2) /* Instructions */
20:17:38 -!- tech_exorcist has quit (Quit: see you).
20:23:08 -!- Lord_of_Life_ has joined.
20:24:20 -!- Lord_of_Life has quit (Ping timeout: 250 seconds).
20:24:34 -!- SGautam has quit (Quit: Connection closed for inactivity).
20:25:54 -!- Lord_of_Life_ has changed nick to Lord_of_Life.
20:28:55 -!- definitelya_ has quit (Quit: h).
20:37:34 -!- littlebobeep has joined.
21:09:39 <esolangs> [[HQ9+ C Function Interface]] https://esolangs.org/w/index.php?diff=94722&oldid=94511 * Oshaboy * (+163) Added implementation and categories
21:10:10 <esolangs> [[HQ9+ C Function Interface]] https://esolangs.org/w/index.php?diff=94723&oldid=94722 * Oshaboy * (+12)
21:51:59 <zzo38> Why does rule 701.8 doesn't say that only the owner of a card can discard it, even though it seems that it is how it is supposed to work?
22:11:57 <zzo38> Is there a source of Oracle text for Magic: the Gathering in text or JSON that all italic text that doesn't already have parentheses will now have parentheses, or otherwise mark that text in some way, or omits all italic text (including reminder text) entirely?
22:12:58 <esolangs> [[ONE WAY]] M https://esolangs.org/w/index.php?diff=94724&oldid=94016 * DigitalDetective47 * (-23) /* Commands */ Simplified definition of random
22:21:29 -!- FreeFull has joined.
22:24:41 <esolangs> [[Fool]] M https://esolangs.org/w/index.php?diff=94725&oldid=91554 * DigitalDetective47 * (-28) /* Official interpreter */ Updated implementation
23:22:01 -!- freon has joined.
23:44:52 -!- freon has quit (Quit: leaving).