code logs -> 2021 -> Sun, 17 Jan 2021< code.20210116.log - code.20210118.log >
--- Log opened Sun Jan 17 00:00:10 2021
00:03
< john_cephalopoda>
That's the Forth stuff I'm working on: https://codeberg.org/jmf/impexus
00:04
<&McMartin>
Aha, I see
00:04
< john_cephalopoda>
Not many commits since I am spending most of the development time thinking about improvements to my architecture that ultimately don't work out at all.
00:04
<&McMartin>
Yeah, I think if I were going ot push one of my long-dead projects I'd try to get some of my old projects ported out of GameMaker into something that ran directly on desktops
00:05
<&McMartin>
The immediate one though is to take that project I linked, or more specifically my 8-bit demake of it, and port it to a different platform with the same CPU as a proof-of-concept of how you do modularization with no tools
00:07
< john_cephalopoda>
It's getting a bit late here, gonna head to bed. I'll have to free the sidewalk from snow tomorrow morning :þ
00:07
<&McMartin>
Oof.
00:07
<&McMartin>
Good luck!
00:07
< john_cephalopoda>
Thanks!
00:07
< john_cephalopoda>
The blog entry looks interesting, I'll read it tomorrow. See you!
00:08 john_cephalopoda [john@Nightstar-j5ldli.dip0.t-ipconnect.de] has quit [[NS] Quit: Leaving]
00:16
<&McMartin>
Oh hm, I should probably actually tie the simulated evolution program back into the DX9 nonsense I did later.
01:06 Pink [uid208117@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
01:11 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has quit [[NS] Quit: reboot]
01:17 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has joined #code
01:17 mode/#code [+ao McMartin McMartin] by ChanServ
01:17 bluefoxx [fuzzylombax@Nightstar-gmbj85.vs.shawcable.net] has joined #code
01:48
<&ToxicFrog>
I've been gnawing on Forth and this has reminded me that in at least some traditional Forths the basic condition structure is:
01:48
<&ToxicFrog>
cond IF true-branch ELSE false-branch THEN
01:48
<&ToxicFrog>
Which is extremely gross, especially if you come from postscript
01:52
<~Vornicus>
i forgot what postscript's looks like
01:54
<~Vornicus>
oh, cond {true-branch} {false-branch} ifelse, much shorter
01:54
<~Vornicus>
does forth have the delayed execution of postscript?
01:54
<~Vornicus>
...I should have gone to bed
01:54
<&McMartin>
I think that's "hand it a word to call later"
01:55
<~Vornicus>
if not then it might be that this construct is necessary because otherwise it'd start doing the true stuff before figuring out it needs to not
01:56
<&McMartin>
Oh. Yeah, that's why; THEN is the terminator on searches.
01:57
<&McMartin>
Because it lexes forwards from IF, IIRC.
01:57 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
01:57
<&McMartin>
And THEN always exists but ELSE might not
02:00
<&ToxicFrog>
Yeah, IF is immediate and scans forwards to find the THEN (and ELSE, if present)
02:00
<&McMartin>
And that means it's not using stored words, which would, I think, do what the { } are in the postscript?
02:01
<&McMartin>
I recall Forth relying more on "scan ahead for terminator keyword" and less "here is a single unit of execution, save it for later"
02:01
<&ToxicFrog>
But it's a weird special case¹ that doesn't sit well with me, since it inverts the usual structure of forth code; I find Postscript's "code on the stack first, then control flow that uses that code" design a lot more elegant (and this heavily informed the design of my AVR not-quite-a-forth)
02:01
<&ToxicFrog>
¹ yes I know immediate words are a general purpose mechanism, but you get the idea
02:01
<&ToxicFrog>
Yes.
02:03
<&ToxicFrog>
The notforth-avr equivalent is that { is a word that pushes a marker and then puts the lexer into read-and-push rather than read-and-execute mode, and } is an immediate that scans backwards to the marker, compiles everything it found, writes that to an anonymous code buffer, and pushes the address of that buffer
02:03
<&ToxicFrog>
You can then use it as an anonymous function (with if, and so forth) or use def to associate it with a name.
02:05
<&ToxicFrog>
Which is very close to how postscript does it -- {...} is an executable code block that can be bound or called.
02:14 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
03:04
<&[R]>
DAY = 1000 * 60 * 60 * 24; e = new Date; d = new Date(new Date(e.getFullYear(), e.getMonth(), e.getDate(), 12, 0) - DAY * 20); for (let x = 8, a = null; x > 0;) { if (!d.getDay()) { if (a) { console.log(a.join(' ')) } a = []; --x } if (a) { a.push(d.getDate() > 9 ? d.getDate() : '0' + d.getDate()) } d = new Date(d - -DAY) }
03:04
<&[R]>
Woo!
04:03 Degi_ [Degi@Nightstar-oebfqr.pool.telefonica.de] has joined #code
04:05 Degi [Degi@Nightstar-0t0c6p.pool.telefonica.de] has quit [Operation timed out]
04:05 Degi_ is now known as Degi
05:17 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code
05:17 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:57 celticminstrel [celticminst@Nightstar-n1gkap.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
06:35 SmithKurosaki [uid215460@Nightstar-ed0oqj.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
07:27 abudhabi [abudhabi@Nightstar-pqirga.adsl.tpnet.pl] has joined #code
09:03 john_cephalopoda [john@Nightstar-sc92dk.dip0.t-ipconnect.de] has joined #code
09:03
< john_cephalopoda>
Morning
09:07
<&McMartin>
Good morning. Just in time for me to crash out to sleep.
09:22 Kindamoody[zZz] is now known as Kindamoody
09:28
< john_cephalopoda>
McMartin: I just finished reading your simEvo article. Cool stuff.
09:32
< john_cephalopoda>
Some time ago I found this particle life simulator, which works pretty well: https://github.com/HackerPoet/Particle-Life
09:34
< john_cephalopoda>
There's no makefile but "g++ *.cpp -lsfml-graphics -lsfml-window -lsfml-system -o plife" should do.
11:22 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
12:42 Kindamoody is now known as Kindamoody|out
13:32 abudhabi_ [abudhabi@Nightstar-k5jfun.adsl.tpnet.pl] has joined #code
13:33 abudhabi [abudhabi@Nightstar-pqirga.adsl.tpnet.pl] has quit [NickServ (RECOVER command used by abudhabi_)]
13:33 abudhabi_ is now known as abudhabi
13:50 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer]
13:53 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
14:21 celticminstrel [celticminst@Nightstar-n1gkap.dsl.bell.ca] has joined #code
14:21 mode/#code [+o celticminstrel] by ChanServ
14:55 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
14:55 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:55 SmithKurosaki [uid215460@Nightstar-ed0oqj.irccloud.com] has joined #code
16:16 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
16:26 Kindamoody|out is now known as Kindamoody
17:06
< john_cephalopoda>
Hm, setting up cross-compilation toolchains is always such a hassle.
17:13
< john_cephalopoda>
Oh, looks like I don't need one, just misinterpreted the docs.
17:59 macdjord [macdjord@Nightstar-re5.7if.45.45.IP] has joined #code
17:59 mode/#code [+o macdjord] by ChanServ
18:01 mac [macdjord@Nightstar-re5.7if.45.45.IP] has quit [Ping timeout: 121 seconds]
18:07 VirusJTG_ [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
19:01 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
19:01 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
20:01 john_cephalopoda [john@Nightstar-sc92dk.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds]
20:52 john_cephalopoda [john@Nightstar-sc92dk.dip0.t-ipconnect.de] has joined #code
21:49 john_cephalopoda [john@Nightstar-sc92dk.dip0.t-ipconnect.de] has quit [Connection closed]
21:49 john_cephalopoda [john@Nightstar-sc92dk.dip0.t-ipconnect.de] has joined #code
21:55 TheCephalopod [john@Nightstar-sc92dk.dip0.t-ipconnect.de] has joined #code
21:56 john_cephalopoda [john@Nightstar-sc92dk.dip0.t-ipconnect.de] has quit [Operation timed out]
21:59 TheCephalopod [john@Nightstar-sc92dk.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds]
22:22 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed]
22:27 john_cephalopoda [john@Nightstar-giggdo.dip0.t-ipconnect.de] has joined #code
22:46 abudhabi [abudhabi@Nightstar-k5jfun.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
23:01 john_cephalopoda [john@Nightstar-giggdo.dip0.t-ipconnect.de] has quit [[NS] Quit: Leaving]
23:34 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Connection reset by peer]
23:39 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection reset by peer]
23:41 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
23:41 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
23:57 bluefoxx [fuzzylombax@Nightstar-gmbj85.vs.shawcable.net] has quit [Ping timeout: 121 seconds]
--- Log closed Mon Jan 18 00:00:12 2021
code logs -> 2021 -> Sun, 17 Jan 2021< code.20210116.log - code.20210118.log >

[ Latest log file ]