Hacker News new | ask | show | jobs
AviatorScript – A high performance scripting language hosted on the JVM (github.com)
27 points by nalenth 1917 days ago
3 comments

Awesome! I’ve been using a similar language for the last 10 years called Lucee (Lucee.io). It’s dynamic with an ecmascript style syntax and also runs on the jvm so it scales super well. I wonder how this compares.
Looks cool! Seems to be focused on web-applications, though. Can this be used for general purpose as well?
I'm a big fan too, it's my daily go-to and a great "glue" language for all sorts of tasks webapps, APIs, batch jobs etc, all admittedly web-related as that's my job too. I recently moved over lots of Adobe CF code into Lucee and really enjoy the more modern language elements not to mention the lack of expensive licenses.
I'm a web dev so I only use it for web apps but you can certainly use it beyond web applications.
What is with the "p" in the example? I assume it is the same as "println" used elsewhere in the documentation. Some sort of shorthand.
And what is the relationship between tuple, list, and array?

https://www.yuque.com/boyan-avfmj/aviatorscript/ban32m

tuple is a fixed-size array

array is a java array

list is a sequence which are java Collections (Set/Map/List)

Yeah - I figured it would be related to interopt with the Java runtime.

However it is a bit sad, language designers never seem to bother cleaning up collection types when designing a new language.

There really should be just one list type.

Agree with array/list, we don't need more contiguous chunks of memory, but tuples are very different, if only because they allow elements of different types. They're really more ad-hoc unnamed structs than collections.
in strictly typed languages that would be correct, and I still somewhat agree, but AviatorScript is dynamically typed, and allows lists containing elements with different types. It's basically List<Object>. So it seems to be a strictly semantic distinction.
yeah, seems to be simply a shorthand of println
No english documentation available? I could only find the japanese version. But this looks awesome!
Here's a quick guide on differentiating Asian scripts: https://external-preview.redd.it/5E56z2aoA6M8rKLYBMuAyhPShVQ...
That's actually useful :)
Yeah that seems to be one of the major problems. I believe it is in chinese. The documentation has an auto-translation feature: https://www.yuque.com/boyan-avfmj/aviatorscript/guhmrc?trans... I stumbled upon it while searching for a groovy alternative. It seems to be reasonably well known is Asia, but I found no mention of it on the english web.
There seems to evolving a parallel open source ecosystem in Chinese with its own languages, frameworks, and even operating systems. Will be fascinating to see what it will come to.
Definitely! Would be very cool to see some write-ups about the asian ecosystem from native speakers.
I remember when Ruby was this obscure thing only used by Japanese ...