The Om Programming Language

234 points23 comments9 hours ago
pgt

Would recommend placing example language syntax above the fold. Was tough to have to scroll halfway down the entire site to see any syntax. Nobody cares about the EBNF syntax until they have a feel for the language.

dirk94018

Aren't LLMs supposed to write machine code directly, no more programming languages at all, any day now? Joking aside, programming languages are a good mental exercise. Forth was my first language after assembly. Didn't like the stack juggling and ended up using its macro assembler more and more, it became something else, conventions over code I suppose, like what to keep in registers. Forth (and Unix) got the composability requirement right, the testing of individual units.

show comments
willquack

I worked with Jason (creator of Om) at my last job. He's awesome!

show comments
irickt

A more explanatory article mentioned in the post: https://evincarofautumn.blogspot.com/2012/02/why-concatenati...

show comments
omoikane

> any UTF-8 text (without byte-order marker) defines a valid Om program.

What is the behavior of a program with unmatched braces? I am not sure a stray `}` would fit any of the defined syntax.

https://www.om-language.com/index.html#language__syntax__

show comments
sriku

Another concatenative-ish one embedded in js .. just for fun - https://github.com/srikumarks/pjs

You may find the "genailang" module fun to play with.

shevy-java

Missing a 'g'!

Omg would have a ring to it.

show comments
bittermandel

I confused this with https://github.com/omcljs/om

show comments
jwilber

Will never not complain about languages not giving code examples. It’s like writing a charting/UI/style library and showing no examples. Just what?

show comments