News for hackers. Stuff that matters.
Re:Impel - HTML5 Javascript ORM by JimBastard on Sunday March 21, 2010 @05:37PM (#1208655)
32k packed is pretty fucking big for a JS ORM.....
Re:Impel - HTML5 Javascript ORM by mmastrac on Sunday March 21, 2010 @07:01PM (#1208797)
It would probably be a lot smaller with a packer that obfuscates field names too (ie: Closure Compiler).

He could probably get it down further by stripping all of these exception strings from the release version and replacing them with structured types and numeric codes. Some of these are really development-time assertions that shouldn't be in the release code anyways:

throw ("doSelectJoinAllExcept requires an array of peer names as an argument")

Re:Impel - HTML5 Javascript ORM by JimBastard on Sunday March 21, 2010 @07:22PM (#1208831)
I'm pretty sure I could write a better JS ORM in less then 10k unpacked (no comments / docs).