Thanks for the responses gents. As a little background, the reason I'm
considering node for this is because the datastore in question is Firebase
- a real-time document store with a node sdk. It has a REST api too, so I
don't *have* to use node, but it'd be nice to plug in to the real-time
features.

I'm still getting the feeling that there is very little negative about
doing this, and that mostly the negative feelings come from the fact that
it's not the awesomest way of using node - rather than it actually being
"bad". I'm not trying to compare awesome node to less awesome node, I'm
trying to compare less awesome node to Java/Python/.net for a specific
use-case.

Prajwal, you said "use something lower level (thus faster) like JVM
(Scala/Java) for this". Is that proven? Is Java faster at looping, and
concatenating and adding numbers and such? The only benchmarks I see are
web-related, so I just have no idea. Good point on the limited computation
libraries tho - I don't think I need anything fancy but I should definitely
make sure the libs I need are available in node before getting started.

I've read some confusing stuff on memory, probably because things have
changed quickly recently in V8 and node in that regard. It seems there
shouldn't be a problem though because, as Ben mentioned, while the "JS heap
is limited to slightly less than 2 GB, buffers and typed arrays live mostly
outside the JS heap.". To be sure, what's an example of how I could run out
of heap if I had, say, a 10GB array (outside of heap) that I'm processing?

It terms of concrete "problems", the main (only) one I'm seeing is the
added complexity of using the full resources of a machine without threads -
implementing something like Persona as Prajawal mentioned (which looks very
interesting thanks!) seems harder than threading.

Pedro you say "Node is great for doing I/O and not much else", but this is
exactly what I'm trying to get to the bottom of. I know this is the general
drumbeat and I'm trying to find tangible reasons why.

Best,
Baz




On Fri, May 24, 2013 at 1:30 PM, Matt <hel...@gmail.com> wrote:

>
> On Fri, May 24, 2013 at 4:14 PM, Mark Hahn <m...@hahnca.com> wrote:
>
>> >  Try this in node: 1.03 - 0.42.
>>
>> It gives the correct answer after rounding.  Also, integers certainly
>> can't do that.  What is your point?
>>
>
> My point was simply that saying that floating point numbers are "as
> precise as integers up to 50 bits" is incorrect and misleading. Pocket
> change money values can result in incorrect calculations if using floating
> point.
>
>
>> > If you're keeping the units in pennies then you're not using floating
>> point anyway.
>>
>> Right. The floating point in js provides integer support.  For money use
>> floating point as integers.
>>
>> You can do anything in js you can do with integers up to 50 bits of
>> precision.  JS is in no way inferior for money apps which is what you
>> claimed.
>>
>
> No I'm not the OP - I never claimed that. Doing it as integers/pennies is
> the right thing to do though.
>
>  --
> --
> 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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to