skysight-inc/HackerNews huggingface dataset:
I'd agree. The thing is: for stock Python, you want to minimize interpreter load. Use a lot of list comprehensions, that sort of thing. Whereas with PyPy you want to do the opposite.

For instance, I have the following two functions:

def atLeast2(a,b,num):
return sum(x==y for x,y in itertools.zip_longest(reversed(bin(a).partition('b')[-1]), reversed(bin(b).partition('b')[-1]), fillvalue='0')) >= num

def atLeast4(a,b,num):
count = 0
while a > 0 or b > 0:
x = a % 2
y = b % 2
if x == y:
count += 1
if count >= num:
return True
a //= 2
b //= 2
return count >= num

In Python, atLeast2 is ~2.7x faster than atLeast4. In Pypy, atLeast2 is 1.9x slower than atLeast4.

(The ordering is roughly, using relative numbers (lower = faster), and checking for at least 96 bits in common out of 128 for random inputs:

1.0 pypyatLeast
3.2515636711379905 pypyatLeast4
3.5864477527073473 pypyatLeast3
4.430998164947921 pythonatLeast
5.903265617327027 pythonatLeast2
6.306511850301104 pypyatLeast2
15.832777648548758 pythonatLeast4
15.870273448605621 pythonatLeast3

Note that atLeast2 is slower in PyPy than Python!

def atLeast(a, b, num):
count = 0
for x, y in zip(bin(a).partition('b')[-1], bin(b).partition('b')[-1]):
if x == y:
count += 1
if count >= num:
return True
return False

def atLeast3(a,b,num):
count = 0
while a > 0 or b > 0:
x = a % 2
y = b % 2
if x == y:
count += 1
a //= 2
b //= 2
return count >= num

)
They sure know their PR stuff...
That is what it was for me when I moved to the US from Switzerland.

Only then I realized that the way people live in Switzerland is not something you can take for granted and in the end made me move back.

I always hear people complain about the Swiss mindset and how they should be more like silicon valley. But what these people don't realize is the reason Switzerland is the way it is is because of the mindset.
Google Cloud Storage Nearline
Show HN: Simple Private Python Cloud Framework
This is a framework I've developed to allow simple, quick development in a low-overhead private cloud. I got tired of complex ZMQ routing and endless config files. This gets you up and running very fast. Cluster nodes are p2p, nodes can be added and removed at runtime.
Peasantry was different from slavery. The middle age has actually seen slavery disappearing from Europe, which is incidentally why slaves had to be taken from somewhere else to bring to the "new world".

Class struggle that led to welfare and benefits wasn't against the gentry but against the bourgeoisie (factory owners). The same bourgeoisie who had chopped the gentry's heads before.
Not necessarily. The United States just harbors an enormous amount of path dependence.
Exactly.

I really do love switzerland, but a proper comparison would be to say, Marin County or Boulder or La Jolla.

I think our pockets of "switzerland" stand up pretty well in comparison.
tl;dr: America sucks for work when you don't have a college degree.

Too bad OP doesn't realize that this applies outside of America too.
6 Highly Effective Ways to Increase Blog Traffic for Free
I don't know anything about starting a company in Switzerland but as someone living next to the swiss border I can tell you it's really expensive to live there.

On a typical weekend the supermarkets on the german side of the border are filled with swiss people buying all sort of everyday stuff like food.

Gas is typically somewhat cheaper which is why equally many people cross the other way. ;)
Java 8 version would actually look a bit more like

void linq43() {
CustomerOrderGroups var = () -> getCustomerList()
.stream()
.map(c -> tuple(
c.companyName(),
group(c.orders()).by(o -> o.date().year())
.thenBy(o -> o.date().month()))
).collect(toList());

var.grouped().stream().forEach(
System.out::println
);

}

http://pastie.org/10324237

I think.
Interesting that their cost calculation tool[0] compares against S3 instead of Glacier. Glacier seems like the more appropriate choice here, but obviously doesn't make Nearline look as good.

https://cloud.google.com/pricing/tco/storage-nearline
I am Mt. Gox's first employee – AMA
USENET (the network) may be dying but NNTP is still going strong as a better interface to mailing lists. See for example http://gmane.org/ or the new GNU Mailman 3 gateway.

