Live data from Hacker News

Elo – A data expression language which compiles to JavaScript, Ruby, and SQL

elo-lang.org

21–30 of 36 posts

Re: Elo – A data expression language which compiles to JavaScript, Ruby, and SQL

#27
I coincidentally worked on something similar but I kept closer to the SQL standard. It grew out of business cases where you don't have strongly typed data to act on.

I more or less adopted the syntax from dumbql (https://github.com/tomakado/dumbql) and started off with a peg parser using ohm.js. As I started benchmarking I realized how slow it was and started looking for "fast paths" using regex. I ultimately resorted to a recursive descent parser similar to Elo. At that stage I already had a lot of tests and api in place, so I was able to get a lot of help from Claude.

Website here: https://filtron.dev

Re: Elo – A data expression language which compiles to JavaScript, Ruby, and SQL

#28
post #26

SQL was also initially built for end users and not considered "code". I'm not sure we should continue to stack supposedly simple languages one on top of the other for ever. Why not learn SQL instead?

Because we already have databases we have to query and they speak only a dialect of SQL. If there were a lower-level machine-friendly instruction set for databases, it should target that.

Re: Elo – A data expression language which compiles to JavaScript, Ruby, and SQL

#29
This is very similar to what I'm building: https://lutra-lang.org

The base premise is the same: SQL is not a proper programming language and everyone knows it only because they have to. And I feel like everyone who knows SQL enough admits that, but still none of the 20+ attempts of a better language stuck on.

As someone would say: sad.

Post reply on HN