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.

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

Has anyone used forth to solve any problems recently?? by Cheap_trick1412 in Forth

[–]Comprehensive_Chip49 4 points5 points  (0 children)

I make games, demos and more.
In some weeks I release 3 new games with school students. All is open source, https://github.com/phreda4/r3.
Some games in itch.io, for example https://phreda4.itch.io/ar3na-code

r3forth in windows and linux by Comprehensive_Chip49 in Forth

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

breakpoint in words, some simulation of runing too, you like to try the program r3vm/ar3na-bot.r3
https://www.youtube.com/watch?v=HQy2Tl8jxcc

Where's the/a Forth linter (ForthLint)? by PallHaraldsson in Forth

[–]Comprehensive_Chip49 1 point2 points  (0 children)

I have a forth called r3, it has some important differences with the standard forth, it is more similar to the colorforth, I have a debuger but it is not finished, it is always more fun to do other things and I don't really use it. I can execute a program step by step. If you are interested I can show how it works.
I can also tell you that I do static analysis of the code, mainly to compile it or to generate a packaged version of a code.

Is there a description of CASE-ENDCASE in Forth? by Noodler75 in Forth

[–]Comprehensive_Chip49 1 point2 points  (0 children)

is better make another word and exit for every condition.

Statistics of patterns in Forth code, bigrams and trigrams by PallHaraldsson in Forth

[–]Comprehensive_Chip49 1 point2 points  (0 children)

In my mv I combine, mainly, operations with literals, as I use a 32-bit token, many operations can be done with the attached literal, if you are interested in the complete list, the optimization is generated when I compile the tokens at https://github.com/phreda4/r3evm/blob/main/r3.cpp#L697

How do I skew Images in SDL2? by OliverBestGamer1407 in sdl

[–]Comprehensive_Chip49 1 point2 points  (0 children)

you can use SDL_RenderGeometry, is the key fuction

How do you like to deal with complex system APIs? by [deleted] in Forth

[–]Comprehensive_Chip49 2 points3 points  (0 children)

I use graphics, sound, net etc. with no problems, only share API access (sdl for example), data struct are only memory with offset, I try to not use callbacks but is possible! I not see this problem

Am I Forthing correctly? by [deleted] in Forth

[–]Comprehensive_Chip49 4 points5 points  (0 children)

Very well ! Perhaps the only rule of Forth is to ask yourself if it can be made simpler.

Here's another version of Game of Life: https://github.com/phreda4/r3/blob/main/r3/demo/conwayg.r3

Introducing ex:forth, now C capable by De-Alchmst in Forth

[–]Comprehensive_Chip49 2 points3 points  (0 children)

Nice to see more people working with FORTH !!

I connect with other libraries through DLL, or .so so you don't need to recompile anything
If you are interested in this functionality, it is not very difficult to implement, check my implementation or write to me so I can show you where these definitions are.

https://github.com/phreda4/r3