| ▲ | andyferris 14 hours ago |
| 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. |
|
| ▲ | keyle 13 hours ago | parent | next [-] |
| 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. |
| |
| ▲ | Syzygies 3 hours ago | parent | next [-] | | > Isn't a waste to essentially reinterpret an entire program that may be run 5000 times a day? This is a dated prejudice that I shared. To get started coding with AI I made a dozen language comparison project for a toy math problem. F# floored me with how fast it was, nearly edging out C and Rust on my leaderboard, twice as fast as OCaml, and faster than various compiled languages. Compiling could in principle be fastest, if we had compilers that profiled hours of execution before optimizing code, and only then for "stable" problems. No one writes a compiler like this. In practice, Just In Time interpreters are getting all the love, and it shows. They adapt to the computation. My dated prejudice did not allow for this. | |
| ▲ | nine_k 12 hours ago | parent | prev [-] | | 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. |
|
|
| ▲ | bonesss 6 hours ago | parent | prev | next [-] |
| F# and C# are typed scripting languages. F# is quite similar to python in script form (.fsx), and has OCamls expressiveness, exhaustive pattern matching, and type inference. That results in highly expressive, terse, and ergonomic domain code. The .Net VM now supports AOT compilation. The future is now-ish :) |
|
| ▲ | nofriend 12 hours ago | parent | prev [-] |
| a statically typed aot compiled scripting language is... not |
| |
| ▲ | satvikpendem 9 hours ago | parent | next [-] | | I script with Rust via cargo-script, it works great. Scripting is a task for when you want to achieve something in one file instead of a full blown application. It is not about the language, you can script in C or assembly if you so chose. | |
| ▲ | nine_k 12 hours ago | parent | prev | next [-] | | "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.) | |
| ▲ | LoganDark 12 hours ago | parent | prev [-] | | 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. | | |
|