Remix.run Logo
meisel 3 hours ago

Yeah show me the 5-line HTTP server

theamk 2 hours ago | parent | next [-]

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} {} = {:} <-[characters] } } { minutes {1:23} }
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")
KPGv2 3 hours ago | parent | prev [-]

"The Om language is not:

complete. Although the intent is to develop it into a full-featured language, the software is currently at a very early "proof of concept" stage, requiring the addition of many operations (such as basic number and file operations) and optimizations before it can be considered useful for any real-world purpose. It has been made available in order to demonstrate the underlying concepts and welcome others to get involved in early development."