Morel (@morel_lang) header
Morel (@morel_lang) profile picture

Morel is a functional language for database queries and large-scale computation

Berkeley, CA
Joined June 2021
Photo by Morel (@morel_lang)Photo by Morel (@morel_lang)Photo by Morel (@morel_lang)
When the values are converted to fields and the constraints are converted to expressions, @morel_lang can solve the problem. (Logicians will notice that we've moved from 2nd order to 1st order logic, so it's an easier problem.)
1
4
173
It's always interesting to find a "simple" query that @morel_lang cannot answer. (Not simple, really... it requires deducing the value of a function.)
2
2
8
657
Morel can now run on @ApacheSpark. Relational operators in a Morel program are converted to a Spark Connect plan. You can operate on data sets in Spark and also upload data from the client.
8
170
Replying to @kellabyte
I built @morel_lang because sometimes you need to optimize the whole program (e.g. which intermediate results to materialize in an ETL job)
1
5
165
Morel on @ApacheSpark
1
4
423
How we added Datalog support to @morel_lang... and why you might want to just write a Morel query. blog.hydromatic.net/2026/03/…
2
5
22
1,504
We just reorganized the documentation of the standard library. (Putting all functions in a single table was getting ridiculous.) Each structure now has its own page, and each function, type and exception has its own URL. github.com/hydromatic/morel/…
2
12
784
Queries in the browser. (Huge thanks to Will Noble for getting Rust -> WASM working!)
1
1
18
1,232
It's so great to be in New Orleans for @confluentinc's #current25 conference! I'll be speaking about @morel_lang tomorrow at 2:45 PM.
3
1
9
2,059
Morel is now in Rust! I just made the first release of the new Rust toolchain for @morel_lang. Morel-Rust implements same language as Morel-Java. It's early days, but potentially performance will be much better. blog.hydromatic.net/2025/10/…
11
64
4,757
I'm speaking at #current25 in New Orleans (about Morel, SQL, and data languages). Ping me if you're going to be there.
1
6
562
The version of Morel in #rustlang is taking shape. We now have Hindley-Milner type resolution, including lambdas and polymorphic types. Next up: expression evaluation, and release 0.1. github.com/hydromatic/morel-…
2
2
1
30
5,992
Lambda syntax varies widely across languages; more widely, I think, than other language features. I wish it weren't so. It's difficult to see the elegance in a new language if the syntax is unfamiliar.
15
6
4
33
8,348
Morel is an ML-inspired query language with direct support for relational extensions. It's kind of 'what SQL would look like if you fixed all of its problems [and also were a fan of FP]'. Reference below. 👇
2
3
32
2,368
As I've said before, I think 3-valued logic was a mistake. But it's in SQL, so we have to live with it. 3-valued logic was apparently Ted Codd's fault. Then he noted the problems with nulls and wanted to solve them by introducing 4-valued logic. Stop digging already!
3
1
3
476
I've improved Morel's "group" syntax. You can now have expressions inside and outside the aggregate function. (The "over" keyword is necessary because any function on a list or bag can be used as an aggregate function.)
1
1
7
625
I'm pleased to announce release 0.7 of @morel_lang! This is a huge release, adding support for ordered/unordered data, set operators, and revised order syntax. A major rework of Morel's type inference algorithm delivered function overloading. blog.hydromatic.net/2025/06/…
3
1
26
3,952
I'm getting ready to merge a big new feature to @morel_lang - ability to query unordered data sets (bags, and database tables), ordered data sets (lists), and hybrid queries that mix the two. I'd appreciate feedback on whether the specification is clear. github.com/hydromatic/morel/…
1
3
1
8
1,278
Morel will have a two-argument max (so you can write “max 0 of e.sal” and change the 0 to any other value) and a one-argument “maxOpt” that returns an “int option” value. Options are like null but less error prone. github.com/hydromatic/morel/…
1
1
2
183