617 karma · joined May 4, 2020
I've posted on r/rust as well (https://www.reddit.com/r/rust/comments/lqn5aa/calculatex_a_p...), and there seems to be interest in using it for scientific papers and such.
The only alternative I know of is PTC MathCAD, which is quite powerful and definitely worth looking into. However, it's quite expensive and Windows only.
The main repo (a Rust library and basic CLI) can be found here: https://github.com/mkhan45/CalcuLaTeX
The website repo using WASM and very hacky JS can be found here: https://github.com/mkhan45/CalcuLaTeX-Web
The two most mature embeddable Rust scripting languages at the moment seem to be Gluon and Rhai. Gluon, unlike Rhai and Lua, is inspired by Haskell and OCaml and highly functional. On the other hand, Rhai is pretty much a Rusty looking version of Lua from my first impressions.
I'm pretty heavily leaning towards Rhai at the moment since I need the scripting language for SIMple Physics to be easy for beginners with no programming experience to pick up for ultra basic applications, but I think Gluon is pretty unique. I'd assume that simple imperative languages are just better for embedding since they're often just used to send commands, but I wonder if I'm just close-minded since I've been using Lua.
FWIW, being able to write through my code editor in markdown is what got me to start writing
The author is correct that most programs don't need complex or clever leetcode type algorithms, but IMO program architecture is just as difficult to get right for any program longer than a thousand lines.
> what other features would make me pick rust over golang Generics, iterators, pattern matching, etc. There's lots of features Rust has that golang doesn't; that's not necessarily a good thing but for what I do it is. IMO the only good thing about golang's featurelessness is the compile times and the standard library.
As for interpreted languages, IMO it's just better to be able to catch errors at compile time.
The memory management system isn't Rust's only good feature. I and others enjoy Rust's type system and functional features, for example.
Using Rust also makes it easy to get performance for when writing the parts for which you need it.
Also related is the tiny C compiler and its `tcc -run` command.
I doubt that this will catch on with any other companies that use facial recognition, and to be honest the technology is too simple to possibly regulate, but at the moment I think I'd prefer a world without facial recognition to a world with it. I just wish that we could fully explore the uses of cool technology without having to worry about its misuse.