I am now subscribed to maybe 2 mailing lists, the rest (two dozens) I read via gmane.
We came to Suruc from Stockholm 5 days ago and have since been trying to help the people of Kobane from here. Since the bombing at the Amara Centre the border has been made almost impossible to cross. If you try you will be shot on sight by the Turkish military. We heard heavy calibre shots ten minutes ago from that direction.

Even basic aid like water and medecins are difficult to get across. We stopped by the depot for shipments and saw at keast 6 trucks full of water. They were kept there for 4 days before let through. No reason given. There are other worse examples.

The point though is that the blocking of our page occured at the same time as when 65 pro-kurdish websites were closed down by Turkish authorities. It's not unlikely this ban is related. It's not difficult to organise a number of Facfbook accounts to mass report pages. Facebook should at least reconsider.
Thanks to the way my industry is structured a bunch of my peers went overseas for a couple of months to various countries. I paid careful attention to the feedback & reached the same conclusion - USA is very far down on my list of countries I'd like to work in. Something about their work/life balance culture doesn't sit right with me. Its not that I mind hard work - I've done my fair share of 20 hour work days...but there is a dissonance there that I just can't quite place.
France and Germany have a higher standard of living than the U.S. In fact except Greece, Italy and Spain all European countries have a higher standard of living than the U.S.. Face it you are the third world compared to Europe. Ooooh, those poor little jingoistic feewings are butthurt... :D
That's the first line in the link. It says "From VOX" and links to the vox article.
If you have a monopoly, you charge excess rents and stop innovating. People accept this easily as a fact of private enterprise, which is why we have the state intervene to break monopolies.

Why people can't take this obvious fact and apply it to state-mandated monopolies, like education, is perplexing. There should not be 1 provider of education. We need competition and innovation in education.
Taking the lunch break isn't optional however. Not sure exactly but I think I'm required to have a 40-45 min lunch break, which doesn't count towards my daily 8h of work.

In practice as I'm in a white collar job with flexible hours, this doesn't matter so much. I count as work when I check my email while commuting. If I take a lunch at my desk because something needs to be fixed, I count it as work. Simple as that.
> The Church of Ireland is (and has been in recent history) the second largest Christian "sect" (as I put it earlier) in Ireland after Roman Catholicism. The Church of Ireland follows Anglicanism.

Yes, you're correct in that the CofI is slightly bigger than the Presbyterian churches. However, that's not my main point. What I was disagreeing with was your conflation of Unionism and Anglicanism, which is entirely incorrect.
If you run into the registration wall for this article you can sidestep it by doing a Google search for "ANALYSIS: Aiming for 90,000ft with Perlan 2 glider". This article is vastly better than the one I submitted from CNN.
But the freed slaves were a disenfranchised minority and only shaped culture a little bit. When slaves were still in bondage, the European immigrants could go west for free and cheap land.

The cheap land and lack of landed gentry created a culture that values entrepreneurship. Even today America LOVES rags to riches stories.

You can also see that the black community today is considerably more liberal than the general population.
And not just traditional spam. There were active campaigns to "sporge" thousands of news groups with thousands of junk posts. Hipcrime is probably something that would return ghits.
How to Hack Millions of Android Phones Using Stagefright Bug Without Sending MMS
The answer is "all of us", or at least in the very level and equal society that existed post-WW2.

As outcomes become less equal, a smaller and smaller proportion of individuals foot that bill. We should expect that as that intensifies, some of those folks are going to look around and start asking where their hereditary and class privileges are.
I'm not sure what kind of adapter is on which kind of Macs, but if you're asking because you want to use a larger brick, then it might be just fine. Let me tell you a little story:

I have a 13" MBP since 2008 (or 2009?) on which I replaced the power brick at two times, just a few weeks after the warranty was gone. Every time with another Apple charger, the same model, despite the fact that rating on their store was one star. All this time, the charger was so hot that i could barely touch it.

