Better HN
topnewbestaskshowjobs
Log inSign up

zigzigzag

1,415 karma · joined Aug 11, 2016 (10y ago) · 572 submissions

Submissions

comment 10y ago · link · parent

It's just green threading, which has been around for a long time.

You can run millions of threads on a single machine with modern Linux kernels if you either have lots of memory or simply minimize your stack sizes and usage. The kernel doesn't care much. You don't really need any special language features. The main reason fibers/green threads/goroutines/etc have become popular lately is that common language runtimes and standard libraries don't resize thread stacks on the fly and tend to like very deep call stacks, so minimising your memory usage can be rather hard.

comment 10y ago · link · parent

Like where? Even the best JVMs do basic counted profiling of branches only, as far as I know.

comment 10y ago · link · parent

It'd be really interesting to see a performance analysis of what's going on there. Is it just a weaker CPU or are the apps less optimised as well? The two phones were comparable right up to the time they loaded a game and it just fell behind further and further from that point on. Why is loading that particular game so much slower? The developers didn't care to optimise it?

edit: The article points out that the resolution of the Samsung display is a lot higher, so it's not quite comparing apples and oranges here. I'm guessing that a much higher resolution is pure win when drawing mostly vector graphics i.e. apps but really kills you when loading games as presumably they're paging in much larger assets from disk.

comment 10y ago · link · parent

Even today, Android and iOS are not comparable in terms of what they allow apps to do, which is why iOS tends to win responsiveness comparisons and Android (still) tends to win feature comparisons, even years after Apple fell behind the features race and started simply duplicating Android's featureset (multi-tasking, notifications drawer, gradually allowing more and more background operations etc).

comment 10y ago · link · parent

You have a really weird set of arbitrary lines in the sand.

So it's totally OK for a single doctor to make huge profits off the NHS when they charge patients for treatment, but if those doctors form a company to share the load and amortise overheads, then suddenly it's a terrible evil that must be forbidden?

And don't get confused by simple word changes: when a doctor turns up at a hospital and does work in return for a large paycheque he is very much "charging a patient for treatment". The fact that the charges come in the form of taxes and take a long route to get to the patient's wallet doesn't alter the fact that the money comes out of the patient's pocket and ends up in the doctor's pocket!

comment 10y ago · link · parent

Just replacing contractors with employees just means it's the employees milking the NHS instead, but now with the downside that they're unionised and hard to switch to an alternate provider.

comment 10y ago · link · parent

I do agree that the UK spends less per head than the US does and gets more for it. But the USA has one of the world's most dysfunctional health systems. Constantly comparing the NHS to it, or worse, implying that people face a binary choice between the US system or the UK system, is a fallacy that ignores the highly capable and often very efficient healthcare systems in other countries. Which don't seem to suffer the same ills of the NHS.

It's also not the case that the UK vs US comparison is one of government vs capitalism. All healthcare systems have heavy government involvement and distortion of the healthcare market, and this is fine, because developed societies always choose these problems over the much larger problem of poor people being unable to afford healthcare.

PFI schemes have not been good value for money and were essentially a trick to hide the ballooning costs of the NHS from a population that can't treat the topic rationally. Unfortunately, too many people in the UK look at this sort of thing and instead of saying "wow our government is really bad at public procurement, we should give them less power" conclude something along the lines of "oh noes, they should have guessed that trying to buy things from companies would lead to disaster - the solution is a fully state run economy!"

All kinds of organisations manage to procure services and investment from the private sector, all over the world, every day ... without problems. PFI boiled down to a complicated kind of loan that let Labour do what it always seems to try and do: massively increase spending on the public sector without raising taxes. No surprise that they paid a very high interest rate for such a thing.

comment 10y ago · link · parent

Let's judge whether they started or not once they actually get somewhere ...

comment 10y ago · link · parent

By "broke" I mean telling the government that it desperately needs more money or else services will start failing.

comment 10y ago · link · parent

If I recall the story correctly, the government sold at a price that had been suggested to them by many highly paid financial services consultants. The fact that the pricing was wrong may or may not have been avoidable, but one of the basic arguments for privatisation is that it's hard to get and keep competent civil servants, so the fact that the final act of privatisation itself is often screwed up is not supposed to be very surprising. Just think how often pricing decisions were screwed up before!

comment 10y ago · link · parent

You talk about "they" as if government is a single group of people.

The fact that the NHS is still fundamentally paper based, in 2016, is exactly the kind of problem that leads politicians to want more use of the private sector. In many private industries, even highly regulated ones like finance, the people who first successfully transitioned the industries to computer based systems are now dying of old age. The NHS hasn't even started. In fact it's fair to say that the NHS has shown no ability to fundamentally improve itself. It deploys new medical techniques and drugs (developed in the private sector) but when it comes to changing the organisation or adapting to new business ideas, like computerisation, it has utterly failed.

