45,765 reputation
8117200
bio website tech.turbu-rpg.com
location Seattle, WA
age 32
visits member for 3 years, 10 months
seen 23 mins ago
A lifelong programmer who's been coding in Delphi since its initial release and currently makes a living at it.

May
1
comment Why don't languages include implication as a logical operator?
@Stefan: You can also derive everything from an IMPL.
Apr
27
comment What makes Web crawling legal?
@Tibo: There should be quite a step. In the USA, there often isn't, due to the Computer Fraud and Abuse Act. If that sounds strange, well, there's a reason a lot of people think that particular law needs some serious reform.
Apr
26
comment How do Traits in Scala avoid the “diamond error”?
@gnat: this is a conceptual question, not a concrete problem question. If he was asking "I have this class in Scala and it's giving me problems that I think might be related to the Diamond Problem, how do I fix it?" then your comment would be appropriate, but then the question would belong on SO. :P
Apr
20
comment Is machine language always binary?
@Prog: That's right. Our abstractions are way beyond that stage now. Heck, there are some cases where the computer doesn't even execute machine code exactly literally as it's written, due to superscalar architecture--the CPU optimizes things internally to run faster.
Apr
20
comment Is machine language always binary?
@Prog: That depends on the CPU. Some CPUs have it hard-wired into the transistors, others are programmed in microcode. Some do both.
Apr
20
comment Is machine language always binary?
@Prog: There's always a lower level. Machine code is the lowest level that programmers have to worry about, but below that is microarchitecture (the stuff you're talking about), which is based on transistors and logic gates, which are based on the principles of electronics, which are based on the laws of physics and quantum mechanics. There isn't really something that says "do a high voltage, do a low voltage", because it's not always a voltage. (For example, when you store it to disc, it's a magnetic state instead.) That's why we use 1 and 0 as convenient abstractions.
Apr
20
comment Is machine language always binary?
@prog: No; reading instructions one bit at a time and making decisions based on it would take too long, and CPUs are designed to be fast. When reading machine code, it's like Whatsisname said in his answer: the computer doesn't look at individual bits any more than you or I read by looking at individual letters. They're arbitrary numbers that map to values using an agreed-upon mapping. Sometimes the meaning of the machine code is hard-wired into the CPU transistors, and sometimes it's actually programmed in!
Apr
20
comment Is machine language always binary?
@Prog: Like I said, all numbers have a binary representation. 202 is 11001010, for example. But the 1s and 0s are an abstraction. Instruction #204 could mean "load a value from memory into a CPU register," for example.
Apr
7
comment What are the advantages of recursion compared to iteration?
When solving the maze, the recursive solution is only "perfectly clear" if there are guaranteed to be no cycles in the maze. Otherwise, it gets messy too.
Mar
2
comment Was there ever a serious push for partial classes in java
@CodesInChaos has it right. C# introduced a really bad feature (partial classes) so that they could do UI generation the wrong way. You would think, for a system that got started as a blatant ripoff of Delphi rewritten to look more like Java syntax, that they could at least have copied the basic concept behind Delphi's declarative UI system while they were at it...
Feb
27
comment What exactly is procedural programming? How exactly is it different from OOP? Is it the same as functional programming?
Procedural programming is not the same thing as functional programming; it's actually essentially the same thing as object-oriented programming, minus the objects and classes.
Feb
19
comment “Everything is a Map”, am I doing this right?
@EvanPlaice: Big-O notation can be deceptive. The simple fact is, anything is slow compared to direct access with two or three individual machine code instructions, and on something that happens as often as a function call, that overhead will add up very quickly.
Feb
13
comment What is the benefit of having the assignment operator return a value?
@MarjanVenema: I believe what he means by that is, Pascal's := operator is not only "different from the equality test operator" like C#'s is, but it is also not likely to be confused with it, which is a chronic problem in the C syntax.
Feb
11
comment What methods are there to avoid a stack overflow in a recursive algorithm?
I just tried this, for practice, and I found that the stack overflow exceptions I got weren't legitimate; they were caused by the value getting high enough to overflow MAXINT and wrap around. Changing to 64-bit integers got rid of the stack-breaking.
Feb
5
comment Why is PHP's method of comparing different types bad?
how often do you really need to see which of two strings is lexicographically greater? Umm... every single time you sort a list of strings, just off the top of my head.
Feb
1
comment Does Lisp still have any special feature which has NOT been adopted by other programming languages?
I've never seen a good explanation of multimethods that distinguished them from overloaded methods, a standard feature in nearly every modern imperative language, except by the fact that multimethod dispatch is resolved dynamically at runtime and is therefore much slower than using overloaded methods, which are resolved at compile time.
Jan
26
comment Why does the US government disallow dynamic languages for secure projects?
-1 for factual accuracy problems. Buffer overflow exploits are a problem highly specific to the C language; you never hear about them in languages that don't allow you to allocate a string buffer on the stack. And it's not at all difficult to imagine a hypothetical SQL dialect in which the use of Parameters was not simply allowed but required. SQL injection would be impossible in this language. So yes, a properly-designed language can protect you from several common types of attacks.
Jan
8
comment What are the complexities of memory-unmanaged programming?
@ThomasEding: GC certainly is an optimization; it optimizes for minimal programmer effort, at the expense of performance and various other program quality metrics.
Dec
28
comment What's the difference between a macro and a script?
@Frustrated: Yeah, but from the context it doesn't look like that's what he's asking.
Dec
9
comment Exceptions or Error codes
@JensG: If this is a web service and not a website, the client should be professional enough to email it to you as a bug report.