Open matejsmycka opened 4 months ago
it could be shipped precompiled with the binary if it takes too much time to compile it.
right now, it takes 22ms to compile this program:
import { input } from "std";
echo "hi, " + input("who r u: ") + "!!!"
$ time amber hi.ab hi.sh
amber hi.ab hi.sh 0.02s user 0.00s system 97% cpu 0.024 total
It’s not a problem now, but you’re right this may lead to slower performance with time. Good issue
Wouldn't amber
std
be more efficient if bash was used directly? Right now, std has to be parsed and compiled. Std in Amber would make sense if types were used, but unsafe untyped amber is not optimal. This is case with some of the functions in std lib.