Email or username:

Password:

Forgot your password?
Devine Lu Linvega

Modernized bicycle.rom so I can replace the text-only repl on the uxntal page, now that we have full graphical emulation; it's funny to think back at when uxntal didn't have lambdas and how much visual noise it made in the codebase.

I don't name my parameters, I'm certain not about to start naming my functions.
git.sr.ht/~rabbits/bicycle/com

13 comments
Odo Tournesol

@neauoire This feels like a silly question, but does leaving functions unnamed make it harder to return to a project, or understand someone else's work?

Devine Lu Linvega

@dualhammers in some cases yes, but in some cases being forced to name things has the reverse effect.
Here's two lines that I've just renamed the labels for:
Where it was basicaly, "when-not-two" do "not two", it was a lot of useless noise.

I still give name to things when a specific functionality is going to be reused, but in each case where I only use something once, it doesn't need a name.

Odo Tournesol

@neauoire Ah, that makes sense. Yeah, using it once it doesn't need a name for ease of re-use or reference.

DHeadshot's Alt

@neauoire Braces are new - are they just in place of square-brackets or something else?

DHeadshot's Alt

@neauoire I thought you'd managed to implement lambdas without modifying the language? I remember something about a clever technique you'd figured out?

Devine Lu Linvega

@ddlyh I'm not sure I remember that, I mean, I might have been doing the nesting by hand at one point, but it would be very tedious, and removing one nesting would unbalance all the sublabels.

Lambdas have been part of uxntal for about a year now.

Devine Lu Linvega

@ddlyh this page covers pretty much every thing there is know if you want to catch up: wiki.xxiivv.com/site/uxntal.ht

DHeadshot's Alt

@neauoire What's the actual opcodes stored whena lambda is used in the sourcecode? wiki.xxiivv.com/site/uxntal_la doesn't really explain that?

Devine Lu Linvega

@ddlyh it depends, lambdas are just labels.

If you use !{ then it's a immediate jump, if you ?{ then it's a conditional immediate jump, but they have different opcodes. You can do ;{ then you'll have an absolute lit2
wiki.xxiivv.com/site/uxntal_im

DHeadshot's Alt

@neauoire labels of the current location? Then why does "?{" never run? Shouldn't it have to be "#00?{"?

Go Up