Skip to content
NorscodeNorscode

Code in your own language.

Norscode is a programming language with Norwegian keywords, a capability-based runtime and a large standard library. You write the code in your own language, and run it safely.

hei.no
bruk std.web som web

funksjon hei(ctx: ordbok_tekst) -> ordbok_tekst {
    web.route("GET /")
    la navn = web.request_query_param(ctx, "navn")
    hvis navn == "" { navn = "verden" }
    returner web.response_builder(200, {"content-type": "text/plain"}, "Hei, " + navn + "!")
}

The keywords are Norwegian

You write funksjon, hvis, ellers, la, mens and returner. The types are tekst, heiltall, boolsk and ordbok_tekst. The code reads for everyone on the team, not only those comfortable in English.

A runtime that says no

A program gets nothing for free. Disk, network and environment variables must be granted explicitly as capabilities when you start it. Forget to grant access, and the program fails — it cannot find a way around.

Over 280 modules included

Web and HTTP, database, a whole TLS 1.3 implementation, modern password hashing, JSON, CSV, dates, DNS and file handling. The goal is that ordinary tasks need not a single external dependency. See the standard library.

One tool

nc check validates, nc run runs, nc serve starts a web service. The same tool from the first line of code to the service in production.

Self-hosting

The compiler is written in Norscode and builds itself. The language is not a layer on top of something else — it stands on its own.

One bundle, one sum

A program links to a single NCB file with a SHA-256 sum. What you tested is, byte for byte, what runs. Get the runtime.

A language you can read out loud

Norscode is built on a simple idea: code should be easy to understand, also for someone who does not have English as a first language. The keywords are Norwegian, the error messages are in Norwegian, and the sentences read roughly as they are meant. That lowers the threshold to get started — and it makes the code easier to maintain long afterwards, because it is reading, not writing, that takes most of the time in a project that lives.

Who is it for?

For the learner, it removes one obstacle: you learn to think in structure without fighting a foreign language at the same time. For the teacher, Norwegian syntax means the class can read the code aloud and discuss it without switching between two languages. And for the developer it is a real tool — statically typed, compiled, with a broad standard library and a runtime that takes security seriously. The keywords being Norwegian is the intriguing part; what keeps you is a language that stands on its own.

Safety from the first line

Most languages give a program the same access as the user who starts it: the whole disk, the whole network, every secret. Norscode turns this around. A program starts with access to nothing, and you grant it precisely what it needs — this area of the disk, this host on the network, no more. It means you can run code you have not read every line of, and still know what it can do at most.

Norscode is in active development and grows steadily. Follow the news for what is happening — or just jump in and write your first line of code.