I was somehow disparate because it was ridiculous to take the charger as a consumable that needs to be replaced every year, so I started to do some research and I found that I could just use a larger charger (from the 15" model). I bought one back in 2013 and it runs ever since, with no issue at all. The brick is also barely warm, so that's nice :)

If you want to use a smaller charger, it will also work. Somehow. It will wear out the charger very quickly and it will take a lot of time to charge the battery.
Well at least having 20+ days of paid vacation and (compard to the US) cheap health care is a thing in many european countries
Ulster Scots is a different thing than was they're referring to. Ulster Scots refers to (largely) Presbyterian descendants of Scottish planters who emigrated to the US. Adherents to the Anglican communion wouldn't necessarily consider themselves 'Ulster Scots'.
Sweden, Norway, and Finland did not have serfdom.

If your analysis is correct, shouldn't there be a large difference in the social welfare systems between those them and the Nordic countries with serfdom-like systems; the Danish stavnsbånd, from 1733 to 1788, and the Icelandic vistarband, from 1490 until 1894?, or between the Nordic countries and, say, The Netherlands?
The thing is, actual educated, reasoned adults should be capable of understanding the point a person is making, without straining at a gnat, and without making a mountain out of a mole hill.

Our society, says everyone, is way too sensitive and "PC". And, yet, we continue to attack people over the slightest perception of wrong doing.

It's ridiculous and childish.
As someone who lived in Portugal...nope
The medieval peasants were slaves, too – legally they were owned by their landlord.
BitcoinTrader – A Bitcoin and Altcoin Trading Station
Rent is cheaper than SF. Average going rate for a 1 bedroom apt. in places like Zurich is slightly less than 2k (this includes utilites).

You can save big time by not having to use a car. Switzerland has an excellent public transport system. This also gives you a lot of freedom in terms of where you want to live (which also influences rent prices). There's an ubiquitous Zipcar-like service.

Imported goods are usually the same price as the rest of Europe ("Swiss" markup is offset by lower VAT most of the time).

Everyday goods such as food are much, much more expensive, though. Expect to pay about 20-25 CHF for a meal in a "hole-in-the-wall" kind of place. For a nice evening out for two, add a zero to this. Groceries cost accordingly, chicken breast go for 13-20 CHF per pound for example.

Still not the most expensive place I've lived in, so I can't complain.
No they don't. They have higher standards for the lower classes. America has a higher standard of living but is far more sink or swim.
No, actually it's the only place that's somewhat democratic.
Just to make comparison even more complicated, I assume in Switzerland you don't need to pay as much for health insurance, and put as much money aside for retirement, and people in US do. And I know college fees in Switzerland are around 1000 to 3000 per year, not 10 000 to 40 000 like in US. So if you have kids, you don't need to save for their college. (...But then you can only send them to European universities. If you want to send them to a US university, you still need to save money for that.)
I can see several strategies:

+ Working on a problem that the big company doesn't see that expands the market. Then the acquisition becomes a matter of buying into the market.

+ Working on a corner case in the big company's market and executing better. In this case the acquisition is amounts to buying a feature.

+ Solving a problem for users in a way that obsoletes the big company's fundamental business model. The acquisition amounts to stifling innovation.

+ Just being so awesome that acquiring your company is the only way to hire your team.

Despite arguments to the contrary, thinking about possible exits is a virtue not an ethical failing. Psychic income is great, but it doesn't always pay the bills. On the other hand, the likelihood of a random outsider having a highly useful model of Google's workings to the degree that being bought by Google is a viable exit strategy on day zero are pretty low [though an insider and industry veteran might be another matter].

Good luck.
The example is pseudo-code and assumes a future with smart-property domain registrars. A better example might have been a smart contract trust which is 100% doable today.

There are other examples under the Samples menu at etherscripter.com. Also see ethereum.org.
India and Bangladesh have begun the exchange of over 160 enclaves
The goal is to implement the desired functionality in a comprehensible way. Given that, the best option would be to use an array, and to initialize it with the easy array intialization syntax that C provides:

struct select_condition conds[] = {
{ channel_1, SELECT_OUT, NULL, 42 },
{ channel_2, SELECT_IN, &i, 0 }
};

No need to overcomplicate it or stuff a bunch of functionality into macros in order to make C look like some other language.
Scots-Irish isn't quite the same thing. Those referred to as 'Scots-Irish' in the US are descendants of Scottish (largely) Presbyterian planters. People who adhere to Anglicanism generally wouldn't consider themselves or be considered 'Scots-Irish'.
Visiting a country can be expensive. Then you make money in country A, which you spend in country B with higher prices.

If you live in a country with high salaries and high prices, it just means there are nominally high prices, not necessarily "expensive".

Some parts and some markets of Switzerland are "expensive" for example Zürich housing. The same is true for SF.
In my experience, Germans (Bavarians, anyway) see the Swiss very much as Americans see Germans ;)
When Docker was new I could download the Ubuntu baseimage with no issues. Now there's so many layers it takes far too long.
Pretty certain the "My Pictures" screen saver of older versions would have done the same
Sorry, I forgot Portugal.
There are some smart contracts / blockchain tpye startups in Zug. Monetas for example. You could reach out to them.
Yes, but my datacenter rates in Zurich rose quite a bit :)
Also looking at PPP per capita (59K vs 53K), it's not that much higher. Norway, I'm not sure should count given their large oil reserves which one cannot really replicate.
Mostly agreed. But TV signals?
I think Ethereum is trying to replace the web (though it may [or may not; not sure] still run HTML/CSS/JS on top).
Everything you possibly can.
Old usenet-head here (on it regularly from 1991, first met it 1986) ...

