c++ - How does node.js/[my own library/plugin] run on v8? -


does use libraries this:

http://code.google.com/p/v8-juice

http://ui.ajax.org/#o3

https://github.com/tsa/vu8

or has written own libraries? if v8 written executing javascript, why node.js libraries use c code? filesystem/event stuff? if so, why necessary, doesn't v8 need events , filesystem stuff itself?

if want work database supports c api, how go doing that? right i'd write v8-juice plugin.

node.js includes own embedded version of v8 (not sure if customized or not, be).

javascript provides no interface things file system i/o, embedder (in case node) have provide native code objects expose functionality. browser same thing dom , network features, way.

if want work database supports c api, how go doing that?

you'd need node.js extension (a native code plugin). if lucky, has made on database system, if not, @ source code similar extension how written. , here an introduction article. you'd need familiar writing v8 extension, because node extension is.

if talking database on network connection, , feel implementing wire protocol yourself, try in pure javascript, like did mysql.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -