11,680 reputation
12851
bio website
location
age
visits member for 4 years
seen 3 hours ago

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).
Oct
18
comment Why is inheritance generally viewed as a bad thing by OOP proponents
@RonaldMunodawafa Passing a child instance in place of a parent instance is just run of the mill subtyping, which can equally easily be achieved via interfaces.
Oct
18
comment Is there a good name for this pointer template?
How would Foo detect that the object is deleted?
Oct
16
comment How to prevent third party misuse of what is intended to be a private api (avoiding what happened to Snapchat)?
When you wrote that the private API calls need to require authentication, I agreed. But it seems we were thinking of different things. A private API call, i.e. an action that 3rd party apps should not be able to use, should demand authentication of the app, via an API key or something similar, regardless of whether the action being performed also requires user authentication.
Oct
15
comment Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
@RLH You make a number of assumptions that strike me as unwise. A lot of calculations can easily take a detour outside the range your inputs and final results lie in, especially if the order of operations is subject to change or the actual formula is transformed algebraically. Requirements do change more often than one thinks (even if you take this very observation into account). The answer to what you wrote here may very well "ints are preferable" but in your actual situation the opposite may be the case.