News for hackers. Stuff that matters.
[deleted]
Re:The entire win32 API in JavaScript by xdenser on Sunday November 18, 2012 @03:40AM (#4800231)
No you cant. It is NodeJS module referring node-ffi - module allows you to call dynamic libarary functions w/o making your own binary module. So it may be used with NodeJS under Windows. For example you may access COM ports directly from JS. Or you may send messages to other Windows to manipulate them.
Re:The entire win32 API in JavaScript by homedog on Sunday November 18, 2012 @03:08AM (#4800200)
It's particularly useless for anything else, really. Not to mention it's in a completely un-portable format. One can only hope this was generated automatically.
Re:The entire win32 API in JavaScript by daeken on Sunday November 18, 2012 @03:32AM (#4800224)
"Un-portable" in that it wraps the win32 API rather than implementing the API. But it's actually a pretty handy format if you wanted to generate wrappers for other languages -- replace a couple base types/functions and have it emit code to wrap the Win32 API for any other language.

And yeah, it's pretty obviously automatically generated.

Re:The entire win32 API in JavaScript by z92 on Sunday November 18, 2012 @07:11AM (#4800441)
I did the same years back. Ported the entire win32 API to lua. Automatically generated the code. But the work was hard never the less.