<proteus-guy>
neuro_sys, yeah saw this - it's mostly about how he implemented garbage collection, however. Several good talks in this month's SVFig.
_whitelogger has joined #forth
dave0 has joined #forth
wineroots has quit [Remote host closed the connection]
<siraben>
joe9: I'd be interested to know as well since that would improve the usefulness of forth
<veltas>
I think if I had a C abstraction for forth I would make it so you can create words for the functions you want to use, that consume/produce the right number of words for that function
<veltas>
And when you create words you could get it to parse a C prototype or have some forth words to build it
<veltas>
create FFI words I mean
<veltas>
consume/produce right number of things on stack I mean
<veltas>
ffi void *test(int, char *); \ parses up to ;
<veltas>
Or something like C( int char* ) void* ffi test
<veltas>
It would make forth more useful in your average OS environment, letting you integrate with what's there.
<veltas>
The 'right way' is probably to dig into the ABI docs and figure out what the minimum you need to reliably hook into functions is, and avoid trying to replicate the entire C type system
<joe9>
veltas, I would be surprised if this has not been done already.
jsoft has quit [Ping timeout: 260 seconds]
proteus-guy has quit [Remote host closed the connection]
<joe9>
is anyone aware of any simple samples to test and play around with indirect threaded code vs call threaded code? some simple working implementations to play around with..
yyyyyy has quit [Remote host closed the connection]
<crc>
finding palindromic numbers is easy; I'm hoping for something more complex for the next challenge
X-Scale` has joined #forth
X-Scale has quit [Ping timeout: 246 seconds]
X-Scale` is now known as X-Scale
<neuro_sys>
Yeah, it was still good to see great variety.
<neuro_sys>
I actually like different approaches, and how it's valid to create a "DSL" to solve things. Like that Lisp-y guy, and APL guy.
sts-q has joined #forth
gravicappa has quit [Ping timeout: 265 seconds]
gravicappa has joined #forth
<MrMobius>
they had a really simple problem to solve for the programming competiton last year at the hp calculator conference, so points went to efficient solution rather than just solving