Re: [nodejs] ANN: Spoon

2012-10-01 Thread Fedor Indutny
"I'm just doing my job". On Tue, Oct 2, 2012 at 1:55 AM, Mark Hahn wrote: > @Marcel just meant that you have started an infinite discussion thread. > He wasn't insulting your module. > > > On Mon, Oct 1, 2012 at 2:42 PM, Marcel Laverdet wrote: > >> You have no idea what you've done. >> >> On M

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Yi Tan
IMHO, TypeScript makes Javascript feel like ActionScript/Java/C#... loss JavaScript's agility, and the things smell awful enterprise My vote goes to coffeescript Regards, ty 2012/10/2 Shripad K > Okay I just tried it in the TypeScript playground. Doesn't seem like it > supports translating

[nodejs] Re: node-canvas ico support?

2012-10-01 Thread vicapow
sorry, that was a typo in the code. imageCount should be properly set. If you want to get the number of images, use ico.images.length. to make it even easier, i whipped together a module, since this might be useful to others down the road: https://github.com/vicapow/fav and here's the example o

Re: [nodejs] update node installation on linux

2012-10-01 Thread NodeNinja
On Tuesday, October 2, 2012 6:32:35 AM UTC+5:30, Ben Noordhuis wrote: > > > Yes, that's okay. > Many thanks Ben and Kurt! -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are s

[nodejs] How to: Convert C libraries to gyp

2012-10-01 Thread Nathan Rajlich
Calling all native module authors! http://n8.io/converting-a-c-library-to-gyp/ Linked is a blog article I've written about converting C libraries to use gyp. If you have a native module that dynamically links to some external library, then you should definitely give it a read. So far I've applied

Re: [nodejs] How to for beginners

