code logs -> 2017 -> Wed, 07 Jun 2017< code.20170606.log - code.20170608.log >
--- Log opened Wed Jun 07 00:00:48 2017
01:26 celmin|sleep is now known as celticminstrel
02:40
<&ToxicFrog>
Hrm.
02:40
<&ToxicFrog>
so at the moment, some degree of lexing happens in readline(), and some in run_string()
02:41
<&ToxicFrog>
In particular readline() strips out comments to save room in the input buffer, which on the AVR was quite small
02:42
<&ToxicFrog>
This is kind of ugly and means that readline() ends up having more intelligence than I'd like, e.g. it has to know if it's inside a string or not
02:43
<&ToxicFrog>
Earlier builds just read individual characters into the lexer directly, but this meant words would execute as you typed them, which was disconcerting at best and could lead to garbled output if the words being executed outputted their own stuff to the tty.
02:46 Jessikat [Jessikat@Nightstar-ph3.bmi.132.82.IP] has joined #code
03:01
<&ToxicFrog>
So now I'm wondering if I want something like a "command buffer". Making it 80b lets it store 40 instructions, which is at least as good as the 80b input buffer
03:02
<&ToxicFrog>
There's no separate input buffer, the lexer drops comments and handles everything else directly, appending operations to the command buffer
03:03
<&ToxicFrog>
In effect it compiles the user input into an anonymous funHOLY SHIT
03:03
< Jessikat>
?
03:03
<&ToxicFrog>
I could implement this just by running the normal compilation code, executing the resulting function, and then freeing it
03:03
< Jessikat>
Ah
03:04
<&ToxicFrog>
That does have a bunch of overhead, though
03:04
<&ToxicFrog>
Has to malloc() up a few things, etc
03:05
<&ToxicFrog>
just writing to a static opcode buffer and then passing it to execute_wordlist() when either it runs out of room or we reach EOL may be better.
03:06
<&ToxicFrog>
It would let me ditch the distinction between compile mode and run mode, though...hrm
03:39
<&ToxicFrog>
(or, well, not completely, but the difference then becomes "upon returning to run mode, pop the function on top of the stack, execute it, free it, then go back into compile mode")
03:39
<&ToxicFrog>
I think this needs more sleep and more rubber ducking.
03:39
<&ToxicFrog>
And perhaps implementing multiline strings in the meantime.
04:14 crystalclaw [crystalclaw@Nightstar-12q9ui.xyz] has quit [Ping timeout: 121 seconds]
04:14 crystalclaw [crystalclaw@Nightstar-stv.hcc.175.199.IP] has joined #code
04:14 mode/#code [+o crystalclaw] by ChanServ
04:21 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Operation timed out]
04:22 Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
04:22 mode/#code [+o Syloq] by ChanServ
05:04 Turaiel is now known as Turaiel[Offline]
06:05 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has quit [Connection closed]
06:10 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has joined #code
07:07 Jessikat` [Jessikat@Nightstar-i48.klt.132.82.IP] has joined #code
07:11 Jessikat [Jessikat@Nightstar-ph3.bmi.132.82.IP] has quit [Ping timeout: 121 seconds]
11:17 * TheWatcher eyes this
11:18
<@TheWatcher>
* GOROOT_BOOTSTRAP is /var/tmp/....
11:18 * TheWatcher misreads it as * GROOT_BOOTSTRAP is...
11:20 Kindamoody is now known as Kindamoody|afk
11:48 Jessikat` [Jessikat@Nightstar-i48.klt.132.82.IP] has quit [[NS] Quit: Bye]
12:57
<~Vornicus>
So I was, the other day, talking to someone about the dangers of mutating a list while iterating over it - how, absent certain protections, you may find yourself accidentally skipping things you have to deal with.
12:58
<~Vornicus>
This was in the context of the sieve of eratosthenes, which in one particular formulation works by deleting numbers that are divisible by known primes.
13:01
<~Vornicus>
Turns out most of the time in this particular application, the mutation is fine: you don't typically eliminate two consecutive candidate primes anyway, there's almost always something in between.
13:01
<~Vornicus>
...almost.
13:02
<~Vornicus>
I asked in freenode ##math whether it exists, and a day & change later somebody found one.
13:02
<~Vornicus>
The one he found was 421 digits long.
13:13
<@TheWatcher>
Eeesh
13:14
<~Vornicus>
there's probably smaller, but the very existence of this thing is delicious.
15:44 Jessikat [Jessikat@Nightstar-7m0iv7.dab.02.net] has joined #code
15:45
< Jessikat>
...i want to work, but my mind is stuck composing a blog entry
15:45
<&ToxicFrog>
Ooo I hate it when that happens
15:48
<&[R]>
Jessikat: write down the idwas you have for it, then you'll have at least appeased that idea
15:48
< Jessikat>
Already did that
15:48
< Jessikat>
Just clarified things so more thought could happen
15:49
< Jessikat>
It's a really interesting post as well
15:49
< Jessikat>
At least I've got a few code reviews done
15:54 Alek [Alek@Nightstar-7or629.il.comcast.net] has quit [Ping timeout: 121 seconds]
15:57 Alek [Alek@Nightstar-7or629.il.comcast.net] has joined #code
15:57 mode/#code [+o Alek] by ChanServ
17:35 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
18:27 Jessikat [Jessikat@Nightstar-7m0iv7.dab.02.net] has quit [[NS] Quit: Bye]
19:42
<@mac>
* TheWatcher misreads it as * GROOT_BOOTSTRAP is...
19:42
<@mac>
Don't feel bad; I managed to get 'GROOT_BATTLESHIP' out of it...
19:48
<&McMartin>
Grootstrap
19:49 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has joined #code
19:49 mode/#code [+o macdjord] by ChanServ
19:52 mac [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
20:09 Kindamoody|afk is now known as Kindamoody
20:45 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [[NS] Quit: FLEET: We *are* shining examples of humanity. It's just that the light we shine with is generally Oppenheimer's. ]
22:02 macdjord [macdjord@Nightstar-8nr.0ln.151.184.IP] has joined #code
22:02 mode/#code [+o macdjord] by ChanServ
22:14 macdjord [macdjord@Nightstar-8nr.0ln.151.184.IP] has quit [Connection reset by peer]
22:15 macdjord [macdjord@Nightstar-8nr.0ln.151.184.IP] has joined #code
22:15 mode/#code [+o macdjord] by ChanServ
22:15 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
22:19 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
22:22 macdjord [macdjord@Nightstar-8nr.0ln.151.184.IP] has quit [Ping timeout: 121 seconds]
22:27 macdjord [macdjord@Nightstar-7f5.qhh.151.184.IP] has joined #code
22:27 mode/#code [+o macdjord] by ChanServ
22:48 mac [macdjord@Nightstar-fv3.a3b.151.184.IP] has joined #code
22:48 mode/#code [+o mac] by ChanServ
22:50 macdjord [macdjord@Nightstar-7f5.qhh.151.184.IP] has quit [Ping timeout: 121 seconds]
23:07 Kindamoody is now known as Kindamoody[zZz]
--- Log closed Thu Jun 08 00:00:49 2017
code logs -> 2017 -> Wed, 07 Jun 2017< code.20170606.log - code.20170608.log >

[ Latest log file ]