897 karma · joined August 31, 2019
let chromium = pkgs.chromium; in 1 + 1
In a maximally eager language you'd need to wait for the entirety of Chromium to build before you can find out what 1 + 1 is.I have looked at the Fable compiler for F# which lets you compile F# to Rust which is very cool!
It seems to me that this is equivalent to a language without a type checker that automatically generates a unit test for every line of your program that tests its type.
> By accepting this agreement and using the software you agree that Microsoft may collect, use, and disclose the information as described in the Microsoft Privacy Statement [...]
Doesn't make it okay, just legal
https://www.microsoft.com/content/dam/microsoft/usetm/docume...
E.g. when JavaScript was designed, they didn't need to know that typescript would be invented to know how JavaScript would look.
Dog-fooding a language by writing a compiler in it can lead to the designers adding language features to make compiler development easier, even if they detract from the design of the language for the 99% of users who aren't writing a compiler.
SPy is a compiler. SPy is not a compiler for OCaml. SPy is not a compiler for COBOL. SPy is not a compiler for Python.