Better HN
topnewbestaskshowjobs
Log inSign up

jeorgun

494 karma · joined Oct 18, 2013 (13y ago) · 197 submissions

https://github.com/jeorgun

jeorgun AT gmail

Submissions

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

To that end, I highly recommend the command line utility 'sl', which runs an unskippable ASCII animation of a steam locomotive. Makes for great fun explaining it to the flummoxed coworker borrowing your computer!

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

That seems pretty harsh. From context, 'been there, done that' sounds to me like sympathizing with the article's author, not dismissing them.

comment 10y ago · link · parent

If it's more than 10-20% of Dropbox users, that says pretty bad things about their market share.

comment 10y ago · link · parent

Calling Scheme a "new language with a strong Lisp influence" is a bit rich. It's certainly not new, and in many respects it's more representative of Lisps-of-Old than Common Lisp.

comment 10y ago · link · parent

"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.

comment 10y ago · link · parent

Mehmed II? In any case a lot of the territory Suleiman conquered did remain part of the Ottoman Empire into the 20th century.

comment 11y ago · link · parent

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".

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

Ditto in English, for that matter, although for various reasons we spell "i" with two "e"s.

comment 11y ago · link · parent

If I'm understanding right, grandparent isn't saying "effectiveness(minor, frequent) == effectiveness(major, infrequent)"; they're saying "effectiveness(minor) == effectiveness(major) && effectiveness(frequent) > effectiveness(infrequent)".

comment 11y ago · link · parent

I'm going to assume from context that they're talking about xmonad.

comment 11y ago · link · parent

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?

comment 11y ago · link · parent

Without looking too closely at it, the infographic looks suspiciously similar to this one: http://slatestarcodex.com/2013/04/04/lies-damned-lies-and-fa... . Does that same rebuttal apply, or are these numbers more accurate?

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

Would it be possible to edit this comment and stick that in a code box or something? It's breaking the page width.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

Interesting; I was recently binge-reading some old blog posts and came across this[1] not dissimilar claim from 2012. Maybe it wasn't so crazy after all.

[1] http://squid314.livejournal.com/320770.html?thread=2386178

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

I think they mean it in the "real programmers use FORTRAN" [1], not the literal, sense.

[1] http://www.catb.org/jargon/html/R/Real-Programmer.html

comment 11y ago · link · parent

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;
    }

comment 11y ago · link · parent

My father tried quite hard to teach me and my brother Turkish when we were young. It's lucky Turkish isn't in any sense an endangered language, because today between us we know exactly zero words of Turkish. It's not exactly a foolproof process.

comment 11y ago · link · parent

"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.

comment 11y ago · link · parent

Many things are — http://repository.readscheme.org/ftp/papers/ai-lab-pubs/AIM-...

comment 11y ago · link · parent

I can't help but be reminded Mark Libermans's assessment of the app (http://languagelog.ldc.upenn.edu/nll/?p=10416).
1234567