proteusguy has quit [Remote host closed the connection]
rann has quit []
rann has joined #forth
dave0 has quit [Quit: dave's not here]
ryke has joined #forth
ryke has quit [Ping timeout: 260 seconds]
ryke has joined #forth
Croran has joined #forth
Croran has quit [Remote host closed the connection]
gravicappa has quit [Ping timeout: 265 seconds]
jsoft has joined #forth
jedb has quit [Remote host closed the connection]
jedb has joined #forth
tabemann has joined #forth
_whitelogger has joined #forth
<tabemann>
question
crab1 has joined #forth
<tabemann>
does anyone have any recommendations on how to implement CREATE and <BUILD / DOES> in a native code forth?
<tabemann>
okay, for crab1, who just entered:
<tabemann>
does anyone have any recommendations on how to implement CREATE and <BUILD / DOES> in a native code forth?
<crab1>
wym by native code
<tabemann>
like it compiles to actual processor instructions
<siraben>
Anyone know of a formal semantics for a subset of Forth? I'm working through http://concrete-semantics.org/ and there's some pretty interesting stack machine compilation going on in the later chapters.
<siraben>
tabemann: Then a small core has to be kept, w/out SMC or direct access to memory.
<siraben>
Stack operations, WHILE, IF, various looping operators.
<siraben>
Return stack too, perhaps.
<crab1>
Haskell is too much: the language is complicated, there's too much to know and keep track of when using it, I think
<siraben>
crab1: I think the language is actually pretty small. The ecosystem and libraries are huge, yes, but recently seeing a small self-hosting compiler with a C runtime has changed my mind; https://github.com/blynn/compiler
<siraben>
Certainly, the variuos language extensions added over the years have added complexity enormously.
<siraben>
s/variuos/various
<crab1>
Also I like that forth programs can be self modifying and allow memory manipulation to occur freely, it shouldn't be terribly hard to ensure a word does not modify the program or do bad with memory
<siraben>
crab1: Right, seems like it's just a matter of seeing if an arbitrary write happens for that word.
<crab1>
siraben: I would argue that becoming a regular haskeller requires you to be involved in the ecosystem, like the ecosystem and the language are inseperable
<crab1>
also I need to stop participating in multiple tracks of conversation at once, it's weird
<siraben>
crab1: Yeah, to transition to using a language do things, ecosystem is a must, and I agree that it's pretty wild out there.
<siraben>
Sort of fun, we'll see what comes out of it all, decades from now.
<crab1>
I do like functional though, I just think I need a different language for it
<siraben>
Thanks for the inputs crab1, tabemann, I've got to go.