Reputation
2,026
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
8 11
Newest
 Enlightened
Impact
~31k people reached

Apr
12
comment What are the drawbacks of making a multi-threaded JavaScript runtime implementation?
Because automatically coordinating random state between threads is considered a nearly impossible problem so you have no credibility that you can offer anything that does it automatically. And, if you're just going to put the burden back on the developer like Java or C++ do, then most node.js programmers don't want that burden - they like that node.js doesn't have to deal with that for the most part. If you want a more sympathetic ear, you will have to explain/show how and what you would offer in this regard and why it would be good and useful.
Apr
12
comment What are the drawbacks of making a multi-threaded JavaScript runtime implementation?
Well, making anything that automatically coordinates and protects access to shared data between multiple threads is a really hard or nearly impossible problem. Presumably, it can be done for a single variable, but most state is much more involved than that and I can't even imagine how you could automatically do it. So, without any credibility for how you'd do it safely and usefully, put me in the doubting Thomas category. The onus is on you to prove you could do something useful in that regard.
Apr
12
comment What are the drawbacks of making a multi-threaded JavaScript runtime implementation?
How do you plan on handling multi-threaded access to shared state? "Marked as atomic and contend for access" does not explain how you think this would really work. I would guess that negative attitudes toward the idea are because people have no idea how you'd actually make this work. Or, if you're putting all the burden on the developer like in Java or C++ to use proper mutexes and such, then people are probably thinking why do they want that complication and programming risk in an environment that is free from it.
Mar
24
answered Which of these promise methods is considered a best practice?
Feb
27
awarded  Enlightened
Feb
27
awarded  Nice Answer
Feb
26
revised Why is passing large anonymous functions as arguments to other functions so widely accepted in JavaScript?
added 1164 characters in body
Feb
26
answered Why is passing large anonymous functions as arguments to other functions so widely accepted in JavaScript?
Jan
25
comment in dynamic language like javascript how do you know what the argument is?
Documentation, sample code, examining source of the function. Those are the options in Javascript. There is no strict method in Javascript to determine a function argument type because Javascript does not use types for declaring arguments.
Jan
10
awarded  javascript
Jan
9
comment Should I be returning promises from any function that uses them?
@Basilevs - I added another paragraph to the end of my answer.
Jan
9
revised Should I be returning promises from any function that uses them?
added 618 characters in body
Jan
9
comment Should I be returning promises from any function that uses them?
@Basilevs - well, that's just the way it is with async. Any operation that uses an async API immediately changes the entire operation to be async. There's nothing you can do about that - that's just the way it is.
Jan
9
answered Should I be returning promises from any function that uses them?
Dec
28
comment Why does Node not support several event loops in one Process?
Any time multiple threads all have access to the same data, the developer must protect ALL shared data with mutexes. This adds significant overhead, significant complexity and great difficultly to fully test, thus often leads to hidden bugs. Any design that avoids as much of that complexity is generally a good thing and that is node.js out of the box. It avoids that completely. If you want to use multiple threads or processes, you can do that yourself with something like the clustering module or by starting up child processes and then YOU coordinate access to whatever data must be shared.
Dec
13
answered Is it possible to not have a zero-indexed array with javascript?
Dec
9
revised Will ECMAScript add classes to JavaScript? What does this mean?
added 21 characters in body
Dec
9
comment Will ECMAScript add classes to JavaScript? What does this mean?
@BasileStarynkevitch - Code example added.
Dec
9
revised Will ECMAScript add classes to JavaScript? What does this mean?
added 150 characters in body
Dec
8
awarded  Enlightened