lispmacs has quit [Read error: Connection reset by peer]
dave0 has joined #forth
f-a has quit [Remote host closed the connection]
boru` has joined #forth
boru has quit [Disconnected by services]
boru` is now known as boru
dave0 has quit [Quit: dave's not here]
gravicappa has joined #forth
sts-q has quit [Ping timeout: 240 seconds]
sts-q has joined #forth
Croran has joined #forth
hosewiejacke has joined #forth
dave0 has joined #forth
hosewiejacke has quit [Ping timeout: 276 seconds]
hosewiejacke has joined #forth
bjorkint0sh has quit [Remote host closed the connection]
f-a has joined #forth
hosewiejacke has quit [Ping timeout: 276 seconds]
hosewiejacke has joined #forth
f-a has quit [Quit: leaving]
X-Scale` has joined #forth
X-Scale has quit [Ping timeout: 265 seconds]
X-Scale` is now known as X-Scale
X-Scale` has joined #forth
X-Scale has quit [Ping timeout: 264 seconds]
X-Scale` is now known as X-Scale
hosewiejacke has quit [Ping timeout: 276 seconds]
dave0 has quit [Quit: dave's not here]
Zarutian_HTC has quit [Remote host closed the connection]
Zarutian_HTC has joined #forth
cartwright has quit [Ping timeout: 268 seconds]
<siraben> Anyone know how to compile a Forth program with Gforth?
cartwright has joined #forth
[1]MrMobius has quit [Ping timeout: 256 seconds]
Zarutian_HTC has quit [Ping timeout: 265 seconds]
Zarutian_HTC has joined #forth
clog has quit [Ping timeout: 265 seconds]
hosewiejacke has joined #forth
f-a has joined #forth
<lispmacs[work]> siraben: with gforth you have "image files" for this purpose. https://www.complang.tuwien.ac.at/forth/gforth/Docs-html/Image-Files.html
<lispmacs[work]> unless I misunderstood your question
hosewiejacke has quit [Ping timeout: 276 seconds]
<siraben> lispmacs[work]: so you can generate an image file from an fs file?
gravicappa has quit [Ping timeout: 265 seconds]
gravicappa has joined #forth
<lispmacs[work]> siraben: correct, yes. The image file outputted has an .fi file extension
<lispmacs[work]> you have to make some choices on what kind of image file you want, non-relocatable, fully-relocatable, etc. So you'll probably want to go through that manual chapter
<lispmacs[work]> the short version, though, is create your code file, then run `gforthmi myfile.fs'
<lispmacs[work]> sorry, that is not quite correct...
<lispmacs[work]> additional caveat, you still have to have gforth installed
<lispmacs[work]> gforthmi myfile.fi myfile.fs
<lispmacs[work]> ./myfile.fi
<lispmacs[work]> however, if you inspect myfile.fi, you will see that the first line calls gforth, which then loads the binary data located after the first line
<siraben> hm, it seems that I wasn't able to generate the fi
<siraben> lispmacs[work]: https://github.com/siraben/meta-yacc the Forth file in question is meta.fs
f-a has quit [Quit: leaving]
<mark4> gforth isnt forth in my books
<mark4> its C
<mark4> was never a fan of any forth written in c
<nihilazo> what is the difference between C and 'C'
<mark4> in forth? C might be a word you can execute and 'C' is a character byte
<mark4> : C do something useful loop ;
<mark4> 'C' emit
<nihilazo> nah I mean, I've noticed that forth people seem to often talk about 'C' instead of C
<nihilazo> like, in comments etc and in books
<nihilazo> maybe it's just an old style guide hting
hosewiejacke has joined #forth
<lispmacs[work]> siraben: I was able to successfully run `gforthmi meta.fs'
<lispmacs[work]> oops, don't run that command though...
<siraben> Maybe it's a macOS problem
<lispmacs[work]> siraben: sorry, having trouble figuring it out, don't have time now to go deeper
<lispmacs[work]> I thinkg `gforthmi meta.fi meta.fs' wont work
<lispmacs[work]> i think because it calls the `main' word, so program doesn't complete
<lispmacs[work]> i think you would need to throw in some gforth options to gforthmi to make it clear you want to compile the definitions and then run `main'
gravicappa has quit [Ping timeout: 276 seconds]
<lispmacs[work]> but I think you would need to remove the call to `main' in the program and call that as a gforth option
<lispmacs[work]> like the `-e' option
<lispmacs[work]> anyway, sorry, can't spend more time on it now
f-a has joined #forth
<lispmacs[work]> siraben: maybe it is helpful to emphasize that an image file is just a dump of the dictionary after running whatever programs you pass to gforthmi
hosewiejacke has quit [Remote host closed the connection]
<f-a> I have written the inner interpeter, the stack and so forth in assembler
<f-a> what a pain in the proverbial butt
Zarutian_HTC1 has joined #forth
Zarutian_HTC has quit [Write error: Connection reset by peer]
<mark4> if asm is a PITA you need to simplify your code :)
<mark4> asm is supposed to be trivial not complificated
<mark4> its C thats a royal PITA
<f-a> most likely I am approaching it in a bad way
<mark4> thats ok because you learn :)
<mark4> what processor are you writing it for?
<f-a> x86-64
<mark4> take a look at github.com/mark4th/x64
<mark4> oh. are you ITC/DTC/STC?
<mark4> mine is stc
<mark4> and where you see xxx_b <-- the b specifies we are accessing the body address of an item
<f-a> dtc
<mark4> my macros define labels on the CFA and the body
<f-a> no wait
<f-a> the one where you put a link to the interpreter in the instuction section
<f-a> what is it caleld
<mark4> direct threaded, indirect threaded or subroutine threaded
<f-a> the one used by jonesforth, indirect
* f-a clones
<mark4> i have never looked very much at jonesforth. i think he took a lot of my x4 code
<mark4> p.s. thats not a criminal act :)
<f-a> your code is very clean
f-a has quit [Quit: leaving]
f-a has joined #forth
dave0 has joined #forth
f-a has quit [Read error: Connection reset by peer]
f-a has joined #forth
f-a has quit [Client Quit]
f-a has joined #forth
Zarutian_HTC1 is now known as Zarutian_HTC
<kiedtl> pardon my ignorance, but what's ITC/DTC/STC?
<f-a> indirect/direct thread
<f-a> http://www.bradrodriguez.com/papers/moving1.htm ← nice explanation here
<kiedtl> hm thanks
<f-a> I believe a gentle intro to itc is shown here https://www.forth.com/starting-forth/9-forth-execution/
<f-a> and in general, inner working of forth
<veltas> nihilazo: I have read before that 'C' refers to languages like C which aren't Forth. Maybe C-style languages? It's definitely a forthism
<veltas> mark4: I am going to check out your forth some time, because I am currently looking for alternatives to gforth
<mark4> yea gforth has a lot of stuff in there that i dont have and my x64 is kind of not as functional as the x4 32 bit version yet...
<mark4> work in progress
<veltas> Okay I'll bear that in mind
<mark4> tbh theres no real call for 64 bit :)
<mark4> and my 32 bit forth is also dct and the 64 bit is stc
<veltas> I'm open to using 32-bit forths as well, and I agree it would just be nice to avoid 32-bit layer
<veltas> I agree that there's no call for 64-bit, certainly not for me anyway
<mark4> 64 bits will be required when we all have T bytes of ram :)
<mark4> largest ram i have in any of my machines is 64 gigs
<veltas> Fortunately by then we won't be using AMD64 anymore
<mark4> :)
<mark4> oh. we probably will :P
<veltas> Looks like we'll be using ARM or better
<mark4> arm will never have the processing power of x86
<mark4> its more power friendly though
<veltas> I don't only care about processing power, but I don't see why not
<mark4> kind of like how intel will ***NEVER*** have a GPU that can compete with nvidia
f-a has quit [Read error: Connection reset by peer]
<veltas> My reason for moving away from gforth is I actually started reading the source code, in my opinion it's trying to be too general
<mark4> thats the problem with ans
<veltas> Too complicated for me, the forth parts are fine but the GNU C stuff is nasty
f-a has joined #forth
<mark4> i wrote X4 to be as simple as i could make it and i have had people who do not code forth tell me they understand the code
<mark4> dont code forth OR assembler
<veltas> That's impressive
<mark4> but there were also some "bug fixes" i did in x64 that were never ported down yet lol
<veltas> Better than having false code sharing and developing one in the same repo, breaking the other because you're not actively testing it
<veltas> I'm guilty as sin of that
<mark4> the bug fixes are related to terminfo parsing with the new terminfo format
<mark4> i dont think those were fixed in x4
<mark4> but i might be forgetting i fixed it lol
<veltas> So is your forth not ANS then?
<mark4> hell no lol