News for hackers. Stuff that matters.
Re:Show HN: Numbat – A programming language with physical di... by ChrisRackauckas on Friday November 17, 2023 @08:11AM (#38302985)
> Numbat can be compiled to Web Assembly and you can run it in your browser. I'm not sure if that is possible with Julia?

It's fine these days. https://tshort.github.io/WebAssemblyCompiler.jl/stable/examp...

I think the biggest issue with unit systems though is that algorithms are not generally unitful. I develop the Julia SciML solvers (https://docs.sciml.ai/Overview/stable/) and there's certain pieces like the initial dt calculation of an ODE solver which are not canonically correct in a unitful sense. So there's certain pieces where you have to opt out of unit checks which gets a bit messy. But other than that Unitful.jl is fine, and that's an algorithmic thing not a unit package thing.

There are no comments on this comment yet.