Python has a python/c barrier yes, but python's runtime is better
equipped to handle crossing the boundary with low overhead because it
was written with that use case in mind. v8, on the other hand, is
optimized for running javascript code and so making the jump back and
forth is considerably more effort for the vm.

I'm sure someone with more experience with node C bindings (or python
C bindings for that matter) could give a more technical explanation.
I'm more of an end-user and not as much a developer when it comes to
such bindings.

To further elaborate: You *can* do basic math in javascript just fine,
and at a reasonable rate. For heavy lifting though, ya gotta go
lapack/atlas/etc.

--Josh

On Tue, Jun 12, 2012 at 2:18 PM, Matt <hel...@gmail.com> wrote:
> On Tue, Jun 12, 2012 at 3:29 PM, Joshua Holbrook <josh.holbr...@gmail.com>
> wrote:
>>
>> To elaborate on the math aspect: Because of the significant js/C
>> barrier and the need for optimized code, node is a poor choice for
>> significant computation. I would recommend python and numpy/scipy for
>> this kinda stuff.
>
>
> Python has the same barrier. What makes it different? i.e. why couldn't
> someone created a NumNode/SciNode?
>
> Matt.
>
> --
> 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



-- 
Joshua Holbrook
Engineer
Nodejitsu Inc.
j...@nodejitsu.com

-- 
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

Reply via email to