Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Memory footprint of objects in Ruby 1.8. 1.9 and OCaml (eigenclass.org)
25 points by mindaugas on March 26, 2009 | hide | past | favorite | 2 comments


It's kinda weird to compare ruby with ocaml for object overhead. The former is a dynamically typed language that fully supports all kinds of introspection/metaprogramming at runtime, while the latter is a statically typed language that has very limited introspection capabilities.

But the numbers are interesting anyway.


Objects in Ocaml exist outside the normal type system, and can be introspected at runtime (no type erasure).

Of course, nobody uses objects in Ocaml, so it doesn't matter!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: