-
Notifications
You must be signed in to change notification settings - Fork 1
my 3-hour entry for Spawnfest 2011 - winner of the special "play your own game" prize
hassy/obf-onion
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
$ erl Erlang R14B02 (erts-5.8.3) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.8.3 (abort with ^G) 1> c(onion). {ok,onion} 2> onion:run(5). 5 3> onion:run(10). 55 4> -----------------------%- onion:run(N) prints Nth Fibonacci number, but it can do much more... -----------------------%- What this is: (added on 2011/08/14) onion.erl has an interpreter for a stack-based language inside of it, as well as a program in that language that calculates the Nth Fibonacci number. Several features of Erlang are used to obfuscate the code: parse_transform, undefined_function, dynamic compilation of modules, and function names as any atoms.
About
my 3-hour entry for Spawnfest 2011 - winner of the special "play your own game" prize
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published