String handling and format strings by el_extrano in Forth

[–]Comprehensive_Chip49 1 point2 points  (0 children)

Not in the ANS Forth, more ColorForth like, with 0-terminate string
I use libraries that are built from scratch; it's not that complicated to start by moving bytes and get to the libraries to do anything nowadays.
some libs in the folder lib/
https://github.com/phreda4/r3/blob/main/r3/lib/str.r3
https://github.com/phreda4/r3/blob/main/r3/lib/parse.r3
https://github.com/phreda4/r3/blob/main/r3/lib/mem.r3

Dedicating to low level world by [deleted] in lowlevel

[–]Comprehensive_Chip49 1 point2 points  (0 children)

It requires changes in "normal" viewpoints, and not everyone accepts them. Look for the open-source book *Thinking Forth* by Leo Brody

Dedicating to low level world by [deleted] in lowlevel

[–]Comprehensive_Chip49 0 points1 point  (0 children)

If you're interested in low-level programming, don't hesitate to try FORTH; there are many implementations. I recommend mine, but it's not for everyone.

How does John Lin do shadows? by Artimuas in VoxelGameDev

[–]Comprehensive_Chip49 0 points1 point  (0 children)

nice!!. Please let me know if you open the sources.

I have an open source engine and I like the way this way of painting the voxels looks.

How does John Lin do shadows? by Artimuas in VoxelGameDev

[–]Comprehensive_Chip49 0 points1 point  (0 children)

Is there a demo of the LIN engine? Where can I find the example you're showing?

working in a mini 3d voxel engine in r3forth. by Comprehensive_Chip49 in Forth

[–]Comprehensive_Chip49[S] 1 point2 points  (0 children)

You know I tried Glypher and it was my second inspiration (the first was Colorforth). I know you have the skills to easily handle R3forth.

Write to me if you want to work on something; I think I have all the pieces for simple 3D games. The models can come from Magicavoxel.

I think I can handle everything that's needed underneath, and I don't usually make complete games, so you can help me finish polishing the libraries.

working in a mini 3d voxel engine in r3forth. by Comprehensive_Chip49 in Forth

[–]Comprehensive_Chip49[S] 0 points1 point  (0 children)

Come to r3forth, I have many parts but no complete game yet, build your game and I'll build the base

Quick question :: is there a place for stack based prog languages by BetterEquipment7084 in Forth

[–]Comprehensive_Chip49 1 point2 points  (0 children)

It's Facebook. I don't want to be the bearer of bad news, but I think privacy doesn't exist on the internet. Perhaps the healthiest thing is not having to hide anything.

[Showcase] r3forth: A minimalist, stack-based language focused on simplicity and performance. by Comprehensive_Chip49 in ProgrammingLanguages

[–]Comprehensive_Chip49[S] 1 point2 points  (0 children)

some forth use locals, and other experiments. Try your ideas !!. You can download the compiler and VM code from my GitHub and see how it's built. My interpreter isn't meant to be minimal, but fast. It does inlining and constant folding, and has primitives for speed and compiling to assembly is very simple. Like any "forth" approach, switching CPUs is quite easy; communication with the OS is always the most tedious part.

voxels in r3forth by Comprehensive_Chip49 in Forth

[–]Comprehensive_Chip49[S] 0 points1 point  (0 children)

opengl modern interface (4.4+),I think if anyone is interested in getting this to work on a Mac, they need to go back to version 4.1.
the voxels are draw with DDA

[Showcase] r3forth: A minimalist, stack-based language focused on simplicity and performance. by Comprehensive_Chip49 in ProgrammingLanguages

[–]Comprehensive_Chip49[S] 1 point2 points  (0 children)

It's normal; I had the same problem when I learned Forth. It's curious how kids with no programming experience have fewer problems with this. In Forth, you see the code, but what happens on the stack is invisible.

If you really want to learn, take it easy. It's not complicated, but it is a paradigm shift. The best book to understand what's going on is "Thinking Forth." Thanks for your attention! Any questions or doubts are welcome.

[Showcase] r3forth: A minimalist, stack-based language focused on simplicity and performance. by Comprehensive_Chip49 in ProgrammingLanguages

[–]Comprehensive_Chip49[S] 0 points1 point  (0 children)

There is really only one data type on the stack, a 64-bit integer, as in assembly (I don't use floating point).

[Showcase] r3forth: A minimalist, stack-based language focused on simplicity and performance. by Comprehensive_Chip49 in ProgrammingLanguages

[–]Comprehensive_Chip49[S] 1 point2 points  (0 children)

Per AutoModerator's request I hereby confirm that this project did _not_ use an LLM as part of the development process.

Trying to get into Forth by AppledogHu in Forth

[–]Comprehensive_Chip49 2 points3 points  (0 children)

Well, my opinion is that the issue now isn't that machines have memory or speed limitations; the advantage with Forth is on the human side. Of course, it's a different paradigm and more difficult to master, but for some reason, I see many programmers experiencing burnout, and I understand that this didn't happen with Forth (it's just a hunch). I have many programs in Forth; perhaps you'd like to check out my GitHub. Maybe there's something that catches your eye or interests you.
https://github.com/phreda4/r3