jsoft has joined #forth
iyzsong has quit [Read error: Connection reset by peer]
iyzsong has joined #forth
tangentstorm has quit [Changing host]
tangentstorm has joined #forth
joe9 has joined #forth
<joe9> I am reading the jonesforth material. Is there a way to get data structures in it?
boru` has joined #forth
boru has quit [Disconnected by services]
boru` is now known as boru
dave0 has joined #forth
gravicappa has joined #forth
<siraben> joe9: you mean defining structs and so on?
hosewiejacke has joined #forth
dave0 has quit [Quit: dave's not here]
hosewiejacke has quit [Quit: Leaving]
<neuro_sys> Forth Challenge, palindromic numbers: https://www.youtube.com/watch?v=BOnqhOrEwxc
_whitelogger has joined #forth
_whitelogger has joined #forth
<joe9> siraben, thanks.
<joe9> siraben, do you know if it would be easy to call C library functions from jonesforth?
<siraben> joe9: like an FFI? You'd have to figure out the C calling convention and have words to call with certain arities
<siraben> like CCALL, CCALL1, CCALL2 etc
<joe9> yes, like ffi.
<joe9> any suggestions on where I can find any documentation on such ( CCALL, CCALL1, etc.. )?
<joe9> I could not find anything by searching in the forth standard website for CCALl.
jedb_ has joined #forth
jedb has quit [Ping timeout: 240 seconds]
jedb_ has quit [Read error: Connection reset by peer]
jedb has joined #forth
jedb_ has joined #forth
jedb has quit [Ping timeout: 240 seconds]
proteus-guy has joined #forth
<neuro_sys> Lisp-y Data Abstraction in Forth: https://www.youtube.com/watch?v=zdsh3E_0EDk
<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]
Gromboli has joined #forth
proteus-guy has joined #forth
dave0 has quit [Quit: dave's not here]
xek has joined #forth
<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
<MrMobius> *most
gravicappa has quit [Ping timeout: 265 seconds]
Gromboli_ has joined #forth
Gromboli has quit [Ping timeout: 260 seconds]
Gromboli_ has quit [Ping timeout: 264 seconds]
xek has quit [Ping timeout: 246 seconds]
Gromboli has joined #forth
Gromboli has quit [Client Quit]
Gromboli has joined #forth
tabemann_ is now known as tabemann