Skip to content
Discussion options

You must be logged in to vote

There are generally three reasons.

  1. I couldn't find a practical way to fit the unit typing to literals (that 10mm syntax). I looked into Python, Lua, and Rhai. We could have just made units a new type for these languages, like say measurement.new(10, "mm"), but that just felt... clunky. The Rust library uom (from which I took a lot of inspiration) does something similar to this, and that's where I got to experience working with a system like that. I will admit that I did not research JavaScript or TypeScript.

  2. Scripting languages don't play well with threads. Typically you'll have some kind of global interpreter that has to be locked behind a Mutex (see Python's GIL). With Lua and Rhai …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DeflateAwning
Comment options

Answer selected by IamTheCarl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #17 on February 25, 2026 22:41.