News for hackers. Stuff that matters.
Re:Would you use JavaScript compiled to C for your server ap... by swalsh on Tuesday April 08, 2014 @10:55AM (#7553767)
I like Javascript, I write a lot of it. The progress that has been made through the years is pretty remarkable. Sometimes its hard to believe.

That said, javascript handles every number as a 64 bit float. For a lot of applications, that just doesn't matter. But to me, it does... its caused a lot of heart aches in my life, and for that I want to keep a better language for my server.

Re:Would you use JavaScript compiled to C for your server ap... by int64 on Tuesday April 08, 2014 @12:21PM (#7554353)
The plan is to provide primitive data type extensions as well which can be used in place of the "var" keyword
Re:Would you use JavaScript compiled to C for your server ap... by karterk on Tuesday April 08, 2014 @10:37AM (#7553644)
With servers being a commodity these days, I can only think of rare use cases where this would be helpful vs just scaling horizontally behind a load balancer. Also, in most real world systems I have seen, the real bottle neck is in the I/O and rarely in the business logic or server application level.
Re:Would you use JavaScript compiled to C for your server ap... by int64 on Tuesday April 08, 2014 @11:40AM (#7554050)
Thats very true. The plan was to give the user heavy asynchronous IO functionality that appear to the user as making a simple ajax call with a callback function. Provides the developer asynchronous functionality on the server side. Scope variables and so on are all handled behind the scenes.
Re:Would you use JavaScript compiled to C for your server ap... by phantom_oracle on Tuesday April 08, 2014 @11:58AM (#7554179)
Forget the frontend. Just make it work 'faster' than node.js and people will use it.

If you're going to be writing it, prepare your release by writing at least 5 applications with it too.

Re:Would you use JavaScript compiled to C for your server ap... by gregorkas on Tuesday April 08, 2014 @09:20AM (#7553178)
What about nodejs? Do you think the performance would be better with javascript compiled to c?
Re:Would you use JavaScript compiled to C for your server ap... by int64 on Tuesday April 08, 2014 @09:24AM (#7553200)
Absolutely. Node.js is still interpreted by V8 as far as i know. The runtime libs provided by node.js are all written in JS. However, With this initiative, all the runtime libs will be implemented in c as well.
Re:Would you use JavaScript compiled to C for your server ap... by zerohp on Tuesday April 08, 2014 @10:25PM (#7557360)
V8 is a JIT interpreter. The performance benefit might be less than you would think.
Re:Would you use JavaScript compiled to C for your server ap... by int64 on Wednesday April 09, 2014 @09:16AM (#7559038)
thanks for the input. Will certainly look into that.
Re:Would you use JavaScript compiled to C for your server ap... by mutex007 on Tuesday April 08, 2014 @09:49AM (#7553348)
Sounds good to me. Might try it out.