zlacker

[parent] [thread] 13 comments
1. onesev+(OP)[view] [source] 2026-02-05 01:41:27
What I really want to see from a "*-programming-language" post on HN is _why_. Why Lily?
replies(3): >>andyfe+W1 >>pauldd+K5 >>keyche+Oc
2. andyfe+W1[view] [source] 2026-02-05 01:56:58
>>onesev+(OP)
The README on gitlab at least has a sentence or two on that: https://gitlab.com/FascinatedBox/lily

> An interpreted language with a focus on expressiveness and type safety

Personally I think typed scripting languages could be the future. They should support AOT compilation where necessary.

replies(2): >>keyle+X7 >>nofrie+ha
3. pauldd+K5[view] [source] 2026-02-05 02:29:23
>>onesev+(OP)
From the link:

> Key features of Lily:

> Built-in template mode

> Embed/extend in C

> Single-inheritance classes

> Exceptions

> Generics

> Algebraic data types (with Option and Result predefined).

replies(1): >>andsoi+z8
◧◩
4. keyle+X7[view] [source] [discussion] 2026-02-05 02:48:04
>>andyfe+W1
Why do you think that's the future?

Isn't a waste to essentially reinterpret an entire program that may be run 5000 times a day?

AOT compilation, how is that different than make && run?

At some point, you have a compiled language, if it's quick to compile, you're doing the AOT yourself, the scripting is an illusion. Pun intended.

replies(1): >>nine_k+0c
◧◩
5. andsoi+z8[view] [source] [discussion] 2026-02-05 02:53:05
>>pauldd+K5
That’s what. Not why.
replies(2): >>pauldd+4b >>nine_k+1d
◧◩
6. nofrie+ha[view] [source] [discussion] 2026-02-05 03:10:14
>>andyfe+W1
a statically typed aot compiled scripting language is... not
replies(2): >>nine_k+Lc >>LoganD+1f
◧◩◪
7. pauldd+4b[view] [source] [discussion] 2026-02-05 03:16:41
>>andsoi+z8
The reason it exists is to provide those features when programming computers.
◧◩◪
8. nine_k+0c[view] [source] [discussion] 2026-02-05 03:24:25
>>keyle+X7
Isn't it a waste to run a test suite for a program that would run 1M times a day in production?

The key adjective here is successfully run. You want to detect any errors as early as possible. Ideally even at the early stages of writing the script, when a typechecker is already able to point at certain errors, and thus help avoid missteps in further design.

◧◩◪
9. nine_k+Lc[view] [source] [discussion] 2026-02-05 03:30:32
>>nofrie+ha
"Scripting" is a role: an embedded, human-friendly, compact language, also suitable for interactive work / REPL.

(Laugh all you want, but Haskell has a rather nice REPL, and can work as a scripting language.)

10. keyche+Oc[view] [source] 2026-02-05 03:30:55
>>onesev+(OP)
I am curious as well. some past readme has Why sections and I am not sure why they are removed/changed

this have "Why" section https://gitlab.com/FascinatedBox/lily/-/blob/d3ace2907747106...

this have "How Lily stands out from other languages:" section https://gitlab.com/FascinatedBox/lily/-/blob/785a88534cced53...

◧◩◪
11. nine_k+1d[view] [source] [discussion] 2026-02-05 03:32:44
>>andsoi+z8
The why: because Lua, Python, JavaScript, Janet, etc lack many or all these features. And each of these features is known to make life easier for a human programmer.
replies(1): >>dismal+2k
◧◩◪
12. LoganD+1f[view] [source] [discussion] 2026-02-05 03:51:57
>>nofrie+ha
Luau gets pretty close to statically typed and AOT compiled now. It's still a scripting language.

Even C or Rust can be a scripting language. You just integrate the toolchain to your app, same as every other scripting language.

◧◩◪◨
13. dismal+2k[view] [source] [discussion] 2026-02-05 04:43:50
>>nine_k+1d
Looking through that list of features, Ruby (the dynamic language I know best) has all but 1 built-in (and the other can be added with Gems). I'm guessing Python probably has them all too (but I don't know Python that well). They're pretty common. So the why still isn't clear.
replies(1): >>nine_k+zn
◧◩◪◨⬒
14. nine_k+zn[view] [source] [discussion] 2026-02-05 05:24:54
>>dismal+2k
Is Ruby easy to embed in a C program?
[go to top]