logoalt Hacker News

Rust but Lisp

68 pointsby thatxlineryesterday at 9:46 PM33 commentsview on HN

Comments

ectotoday at 12:30 AM

Readers may enjoy my lisp, Loon, which takes heavy inspiration from Rust https://loonlang.com/guide/ownership

vermilinguayesterday at 11:41 PM

Claims to have all the syntax covered, but not a single example of specifying lifetimes or the turbofish, some of the trickiest rust syntax

show 2 replies
hawkiceyesterday at 11:13 PM

I think some comments are missing the upside of it being precisely Rust, without any new semantics. If you want lisp that compiles to machine code, Common Lisp can get reasonably efficient. The purpose of bringing Rust into it is to surface Rust-specific semantics -- which many people quite like!

show 1 reply
jaggederesttoday at 12:11 AM

Unfortunately, given the clear LLM basis of this project, s-expressions aren't a great choice. I've found coding agents struggle really hard with s-expression parentheses matching.

Much better to give them something more M-expr styled, I think a grammar that is LL(1) is probably helpful in that regard.

Basically the more you can piggyback on the training data depth for algol-style and pythonic languages the better.

show 4 replies
GalaxyNovayesterday at 10:59 PM

It seems like this is more like writing Rust in an s-expression syntax instead of having a proper lisp dialect that compiles to Rust, which is cool I guess but not very interesting.

It's quite weird-looking for someone who's done any amount of lisp programming.

show 3 replies
OhMeadhbhtoday at 12:36 AM

How do you change the syntax to eliminate reverse compatibility? I guess you could change the names of most key functions between releases. But to be compatible with rust you would need to make breaking changes every release.

ameliustoday at 12:16 AM

This is probably what Rust's internal ASTs look like. But why would you want to input programs as ASTs?

show 1 reply
stuaxoyesterday at 11:18 PM

"no runtime, no GC, just" I am BEGGING every project to not have this LLMism in their docs.

It reads as No X no Y just slop to me every time.

show 1 reply
moron4hiretoday at 12:53 AM

I don't understand why this had to be LLM generated. S-expression syntax parsers are not hard to write. That's rather much the point of S-expressions.

show 1 reply
nxobjecttoday at 12:40 AM

"Lust", or "Risp"?

FrankWilhoityesterday at 9:51 PM

And for why?

show 1 reply
slopinthebagtoday at 12:50 AM

How is pure unbridled AI slop like this making the front page? Voting rings?

I don't even feel bad saying this because clearly OP is just the front for Claude here.

show 1 reply