3 ms·
Hey cool. I made one of these. I arbitrarily chose a 50 character limit for mine. https://c50.fingswotidun.com/ https://c50.fingswotidun.com/ I wonder how man
by Lerc 3y ago
Hey cool. I made one of these. I arbitrarily chose a 50 character limit for mine. https://c50.fingswotidun.com/ https://c50.fingswotidun.com/
I wonder how many others there are out there.
[edit] In case people are curious, here are the main differences I've spotted between FXYT and C50
In C50 x and y range from 0..1 across and down the image respectively instead of 0..255.
Only one value is used on the stack at the end of a C50 program. If a program has a | character then the code after the pipe is a second function that places the value returned by the first function into x and processes it three times with y=0, y=0.5, and y=1 to produce R,G,B values.
There are no looping controls in C50 code is executed straight through.
Larger numbers are much harder in C50. Each digit is just placed on the stack, you need to do math to get larger than 9. I debated a system for quite some time similar to how FXYT does it, N1234 is much easier to understand than 45^567*+ but on the other hand single digit numbers double in size. I'm still pondering a good compromise on this point. Certainly N is friendlier to newcomers. A possibility is a modal instruction system where an N triggers the *10+digit mode for digits until the next non digit is reached, and it pushes just the digit if not in N mode.