This is very frustrating for the politicians who are ultimately held accountable for the performance of the NHS. They sit right at the very top and can hardly influence anything - all they can do is set general directions like "use computers for medical records", and then watch helplessly as the incompetent staff below them screw it up, over and over again. Meanwhile they watch as Google or Facebook go on to build self driving cars and global communication networks.

Worse, as students of politics, they know full well what the reason is: the NHS is a classic, communist style top down command-and-control system. Deep institutional rot is exactly what to expect from such an arrangement. Yet they can't change it because the British have an irrational knee jerk reaction to anything that implies people in the private sector can be equally or more competent than people in the public sector.

comment 10y ago · link · parent

You realise the UK has a large deficit, right? And taxes are comparable to other western countries.

The NHS will never not be broke. Your position is typical of the British left but is entirely meaningless: the government could go into Greek style debt to double the budget of the NHS tomorrow and 10 years later it'd be once again constantly broke.

comment 10y ago · link · parent

Scotland can do this partly because it is heavily subsidised by the English. If the subsidies vanished I think NHS Scotland's performance would be significantly worse.

comment 10y ago · link · parent

Services like the NHS are money pits: no matter how much money they are given they will always be broke, and given the total lack of accountability inherent in the system there will always be regulations trying to improve their efficiency. Thus ANY public healthcare service, at ANY time, will be perceived by some large part of the population as "laden with excessive regulations and budgetary constraints".

This is not some neoliberal conspiracy, it is the natural consequence of any system which allocates money without sufficient accountability.

comment 10y ago · link · parent

No it isn't. Contractors milking their customers isn't an inefficient introduced by privatisation: as brightshiny pointed out, the entirely state employed people were even worse.

Contractors milking their clients is something that competent buyers are supposed to prevent, but NHS procurement is a disaster-zone, as is commonly the case in the public sector. Just look up the different prices paid for basics like rubber gloves.

comment 10y ago · link · parent

Because it's possible for the efficiencies gained to be larger than the profits. For that you normally need competition to keep profits in check. Governments are quite bad at 'designing' markets to have adequate levels of competition but it can happen.

Privatised telecoms markets are the canonical example of this. Not many would go back to the days of state-run telco monopolies.

comment 10y ago · link · parent

The NHS is dripping with profit, everywhere.

The staff make profits. If they weren't making profits then someone would assess how much they needed to live and pay their bills and that'd be the amount they got paid. In practice they get paid, some of them like senior doctors get paid large sums of money that they can then spend as they see fit.

The unions make profits. They charge membership fees and then justify those fees by organising industrial actions in order to increase the profits of the staff.

The equipment manufacturers make profits. Often by charging wildly varying prices for the same goods to different hospitals.

The drug manufacturers make profits. They have to, otherwise they'd not be able to do the research they do. University research is really no substitute.

Without profit the NHS wouldn't exist anymore.

comment 10y ago · link · parent

Yes, exactly. Driverless trains are not technically reaching for the sky, yet deployment doesn't happen anyway due to social factors.

comment 10y ago · link · parent

https://github.com/dmlloyd/openjdk/tree/jdk9/jdk9/hotspot/sr...

comment 10y ago · link · parent

Facebook and Twitter are in competition. And I think you underestimate the complexity of a project like Facebook. It started small, but back then people's expectations were much lower.

If Facebook started charging for its services or otherwise pissing off its users in big and obvious ways, I guarantee there'd be a serious competitor on the streets within months.

comment 10y ago · link · parent

The NYT publishes a steady stream of articles like this one and it's difficult to take them seriously because they are always such blatantly biased propaganda efforts.

A representative sample:

Other countries, notably Israel and the United States, pursue targeted killings, but in a strict counterterrorism context. No other major power employs murder as systematically and ruthlessly as Russia does against those seen as betraying its interests abroad

So America's totally admitted and open drone strike program is "targeted killing in a strict counter-terrorism context" and not "systematic and ruthless murder against those betraying its interests". You say potato, I say potato.

Even the headline is open propaganda: "More of the Kremlin's opponents are ending up dead". So I expected to read news about someone who has newly turned up dead. But no: it's about someone who got sick with the symptoms of food poisoning and then recovered. Although he claims he was poisoned, there was no actual trace of any such poison so all we have is his word for it. The article then quotes an "authority" who says "If it’s a skilled job, that means it’s a state asset". But we already know this guy wasn't the target of a skilled job, otherwise he actually would be dead and not fully recovered from something that could easily have been ordinary food poisoning. Surely the mark of a skilled state assassination is that it works, or at least, the target is left in no doubt as to the source of the sickness?

