Skip to main content


Someone suggested that I write a few extra examples to the #Uxn tutorial, so I've added a little dropdown that fills the REPL with various basic programs.
https://wiki.xxiivv.com/site/uxntal.html
#uxn
This entry was edited (2 months ago)
in reply to Devine Lu Linvega

Very nice, thank you! I start teaching Uxn in a few weeks, I will definitely point my students to it.
in reply to WimⓂ️

@wim_v12e Oh! Let me know if you need anything special for the class, I'd be happy to improve the repl, or make some extra examples 😀
in reply to Devine Lu Linvega

Thanks a lot! This is a computer architecture course, not a programming course. Uxntal is a great fit for this but I have to limit it to a subset. For example, I'm not going to teach them lambdas, much as I'd love to.
They are going to do the Compudanzas tutorial, and some coursework.
What would be great for them is an example of a loop and an if/then without lambdas and immediate syntax, but of course that is not so good for other learners.
in reply to WimⓂ️

@wim_v12e No no, these are good examples. The loop example has an anonymous jump ?{ } but no lambdas proper. Is the course going to be about how opcodes translate to machine instructions?
in reply to Devine Lu Linvega

Yes, and that is very cool in Uxntal: you can seamlessly substitute the opcodes with numbers and it just works.
I will even have them write a toy assembler (in Python as that is all they know).
in reply to WimⓂ️

@wim_v12e That's a good idea, I can think of a subset of uxntal with basic labels and opcode support that would be a fun exercise to write in python 😀
in reply to Devine Lu Linvega

Even then I will have to give them most of the solution, because these are first years. But still, I hope they will have some fun and learn something useful.
Just don't tell them this is an obscure esolang 😄
in reply to WimⓂ️

By the way, could it be there is a typo in https://wiki.xxiivv.com/site/uxntal_struct.html ? It says

[ LIT2 -Suit/clubs -suit ] LDZ EQU

but that should be -Suit isn't it?

in reply to WimⓂ️

@wim_v12e Oh, no that was meant to be some other value in the zeropage. Maybe I should call it target or something.

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.