Reputation
59,359
Next tag badge:
187/100 score
18/20 answers
Badges
12 176 258
Newest
 Enlightened
Impact
~2.0m people reached

May
20
comment Is there a more modern program than lex or yacc, which does not require JVM?
Define "more modern". What features or capabilities are you looking for that lex and yacc don't provide?
May
18
answered How do asserts and other error avoidance checks fit into TDD?
May
18
awarded  Enlightened
May
18
comment How do I determine if my code is optimized?
+1 for the idea expressed, -1 for the ugly ternary operator.
May
17
comment What sorting algorithm does STL use?
@delnan: There are more issues to consider than just being fast. There's additional memory consumption, stability (will two items that compare equal on the sort criteria remain in the same order relevant to each other?) and best case/worst case/average case issues. For example, for best case and average case, Quicksort is easily the fastest, but it's one of the worst of the common sorting algorithms when measured against pretty much every other criterion. So yeah, algorithm choice does matter.
May
17
awarded  Enlightened
May
17
comment Why aren't there other programming languages that compile to Python bytecode?
...because they don't want to deal with the GIL? ;)
May
16
awarded  Nice Answer
May
16
comment What would be the Impact of P=NP?
@Macneil: It gets worse. If Amazon could magically teleport me that thumbdrive, that would be great. Sending it through the mail introduces any number of potential man-in-the-middle attack vectors. And that OTP would only work with Amazon. I'd need a similar one for every site I ever did business with...
May
16
answered What would be the Impact of P=NP?
May
15
comment Should a class without instance variables be considered a class?
1986 - Brad Cox and Tom Love create Objective-C, announcing "this language has all the memory safety of C combined with all the blazing speed of Smalltalk." Modern historians suspect the two were dyslexic.
May
15
comment Should a class without instance variables be considered a class?
Your example does have state, actually; you just don't see it because the compiler generates it behind the scenes. But in order for the virtual methods to work, there needs to be a vtable, and a vtable pointer on the thingy. That's state data.
May
15
answered Should a class without instance variables be considered a class?
May
15
awarded  Nice Answer
May
14
comment A defense for boilerplate?
@Delnan: Agreed. That's what I meant by the last line of my answer.
May
14
answered A defense for boilerplate?
May
14
awarded  Enlightened
May
14
awarded  Good Question
May
13
awarded  Nice Answer
May
13
answered Is it legal / moral to republish oss project of an author that does not respond?