HN user

jeorgun

494 karma

https://github.com/jeorgun

jeorgun AT gmail

Posts1
Comments193
View on HN

These questions seem pretty good!

In the max heap question, I'd argue that add should take a parameter by value, rather than a const reference, since this prevents having to needlessly copy temporaries (and is less verbose than overloading for T&&).

List of iterator categories is missing input iterators.

[dead] 10 years ago

Notably, the "al" in algebra and algorithm really is the Arabic 'al-'— algebra and algorithm are latinized forms of al-jabr and al-Khwarizmi respectively.

Java's Cover (2001) 11 years ago

"Historically, languages designed for other people to use have been bad: Cobol, PL/I, Pascal, Ada, C++."

In what sense was C++ designed for other people? IIRC Stroustrup came up with it to use on his own research projects.

Why Homejoy Failed 11 years ago

I think the intention is less "the tipping model makes more sense", and more "given that the tipping model is in effect, you shouldn't unfairly punish the housekeepers by not tipping them".

Uncharitably, I'd say the old logo looked much more professional, and so didn't jive with Google's corporate ethos of "seem as much like a preschool as humanly possible". The new one definitely fits better in that respect.

I wouldn't object to somebody creating, from whole cloth, an electric-stuff-free place, but I do object to people co-opting an existing community that they're not part of and insisting that it become such a place for them. That seems to be what's going on here.

I think it's undeniable that a substantial portion of the interest in XMonad came about because it's written in Haskell, but that's very different from saying that all of the interest in it comes from a concerted propaganda campaign on the part of the Haskell community.

My first language was some awful proprietary BASIC dialect. It hasn't harmed me any, so far as I can tell. Learning one language, proprietary or not, gets you about 99% of the way to learning a second (potentially more open) language. And in any case, isn't the language due to be open-sourced pretty soon?

I agree with your overall point, but you're forgetting a third effect: preventing non-current-drug users scared of more conventional venues, but not by Silk Road (which, as you point out, is comparatively convenient and safe), from buying drugs from there (and then possibly developing an addiction). I don't know how large a segment of the population that might be, but addictions have to start somewhere.

I've always loved this story. Reading it now, though, it's funny that it was written by the guy most famous for his robot stories. They seem like a pretty glaring omission. If you could program the job skills and knowledge onto a human brain, why not a positronic one? All the non-creative jobs would just end up being automated.

Which is basically the situation we're heading towards now in any case. Pretty prescient, I suppose.

To add to that last point, the most important thing to keep in mind when expanding your vocabulary is knowing when and when not to show it off. Few things come across more poorly than using a "smart" word when a simple one will do just as well.

Why Lisp? 11 years ago

That does something similar, sure, but what it in fact is is a macro. As snikeris was saying, you couldn't write anything quite like that #define in a macroless language like Java.

Fractal Lab 11 years ago

Also, it seems to break swipe-left/right-to-nagivate-back/forward in Chrome and Safari. I was sure my touchpad was broken or something.

Maybe I'm missing something, but why is it crucial that you hold on to a reference to the contents of the vector, and not the vector itself? Because, to me, the obvious "C++ way" to do it would be something like

    struct FieldInfo {
      //
      const std::vector<ast::Attribute>& attrs;
    }

"If you think about it, if your code is small and clean, you wouldn’t feel the need for shared libraries."

Yes you would, for any sane definition of "small and clean". Code can't be made arbitrarily small; some problem spaces are fundamentally complex.

For what it's worth I have played around some with dynamic libraries and with FUSE, and I found the former incomparably easier to work with. Maybe that speaks more to FUSE in particular than to the idea in general (or maybe it's just me being bad at FUSE), but that's been my experience.