13,821 reputation
13358
bio website
location
age
visits member for 4 years, 4 months
seen 51 mins ago

Mar
2
answered How can frond-end developer support different encoding (UTF-8 , UTF-16,..)other than ASCII?
Mar
2
comment How can frond-end developer support different encoding (UTF-8 , UTF-16,..)other than ASCII?
Let's call your language Foo. My question is what is UTF-{8,16,32} etc. encoded: The Foo source file in which the Foo program is stored, or the inputs and outputs of the Foo program?
Mar
2
comment How can frond-end developer support different encoding (UTF-8 , UTF-16,..)other than ASCII?
Are you talking about the source code encoding, or the language providing the ability to write programs supporting various encodings?
Mar
2
comment Is functional language without runtime written in C possible?
It's certainly possible. If nothing else, one can program all those bits in machine code and let the compiler add them to all programs. But I suppose you were looking for something more glamorous?
Mar
1
comment Why aren't “fat binaries” more widely used for cross-platform applications?
I don't know a lot about fat binaries, but don't they need support from the OS (specifically the loader)? Then I don't see the appeal for "multi-OS software" specifically, as there's no way the OS vendors would agree on an interoperable format.
Mar
1
revised Hypothetical : What restrictions will I need to add to Java so that I can remove its GC?
added 346 characters in body
Mar
1
answered Hypothetical : What restrictions will I need to add to Java so that I can remove its GC?
Feb
27
answered Does modular programming refer to modules or programs?
Feb
26
comment Is this statement correct for floating point numbers?
@Doval With limited memory, the same is true of natural numbers and rational numbers and all other infinite sets. However, these two sets are countable, all naturals and rationals can be represented if you allow unbounded (but finite) memory. The reals, however, are uncountable, so even a bona fide Turing machine cannot represent almost all (i.e., all but a countable subset) real numbers, regardless of the encoding chosen. Which real numbers can be represented is highly dependent on said encoding though: pi and e are rather easy to represent as computable numbers.
Feb
25
comment Feasibility of idea to reduce email spam
Aside from the elephant in the room (you change the protocol but nobody's going to adopt a new protocol), sorting as proof-of-work is far too easy (n log n complexity, actually closer to linear for integer sorting): One has to consume enormous amounts of bandwidth and integer-generating-work to make any sizable dent in the spam-sending capabilities of a reasonably well-equipped adversary. Try looking at other proof-of-work systems for harder problems.
Feb
23
revised Why the practice of writing unit tests in a different language isn't that popular?
added 1 character in body
Feb
23
comment Why the practice of writing unit tests in a different language isn't that popular?
@Doval You can use words in whatever way you wish, but merely being aware of (and primarily interacting with) a very specific class/method/function, the existence and behavior of with is only relevant to the people implementing the software as a whole, makes it a white box test in my book and in every classification I've seen. It doesn't need to poke private variables of the unit under test to be concerned with implementation details.
Feb
23
comment Why the practice of writing unit tests in a different language isn't that popular?
@JeffO How often does someone write unit tests for code they haven't written? Other than that, technically yes, but see the entire rest of my answer for why this is unlikely in practice.
Feb
23
answered Why the practice of writing unit tests in a different language isn't that popular?
Feb
23
comment Caveats of using String.hashCode() on a switch on java < 1.7
@Ordous "".hashCode() is not a constant expression, so you still have to hard-code the number. Moving the magic number behind an appropriately-named constant is better, of course, but only marginally so.
Feb
23
answered Caveats of using String.hashCode() on a switch on java < 1.7
Feb
22
awarded  Nice Answer
Feb
20
comment Why does Jenkins warn you if you tell it to check for changes every minute?
@RaduMurzea I sure hope not! Even ordinary manual user interactions are somewhat concurrent on big projects, and the numerous automated tools that may access the repository compound the problem to a degree that "closing your eyes and hoping nobody does anything concurrently" strikes me as irresponsible. DVCS developers are smart. They should manage to make pulls and pushes and other operations atomic.
Feb
19
comment c++11 random: why different range of int and real?
Half-open intervals are very natural in discrete settings. For example, array indexing and slicing, or range in Python, or any other interval of the form start <= x < end. See also: Dijkstra's take on it.
Feb
16
comment Why are language features more popular than compiler design?
@EECOLOR There trivially are a finite number of programming languages. But no, realistically, there is far too much diversity in languages for a single AST, a single IR, or a single interpreter.