The rest of the article is re-hashes of previous suspicious deaths, but almost always (with the exception of Litvinenko) without any evidence. An anti-doping official dies of a heart attack. Murder, or something that does sometimes happen to aging men who have just spent the day engaging in strenuous physical exercise? No answers are provided, just assumptions and implications.

On Magnitsky: "To date, five people who either handed over such information or were potential witnesses have died under mysterious circumstances that, in their sophistication, suggest state-sponsored killings. One of the victims was Mr. Magnitsky, whose death was hardly the stuff of cloak-and-dagger security operations."

So it says people involved in the Magnitsky affair suffered "sophisticated" deaths that "suggest" state-sponsored killings. It then immediately admits that one of those five didn't die in mysterious ways at all, but neglects to mention the very much obvious state involvement in his death: he was held in a Russian prison where he developed gall stones due to inadequate medical attention.

I'm completely sure the Russians do occasionally kill off people who get in the way of Russia's agenda. But when I read things like the above I know I'm reading something that's intended to influence my political views, not a neutral re-telling of events.

And before any idiots start up about paid trolls: no, I'm not Russian nor connected to Russia in any way. I'm a westerner who lives in Europe. I just despise western "holier than thou" propaganda. They think people can't see through it.

comment 10y ago · link · parent

Er, either prices float to their natural level and there's no problem (i.e. Uber's profits are reasonable), or a competitor comes along.

Come on, keep some perspective. Uber is a taxi app. We're not talking about a Manhatten Project of software here. Duplicating the Uber experience is easy. 99% of the effort they're putting in there is the fights with all the governments, regulators, taxi unions etc.

comment 10y ago · link · parent

Exactly.

There's another possibility that nobody really likes to think about: automated trucking won't even start for decades or more. The railway industry is a good example of this. Trains run on dedicated pathways with hardly any traffic, they're the perfect example of a system that should be entirely computer controllable.

Yet the world still has many, many train drivers. Computers could have and arguably should have replaced their jobs long before we even started thinking about the infinitely harder problem of cars and trucking, but outside of a few well known projects it hasn't happened because:

1) There are very few computer programmers in the world who can develop and lead ultra-high reliability automated driving software projects.

2) Of those programmers, many aren't interested in rail projects, partly because so many programmers are in the USA and Americans don't use rail much.

3) The companies that need to buy the tech tend to only have civil engineering expertise at the top and no software engineering expertise, making it impossible for them to select the best providers in the market, meaning the market doesn't force evolution towards better technology and project failures are frequent (markets need informed customers and there aren't enough informed customers in the tiny railway industry for this to work well).

4) Drivers unions are very powerful and railways are often state owned or at least heavily regulated, so there's little commercial force of will to pick fights with the workforce.

The London Underground is a good example of these dynamics in action.

Everyone here is assuming that the trucking industry will immediately adopt auto-driving technology if it's available. But that's making some big assumptions.

comment 10y ago · link · parent

It doesn't really make sense. Banditry requires someone to threaten. If there's no driver and the machine is locked in transit anyway, then all you need are doors where time to cut them open is greater than time for police to arrive and banditry doesn't make sense.

Without people you can also do tricks like electrifying the chassis, so anyone who tries to touch it gets an electric shock.

comment 10y ago · link · parent

"Bad driver" has a wider meaning than "has a criminal record".

comment 10y ago · link · parent

Spinup of the JVM is 50 msec or so, for a hello world. Perhaps it's been a while since you tried running a small program on it? I can see why you might think the JVM starts slowly if you only ever run huge programs on it.

comment 10y ago · link · parent

I think you didn't understand Chris' post.

C2 is the HotSpot Server compiler. It definitely does not use LLVM anywhere.

comment 10y ago · link · parent

You'd have to unionize globally though, and that'd be very hard. The incentives to undercut a unionised workforce are massive. Yes there's been some outsourcing but I also know many companies that are squeamish about remote work and insist on having local workers even in high cost localities. Unionised workforce and constant strikes would get rid of that squeamishness double quick time.

comment 10y ago · link · parent

Perhaps this is a geographical problem. I've always had paid time off, sick time etc as a working programmer. But I have been working in Europe. I know Americans get less sick time and vacation time but I'm pretty sure it's more than nothing.

Being subject to too many meetings is a pain but most workers would hardly see it as a major quality of life issue.

comment 10y ago · link · parent

Working conditions for programmers though have become amazingly good without unions or government intervention, just through competition for workers. See the perk inflation in Silicon Valley in the Google years, or just wage inflation in general.
1
1617181920