Zarutian_HTC has quit [Remote host closed the connection]
WickedShell has quit [Remote host closed the connection]
_whitelogger has joined #forth
boru` has joined #forth
boru has quit [Disconnected by services]
boru` is now known as boru
dave0 has joined #forth
sts-q has quit [Ping timeout: 272 seconds]
sts-q has joined #forth
gravicappa has joined #forth
dave0 has quit [Quit: dave's not here]
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #forth
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #forth
dave0 has joined #forth
hosewiejacke has joined #forth
hosewiejacke has quit [Remote host closed the connection]
hosewiejacke has joined #forth
hosewiejacke has quit [Ping timeout: 264 seconds]
gravicappa has quit [Ping timeout: 256 seconds]
Vedran has quit [Read error: Connection reset by peer]
Vedran has joined #forth
gravicappa has joined #forth
dave0 has quit [Quit: dave's not here]
gravicappa has quit [Ping timeout: 256 seconds]
WickedShell has joined #forth
gravicappa has joined #forth
<
MrMobius>
how do I mark a word so it executes in compile mode and interpret mode?
<
MrMobius>
then checks state and decides what to do
<
cmtptr>
: foo ; immediate
Zarutian_HTC has joined #forth
Zarutian_HTC has quit [Remote host closed the connection]
WickedShell has quit [Remote host closed the connection]
Zarutian_HTC has joined #forth
joe9 has quit [Ping timeout: 264 seconds]
joe9 has joined #forth
<
MrMobius>
are there any compile-only words that aren't immediates?
<
MrMobius>
i mean built in primitives. trying to think when you wouldnt want them to be
<
cmtptr>
depending on how your interpreter works you could implement ['] as not immediate
<
cmtptr>
['] would get compiled and when it's executed it could just read the next value from the execution stream and push it
<
cmtptr>
which, come to think of it, is the same as (lit) or whatever the underlying numeric literal word is called, if everything is one cell in size
hosewiejacke has joined #forth
hosewiejacke has quit [Ping timeout: 246 seconds]
Zarutian_HTC has quit [Remote host closed the connection]
gravicappa has quit [Ping timeout: 246 seconds]
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #forth
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #forth
Zarutian_HTC has joined #forth
ptrkriz has quit [Remote host closed the connection]
Zarutian_HTC has quit [Read error: Connection reset by peer]
Zarutian_HTC has joined #forth
Zarutian_HTC has quit [Remote host closed the connection]
<
MrMobius>
im trying to figure out the best way to do variables in a token threaded forth
<
MrMobius>
in immediate mode it looks for the variable data after skipping the header and in the thread the data comes immediately after
<
MrMobius>
so I have 2 rountines and switch out the token when it's compiled which doesnt seem ideal