SakaQL: a new general-purpose relational programming language
The page presents SakaQL, a new general-purpose relational programming language. The author created it, and says it powers Saka, an upcoming data management product for developers. The author argues that SQL has poor ergonomics and is tied to databases, and says the earlier language EdgeQL[1] did not succeed because it asked users to risk their data on unproven technology from a startup.
SakaQL is described as having a foundation in relational algebra, expression-based syntax and a set-based type system. Values are typed bags, which are unordered multisets[2], and empty bags replace NULL. Pipeline expressions such as if, map and by take the place of SQL clauses. The post gives a FizzBuzz example and a query for each vendor's top five products by price times stock, which is shorter than the PostgreSQL version.
The main feature is automatic incremental view maintenance (IVM)[3]: when stored data changes, dependent views are updated instead of being recomputed from scratch. SakaQL also supports recursion, including mutual recursion, and friendlier recursive functions are only planned for now.
Read the original saka.ioDiscussion
Discussion
Most commenters were skeptical. Several defended SQL, and one said the trade-off the author criticizes in EdgeQL also applies to SakaQL. Another described the project as a scripting language influenced by a query language.
Links from the post and discussion
Sources
-
Saka
SakaQL: A new general-purpose relational programming language




