The Lobster Programming Language

9 andsoitis 3 5/21/2025, 2:30:22 PM strlen.com ↗

Comments (3)

90s_dev · 1h ago
FYI this is not a PDF even though it looks like it. Took me a minute.

Also, why haven't we standardized a syntax yet? Seems like at this point we shouldn't be debating braces vs do/end vs indentation, and we should just settle.

> Lobster is a programming language that tries to combine the advantages of static typing and compile-time memory management with a very lightweight, friendly and terse syntax, by doing most of the heavy lifting for you.

That's... a non-sequitor? Syntax is interesting to discuss and think about it, but when I see "static typing and compile-time memory management", I want to jump right into knowing more about its implementatoin and usage. Does it use ref-counting? Is it embeddable like Lua? Does it have a VM or compile to machine code? etc.

90s_dev · 1h ago
> Choose between running directly using the convenient JIT, or compilation to C++ for extra speed.

C++ is an odd compilation target. Usually it's just C. I'd be curious to see what kind of C++ it emits, and whether the techniques it uses would be better exported as C++ libraries than a new language on top of C++.

90s_dev · 1h ago
> Reference Counting with cycle detection at exit, 95% of reference count ops removed at compile time thanks to lifetime analysis.

This is really clever. Why don't more languages do this? Also, is this the same analysis that does type checking? And does this technique make it unbearably slow?