Live data from Hacker News

Brunost: The Nynorsk Programming Language

lindbakk.com

71–75 of 75 posts

Re: Brunost: The Nynorsk Programming Language

#71

Earlier quoted context omitted.

I have actually changed this since the post's release. I got annoyed that "fast" and "endreleg" have different numbers of characters (regardless of whether endreleg is nynorsk. I got a 2 in Nynorsk in school, so........) Now it is "open" and "låst". As in: - Variabelen er open for endringer. - Variabelen er låst for endringer.

Bonus points for requiring 'å' to program in Brunost.

I use an English keyboard myself. I have to switch between layouts every other character.

I've made my own hell with this language.

Re: Brunost: The Nynorsk Programming Language

#72
post #69
post #53

Earlier quoted context omitted.

In Norway, Danish is sometimes subjected to friendly ridicule as sounding like Norwegian spoken with a potato in your mouth... Danish is if anything ever so slightly closer to German in vocabulary and grammar, but the pronunciation is another matter. The effect is bigger in writing. In high school I worked my way through Faust in German by finding an old Danish translation as a parallel text - the old Danish version…

> In Norway, Danish is sometimes subjected to friendly ridicule Case in point: https://www.youtube.com/watch?v=ykj3Kpm3O0g

Classic. Kamelåså.

Maybe I should throw that into the language somewhere.

Re: Brunost: The Nynorsk Programming Language

#73

What the devil kind of "Nynorsk" allows "kalkuler" in place of "beregn"? And as the other poster pointed out, 'endre' does not actually take the '-leg' ending to make an adjective; not in the written language at least. Your dialect may allow it but that hardly matters. Try 'foranderlig', although I do like the idea of using articles. However, as we have three articles but variability is binary, I suggest we assign 'e…

This tickles me: > `ei fylke er alltid ["Vestland", "Rogaland", "Troms" og "Finnmark"]` Might even consider adding that. I have renamed the "endreleg" since the article release to "låst" and "open". The thought process was: - Variabelen er låst for endringer. - Variabelen er open for endringer. But I really like the "alltid" suggestion.

> I have renamed the "endreleg" since the article release to "låst" and "open".

I like that - much shorter and also the two keywords are the same length, which is always nice when you're making a list. I have to say I would prefer 'åpen', though, just to make extra trouble for people who don't have a keyboard with Correct letters on it. :D

A further thought on `alltid` - you could add the keyword `aldri`, which makes it a runtime error for the variable to take that value. Maybe add ranges as well, for easy bounds checking, e.g.

``` en peker er aldri = null en indeks er aldri > 5 ```

Re: Brunost: The Nynorsk Programming Language

#74
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.

And call it AivotP*rkele?

Re: Brunost: The Nynorsk Programming Language

#75

Earlier quoted context omitted.

This tickles me: > `ei fylke er alltid ["Vestland", "Rogaland", "Troms" og "Finnmark"]` Might even consider adding that. I have renamed the "endreleg" since the article release to "låst" and "open". The thought process was: - Variabelen er låst for endringer. - Variabelen er open for endringer. But I really like the "alltid" suggestion.

> I have renamed the "endreleg" since the article release to "låst" and "open". I like that - much shorter and also the two keywords are the same length, which is always nice when you're making a list. I have to say I would prefer 'åpen', though, just to make extra trouble for people who don't have a keyboard with Correct letters on it. :D A further thought on `alltid` - you could add the keyword `aldri`, which makes…

That is kinda interesting as a concept tbh.

  open peker er 10
  peker er aldri  10
  // Masse kode
  peker er 30 // Error 
Or alternatively:

  open peker er 10
  peker er aldri  10
  // Masse kode
  peker er 30 // Error
Post reply on HN