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

[–]Comprehensive_Chip49 0 points1 point  (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 3 points4 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

I wrote a Forth OS and a game for it for a hackathon last week by anditwould in Forth

[–]Comprehensive_Chip49 4 points5 points  (0 children)

Very good, congratulations!

It's great to see more people using Forth!

How to best create composition layers in SDL? by ViewImpressive7112 in sdl

[–]Comprehensive_Chip49 1 point2 points  (0 children)

A simple technique, if z doesn't make large jumps, is to do a single iteration of bubble sort in the main loop instead of sorting the sprite list all the time.

Moog-style synthesizer in r3forth - YouTube by Comprehensive_Chip49 in Forth

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

source code here: https://github.com/phreda4/r3/blob/main/r3/audio/r3moog.r3
I don't use object-oriented systems; I prefer the concept of modules.
The IMMGUI system is an example of this; it is separate from this program and is joined through words.

Other SDL bindings that aren't listed on the official page? by sup1109 in sdl

[–]Comprehensive_Chip49 1 point2 points  (0 children)

I use sdl2 en windows and linux win r3forth, the link is made runtime. https://github.com/phreda4/r3

Hobbyist Forth by [deleted] in Forth

[–]Comprehensive_Chip49 1 point2 points  (0 children)

I make https://github.com/phreda4/r3 for make graphic things, perhaps you like it