News for hackers. Stuff that matters.
Re:Brunost: The Nynorsk Programming Language by skrebbel on Saturday April 18, 2026 @10:16AM (#47816112)
I understand "fast fart er 80" and it makes sense, but I think present tense "er" for mutable variables is super weird, and implies functional semantics in an imperative world. Like eg this:

    endreleg fart er 80
This is weird! It can change but it is 80? Was it already? Will it forever? Should that maybe be "blir" instead? (pardon my nonexisting Nynorsk, I'm extrapolanorsking from Danish "bliver") Eg:

    endrelig fart blir 80
So that later it can become a different value, eg

    fart blir 90
And the imperative nature of this bit of code is immediately clear to the reader.
Re:Brunost: The Nynorsk Programming Language by atomfinger on Saturday April 18, 2026 @10:24AM (#47816162)
I have actually changes this in a newer version of the language.

Now it is "låst" and "open", as in:

  låst fart er 80

  open fartsgrense er 110
Mostly because the length difference between "endreleg" and "låst" triggered me.
Re:Brunost: The Nynorsk Programming Language by skrebbel on Saturday April 18, 2026 @12:07PM (#47816979)
Yeah but my beef is not with “endrelig” but with “er”.
Re:Brunost: The Nynorsk Programming Language by atomfinger on Saturday April 18, 2026 @12:35PM (#47817207)
Ah.

I don't disagree with you per se, but I think we can look at it another way: See assignments as statements of fact. The sky is blue. Himmelen er blå.

aka himmelen er blå. A statement of fact.

Also, "blir" becomes yet another keyword. More keywords, more to remember. Not that this has been a real consideration or worry in Brunost so far. The design so far is very much "What I felt was okay that day".

I do agree with the fact that this reads nicely:

  open fart er 80
  fart blir 50
Re:Brunost: The Nynorsk Programming Language by skrebbel on Saturday April 18, 2026 @03:10PM (#47818607)
> See assignments as statements of fact.

This makes sense in functional languages where variables can't change, but not in imperative languages like Brunost. When a fact changes halfway the story, it wasn't much of a fact. Himmelen er blå, inntil den blir rosa.

I too like your final example.

Re:Brunost: The Nynorsk Programming Language by ggsp on Saturday April 18, 2026 @11:18AM (#47816581)
> extrapolanorsking

<3