First problem: there's no identity authentication mechanism in NNTP. So spam is a problem, forged moderation headers are a problem, general abuse is a problem. (A modern syndicated forum system with OAuth or some successor model would be a lot easier to ride herd on.)

Second problem: storage demands expand faster than the user base. Because it's a flood-fill store-and-forward system, each server node tries to replicate the entire feed. Consequently news admins tended to put a short expiry on posts in binary groups so they'd be deleted fairly promptly ... but if you do that, the lusers can't find what they're looking for so they ask their friends to repost the bloody things, ad nauseam.

Third problem: etiquette. Yeah, yeah, I am coming over all elitist here, but the original usenet mindset was exactly that. These days we're used to being overrun by everyone who can use a point-and-drool interface on their phone to look at Facebook, but back in September 1992 it was a real shock to the system when usenet was suddenly gatewayed onto AOL, I can tell you. Previously usenet more or less got along because the users were university staff and students (who could be held accountable to some extent) and computer industry folks. Thereafter, well, a lot of the worse aspects of 4chan and Reddit were pioneered on usenet. (Want to know why folks hero-worshipped Larry Wall before he wrote Perl? Because he wrote this thing called rn(1). Which had killfiles.) Anyway, a side-effect of this was that when web browsers began to show up, the response was to double-down on the high-powered CURSES-based or pure command-line clients rather than to try and figure out how to put an easy-to-use interface on top of a news spool. Upshot: usenet clients remained rooted in the early 1990s at best.

These days much of the functionality of usenet (minus the binaries) is provided by Reddit. Usenet itself turned into a half-assed space-hogging brain dead file sharing network. And we know what ISPs think of space-hogging half-assed stuff that doesn't make them money and risks getting them sued.
Purchasing power matters for stuff within a country, but swiss people still have more money that they can spend on imports.
Oh, poor you....You should come work in Romania (where i am ) and see how it is.
I wonder if you could use glider technology to host a telescope, similar (but much, much smaller) to the Stratospheric Observatory for Infrared Astronomy [1], which is mounted in a 747.

[1] https://en.wikipedia.org/wiki/Stratospheric_Observatory_for_...
That's nice but she's just a spoiled rich lady. Americans work hard - but so does the rest of the world (except the Swiss I guess).
I'm on an X1 Carbon with 4GB of RAM, so I use Amazon spot instances instead.
Read it again. I said that if the consensus theory is wrong then we'd see constant power shifts. Instead, we see long stable periods disrupted by short rare, revolutions or a relatively slow, very visible struggle. Hence, hegemonies do resist social mobility. IIRC, you made the exact same mistake last time we discussed the issue.

