![]() |
Re: [REQUEST] NodeJS for Maemo
Quote:
Had to rebuild from /, because my SDCard was fat and couldn't execute or (after remounting with umask) support symlinks. The binary seems to work ok for simple scripts, but has an issue with some NPM packages... may be related to SD issue above - think I'll try formatting as ext3 |
Re: [REQUEST] NodeJS for Maemo
This is how I compiled nodejs: http://krispypen.github.com/blog/201...for-your-n900/
I did a super-easy performance test on the N900: for loop from 0 to 100000000 doing a + b each time: nodejs: Code:
console.log("start"); startup time node: 1s python: Code:
print "start" startup time: 0.2s |
Re: [REQUEST] NodeJS for Maemo
Thanks Kris, wish I had your guide to follow when I started out :-)
Hopefully this will fix some of the issues I'm seeing in my haqq'd together build. Are you able to build Twitter Bootrap ok with it? http://twitter.github.com/bootstrap/ (less + some others) |
Re: [REQUEST] NodeJS for Maemo
Quote:
|
Re: [REQUEST] NodeJS for Maemo
I created a github repository where we can put some testing snippets: https://github.com/krispypen/NodeJSForMaemoSnippets
I already made a working snippet for creating a call and sending an sms :) |
Re: [REQUEST] NodeJS for Maemo
Any chance someone could package this up and put it in extras-devel?
|
Re: [REQUEST] NodeJS for Maemo
AapoRantalainen told me 3 days ago that he's trying to do it. I'm not yet familliar with packaging. I created a zip file with the compiled node and npm in it, so maybe this can help you at the moment. https://github.com/krispypen/NodeJSF.../master/binary
|
Re: [REQUEST] NodeJS for Maemo
Quote:
|
Re: [REQUEST] NodeJS for Maemo
nodejs (0.8.12) on the extras-devel. Fully optified. Run
Code:
/opt/node/bin/node Code:
/opt/node/bin/npm install socket.io There are little bit hacking (=packeting magic) because autobuilders 'python' is python2.3 and it really needs python2.5. (Documentation says it needs python2.6?). ----- [EDIT] This is list of upstream bugs affecting Maemo5. Whoever makes next release should check results of these: https://github.com/joyent/node/issues/2210 : consistently use #!/usr/bin/env python in gyp (maybe) https://github.com/joyent/node/issues/4076 : simplejson (for python2.5) and LINK=g++ (as flock fails) https://github.com/joyent/node/issues/4142 : arm_neon (deps/v8/build/common.gypi) https://github.com/joyent/node/issues/4144 : only --without-snapshot works This might be useful note too: Code:
export PYTHON=python2.5 Central place for N900 snippets is very good idea, please use it and share your creations. |
Re: [REQUEST] NodeJS for Maemo
Simple www-server for testing nodejs: https://github.com/krispypen/NodeJSF.../www-server.js
Serves static html, css, js, png, jpg, jpeg-files. Default port is 9002. Uses socket.io. |
All times are GMT. The time now is 02:24. |
vBulletin® Version 3.8.8