The Knight Programming Language

tosh 20 points 6 comments April 26, 2026
github.com · View on Hacker News

Discussion Highlights (4 comments)

eigenspace

Always interested to read about a new programming language, but there's barely anything to read here. Would you like to maybe say something about your language that you think people can engage with?

pgt

This reminds me of the META [^1] II paper [^2]: > META II is a domain-specific programming language for writing compilers. It was created in 1963–1964 by Dewey Val Schorre at University of California, Los Angeles (UCLA). META II uses what Schorre called syntax equations. The interesting part of META II is that it can be defined in itself on one page (refer page 8 of the paper). [^1] Wikipedia https://en.wikipedia.org/wiki/META_II [^2] Paper: https://dl.acm.org/doi/epdf/10.1145/800257.808896

fjfaase

I developed a similar language as an intermediate language for a C-compiler that I wrote. It uses reverse Polish notation instead of Polish notation [1], because it is easier to compile reverse Polish notation to machine code. I call the language Stack-C. See [2]. There are 32 bit and 64 bit compilers for x86 assembly and there is a memory safe interpreter for the language with a (rather limited) built-in debugger. [1] https://en.wikipedia.org/wiki/Polish_notation [2] https://github.com/FransFaase/MES-replacement/blob/main/Stac...

layer8

The author doesn’t seem to have taken into account why C introduced trigraphs. The requirements [0] on mandatory ASCII characters to be supported are too steep, consider [1]. [0] https://github.com/knight-lang/knight-lang/blob/master/specs... [1] https://en.wikipedia.org/wiki/ISO/IEC_646#Variant_comparison...

Semantic search powered by Rivestack pgvector
8,303 stories · 78,303 chunks indexed