DenialAdams / roland

Roland programming language
https://www.brick.codes/roland
Apache License 2.0
46 stars 0 forks source link

Make ryu an optional dependency #58

Open DenialAdams opened 2 years ago

DenialAdams commented 2 years ago

You should be able to import "ryu", instead of pulling it in automatically just by using STD. Basically, this issue is about a better way to manage standard library imports

DenialAdams commented 2 years ago

Some progress made here, but f32_to_string requires malloc, so we can't put it in the ryu module directly, so it has to stay a direct dependency of the WASI std... Hm

DenialAdams commented 9 months ago

need something like

when(defined(__ryu)) { proc f32_to_string { } }

?