Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yuushi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
yuushi
14y ago
These require some background in C++ before you pick them up, however.
32.
▲
by
yuushi
14y ago
It doesn't matter, optimized or not, the amount of work this entails is ridiculous. Writing a C++11 compiler requires intimate knowledge of the standard (which is a massive, hard to read tome), implementing pretty much all of the standard l
33.
▲
by
yuushi
14y ago
I guess we'll just have to agree to disagree then. Perhaps you are a far more conscientious programmer than many out there; the number of buffer overflow exploits would suggest so. C++ doesn't make you immune to such things, but it does giv
34.
▲
by
yuushi
14y ago
Except it has absolutely no type safety whatsoever. With modern-style C++, you can do the same thing in exactly 1 line: std::sort(begin(array), end(array), [](int a, int b) { return a < b; }); Versus: qsort(array, MAX_VAL,
35.
▲
by
yuushi
14y ago
How is it strawman C? If you want to use qsort, which anyone who has used C for any amount of time has, it's something you've written many times.
36.
▲
by
yuushi
14y ago
And this is what I don't really understand. Python or Ruby are excellent in the domain you talk about, but I would always, always reach for C++ over C if given the choice. The C++ standard library for me alone makes this such a simple choic
37.
▲
by
yuushi
14y ago
Except the analogy to Python lacks one critical point: C++ headers and Python imports do not work in nearly the same way. Do not EVER use a "using namespace <foo>" in a header file; any code that #include's such a header will pull t
38.
▲
by
yuushi
14y ago
Indeed. And there are numerous reasons why C++ code can be/is significantly faster; firstly code inlining for code that would be required to use function pointers in C (ala qsort vs std::sort), secondly, things such as expression templates
39.
▲
by
yuushi
14y ago
That being said, the section containing the proof is starred if I remember. I imagine most people, even those reading CLRS, skip over it.
40.
▲
by
yuushi
14y ago
I still use it as well. I didn't realise it was something people laughed at - WMP takes up too much screen estate, iTunes has far too much bloat, and I don't need a music player with the complexity and learning curve of emacs.
41.
▲
by
yuushi
14y ago
Even if it is a natural phenomenon, am I alone in thinking that it is still interesting?
42.
▲
by
yuushi
14y ago
He should be disbarred. Trying to sue the charities themselves, which aren't even involved in this squabble? Ridiculous. How anyone with a functioning brain could come to the conclusion that this is the best course of action baffles me.
43.
▲
by
yuushi
14y ago
I disagree heavily with your argument. If the student is struggling with fractions and long division, I don't think you can blame schools "pandering to the slowest student" for such a problem. If they are struggling so much with basic conce
44.
▲
by
yuushi
17y ago
Yes, it is 1/3. Given a series of partial sums (which in turn form an infinite sequence), then if the infinite sequence converges to some number B, the infinite sum likewise converges to the same number B. It's exactly like saying lim as x