4 ms·
Something ML-derived perhaps. Strong typing, mostly functional, but practical. I once wrote a large part of a CSS+HTML renderer in OCaml (think: the very core
by rwmj 14y ago
Something ML-derived perhaps. Strong typing, mostly functional, but practical.
I once wrote a large part of a CSS+HTML renderer in OCaml (think: the very core of something like Firefox), and the ability to match over data structures and use trees naturally was a huge advantage.
ML was devised as a language to write compilers in, so LLVM is covered.
For an operating system you really want a lot of different languages because it's a huge undertaking that covers many domains. MirageOS is an OS written in OCaml, so that's a proof that it's possible at least.
- apaprocki 14y agoI was under the impression Rust was being developed by Mozilla to eventually be their language of choice for implementing software like Firefox precisely because C/C++ leads to too many (security) bugs among other things. At least one of the reasons, anyway..
- ksec 14y agoYes, Rust is great, all the lessons learned what not to do with C++. I could only hope Rust is (still) just a codename.....
- fusiongyro 14y agoJust for utter clarity, the FAQ states: Q: What will Mozilla use Rust for? A: Mozilla intends to use Rust as a platform for prototyping experimental browser architectures. Specifically, the hope is to develop a browser that is more amenable to parallelization than existing ones, while also being less prone to common C++ coding errors. The name of that project is Servo. Q: Are you going to use this to suddenly rewrite the browser and change everything? Is the Mozilla Corporation trying to force the community to use a new language? A: No. This is a research project. The point is to explore ideas. There is no plan to incorporate any Rust-based technology into Firefox. https://github.com/mozilla/rust/wiki/Doc-project-FAQ https://github.com/mozilla/rust/wiki/Doc-project-FAQ
- apaprocki 14y agoI was being careful and said software _like_ Firefox :) From discussions I had with people about Rust it seemed obvious that if it reached maturity then it could be considered for new projects starting from scratch.