Better HN
topnewbestaskshowjobs
Log inSign up

hellofunk

9,428 karma · joined Jul 10, 2015 (11y ago) · 3,276 submissions

John Bellick, Mexico City
Submissions

comment 9y ago · link · parent

Wow, I will most definitely never under any circumstances become a customer of this spoiled company and its pretentious support behavior. People like this should not be in the software business at all if they don't want to deal with customers (including the more hostile/rude ones). If you are going to sell something to the public, you must be prepared to professionally handle all kinds of people, and if you cannot, you should not be interfacing with the public at all.

comment 9y ago · link · parent

He should change the description from "hard sell" to "hard on the eyes."

comment 9y ago · link · parent

>Given the above example, it should expand to this:

I don't think that your expansion is correct at all. Maybe you have a misplaced quote somewhere, but this one is not making sense.

comment 9y ago · link · parent

Twitter is gradually moving to final policies that will actually get me tweeting regularly. When I'm able to publish my memoir -- which incidentally, is coming along very nicely -- as a single tweet, I will know that I, and Twitter, have finally arrived. God speed the memoir tweets!

comment 9y ago · link · parent

I don't need to come up with a solution, because there are already so many in the literature.

comment 9y ago · link · parent

The very fact that atomics do lock means that you cannot properly write lock-free data structures with them.

"Lock free" typically refers to code that can prevent blocking operations; atomics do not do that, though some people think of atomics as a simple lock-free method, it really isn't. Lock-free is about algorithm design that can prevent locking in the first place, and atomics still lock, even if they hide that from you. If you mentioned atomics as a lock-free tool in an interview, you'd likely be chided.

Here is more information:

http://preshing.com/20120612/an-introduction-to-lock-free-pr...

"when you attempt to satisfy the non-blocking condition of lock-free programming, a whole family of techniques fall out: atomic operations"

comment 9y ago · link · parent

That does not solve the issue of locks, just abstracts the mechanisms away (hence why std::atomic has member functions related to checking for locks).

The OP is correct, these tools are generally frowned upon in favor of better strategies.

comment 9y ago · link · parent

But the code is definitely slanted towards a C style, not C++, and they are very different languages. (He prefers C strings vs C++ strings, for example).

comment 9y ago · link · parent

??

You said people could write C++, as a response, suggesting they cannot write it in Go?

comment 9y ago · link · parent

Correct, the point of my post is that Go does not have these guarantees even though it is one of the few (only?) languages based on a methodology that actually has a proven theorem for statically guaranteeing thread safety; yes, that was never implemented in Go despite that all the other aspects of the methodology were. Which I just find interesting.

comment 9y ago · link · parent

And not Go, which is designed for easy multi-threading?

comment 9y ago · link · parent

This is interesting, but I am curious why the effort has gone into this C++ tool when Google's own multi-threading-first language, Go, is based on Tony Hoare's work from decades ago, except that it omits the most interesting feature of CSP, the specialized calculus theorem that can prove the correctness of all your multihreaded logic. It would seem that those interesting ideas were ignored in favor of providing tooling for C++.

comment 9y ago · link · parent

> Nice example if you are from the USA. Over there it is more socially accepted to get married and divorced often than not at all.

This is one of the most ridiculous things I've read on any web page in years.

comment 9y ago · link · parent

Any commercial vpn recommendations from this crowd?

comment 9y ago · link · parent

That is mentioned in the article.

1786.

C++ toolkit helps shorten the path to AI apps(infoworld.com ↗)

2 points · by hellofunk · 9y ago · discuss

1787.

Singapore teen blogger Amos Yee granted US asylum(edition.cnn.com ↗)

49 points · by hellofunk · 9y ago · 38 comments

comment 9y ago · link · parent

A good algorithm with poor cache performance will still be much faster than a poor algorithm with no cache misses.

comment 9y ago · link · parent

Perfect advice. Most bottlenecks are not because of coding details, but algorithmic or architectural concerns.

comment 9y ago · link · parent

It's better to call them what they are in C++, lambdas, rather than closures, in my opinion. The flexibility that proper closures provide in functional languages just cannot exist in C++ and mixing the terms freely only confuses the matter.

comment 9y ago · link · parent

Closures in the functional programming sense don't really exist in C++. "Closing over" a value means something quite specific, and C++ captures don't do this; they merely copy by value or reference an outside entity. The only way to get close to it is if your C++ lambdas exclusively capture and thus increment the reference count of shared pointers only, and no other types. Not exactly idiomatic.

comment 9y ago · link · parent

As Twain said, "Travel is fatal to prejudice."

Americans could use a little less prejudice in their lives.

comment 9y ago · link · parent

I am going to guess that you live in a large city on one of the coasts... is this correct? Because if so, you are right.

If you live in the MidWest where most Americans live, then your report would really surprise me.

1794.

Senate votes to block internet privacy regulations(thehill.com ↗)

3 points · by hellofunk · 9y ago · discuss

comment 9y ago · link · parent

I said 4 - 6 weeks; you are focusing on the "6" but I know many, many Dutch (my neighbors, actually) who are gone a full month every summer, like clockwork. Nearly everyone on my street. It's always either July or August.

You say people "only" get 5 weeks of holiday, but that only supports my main point about the huge difference between that and what Americans are used to.

comment 9y ago · link · parent

It's still not the same thing as going to another country where everything is different, the shows on TV, the language, the politics, the food. You will find variety within the bounds of any nation on earth, but it's not as great as the variety between nations.

comment 9y ago · link · parent

Exactly, 5 weeks! That's a huge amount by American standards. And many Dutch I know do take most that time in the summer, at once.

comment 9y ago · link · parent

> True but America is a wide enough place that you can have most of that without leaving the continental USA.

Except that most don't make those trips around their own country.

comment 9y ago · link · parent

Most Americans don't even travel far within their own country. The vast majority have never seen New York or San Francisco, for example. Or the Rockies, even.
1
596061
110