Also, I fail to see how your formula is meaningful at all, as it has nothing to do with power dynamics. At best, it describes the distribution of the number of powerful people in a random sample. Well, OK, how is that helpful? It cannot describe any shifts in power as it assumes independence, where our understanding of power is anything but (you are more likely to be powerful if you're close to powerful people). The actual dynamics is a collection of non-linear processes in a complex system. A very, very crude example of a somewhat similar process is that of segregation[1] with the addition of random populations during the run. It is processes with strong correlations between neighboring agents that tend to show stability pockmarked with rare bifurcations, which is exactly what we see in human society.

When I went to study history in graduate school, I dreamt of applying math to historical events. Playing with cellular automata to recreate certain shifts in history is fun, but eventually teaches us little, as we cannot say much more about the model than the same qualitative descriptions historians give anyway. It is sometimes cool to figure out the values of certain variables in the model and assign them meaning (like the "despair level prior to the French Revolution", but even these numbers don't tell us much because the models are so sensitive we can't be sure we got them right, and even if we did, it's virtually impossible to measure the values directly rather than figuring them out retrospectively. Therefore, speaking about events in broad qualitative terms is often the best we can do (compound cellular automata's Turing completeness with the non-linear ODEs defining the automaton's rules and the difficulty measuring variables directly and you get very little predictive ability).

[1]: http://ccl.northwestern.edu/netlogo/models/Segregation
On the other hand you have to pay a lot more in taxes.
> But I think the Swiss succeed despite this because they have a much more compassionate view towards their fellow citizens

From what I've heard, that is predominately only true so long as their fellow citizens are sufficiently "like them".
It's important to note that there are 3 different regions (German, French and Italian) which all have their own 'sub-culture'.

Behaviors can be quite different ;)
Seems to be native versus JVM. My guess is it's a combo of string processing, many temp objects, etc with too many interpreted versus JIT'd code paths.
There are some agencies which help you set all the paperwork up for free. You have to deposit 20k swiss francs on a locked bank account (the amount) you can be held liable for, founding and entry into the central corporation register costs 1-2k.
Her (YC S15) Is Hiring a Senior Full-Stack Engineer in SF
Check us out: http://weareher.com

What we’re up to: Her is helping women meet each other. Right now we’re completely focussed on the lesbian & queer community. We look closely at how women use products and communicate differently, to create an app that makes it as easy as possible for women to start talking to each other. No matter where you live in the world or what your sexuality is, we’re the app that helps you meet other women.

We’re coming out of YC now & have previously been funded and are looking for more team mates as we’re growing real fast.

Senior Full Stack Engineer:
* Go
* PHP
* MySQL

Interested? robyn@weareher.com
Remix Mini – The World's First True Android PC
Interesting. Although I could afford it, I never allowed myself to hire cleaners because I refused to explore a person to clean my own mess. My mess, my responsibility, I clean it. It's interesting to know that people would willingly work with cleaning even if they have other options.
There are probably 10 countries whose average citizens enjoy a standard of living higher than your average American.
>So you are free to spend the lunch hour however, also visiting your home and children.

Sure, if my job is very close to my house. Otherwise it's an hour spent neither working nor at home.
Here's an even more gross simplification:

All that great free stuff you want ? You will pay for it. Probably in ways you didn't imagine.

Go look at the economic flows (not the details, just the gross flows of resources) between master and servant in pre-revolutionary france ... now compare those resource flows to those proposed in a utopian "minimum basic income" society.

Those resource flows are the same.

EDIT: to be clear, I am not knee-jerk-opposed to MBI schemes - I find them somewhat intriguing. I'm just wary of them because they introduce a dynamic that ends up being very similar to other dynamics that have, in the past, been quite bad.
So what's Reddit's take on something like this?
Size matters. Switzerland shall be compared to Singapore etc instead of US.
I work there.

It is indeed expensive but salaries can change wildly depending on your position.

I think I could afford to go out and eat out but I decided not to. This way I save money to bootstrap my own thing afterwards and I can find some free time to teach myself the skills I will need to do so.

The procedure to start a venture depends on the canton, expect to put in at least 10k to start, plus whatever the notarial fees will be. I do not think I will be incorporating here.