Evan Martin (evan) wrote in evan_tech,
Evan Martin

fast code

Why is OCaml fast?

An in-depth look at OCaml's x86 code generation. Some of it's pretty hardcore. One obvious observations is that it can generate relatively fast assembly because you don't need to check types at runtime.

This bit on the addition function near the end is rad: (It's actually more subtle than this - to perform the mathematics quickly, OCaml uses the x86 addressing hardware in a way that probably wasn't intended by the designers of the x86.)

Internal representation of strings.

I got hopeful looking at the MLDonkey screenshots that it could make fancy-looking Windows native GUIs, but that appears to be written in Java.
Tags: o'caml

  • blog moved

    As described elsewhere, I've quit LiveJournal. If you're interested in my continuing posts, you should look at one of these (each contains feed…

  • dremel

    They published a paper on Dremel, my favorite previously-unpublished tool from the Google toolchest. Greg Linden discusses it: "[...] it is capable…

  • treemaps

    I finally wrote up my recent adventures in treemapping, complete with nifty clickable visualizations.

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.