[erlang-questions] Silly Standalone Erlang (Customer code loader / error_handler module)

Geoff Cant nem@REDACTED
Thu Sep 27 23:35:44 CEST 2007


Hi all, I was inspired last night to write an error_handler module to
load code from zip files. The result is
http://git.erlang.geek.nz/?p=ssae.git;a=summary -- a module that can
hide an entire system inside a beam file and subsequently load from it.

It's not particularly practical, but demonstrates writing a custom
error_handler, and some of the pitfalls of doing so (I got my laptop to
swap to death because ssae was trying to load code that ssae needed in
order to load code).

I'm not quite sure how to go about faking non-beam file loads however,
so if the system you deploy with ssae has private data you can't
currently get at it.

On a related note, does anyone know how the original SAE worked? I'm
stumped about how to pack files into the beam emulator binary in such a
way that it could use them.

Cheers,
-- 
Geoff Cant




More information about the erlang-questions mailing list