Live data from Hacker News

Brunost: The Nynorsk Programming Language

lindbakk.com

41–50 of 75 posts

Re: Brunost: The Nynorsk Programming Language

#41
post #24

Earlier quoted context omitted.

> What do you know about Bokmål being more prestigious in the past? Having grown up in Norway and seen first hand how it was treated that way. > You don’t respect the other form enough to cognize that it exists.[1] I don't like Nynorsk, sure, but that has zero relevance to the point I made, which was if anything a point of contention for those who do like Nynorsk for decades, and a subject of intense activism. EDIT:…

> Having grown up in Norway and seen first hand how it was treated that way. In Oslo. > I don't like Nynorsk, sure, That’s not what respect or disrespect is about. > but that has zero relevance to the point I made, No. The relevance is what I stated, in the next sentence that you did not quote. > which was if anything a What I questioned was its truthfulness. Not what kind of person would say it. > You seem to think…

> What I questioned was its truthfulness

You can question the truthfulness all you want.

It doesn't change the fact that this has been a well established aspect of the language struggle in Norway for well over a century, to the point that when I went to school it was even covered in history lessons.

I'm mystified with how you are ignorant of this. Bokmål has it's origin firmly in being derived from Danish via Riksmål, as based on how the elites spoke.

The spread of Bokmål was a direct consequence of its prestige as a consequence of for a very long time being the favoured written language of the elite, leading to adoption even in areas where the spoken dialect was closer to Nynorsk.

Re: Brunost: The Nynorsk Programming Language

#42
As a Swede I am surprisingly drawn to this. At first I read this as a fun joke, an art project if you will. By the end after reading the code and being surprised by how comfortably it reads to me I find myself kind of wanting to use this. In a way it is exactly like brunost, surprisingly good.

Re: Brunost: The Nynorsk Programming Language

#43

Funny :) but I think it would work better if the language not only required Nynorsk, but used Nynorsk and not Bokmål for all keywords: https://ordbokene.no/nob/nn/ellers I think I also saw "ikke" in there. And https://ordbokene.no/nob/nn/endreleg isn't a word in any language? The Nynorsk word for it is sadly just "variabel". To make it more interesting, you could require agreement, and instead of "endreleg fart", how…

Well, I got a 2 in nynorsk, so I expected to have some mistakes going into this. Not sure I can handle also being graded by it.

I have replaced endreleg with "open", and the immutable variable with "open" in later versions (done after the article).

So now the "endreleg" is less of an annoyance, both because it no longer exists and because it has the same number of characters as the immutable keyword.

Re: Brunost: The Nynorsk Programming Language

#45
post #42

As a Swede I am surprisingly drawn to this. At first I read this as a fun joke, an art project if you will. By the end after reading the code and being surprised by how comfortably it reads to me I find myself kind of wanting to use this. In a way it is exactly like brunost, surprisingly good.

I don't know how far I want to take this language, but if there is a market for an actual nordic/norwegian language then it shouldn't be Brunost.

I would want something that compiles down to something, not interpreted, typesafe, with a proper package manager, etc.

My initial goal was always to take it far enough to do file I/O and sockets, so I could make a Brunost website in Brunost.

If there is interest in the language from the POV of education and so forth I'd be happy to tailor it away from goofs and gafs and into something a little more usable, but I don't want the language to become a full-on production language.

Re: Brunost: The Nynorsk Programming Language

#46
post #41

Earlier quoted context omitted.

> Having grown up in Norway and seen first hand how it was treated that way. In Oslo. > I don't like Nynorsk, sure, That’s not what respect or disrespect is about. > but that has zero relevance to the point I made, No. The relevance is what I stated, in the next sentence that you did not quote. > which was if anything a What I questioned was its truthfulness. Not what kind of person would say it. > You seem to think…

> What I questioned was its truthfulness You can question the truthfulness all you want. It doesn't change the fact that this has been a well established aspect of the language struggle in Norway for well over a century, to the point that when I went to school it was even covered in history lessons. I'm mystified with how you are ignorant of this. Bokmål has it's origin firmly in being derived from Danish via Riksmål…

Prestige = elite strata. That answers my question.

Re: Brunost: The Nynorsk Programming Language

#47

The brunost programming language could be very useful for norwegian government agencies. It is common to use norwegian names for variables and functions at the Norwegian Labour and Welfare Administration (NAV in Norwegian). A subset of typescript where the reserved words are written in nynorsk, would help prevent misunderstanding.

If there is a market for that, then I would build a new language from the ground up that is... better designed.

Brunost is just me throwing syntax at the wall to make a "nynorsk programming language". Less about careful design and more about getting something to work.

If I were to make a language intended for an important production system, it would be a compiled language that (probably) would go the Gleam route and compile to JS and some other language, while also being typesafe, having a package manager and so forth.

Re: Brunost: The Nynorsk Programming Language

#48
post #25
post #8

One of these years I'm going to make a Finnish programming language that enforces the correct case in arguments. And I don't mean silly arguments like camelCase vs kebab-case, I mean grammar. Some examples to illustrate: tiedosto on "foo.txt" avattuna tulostin on PRN1 kirjoita(tiedostoon, "a") kirjoita(tulostimelle, "b") Job security for DECADES.

This is equal parts brilliant and demented. Thank you. syöte olkoon vakiosyöte yritä tee syötteen kullekin alkiolle: käsittele(alkio) paitsi poikkeustilanteessa liukulukuylivuoto: kirjoita(virhetulosteeseen, "liukulukuylivuoto") muutoin: kirjoita(virhetulosteeseen, "odottamaton poikkeus")

Remember to be careful with looping lest you create an ikikieriö.

Re: Brunost: The Nynorsk Programming Language

#49
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

#50
post #11
post #4

As a fellow Norwegian and nerd I have always wanted to be better at Nynorsk. Maybe this is what I need to get better at it!

Word Basic back in the Word 95 days translated keywords . The source was saved tokenized, so the program would have different keywords when loaded in different version of Word. I don't know if there was a Nynorsk version, but I presume there must have been. (I once had a contract where I spent the first week sorting out problems caused by someone managing to move Word Basic from a Danish version of Word to a Norwegia…

Excel still translates keywords in 2026.
Post reply on HN