2012-10-01 Thread Billy Cravens
The recently released Smashing Node.js by Guillermo Rauch (author Socket.io and other modules, CTO of Learn Boost) is good, and has very good info on JavaScript as a first class programming language. (Some of the author books I've read seem to assume you're knowledgeable from working with JS in

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Shripad K
Okay I just tried it in the TypeScript playground. Doesn't seem like it supports translating multiple constructors/methods. Also, support for pre-initialization of variables before constructor is invoked would also be a good feature. However, TypeScript is definitely a step in the right direction.

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Raffaele Sena
I just tried in the "playground" (http://www.typescriptlang.org/Playground/) and unfortunately it doesn't work. I also was hoping it could do this, but it's not a simple task if the underlying language doesn't support it (I wrote a Java to ActionScript converter and this is still one of the few th

Re: [nodejs] Best practices for sharing code and data between the server and client

2012-10-01 Thread Ted Young
> > One problem - was no easy way (or I didn't found it) to browserify also > templates for my backbone.js app. > So I wrote tiny plugin resourcify > (https://github.com/alexeypetrushin/resourcify) that handles > templates (eco, ejs, handlebars, hogan, jade) same way as ordinary js files. > May

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Shripad K
I'm sorry I don't have Windows running to test it on. Can you write multiple constructors/methods of varying types? How does TypeScript translate this code to equivalent JS code? constructor (message: string) { this.greeting = message; } constructor (message: number) { this.greeting = message;

Re: [nodejs] update node installation on linux

2012-10-01 Thread Ben Noordhuis
On Tue, Oct 2, 2012 at 2:34 AM, NodeNinja wrote: >> Yes, just follow the same steps. Unarchive the source code into a >> different folder and then run the same steps that you did before, i.e.: >> >> ./configure >> make >> sudo make install >> > Is it OK to keep the older version of node before bui

Re: [nodejs] update node installation on linux

2012-10-01 Thread NodeNinja
Yes, just follow the same steps. Unarchive the source code into a > different folder and then run the same steps that you did before, i.e.: > > ./configure > make > sudo make install > > Is it OK to keep the older version of node before building and installing the new version? -- Job Boa

Re: [nodejs] update node installation on linux

2012-10-01 Thread Kurt Symanzik
Yes, just follow the same steps. Unarchive the source code into a different folder and then run the same steps that you did before, i.e.: ./configure make sudo make install Kurt On Tuesday, 02 October, 2012 07:24 AM, NodeNinja wrote: I manually installed node on linux from a tar file followi

[nodejs] update node installation on linux

2012-10-01 Thread NodeNinja
I manually installed node on linux from a tar file following instructions from https://github.com/joyent/node/wiki/Installation Unfortunately I installed v0.8.10 which seems to have a regression. Is it possible for me now to upgrade the current installation without hassle to v0.8.11, if so what

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Dick Hardt
+1 to putting this on your blog Isaac. On Oct 1, 2012, at 3:50 PM, Rick Waldron wrote: > > > On Mon, Oct 1, 2012 at 6:46 PM, Isaac Schlueter wrote: > I've been through the paces quite a few times trying to optimize the > hell out of very hot code. In the last few years, this has been > mostl

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 7:00 PM, Alexey Petrushin wrote: > > It'd be a great idea to write up a TypeScript header file for the API > surface in Node. > > Can't it be done with plain js? Something like this > > // Implementation file. > fs.readFile = function(name, callback){...} > > //

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Alexey Petrushin
Or shorter, like: // Header file with types. fs.untypedReadFile = fs.readFile fs.readFile = function(name, callback){ expect(name).to.have.type 'string' fs.untypedReadFile(name, callback) } -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Alexey Petrushin
> It'd be a great idea to write up a TypeScript header file for the API surface in Node. Can't it be done with plain js? Something like this // Implementation file. fs.readFile = function(name, callback){...} // Header file with types. fs.untypedReadFile = fs.readFile fs.rea

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 6:46 PM, Isaac Schlueter wrote: > I've been through the paces quite a few times trying to optimize the > hell out of very hot code. In the last few years, this has been > mostly in V8, of course, but the basic principles are not too far off > in different JS environments.

Re: [nodejs] Re: TypeScript and node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 6:44 PM, Dave Clements wrote: > I'm surprised at the confusion re: ricks point, it seems to center > around the word "optimized"... > > I believe the point is that typescript enforces optimizable code > writing practices upon the developer. > > Passing in a string to a funct

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Isaac Schlueter
I've been through the paces quite a few times trying to optimize the hell out of very hot code. In the last few years, this has been mostly in V8, of course, but the basic principles are not too far off in different JS environments. It's important to not put too much weight in rules of thumb, and

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Mark Hahn
> if the runtime can assume that no type coercion needs to occur, it can skip that step all together, Ok, I get it now. This example is still really weak. You save at most a few nanoseconds. To me the extra typing wouldn't be worth it. I have to admit I'm really biased. Not having to type vars

[nodejs] Re: TypeScript and node.js

2012-10-01 Thread Dave Clements
I'm surprised at the confusion re: ricks point, it seems to center around the word "optimized"... I believe the point is that typescript enforces optimizable code writing practices upon the developer. Passing in a string to a function that expects a string and only works with it as a string avoid

[nodejs] Re: Best practices for sharing code and data between the server and client

2012-10-01 Thread Alexey Petrushin
Recently switched from Brunch to Browserify, Brunch is nice project but I needed more control and custom folder structure for the project. One problem - was no easy way (or I didn't found it) to browserify also templates for my backbone.js app. So I wrote tiny plugin resourcify (https://github

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 6:18 PM, Mark Hahn wrote: > > This will allow the runtime to then perform explicit string > optimizations (whatever those might be). > > But there aren't any optimizations that can be made. All I'm asking for > is one real use case that does something useful. > > Yes, the

[nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-01 Thread Alexey Petrushin
Update: huh, I didn't realized that You meant often used tty ctrl+c signal :). Yea, agreed it's used even more often than copy. Still using ctrl+shift+c/v for copy/paste feels very inconvenient. On Tuesday, October 2, 2012 2:22:48 AM UTC+4, Alexey Petrushin wrote: > > > Why on earth do you want

[nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-01 Thread Alexey Petrushin
> Why on earth do you want control+c and control+v overriding the terminals input? Because in most cases it's used to copy/paste text from and to. I believe copy/paste support is more important from the perspective of ergonomics and usability than tty support. -- Job Board: http://jobs.nodejs

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Mark Hahn
> This will allow the runtime to then perform explicit string optimizations (whatever those might be). But there aren't any optimizations that can be made. All I'm asking for is one real use case that does something useful. On Mon, Oct 1, 2012 at 3:05 PM, Rick Waldron wrote: > > > On Mon, Oc

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 6:03 PM, Mark Hahn wrote: > > Yes, it will work, that's not the point. > > Then give me an example that does make the point. I'm a little > thick-headed. > See my last email to Gustavo. Rick > > > On Mon, Oct 1, 2012 at 2:59 PM, Rick Waldron wrote: > >> >> >> On Mon, O

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 5:58 PM, Gustavo Machado wrote: > Rick, that's super interesting however I've said "most", and there's no > reference to these type of optimizations in TypeScript. It even says "in > any browser, in any host", so who will perform those optimizations? Looks > like TypeScript

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Mark Hahn
> Yes, it will work, that's not the point. Then give me an example that does make the point. I'm a little thick-headed. On Mon, Oct 1, 2012 at 2:59 PM, Rick Waldron wrote: > > > On Mon, Oct 1, 2012 at 5:53 PM, Mark Hahn wrote: > >> > The above example is fairly contrived >> >> And useless.

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 5:53 PM, Mark Hahn wrote: > > The above example is fairly contrived > > And useless. The JS would work fine passing it a number. > Did you actually read the entire example? I said that for you, but thanks for the additional coverage. Yes, it will work, that's not the poi

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Gustavo Machado
Rick, that's super interesting however I've said "most", and there's no reference to these type of optimizations in TypeScript. It even says "in any browser, in any host", so who will perform those optimizations? Looks like TypeScript is not. Actually, this: Greeter.prototype.greet = function(a: s

Re: [nodejs] ANN: Spoon

2012-10-01 Thread Mark Hahn
@Marcel just meant that you have started an infinite discussion thread. He wasn't insulting your module. On Mon, Oct 1, 2012 at 2:42 PM, Marcel Laverdet wrote: > You have no idea what you've done. > > On Mon, Oct 1, 2012 at 2:11 PM, Fedor Indutny wrote: > >> Hey people, >> >> Let me introduce

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Mark Hahn
> The above example is fairly contrived And useless. The JS would work fine passing it a number. On Mon, Oct 1, 2012 at 2:36 PM, Rick Waldron wrote: > > > On Mon, Oct 1, 2012 at 5:15 PM, Gustavo Machado wrote: > >> >> For less sophisticated developers (most people, and most of the VS >>> marke

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Dan Milon
Then you should read again about Mongo. danmilon. On Mon, Oct 1, 2012 at 3:56 PM, Felix E. Klee wrote: > On Mon, Oct 1, 2012 at 1:50 PM, Pedro Teixeira > wrote: > > http://redis.io/topics/persistence > > Too complicated and/or not reliable enough. > > At *any* point in time, I want to have the

Re: [nodejs] ANN: Spoon

2012-10-01 Thread Marcel Laverdet
You have no idea what you've done. On Mon, Oct 1, 2012 at 2:11 PM, Fedor Indutny wrote: > Hey people, > > Let me introduce you The Spoon: https://github.com/indutny/spoon > > It's a JavaScript to CFG (Control-Flow Graph) transpiler and additionally > a CPS (Continuation Passing Style) transpiler

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 5:15 PM, Gustavo Machado wrote: > > For less sophisticated developers (most people, and most of the VS >> market), the compiler errors will remove much debugging frustration and >> allow them to focus on creating rather than debugging. >> >> > It also allows them to focus o

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Gustavo Machado
> For less sophisticated developers (most people, and most of the VS > market), the compiler errors will remove much debugging frustration and > allow them to focus on creating rather than debugging. > > It also allows them to focus on "creating" instead of understanding what they are doing. Take t

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread José F . Romaniello
2012/10/1 Rick Waldron > The benefit comes when v8 can super-optimize your code because you have > "implied types". thanks! this is something I didn't know. I see some value there even for people like me not interested in compile time errors or working in visual studio (*again*, I have worked t

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread José F . Romaniello
2012/10/1 Lemol Morais Lutonda > At http://www.typescriptlang.org/#Download: There is also TypeScript > support for other editors available. > this is just syntax highlighting, no code completion -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.c

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Dick Hardt
On Oct 1, 2012, at 1:40 PM, José F. Romaniello wrote: > > 2012/10/1 Dick Hardt > + Brings Visual Studio developers to node.js > > > I was wondering about this... in the video he does a lot of emphasis in the > code completion (intellisense). What is the value of this outside Visual > Studi

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Lemol Morais Lutonda
El 01-Oct-12 5:40 PM, José F. Romaniello escribió: I was wondering about this... in the video he does a lot of emphasis in the code completion (intellisense). What is the value of this outside Visual Studio? Why you will

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 4:40 PM, José F. Romaniello wrote: > > 2012/10/1 Dick Hardt > >> + Brings Visual Studio developers to node.js > > > > I was wondering about this... in the > video > he > does a lot of emphasis in the

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread José F . Romaniello
2012/10/1 Dick Hardt > + Brings Visual Studio developers to node.js I was wondering about this... in the video he does a lot of emphasis in the code completion (intellisense). What is the value of this outside Visual Studi

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Lemol Morais Lutonda
"...+ Brings Visual Studio developers to node.js...", or viceversa? Btw, there is also plugins for Sublime Text, Vim, Emacs. I think it is awesome! Atenciosamente, Leza Morais Lutonda, Lemol-C http://lemolsoft.webs.com http://github.com/lemol http://twitter.com/lemolsoft El 01-Oct-12 5:30 PM,

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Dick Hardt
I think it is a step in the right direction. + Requires no changes to existing source. + Typing can be done where you want do do it. + Brings Visual Studio developers to node.js + Spec, code etc. is all open and MS seems open to input from others. - slight change in compiled source from original

[nodejs] TypeScript and node.js

2012-10-01 Thread Tomasz Janczuk
What is your opinion of the value TypeScript can bring to node.js development? What is TypeScript: http://www.typescriptlang.org/Playground/ 1h video by Anders Hajlsberg: http://channel9.msdn.com/posts/Anders-Hejlsberg-Introducing-TypeScript Thanks, Tomasz -- Job Board: http://jobs.nodejs.org/

[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-01 Thread Mariusz Nowak
Jeff, Surprisingly I didn't know that one, I've added it to benchmarks, it turned out to be slower than jQuery's implementation, and what's weird and disturbing is that running concurrent calls using When is slower than queued calls one after another: https://github.com/medikoo/deferred#perfor

Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-01 Thread JohnLeo Zimmer
I'd suggest lithium. But he probably won't take it voluntarily while he's having so much fun. GrpZ -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Gr

[nodejs] ANN: Spoon

2012-10-01 Thread Fedor Indutny
Hey people, Let me introduce you The Spoon: https://github.com/indutny/spoon It's a JavaScript to CFG (Control-Flow Graph) transpiler and additionally a CPS (Continuation Passing Style) transpiler too. Basically, it lets you to rewrite code like this: var data = 'prefix: ' + fs.read('file') To

Re: [nodejs] Re: TypeScript: New kid on the block, runs on Node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 11:20 AM, Fedor Indutny wrote: > My personal opinion: "do everything you want with, but don't let this come > into browsers (like Dart is doing now)". Haha, agreed. From what I understand, this is not destined for any browser and will remain a "compiles to JS" project Ri

Re: [nodejs] Re: TypeScript: New kid on the block, runs on Node.js

2012-10-01 Thread Fedor Indutny
My personal opinion: "do everything you want with, but don't let this come into browsers (like Dart is doing now)". On Mon, Oct 1, 2012 at 10:04 PM, Rick Waldron wrote: > > > On Mon, Oct 1, 2012 at 10:57 AM, Jeff Barczewski < > jeff.barczew...@gmail.com> wrote: > >> How would this compare to Goo

[nodejs] Nodejs Azure command line

2012-10-01 Thread almarjin
Hi, I'd like to know if there's a software(command line interface) that I can install to see my server console.log in Windows Azure? Thanks -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message b

Re: [nodejs] Re: TypeScript: New kid on the block, runs on Node.js

2012-10-01 Thread Rick Waldron
On Mon, Oct 1, 2012 at 10:57 AM, Jeff Barczewski wrote: > How would this compare to Google's Dart? Dart is Dart TypeScript is ES6/JavaScript with an experimental optional typing feature. Rick > > Seems like it has similar optional typing, etc. > > -- > Job Board: http://jobs.nodejs.org/ > Po

[nodejs] Re: TypeScript: New kid on the block, runs on Node.js

2012-10-01 Thread Jeff Barczewski
How would this compare to Google's Dart? Seems like it has similar optional typing, etc. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodej

Re: [nodejs] TypeScript: New kid on the block, runs on Node.js

2012-10-01 Thread Gerald Klein
thanks for the heads up, very cool On Mon, Oct 1, 2012 at 11:45 AM, Rick Waldron wrote: > I was given a pre-launch demo by a few MS devs... it's definitely worth > checking out. > > Rick > > On Mon, Oct 1, 2012 at 9:34 AM, Angel Java Lopez wrote: > >> TypeScript >> >> http://blogs.msdn.com/b/soma

[nodejs] Re: [ANN]: Deferred - Maintainable asynchronous JavaScript with promises

2012-10-01 Thread Jeff Barczewski
How does your new version compare against https://github.com/cujojs/when ? I heard about this from the lxjs but have not used it yet. It was said that it was compatible with jQuery.Deferred API, but also claims to be very fast. I guess next time you run your benchmarks, you might add it in to s

[nodejs] Re: [ANN]: memoizee - Complete memoize/cache solution

2012-10-01 Thread Jeff Barczewski
Excellent! Thanks for all your work on this! -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email t

[nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-10-01 Thread Jeff Barczewski
emacs + js3-mode + jshint, mac OS X and ubuntu (on mac, using specifically Aquamacs and iterm2) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups

[nodejs] Re: ANN: Pistachio Template Compiler

2012-10-01 Thread Jeff Barczewski
Looks great! I will have to give it a try. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to

Re: [nodejs] TypeScript: New kid on the block, runs on Node.js

2012-10-01 Thread Rick Waldron
I was given a pre-launch demo by a few MS devs... it's definitely worth checking out. Rick On Mon, Oct 1, 2012 at 9:34 AM, Angel Java Lopez wrote: > TypeScript > > http://blogs.msdn.com/b/somasegar/archive/2012/10/01/typescript-javascript-development-at-application-scale.aspx > http://www.typesc

[nodejs] Re: node-canvas ico support?

2012-10-01 Thread nop
Hi Victor. Over the weekend I began poking around with node-imagemagick. I still prefer the idea of using node-canvas to manipulate bitmaps, so I'll take a close look at jParser and your code. Thank you very much for pointing me in this direction and providing your example. One question I had w

[nodejs] TypeScript: New kid on the block, runs on Node.js

2012-10-01 Thread Angel Java Lopez
TypeScript http://blogs.msdn.com/b/somasegar/archive/2012/10/01/typescript-javascript-development-at-application-scale.aspx http://www.typescriptlang.org/ The command-line TypeScript compiler can be installed as a Node.js package. The command-line TypeScrip

Re: [nodejs] Game hiscores: flat files or database?

2012-10-01 Thread Daniel Rinehart
I'd recommend using Redis. Its sorted set data type makes a high score list a breeze to maintain. As mentioned using a combination of RDB and AOF you get great durability with Redis. -- Daniel R. [http://danielr.neophi.com/] On Mon, Oct 1, 2012 at 6:10 AM, Felix E. Klee wrote: > Somewhat as a

Re: [nodejs] Clarity re: docs for fs.read bytesRead callback argument

2012-10-01 Thread Matt
npm install fs-ext On Fri, Sep 28, 2012 at 7:07 PM, tnate wrote: > > Has there been anymore discussion of this (fs.seek) and/or implementing a > position offset for readable and writeable streams as in this > thread

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Brian Kardell
Brian Kardell :: @bkardell :: hitchjs.com On Oct 1, 2012 10:04 AM, "Felix E. Klee" wrote: > > On Mon, Oct 1, 2012 at 3:41 PM, Brian Kardell > wrote: > > If the only reason you would even consider a db over a file is a very, > > very obscure case then why not just set a semaphor and retry after a

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 3:41 PM, Brian Kardell wrote: > If the only reason you would even consider a db over a file is a very, > very obscure case then why not just set a semaphor and retry after a > second or two if it is still open? True. However, that only solves the concurrency issue when only

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Brian Kardell
Brian Kardell :: @bkardell :: hitchjs.com On Oct 1, 2012 9:29 AM, "Felix E. Klee" wrote: > > On Mon, Oct 1, 2012 at 3:09 PM, Arnout Kazemier > wrote: > > Then why ask the question if you already made your mind? > > I'm far from having made up my mind. I just wonder why people recommend > Redis wh

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 3:00 PM, Pedro Teixeira wrote: > Did you read the append-only:true AOF part of the link I sent you? Yes. I also now read that from time to time Redis rewrites the log so that - I assume - entries that have been deleted will not appear anymore. Sounds good! However, it is r

[nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-01 Thread Dennis Kane
Respectfully, I am not the typical poster here. I am a revolutionary and a trailblazer, and everything I do is geared for maximum effect. I have precisely zero interest in working for paychecks or even creating something for the purpose of selling out to a corporation. I am interested in sta

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 3:09 PM, Arnout Kazemier wrote: > Then why ask the question if you already made your mind? I'm far from having made up my mind. I just wonder why people recommend Redis when performance is not an issue here. After, all solving a puzzle may take some minutes, and only once i

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Arnout Kazemier
Then why ask the question if you already made your mind? You clearly don't want to use anything else then mongodb because you seem to know better and the only thing that redis can do is crash anyways, mongo on the other hand is web scale and build to solve all the issues in the universe that peop

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Pedro Teixeira
Did you read the append-only:true AOF part of the link I sent you? -- Pedro On Monday, October 1, 2012 at 1:56 PM, Felix E. Klee wrote: > On Mon, Oct 1, 2012 at 1:50 PM, Pedro Teixeira > mailto:pedro.teixe...@gmail.com)> wrote: > > http://redis.io/topics/persistence > > > Too complicated and

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 1:50 PM, Pedro Teixeira wrote: > http://redis.io/topics/persistence Too complicated and/or not reliable enough. At *any* point in time, I want to have the database mirrored to disk, in its entirety. Mongo seems perfect. I wonder why people recommend Redis. -- Job Board:

Re: [nodejs] nodejs Server.js on Azure

2012-10-01 Thread Arunoda Susiripala
Hi, You can setup a Linux VM on Azure too. http://www.windowsazure.com/en-us/manage/linux/ On Mon, Oct 1, 2012 at 12:53 PM, almarjin wrote: > Hi Glenn, > > Thanks for the reply. > > I'd like to ask also where can I see the files that I pushed on the > server. I tried in the FTP but can't find

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Pedro Teixeira
http://redis.io/topics/persistence -- Pedro On Monday, October 1, 2012 at 12:48 PM, Felix E. Klee wrote: > On Mon, Oct 1, 2012 at 12:55 PM, greelgorke (mailto:greelgo...@gmail.com)> > wrote: > > b) redis: http://redis.io/topics/introduction > > > Thanks for the suggestion. However, if using

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 12:55 PM, greelgorke wrote: > b) redis: http://redis.io/topics/introduction Thanks for the suggestion. However, if using a database, then I prefer Mongo. Performance is not an issue. Persistence, on the other hand, is a big issue: If someone spent hours to crack the hiscore

[nodejs] Re: How to for beginners

2012-10-01 Thread Silviu
Try www.nodetuts.com . Note that some videos are using an older version of node, you will probably need to change a few things but it is a very good start. On Sunday, September 30, 2012 3:04:53 PM UTC+3, Ismael Gorissen wrote: > > Hello, > > I'll start with Node.js and JavaScript and I'd like so

[nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread greelgorke
b) redis: http://redis.io/topics/introduction its less puzzling than files, has replication and pubsub, and atomic operations Am Montag, 1. Oktober 2012 12:10:50 UTC+2 schrieb Felix E. Klee: > > Somewhat as a training, I am developing a puzzle game. A first version > was entered into the js13kGam

[nodejs] Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
Somewhat as a training, I am developing a puzzle game. A first version was entered into the js13kGames competition: http://js13kgames.com/entries/rotogamesq In that version, hiscores are simply stored in the browser. For the next version, my idea is to store hiscores on a server running Node.js

Re: [nodejs] nodejs Server.js on Azure

2012-10-01 Thread almarjin
Hi Glenn, Thanks for the reply. I'd like to ask also where can I see the files that I pushed on the server. I tried in the FTP but can't find it' Thanks again On Wednesday, September 26, 2012 4:22:46 PM UTC+8, Glenn Block wrote: > > Sorry for the delayed response > > It depends on where y

[nodejs] ANN: npm-used. Discover what npm modules your friends use.

2012-10-01 Thread Raynos
https://github.com/Raynos/npm-used `npm-used` let's you see most depended on packages among a few people. This is more useful then the global most depended on list as you can basically ask "Of these few developers I trust what modules do they most commonly use" It's a great module discovery me