Email or username:

Password:

Forgot your password?
Devil Lu Linvega

From time to time, people ask me "why use an assembled language, wouldn't just rebuilding an SDL application be faster?"

Oquonie builds in 32 milliseconds on a relatively slow computer, it allows me to do live refresh of the application, whereas building even a simple SDL2 application in C takes nearly a full two seconds.

The same question goes for interpreted languages. I think it could be one of the reasons why people would use them, so iterating is fast.

17 comments
[DATA EXPUNGED]
Brian Swetland

@neauoire Personally, I find a 10-20 second build quite snappy and under a minute (for bigger stuff) tolerable.

Total and strong agreement, though, that a rapid modify-build-test cycle is a huuuuge productivity (and just quality of life) win and well worth optimizing around.

For embedded development, this has also always meant "invest in a fast and hands-free way to shoot the new build down to the hardware", because nobody has time to spend their life swapping sdcards and suchlike.

the harbinger of eternal sept

@neauoire exactly why i like interpreted languages— iteration speed. i’m more mad scientist than anything.

Felix Urbasik

@neauoire But that means you're trading the developer's time for the user's time in the long run.

Devil Lu Linvega

@fell If the applications were slow in the result of using this abstraction and not able to deliver good response rate, definitely. Which would be bad, in this case, the applications are responding at their maximum frame rate, which is 60, without drops.

lhp

@neauoire @fell And all that while still looking really nice! The design of the uxn programs I have seen sofar is great; Ecactly the kind of unintrusive playfulnes I really miss in most UIs.

Jason

@neauoire technically UXN is interpreted, it's compiled to a bytecode the vm can interpret.

Technically all compiled languages ASM are interpreted by the CPU before running. So I guess its a moot point. :)

use what brings you joy!

Justin Miller

@neauoire I recently developed an RP2040 firmware (pretty good size, too) in MicroPython, then eventually ported the finished result to the C SDK. Partly for iterative ease, partly to see if I could get away with performance and feature set (very nearly).

[DATA EXPUNGED]
[AFK] Mario

@neauoire somewhat related story, today I started toying around with a game engine idea, after hours of tutorials and videos I remembered your wiki page about ASI C. It’s by far the most simple and to the point information on how to start with C and SDL2 so thanks for that!

Devil Lu Linvega

@mario_afk I'm glad to hear! I have a few projects that might be good jumping points from a SDL hello_world to drawing fun things.

git.sr.ht/~rabbits/dotgrid/tre

poetaster

@neauoire I use supetcollider for music because I can live program iterations listening in layers, stoping starting dynamic synth engines on n number of servers. Compile?

Go Up