Re: [nodejs] Node.js as a run time library?

2012-07-27 Thread wtfux
already started to work on a wxWidget module for Node.js but I'm not sure if Node is suited as a base. On Friday, July 27, 2012 12:14:37 PM UTC+2, joedev wrote: > > http://appjs.org > > On Fri, Jul 27, 2012 at 5:11 PM, wtfux wrote: > >> Hey guys, >> I want to writ

[nodejs] Node.js as a run time library?

2012-07-27 Thread wtfux
Hey guys, I want to write applications that actually don't need evented I/O (or not always) like regular GUI applications in Javascript, because, well I like Javascript. My question is if it's a good idea to build upon Node.js. Technically I could also use v8 directly but then I can't make use o

[nodejs] Re: Windows: Compiling as a console-less windows application

2012-06-20 Thread wtfux
Bert Belder: > > Are you sure you are not creating an additional thread for your addon? Yes, no threading. Even the hello world example causes an access violation: http://nodejs.org/docs/latest/api/addons.html#addons_hello_world When I however empty the init function it'll run. I can put any co

[nodejs] Windows: Compiling as a console-less windows application

2012-06-20 Thread wtfux
I wrote a GUI for my application as a c++ addon. Now I want node to start without the console. To do this I changed the subsystem from console to windows and replaced the following in node_main.cc (latest stable): int wmain(int argc, wchar_t *wargv[]) { with int wWinMain(HINSTANCE hInstance, H

Re: [nodejs] Node Addon: Threads and libuv ref counter (C++)

2012-06-17 Thread wtfux
Ben Noordhuis wrote: > > > uv_thread_create() is your best option but, as you mention, it's not > available in v0.6. > I switched over to uv_queue_work() and uv_thread_create() (depending on NODE_VERSION_AT_LEAST as mention in this mail thread). Still not sure about queue_work but I can still

[nodejs] Node Addon: Threads and libuv ref counter (C++)

2012-06-15 Thread wtfux
Hey guys, I'm quite a beginner at C++ but I still try to create a node addon in order to use a c++ library in node. I got it working partially but I have a few problems and questions: 1. The library I'm using will stay during the whole life of the node process and needs to run in an own thread.