When comparing Dyon vs Gluon, the Slant community recommends Dyon for most people. In the question“What are the best scripting languages for use with Rust?” Dyon is ranked 1st while Gluon is ranked 3rd. The most important reason people chose Dyon is:
It is maintained by the people that made Piston which is a game engine. It is suitable for but not limited to game development.
Ranked in these QuestionsQuestion Ranking
Pros
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.
Pro Rust-like syntax
The syntax is very similar to Rust so they fit together quite nicely.
Pro 4D Vectors
Dyon has built-in support for 4D vectors which are used quite often in games programming.
Pro Coroutines
Dyon has coroutines. They're similar to those found in Go.
Pro Statically typed
Static typing makes it easier to write safe and efficient interfaces between gluon and the host application
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
Pro UTF-8 by default
Gluon supports unicode out of the box with utf-8 encoded strings and unicode codepoints as characters
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
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
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
Pro tatically typed
Static typing makes it easier to write safe and efficient interfaces between gluon and the host application