Live data from Hacker News

Roto: A Compiled Scripting Language for Rust

blog.nlnetlabs.nl

11–20 of 116 posts

Re: Roto: A Compiled Scripting Language for Rust

#11
post #2

> Finally, we want a language that is easy to pick up; it should feel like a statically typed version of scripting languages you're used to. It looks like Rust. All Rust scripting languages do. Is this true for all other languages? Is this just a property of embeddable scripting languages, they will always resemble the language they're implemented in and meant to be embedded in?

People who become proficient in Rust generally enjoy the syntax, so they want to carry it across. (As someone proficient in Rust who has pondered their ideal scripting language, I would have done the same.)

To your more general question: it depends. AngelScript [0] looks very much like C++, while others, like Lua, don't. It's really up to the designer's discretion.

[0]: https://www.angelcode.com/angelscript/, but https://angelscript.hazelight.se/ has better examples of what it actually looks like in use

Re: Roto: A Compiled Scripting Language for Rust

#12
post #2

> Finally, we want a language that is easy to pick up; it should feel like a statically typed version of scripting languages you're used to. It looks like Rust. All Rust scripting languages do. Is this true for all other languages? Is this just a property of embeddable scripting languages, they will always resemble the language they're implemented in and meant to be embedded in?

I think it's just that a lot of people like Rust syntax, and there is a lot of demand for a Rust-like scripting language (Rust syntax is also very close to JavaScript/TypeScript syntax which many, many people are familiar with)

Re: Roto: A Compiled Scripting Language for Rust

#14
post #8
post #5

Sidenote, but I wish it became the practice to explain abbreviations such as BGP, to make the post intelligible to people outside the field.

Border Gateway Protocol But I don’t even think people in networking would say that, it is canonically BGP. This is kind of like complaining about the abbreviation HTML, sure yes it is Hypertext Markup Language but everyone knows it as HTML to the point that there are probably people that don’t know it’s an abbreviation.

Fair.

I'm currently writing an article about Flowspec and had to comb a few RFCs to understand what's going on.

I opened the Roto announcement and felt very smart, lol

Re: Roto: A Compiled Scripting Language for Rust

#15
post #5

Sidenote, but I wish it became the practice to explain abbreviations such as BGP, to make the post intelligible to people outside the field.

Its a short blog about routing rules in a networking domain by NLNet Labs. The explanation of the BGP abbreviation is uncalled for, just because Rust tourists were attracted to click on it, the moment they saw the word...

Re: Roto: A Compiled Scripting Language for Rust

#16
post #5

Sidenote, but I wish it became the practice to explain abbreviations such as BGP, to make the post intelligible to people outside the field.

There is a convention in academic papers where you write the explanation for the 1st occurrence of the abbreviation, then leave it out for the rest of the paper. I suggest others to follow the same, except maybe for the most obvious ones (like HTML mentioned in the other reply)

this is a general convention in technical documentation as well

Re: Roto: A Compiled Scripting Language for Rust

#17
> Roto fills this niche for us. In short, it's a statically typed, JIT compiled, hot-reloadable, embedded scripting language. To get good performance, Roto scripts are compiled to machine code at runtime with the cranelift compiler backend.

Statically typed, hot reloadable scripting? Sign me up.

Re: Roto: A Compiled Scripting Language for Rust

#18
post #8
post #5

Sidenote, but I wish it became the practice to explain abbreviations such as BGP, to make the post intelligible to people outside the field.

Border Gateway Protocol But I don’t even think people in networking would say that, it is canonically BGP. This is kind of like complaining about the abbreviation HTML, sure yes it is Hypertext Markup Language but everyone knows it as HTML to the point that there are probably people that don’t know it’s an abbreviation.

Adding to this, both for BGP or HTML if you don't already know what they mean, the "full form" does not really help.

Re: Roto: A Compiled Scripting Language for Rust

#19
post #8
post #5

Sidenote, but I wish it became the practice to explain abbreviations such as BGP, to make the post intelligible to people outside the field.

Border Gateway Protocol But I don’t even think people in networking would say that, it is canonically BGP. This is kind of like complaining about the abbreviation HTML, sure yes it is Hypertext Markup Language but everyone knows it as HTML to the point that there are probably people that don’t know it’s an abbreviation.

Agreed. There are almost certainly more people who know what "BGP" is than know what "Border Gateway Protocol" is.

But it still would have been a favor to the original commenter to write "BGP (Border Gateway Protocol)". If you write just "BGP" you annoy the reader who doesn't know what it is; they'll think it's your fault. But if you write "BGP (Border Gateway Protocol)", they still won't know what it is but they won't be irritated at you anymore.

Re: Roto: A Compiled Scripting Language for Rust

#20
post #8
post #5

Sidenote, but I wish it became the practice to explain abbreviations such as BGP, to make the post intelligible to people outside the field.

Border Gateway Protocol But I don’t even think people in networking would say that, it is canonically BGP. This is kind of like complaining about the abbreviation HTML, sure yes it is Hypertext Markup Language but everyone knows it as HTML to the point that there are probably people that don’t know it’s an abbreviation.

A LLM response so don't trust it, but

    Biological and Genetic Programming: In biology, BGP can refer to methods or algorithms used in genetic programming or bioinformatics.
    BGP (Bureau of Governmental Personnel): In some governmental contexts, BGP may refer to a specific bureau or office related to personnel management.
    BGP (Bureau of Geographical Planning): In urban planning or geography, it might refer to a bureau that focuses on geographical data and planning.
    BGP (Big Green Potato): In agriculture or gardening, it could refer to a specific type of potato or a gardening initiative.
    BGP (Bilateral Grant Program): In finance or international relations, it may refer to programs that provide grants between two countries.
Elsewhere someone posted a link to the wikipedia disambiguation page. It is very insightful to compare the two lists - you should do this.
Post reply on HN