Email or username:

Password:

Forgot your password?
WimⓂ️

I wrote a blog post about my Uxntal to C compiler.

"Compiling stack-based assembly to C"

Apart from the explanations it has some performance and power results.

tl;dr: for compute-intensive code, the compiled version gives up to 12x speed-up.
For interactive GUI code, there is no speed-up and no difference in power consumption, confirming the point I made in another post: Uxn efficiency is a red herring.

wimvanderbauwhede.github.io/ar

#Uxntal #Uxn #compiler

7 comments
Devine Lu Linvega

@wim_v12e

"jumps to computed addresses, because that is a concept that is not supported in C"

TIL.

WimⓂ️

@neauoire Am I wrong there? I think you know more about C than me. As far as I know, goto requires a static label.

Devine Lu Linvega

@wim_v12e No, no. I just looked it up, and you're right. It just never occurred to me that you couldn't feed a goto an expression.

Devine Lu Linvega

@wim_v12e your timing for this is pretty good, would it be alright if I used some of your benchmarks on slides for the Handmade Seattle talk?

I thought maybe I should mention your experiments since there's another talk right after me on that same topic.

WimⓂ️

@neauoire Sure, go ahead! And ask me anything! I can provide you with compiled versions to save you from having to install Raku.

Job

@wim_v12e @neauoire if you stick to recent GCC or clang versions you can use labels as values as an unofficial language extension, is that what you meant?

gcc.gnu.org/onlinedocs/gcc/Lab

stackoverflow.com/a/45380228/3

Go Up