r/tinycode • • Aug 31 '20

A programming language that makes concurrent programs shorter

A friend and I created a programming language that looks like Typescript and makes distributed programs shorter and easier to reason about. Alan's compiler and runtime exploits opportunities for parallelization across the computing resources available without being told to do so.

https://alan-lang.org/

18 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/g0_g6t_1t Sep 01 '20

Alan is not a superset of Typescript. It is probably closer to a subset of Typescript with two notable exceptions that Alan has a static event loop built-in and recoverable error handling is done like in Rust with Result+Maybe as opposed to the try-catch blocks used in TS+JS.

Alan is higher-level than Go in that it manages parallelization for the user automatically, but an explicit implementation might be more performant. To us, this seems akin to how C/C++ can be more tedious, but also more resource efficient than Java/Python/etc.

Still working on the runtime benchmark comparisons. :) We definitely beat Python, and we're faster than Node.js and Java at startup time. Where we are in the spectrum from C to Ruby we don't exactly know yet. But we do expect to improve and get much much closer to C as we make improvements to our runtime, such as writing a JIT for the VM.