11,805 reputation
12852
bio website
location
age
visits member for 4 years, 1 month
seen 26 mins ago

Oct
29
comment Is vanilla JS still considered a library?
@Scimonster vanilla-js.com talks about browsers, and browsers are monumentally more common than servers running Node, so I focus on browser's JS.
Oct
28
awarded  Enlightened
Oct
28
awarded  Nice Answer
Oct
28
answered Is vanilla JS still considered a library?
Oct
28
comment Is vanilla JS still considered a library?
Vanilla JS is a joke. Are you pulling our leg or should I elaborate?
Oct
28
revised Does assigning NULL in a GC'ed Environment have similar effects to using free()?
added 36 characters in body
Oct
28
comment What is meant by Open Source Programming Language?
That doesn't seem to answer the question, specifically the part "is it the implementation [...] or something else". The language can be many things, it can refer to the spec, the implementations, the whole associated culture, or perhaps even other things.
Oct
28
answered Does assigning NULL in a GC'ed Environment have similar effects to using free()?
Oct
27
comment How to get a one-way hash function that is collision safe for about 1 million unique inputs?
Just use SHA-2.
Oct
27
awarded  Nice Answer
Oct
26
comment Why doesn't array declaration guarantee proper memory allocation whereas malloc does?
Could you elaborate, perhaps by giving an example program that showcases the problem? An array does "properly" allocate memory. It won't be initialized and hence contain garbage, but the same is true for malloc'd memory.
Oct
26
revised Do GC generations have any purpose (for an application programmer) other than answer to “tricky” HRs' questions?
added 207 characters in body
Oct
26
answered Do GC generations have any purpose (for an application programmer) other than answer to “tricky” HRs' questions?
Oct
22
comment Implements > extends, but what about variables?
Why do you need a field (which other best practices dictate shouldn't be public to begin with) rather than a getter/setter?
Oct
22
comment Why are floating point numbers used often in Science/Engineering?
@slebetman You appear to say "science = natural science", which is not the consensus to say the least. Mathematics and philosophy share a foundation in logic, and philosophy has a sub-discipline concerning the discussion and interpretation of mathematical study and results, but the two are nevertheless quite distinct fields of study. Mathematics does not use the scientific method though, since it's not empirical and doesn't even begin to attempt to make statements about the observable universe (I hope I've phrased this in a way that includes Platonists).
Oct
21
comment Why are floating point numbers used often in Science/Engineering?
To add to the points made above, not only do you not care about precision beyond a certain point, you can't get arbitrarily precise results because many of your inputs are measured quantities that have some inherent error.
Oct
21
comment Robustness and pointer safety in C++
Crashed processes can be restarted by a watchdog. A more serious problem may be use-after-free and out-of-bounds bugs, which can corrupt data (or allow exploits) without crashing.
Oct
20
comment Why does a bytecode VM use stack or registers opposed to direct operations?
It can certainly be executed, but nearly anything can. It's not something anyone should use when direct execution is at all interesting. There is no advantage, and the downside of having to implement phi nodes. You can pre-process the SSA code to remove them, but then you're essentially doing register allocation and your actual VM becomes a register VM.
Oct
20
comment Why does a bytecode VM use stack or registers opposed to direct operations?
SSA isn't typically used for execution, only as an IR for easier analysis (and mapped to registers and/or stack slots before execution). LLVM is not a VM in the sense of this question.
Oct
18
comment Why is inheritance generally viewed as a bad thing by OOP proponents
@RonaldMunodawafa No, subtyping is still a thing in Python, as are interfaces, they're just handled differently (not checked statically, less formalized).