Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mtdewcmu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
481.
▲
by
mtdewcmu
12y ago
What you are describing sounds a lot like 'static' in C, which marks a function to not export its name, so it can't be seen from outside the file. 'inline' in C is a hint to the compiler that you'd like the fun
482.
▲
by
mtdewcmu
12y ago
The part that LLVM is doing: code generation, optimization, etc. I don't think writing a whole compiler is a reasonable goal at anywhere near that level of effort. But I just pointed out that it's an exaggeration. Gcc's archi
483.
▲
by
mtdewcmu
12y ago
I agreed with the broad premise that web development is shockingly horrible by the standards of the past era of polished corporate tools. But otherwise, it was all contradictions, inaccuracies, and indefensible conclusions. >>In other
484.
▲
by
mtdewcmu
12y ago
That's interesting and looks like fun. I'm not sure you can call that writing a compiler, though. It looks like just a front-end to LLVM. But it would give you a taste.
485.
▲
by
mtdewcmu
12y ago
I'd get a job first. If you are not enthusiastic about corporate programming, there are all kinds of companies with all different styles. If you look hard enough, you can find one that fits your style.
486.
▲
by
mtdewcmu
12y ago
What they want is mainstream orthodoxy like Design Patterns, OOP, etc. You'll want to study the buzzwords, mostly. What are the major principles of OOP? What is a Decorator Pattern? What is TDD? You won't be able to infer this stu
487.
▲
by
mtdewcmu
12y ago
Another good reason to try a binary heap: it would have only taken a few hours to implement. Then you can do some benchmarking, count your gains, and perhaps quit while you're still ahead. Profiling is good, but I don't see how it
488.
▲
by
mtdewcmu
12y ago
Correct. In general, real data will seldom, if ever, look like random data.
489.
▲
by
mtdewcmu
12y ago
You're right that shuffling doesn't avoid the worst case, but your explanation isn't quite correct. See my other comment for my explanation. I'm not sure what you mean by deterministic shuffling. Shuffling is supposed to
490.
▲
by
mtdewcmu
12y ago
Shuffling can never prevent the worst case of any algorithm. "Worst case" means the worst out of all possible cases. Shuffling doesn't change the set of cases, and it doesn't change anything about any individual case. Pr
491.
▲
by
mtdewcmu
12y ago
"CLAUDE SHANNON once told me..." Name dropper. :)
492.
▲
by
mtdewcmu
12y ago
Malcolm Gladwell's articles can be very enjoyable reading[1]. I suppose you have to bear in mind that he's not an expert on anything besides writing. [1] http://gladwell.com/category/the-new-yorker-archive
493.
▲
by
mtdewcmu
12y ago
One problem that's solved with assembly today is optimizing code in C or C++. In order to do that, you'd certainly need to study documentation newer than this book, because you need to know the performance characteristics of (old)
494.
▲
by
mtdewcmu
12y ago
You make some good points.Things you learn through hard life experience always have value. At least, I value them, because even if they don't have a lesson I can use, they are among the most interesting and true stories a person can te
495.
▲
by
mtdewcmu
12y ago
You're asking a question that the experts have also asked, so it's definitely a good question. The algorithm you're talking about is also called the naive algorithm. It's much faster in practice than you might expect giv
496.
▲
by
mtdewcmu
12y ago
Thanks to CSS not having that from the start, it led to the situation we have today, where there are at least two different preprocessors to choose from: Sass and Less Having two solutions is worse than having one solution, and we can credi
497.
▲
by
mtdewcmu
12y ago
>>I'm very interested in technologies like GSS that ultimately don't try to change the behavior of the browser - just the behavior of the developers To me, it's not fully clear exactly what parts of the process GSS is t
498.
▲
by
mtdewcmu
12y ago
I guess you have to read between the lines just a tad to see it the way I do. In fact, you have to do it rather literally, because some of the irritating message that I read into it I'm basing on the fact that certain things were left
499.
▲
by
mtdewcmu
12y ago
I wonder if my comment was downvoted because I made him sound as if he was cursed with some condition outside of his control and that's all. I feel sorry for people who have self-defeating patterns of behavior that cause them problems
500.
▲
by
mtdewcmu
12y ago
I agree that most managers, even if they are bad, would not abuse people under them just because it feels gratifying. That kind of behavior would be a really strong indicator of a serious mental problem. Most of the time the abuse pattern w
501.
▲
by
mtdewcmu
12y ago
I'm not sure if I'm reading too much in, or if most people miss what it actually said and mentally insert platitudes. Even if it hedges all of its statements at some point and ends on a perfectly nonoffensive note, it still seems
502.
▲
by
mtdewcmu
12y ago
Yes, no question. In fact, some amount of the sentiment you espoused is considered such airtight good advice that it has been built right into law. Universal education, for instance. No one seriously thinks everything taught in grade school
503.
▲
by
mtdewcmu
12y ago
The boss I'm talking about is a special case and one-of-a-kind as far as I know. He also happens to be foreign-born and from a country that I don't know much about. But he admitted once that his friends had nick-named him Eeyore o
504.
▲
by
mtdewcmu
12y ago
The more I think about this and reread it, the more smug and self-serving it sounds, and the more difficult it becomes to believe that this manages to pass for a gem of wisdom and sage advice. It is nothing but a negative stereotype of peop
505.
▲
by
mtdewcmu
12y ago
The most obnoxious boss I ever had was a fellow programmer, and the problem wasn't that he was a turncoat. He was just obnoxious. I think you could take the problem you're describing and generalize it to any manager-managee relati
506.
▲
by
mtdewcmu
12y ago
Jackie Chan is the obvious and only exception to the rule. He could kick anyone's ass with a ladder.
507.
▲
by
mtdewcmu
12y ago
I think this effect is underrated and explains a lot, for instance all the statistical correlations between good things and other good things, and, on the flip side, bad things and other bad things. For instance, why being a smoker correlat
508.
▲
by
mtdewcmu
12y ago
That's an astute misreading of the article, but here's my take: the writer clearly must have been successful in his startup, otherwise he wouldn't feel qualified to speak on what counts for success in starting companies. Once
509.
▲
by
mtdewcmu
12y ago
The point had to do with knives, not ladders. If you have a knife and you're well-trained in knife skills, and your adversaries are all armed only with ladders, you are easily going to win that fight. I think that's the point he w
510.
▲
by
mtdewcmu
12y ago
And, years later, slowly but surely, you've managed to rack up a breathtaking point-score in your HN karma account. That electromagnetic field theory work must have instilled you with tremendous karma. :)
More ›