Introducing
The Slant team built an AI & it’s awesome
Find the best product instantly
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now
4.7 star rating
0
Development
What are the best scripting languages for use with Rust?
3
Options
Considered
9
User
Recs.
Mar 28, 2019
Last
Updated
Related Questions
Activity
Have feedback or ideas?
Join our community
on Discord
Ad
3
Options
Considered
Best scripting languages for use with Rust
Price
Platforms
Last Updated
--
Dyon
-
-
Mar 28, 2019
--
Lua
-
Windows, Mac, Android, Linux
Apr 16, 2018
--
Gluon
-
-
Mar 28, 2019
See Full List
--
Dyon
My Rec
ommendation
for
Dyon
My Recommendation for
Dyon
All
4
Pros
4
Top
Pro
•••
Suitable for game development
It is maintained by the people that made Piston which is a game engine. It is suitable for but not limited to game development.
See More
Top
Pro
•••
Rust-like syntax
The syntax is very similar to Rust so they fit together quite nicely.
See More
Top
Pro
•••
4D Vectors
Dyon has built-in support for 4D vectors which are used quite often in games programming.
See More
Top
Pro
•••
Coroutines
Dyon has coroutines. They're similar to those found in Go.
See More
Hide
See All
Get it
here
Recommend
4
1
--
Lua
My Rec
ommendation
for
Lua
My Recommendation for
Lua
All
12
Pros
9
Cons
2
Specs
Top
Pro
•••
Great documentation
The official Lua documentation is very helpful and thorough. There are also a large number of online resources or books with lots of helpful information for beginners and advanced users alike.
See More
Top
Con
•••
Some concepts may not be applied to other "mainstream" programming languages
Lua features a prototye-based inheritance model. While this is also used by Javascript, it's not used by many other mainstream languages, and so some of the concepts learned while learning Lua won't be very applicable to other languages. Another thing that makes Lua different from other programming languages, is the fact that Arrays start at 1 instead of 0. While helpful for beginners, it can complicate logic and make it very confusing when switching languages.
See More
Specs
Platforms:
Windows, Mac, Android, Linux
Top
Pro
•••
Very easy to integrate with C and C++
One of the best features of Lua is its very well designed C API. This is very useful if you have an existing C library you need to integrate with Lua or quickly get a Lua script running on the C side of the game. Finally Lua plays so nice with C that if you need to optimise for speed you can re-write it in C a lot easier than other languages.
See More
Top
Con
•••
Easy to make mistakes when declaring variables
When writing a function, if a programmer forgets to declare a variable, that variable will be declared at global scope. The code will seem to run fine at first, but if another function uses a variable with the same name, but fails to declare it, it will create subtle, incredibly difficult to find bugs.
See More
Top
Pro
•••
Portable
Lua can be built on any platform with a ANSI C compiler. Other than that, Lua is extremely small. For example, the tarball for Lua 5.2.1 is only 245K compressed and 960K uncompressed (including documentation). When built on Linux, the Lua interpreter built with the standard libraries takes 182K and the Lua library takes 243K. The small size and the ability to build with a C compiler make Lua an extremely portable language that can run on a lot of different systems and computers.
See More
Top
Pro
•••
Fast
Lua's performance compares very well to other languages, If performance needs to be further improved you can: Implement critical parts in C Use the LuaJIT compiler. The LuaJIT compiler is a drop in replacement for the stock compiler and provides significant performance improvements. From the overview page: LuaJIT speeds can rival code written in C.
See More
Top
Pro
•••
Simple
Easy to learn.
See More
Top
Pro
•••
Embeddable
Many different game engines (e.g. Elder Scrolls series, ToME) use Lua for scripting, and it's runtime is designed for embedded use.
See More
Top
Pro
•••
Helpful community
Due to the growing popularity, Lua has a rather large and helpful community surrounding it.
See More
Top
Pro
•••
Clean and simple syntax suitable for beginners
The Lua syntax is modeled from Modula, a language known for being a fantastic introduction to programming. The Lua syntax also has the following key characteristics: Semicolon as a statement separator is optional (mostly used to resolve ambiguous cases as in a = f; (g).x(a)). Syntactic sugar for function calls (f'string', f"string", f[[string]], and f{table}) and method calls (obj:m()).
See More
Top
Pro
•••
The most popular game scripting language
https://codeplea.com/game-scripting-languages
See More
Hide
See All
Recommend
1
--
Gluon
My Rec
ommendation
for
Gluon
My Recommendation for
Gluon
All
7
Pros
7
Top
Pro
•••
Statically typed
Static typing makes it easier to write safe and efficient interfaces between gluon and the host application
See More
Top
Pro
•••
Simple embedding
Marshalling values to and from gluon requires next to no boilerplate, allowing functions defined in Rust to be directly passed to gluon
See More
Top
Pro
•••
UTF-8 by default
Gluon supports unicode out of the box with utf-8 encoded strings and unicode codepoints as characters
See More
Top
Pro
•••
Separate heaps
Gluon is a garbage-collected language but uses a separate heap for each executing gluon thread. This keeps each heap small, reducing the overhead of the garbage collector
See More
Top
Pro
•••
Thread safe
Gluon is written in Rust, which guarantees thread safety. Gluon keeps the same guarantees, allowing multiple gluon programs to run in parallel
See More
Top
Pro
•••
Type inference
Type inference ensures that types rarely have to be written explicitly giving all the benefits of static types with none of the typing
See More
Top
Pro
•••
tatically typed
Static typing makes it easier to write safe and efficient interfaces between gluon and the host application
See More
Hide
See All
Get it
here
Recommend
2
1
Don't see your favorite option? Add it.
Built By the Slant team
Find the best product instantly.
4.7 star rating
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now - it's free
One sec!
Are you sure that you want to abandon your hard work?
Delete Work
Continue working
{}
undefined
url next
price drop