Live data from Hacker News

The Om Programming Language

om-language.com

11–20 of 119 posts

Re: The Om Programming Language

#11
post #3

[flagged]

I am always kind of surprised when I go to a landing page for a language and there isn't any actual code. This is one of my biggest complaints about the rust language page, it feels crazy to me that there's no code and I think this is just a ridiculous choice (and I know this has been brought up before). The old page had a built-in sandbox. Go used to have a more "Front and center" sandbox too but at least it's there…

There is code. Small examples start halfway down the page, and there's one 20-line example. Not much, but it's not accurate to say there's none.

It would be helpful to see any kind of motivation for the project though. Anything at all.

Re: The Om Programming Language

#14

Earlier quoted context omitted.

I am always kind of surprised when I go to a landing page for a language and there isn't any actual code. This is one of my biggest complaints about the rust language page, it feels crazy to me that there's no code and I think this is just a ridiculous choice (and I know this has been brought up before). The old page had a built-in sandbox. Go used to have a more "Front and center" sandbox too but at least it's there…

> I am always kind of surprised when I go to a landing page for a language and there isn't any actual code. So, you're not surprised that this Om page has an extensive section called "Examples", right? https://www.om-language.com/#language__examples__

[deleted]

Re: The Om Programming Language

#15
post #4
post #3

[flagged]

Yeah show me the 5-line HTTP server

not that kind of language, it does not even come with integer types or "plus" operator by default.. they do give an example of

    define { minutes { dequote choose {minutes} {} = {:} 
which does Python's equivalent of

    "1:23".split(":", 1)[1]
or for a more direct translation:

    def minutes(x): 
        return x[1:] if x[0] == ':' else minutes(x[1:])
    minutes("1:23")

Re: The Om Programming Language

#19
post #3

[flagged]

I am always kind of surprised when I go to a landing page for a language and there isn't any actual code. This is one of my biggest complaints about the rust language page, it feels crazy to me that there's no code and I think this is just a ridiculous choice (and I know this has been brought up before). The old page had a built-in sandbox. Go used to have a more "Front and center" sandbox too but at least it's there…

One time, this annoyed me so much that I made a website.

https://anaminus.github.io/langding/

om would fall under "Yes, must scroll".

Re: The Om Programming Language

#20

> 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__

That would be parsed as a single operator and evaluated using the following rule:

> Evaluates to the operation defined for the operator in the environment. If none, evaluates to a constant function that pushes the operator, followed by all input terms, onto the output program.

I believe it would simply output itself.

Post reply on HN