Eigenclass

Markdown redux, and walking the AST to generate (statically) valid XHTML


over 5 years ago by Mauricio Fernandez on Eigenclass.
My earlier post (about Markdown processors and how simple top-down parsers can be up to two or three orders of magnitude faster than regexp-based gsub kludges...

Markdown redux, and walking the AST to generate (statically) valid XHTML


over 5 years ago by Mauricio Fernandez on Eigenclass.
My earlier post (about Markdown processors and how simple top-down parsers can be up to two or three orders of magnitude faster than regexp-based gsub kludges...

On the sad state of markdown processors, and getting thousandfold speed-ups.


over 5 years ago by Mauricio Fernandez on Eigenclass.
When I started to write the code for the latest incarnation of eigenclass, I was planning to use an existent Markdown processor to generate the HTML for...

MiniLight renderer cleanup, simpler (safer) code is faster


over 5 years ago by Mauricio Fernandez on Eigenclass.
MiniLight is a minimal global illumination renderer that has been translated to 7 languages and takes on average 570 lines of code. Neat! It's of course...

Memory footprint of objects in Ruby 1.8. 1.9 and OCaml


over 5 years ago by Mauricio Fernandez on Eigenclass.
With Ruby 1.9.1 being out for a while now, it's time to review my calculations regarding the memory footprint of objects, since 1.9 incorporates some optimizations...

Type-safe prototype-based programming with first-class selectors and namespaces in OCaml


over 5 years ago by Mauricio Fernandez on Eigenclass.
Adrien Friggeri presented a very simple way to do prototype-based programming in OCaml. He defines objects as a hash table (with one slot per instance variable...

Heterogeneous containers in OCaml


over 5 years ago by Mauricio Fernandez on Eigenclass.
There's a not that well known trick to implement heterogeneous, type-safe containers in OCaml (and friends: MLton uses them to decorate ASTs in different...

Faster deserialization in Ruby, beating Marshal


over 5 years ago by Mauricio Fernandez on Eigenclass.
I have optimized a bit the universal pure-Ruby extprot deserializer, and written a new one as a C extension. The former now approaches the speed of Marshal...

Surprisingly efficient deserialization (vs. Marshal) in pure Ruby


almost 6 years ago by Mauricio Fernandez on Eigenclass.
Even though extprot supports arbitrarily complex data types (with structures, lists, arrays, tuples and disjoint unions), the encoding is reasonably simple...

The problems with Ruby's serialization (Marshal), and how extprot addresses them


almost 6 years ago by Mauricio Fernandez on Eigenclass.
Chuck Vose's comment made me realize that the universal extprot message decoder can be simplified considerably if I simply deserialize the data and let...