Better HN
topnewbestaskshowjobs
Log inSign up

native_samples

1,350 karma · joined Jul 1, 2021 (5y ago) · 1,370 submissions

Submissions

comment 5y ago · link · parent

High performance JIT compiling VMs don't use a GIL, they use a different trick called safe points.

The compiled code polls a global or per-thread variable as it runs (but in a very optimized way). When one thread tries to change something that might break another thread, the other threads are brought to a clean halt at specific points in the program where the full state of the abstract interpreter can be reconstructed from the stack and register state. Then the thread stacks are rewritten to force the thread back into the interpreter and the compiled code is deallocated.

The result is that if you need to change something that is in practice only changed very rarely, instead of constantly locking/unlocking a global lock (very, very slow) you replace it with a polling operation (can be very fast as the CPU will execute it speculatively).

However, this requires a lot of very sophisticated low level virtual machinery. The JVM has it. V8 has it. CLR has a limited form of it. Maybe PyPy does, I'm not sure? Most other runtimes do not. For the Python community, very likely the best way to upgrade performance would be to start treating CPython as stable/legacy, then support and encourage efforts like GraalPython. That way the community can re-use all the effort put into the JVM.

comment 5y ago · link · parent

Well, CPython probably won't ever get there. But Python as a language maybe could.

The GraalPython implementation of Python 3 is built on the JVM, which is a fully thread safe high performance runtime, and Graal/Truffle provide support for speculation on many things. For pure Python it provides a 5-7x speedup already and the implementation is not really mature. Although at the moment they're working on compatibility, in future it might be possible to speculatively remove GIL locks because you have support for things like forcing JITd code to a safepoint and discarding it, if you want to change the basic semantics of the language.

comment 5y ago · link · parent

I worked on Google Earth for a while, some years ago. It doesn't really make sense to talk about it in the way the article (and presumably movie) does. There are lots of "algorithms" in Google Earth which are critical to its operation.

Probably the biggest unsung algorithmic hero of GE is the image processing and serving pipeline. The actual client tech itself was largely worked out by the time Keyhole was bought (hence the high age of this lawsuit), and the biggest upgrades to the client came mostly in the form of optimizations and support for new features like 3D buildings. What wasn't visible was the enormous amount of work in the infrastructure required to actually process and serve the whole globe's worth of imagery. At the time, Keyhole's processing and serving pipeline just didn't scale to the amount of imagery actually available for purchase. That's no knock on their engineering skills: imagery is expensive and given their business model there simply wasn't a need to process all the imagery that existed. But once Google bought them, they were given a blank cheque and told to quite simply acquire it all. The infrastructure of the time (MapReduce, BigTable etc) were a perfect fit for this problem and allowed a rapid drain of the imagery backlog that had by then accumulated. Over time more and more of the calculations done to the raw sensor data (like ortho-rectification) were pulled in house for cost reasons and to allow further scaling - the satellite imagery providers could easily become CPU bottlenecked themselves.

This sort of article/movie seems ultimately to have some sort of ideological driver, given that its opening thesis is "for every winner, there are lots of losers; the people who blazed the trail for the others to ruthlessly make billions from their efforts". I mean, that's not true is it? This blasé statement implies the tech industry is negative-sum but it isn't even zero sum, it's positive sum: the whole reason it's successful is that it's a massive creator of wealth. The assumption that the big winners in the tech industry got there simply by aggressively stealing everything is so far from reality it surely makes the article closer to propaganda than anything else.

comment 5y ago · link · parent

Let them go or plan to phase them out of the firm regardless of what happens?

These sorts of events keep happening. At this point the pattern is very clear: if you hire very left wing employees then you're building the firm on an unexploded bomb. You can't predict what will cause it to go off or when it will occur, but it seems likely that at some point it will. How do you as an executive build robustness to this type of event? You can't simply "do the right thing" because the left's definition of "right thing" changes on a near weekly basis, and is often so outright deranged that doing the right thing would cause you to end up doing quite evil things to other people. Or you can wait then cave, but that just encourages them and means you'll carry the can for the company's performance even though you won't actually have decision making power, and responsibility without power is a terrible place to be.

So there doesn't seem to be an easy fix, except ensuring you never get into that position in the first place by limiting your intake of very left wing employees. In the current environment it's probably enough to simply make yourself unattractive to these people via public announcements and policy, but for example when WhatsApp was rolling out encryption it was doing ideological screening interviews to ensure they wouldn't hire anyone who would freak out over a hardline privacy stance. Such interviews may quietly become more common. At the very least we should not be surprised if we see a raft of Coinbase style "we are a mission focused company" moves in the coming years.

comment 5y ago · link · parent

Or just not using Linux. He seems to be generalizing from "my setup has unreliable power management" to "software is unreliable". No. Linux PM is unreliable. Macs never fail to wake from sleep.

comment 5y ago · link · parent

Eh. Turbo Pascal was great but I recall the Delphi era definitely having a tick/tock cadence to reliability. Delphi 2 was solid. Delphi 3 crashed a lot. Delphi 4 was better but still didn't reach Delphi 2 levels of reliability. IIRC 5 was a hot mess. That's about the time I stopped using it.

comment 5y ago · link · parent

The biggest upgrade to ads in decades was targeted text ads, which aren't manipulative in any way. They barely have enough space to explain what they're advertising, let alone "manipulate" people. And those ads power the world's most successful tech companies because yep, they provide amazing guidance on what the customer wants!

comment 5y ago · link · parent

Vulkan isn't really messy, it's just a very low level API. The idea is that the OpenGL middle ground stopped mattering a long time ago. If you want to just render some 3D objects then you should use a 3D engine, if you want to write a 3D engine then you want Vulkan.

Agree with the rest though. From time to time, the industry manages to go back to the drawing board and make big simplifications or reliability upgrades, quantum leaps. Java was one example because it combined garbage collection, a somewhat rigorous language, high performance, a clean reset of the toolchain (no messy autoconf/Makefiles) and very robust/well engineered standard library. It was a huge success for that reason: familiar enough to be easy to pick up, but it abstracted or eliminated vast complexity.

SystemD was a smaller scale example of a Big Simplifying Reset in the UNIX world.

But these sorts of things come along rarely, and entropic decay into ever more complexity never stops.

comment 5y ago · link · parent

It seems much easier to find examples of the first two than the last two, really. I've been programming now for 30 years. Here are just ten of the major improvements the industry made to software reliability in that time, on its own, without government intervention of any kind:

1. Unit testing.

2. Garbage collection (no more use-after-free bugs).

3. Stronger type systems.

4. Then stronger type systems with usability close to that of dynamic type systems.

5. Widespread usage of encryption, signing and sandboxing (hacking being a subset of "stuff that makes software unreliable").

6. Exceptions with useful stack traces, that in some cases can be caught allowing the program to proceed. For example, my IDE doesn't totally die if a plugin hits an assertion whilst analyzing code, it just means that plugin doesn't get to contribute to my editor session.

7. Tightly specified memory models like the JMM.

8. Excellent monitoring platforms.

9. State machine replication like Raft, allowing for entire datacenter outages to be made nearly invisible to end users. Result: Google servers are now more reliable than the internet itself.

10. Ultra-stable operating systems like Linux. In 1995 the most popular OS couldn't manage an uptime of more than ~45 days. Today you can hotpatch the kernel without a reboot.

There are loads more like this. Software today is drastically more reliable than it once was. Meanwhile, what has the government done? I'm trying to think of some, but they've all been failures or actually made things worse. In the security realm, we can thank governments for things like FIPS cryptography, which is hardly relevant outside places where it's mandated because it takes so long to approve what are clearly upgrades. Governments can't even get reliable software out of their own contractors - they're in no position to lecture others on how to do it right when they can't even get their own house in order.

But it's not enough to only consider what governments do for reliability. We must also consider what they do against it. There unfortunately the karmic balance is deeply in the red, because governments routinely stockpile exploits then lose control of them, undermine cryptographic standards and so on. They actually like software being unreliable because they see bugs as weapons. A big part of Google's Project Zero is about imposing software reliability against the will of governments.

comment 5y ago · link · parent

Flip it around: why aren't you the one engaging in confirmation bias?

Look at the comment down-thread. Only 44% of a set of highly cited clinical trials had been successfully replicated and 32% appeared to be wrong when replications were done. That's for clinical trials, let alone stuff like social psych! Given a random clinical trial it is in fact pretty reasonable to assume it's wrong, and might even be rational, given that you'd hope highly cited and impactful studies are more likely to be correct than not.

But don't take my word for it. Take it from a former editor of the BMJ:

https://blogs.bmj.com/bmj/2021/07/05/time-to-assume-that-hea...

"Science" really is just that terrible, unfortunately.

comment 5y ago · link · parent

The Nordic countries have removed Moderna from circulation for younger people because it kills them more than COVID does. Are you going to claim all those governments are in the grip of "Q-like emotively loaded disinfo"?

Lasting side effects: of my girlfriend's friends, 4 of them still have periods that are disrupted or entirely missing months after the vaccine. As far as the establishment is concerned, that's impossible and never happens. Do Not Fear Because The Vaccine Is Perfectly Safe And Definitely Does Not Impact Fertility In Any Way, Citizen. Except it obviously does, and it must be happening at scale, because on the incredibly rare occasions a woman manages to get an article published on this in the news media they invariably seem to mention that it affected both them and many of their friends too.

Your belief that all these sorts of real events we can observe with our own eyes are "disinfo" is dystopian.

comment 5y ago · link · parent

You're conflating "hostility towards science", which doesn't really make sense as a concept and isn't actually widespread at all (unless you count New Age woo type stuff), with "hostility towards specific scientific institutions and their staff" which can make sense for the same reason hostility to any institution or social arrangement can make sense.

Sometimes when you find yourself thinking, maybe lots of people around me are just really, really stupid, it helps to look at analogous situations from other times or places. Do things look different then?

Consider the example of Lysenkoism. It was a strain of thought in the USSR in the 1930s mostly related to biology and agriculture, presented as scientific. And in some ways it was - he made apparently scientific sounding claims about experiments he (claimed he) did around selective breeding, cross breeding of plants etc. But it wasn't actually true and crop yields declined. Unfortunately for ordinary Russians, Lysenkoism became the official biology of the state and all opposition was suppressed. Any scientists who opposed it were censored and "cancelled" (jailed). In its place the media published stories claiming it had led to great harvests in Siberia, and that anyone who opposed it was guilty of "mysticism, obscurantism and backwardness".

Would it have been right for a Russian who knew the truth to threaten Lysenko? Perhaps it's not worth discussing - that would lead to "was it ethical to try and assassinate Hitler" type territory. But at the very least a rejection of it would have been understandable and rational, even though at the time - to someone in the grip of state propaganda - attacks on Lysenko would have seemed like irrational attacks on science itself.

Now you're going to be tempted to argue that people who attacked Soviet biologists and people who attack "COVID scientists" are totally different because obviously COVID science is True, and Soviet agronomy was Not True and therefore there's nothing to learn from it. But we are in the same situation today that the Russians were. Although western media isn't technically state controlled, it might as well be. The media is controlled by people who are extremely loyal to the prevailing state ideology and narrative, to the point that the absurd extremes of media propaganda routinely become memes (let's go brandon!). From within the system it can be hard to tell who is really right, and you should think twice then three times before assuming that you're the one who's got it all figured out.

comment 5y ago · link · parent

The original claim doesn't cite any peer reviewed research.

Nonetheless, there are enough really bad peer reviewed studies out there (which get attention) that it's not insane to willingly assume the worst.

comment 5y ago · link · parent

"The effectiveness of vaccines is far higher if everyone who can be vaccinated is, as the protective effect is multiplicative."

That appears to be a talking point that was just invented on the spot.

No, vaccines don't have any kind of multiplicative effect. How would that work? That isn't what herd immunity means (or are we still not supposed to talk about that concept? I can't keep track). Herd immunity doesn't change the effectiveness of the vaccine for those who took it, it's only meant to be of benefit to people who don't (can't/won't) take it.

Especially there cannot be any such effect from a 100% leaky vaccines that have already entirely stopped protecting people against infection - see the UK stats for proof.

comment 5y ago · link · parent

That's clearly not true given that the number of cases in highly vaccinated countries is as high or higher than before.

Firstly, NBC? They're not exactly going to give you a balanced view, are they. Anyway. The article is about an academic study. Those are near worthless: even theoretical studies with 100% external validity frequently come out too late to be informative. The real world data is what matters here. Perhaps someone who was literally just jabbed spreads it less, but if the protection lasts three months it's irrelevant and misleading to make a temporally unbounded claim "vaccinated people are less likely to spread COVID".

comment 5y ago · link · parent

The scientific method really isn't perfect, unfortunately. It's a collection of heuristics, traditions and methods that's been assembled over time and which is still being assembled. That's why there's such tremendous uncertainty about what the scientific method precisely consists of and requires, and why nobody anywhere in the scientific system is responsible for ensuring scientists actually use the scientific method.

Here are just a few questions that expose the imperfection of the scientific method:

1. Does it require you to do experiments?

2. What P value threshold does the scientific method require?

3. What can it be applied to? Just the natural world? People? Economies? Artificial machines? Is AI research using the scientific method, or is it just engineering?

4. How should uncertainty be treated? Does the scientific method require the use of subjective or objective Bayesian theory, or does it not matter at all?

5. If you build a statistical model, are you allowed to use assumptions? If yes, how many and of what type? If there are no restrictions on it, what stops astrology being scientific?

6. Does the scientific method require pre-registration of studies? If it does, then does it mean every study before this became a common approach were unscientific? If not, then why are scientists encouraged to do it?

Etc.

comment 5y ago · link · parent

Well, it's worse than that.

The "for the good of society" messaging has been very unstable, even moreso than normal for public health messaging. It's been a mix of: the elderly will take the vaccines because they're at high risk and then life can go back to normal. Then it became all adults need to take it to build herd immunity (the concept that in 2020 was supposedly some sort of a-scientific conspiracy theory), then it became life won't go back to normal even with high vaccination rates, then passes were introduced that have an exception for testing i.e. they look like an attempt to stop spread of the virus, but then it became clear that vaccines don't stop the spread yet the passes remained the same or even had the testing exemption removed. Then it became something about hospital capacity but they started firing healthcare workers en-masse, then it became all teenagers need to take it to stop schools closing and/or to protect their mental health (UK justification), but schools closing is itself a government/union policy, now Pfizer is trialling vaccines for babies. So who knows what the justification for that will be. But, we can be sure they'll find one.

It's been less than a year and that's not even all the changes in vaccination messaging, just the ones related to why everyone has to take it even if they don't personally want to. I'm honestly not sure I even got them all. That's been combined with very strong messaging that anyone who doubts the perfect omniscient competence of the public health establishment are crazy loons who need to be purged from society, with some of the nastiest and most aggressive tactics deployed by western governments against their own peoples for a long time.

Really don't see a way to recover trust in vaccination after the rollercoaster messaging over this year. There's no consistency anywhere which strongly implies the collectivist goal is chosen, then scientific-sounding justifications are invented to justify it. By next week this comment will be out of date and more stuff will need to be added to the list.

comment 5y ago · link · parent

E.g. their COVID deaths per capita stats place them at, I think, about position 50. The UK with much harsher restrictions sits at position 25.

comment 5y ago · link · parent

Generalization from experience isn't irrational or specific to humans. It's a basic part of any cognitive process. Animals are great at generalizing from experience.

The reason there are social taboos against very specific kinds of generalization is because in the past powerful and evil governments have implemented horrible policies on the basis of such generalizations. But that's an argument against letting governments pass such laws, not an argument against any form of generalization about groups of people.

In this case, public health professionals have been observed behaving as a group in very specific and abnormal ways over a long period of time. It is not merely reasonable to generalize about public health at this point, it would actually be irrational not to do so.

comment 5y ago · link · parent

The changes above weren't caused by "best practices changing via new information", they were caused by political and ideological imperatives.

I mean, seriously. Protests are incredibly deadly. Not BLM protests, those are fine. No, now BLM has run its course protests are illegal again. Obviously that isn't anything based on "new information", and nor have the other changes been so motivated.

comment 5y ago · link · parent

No, actually, there's still no data that mask mandates work. You can simply look at case graphs for different countries, and try to figure out when mandates were added or removed. It can't be done, although introducing changes to the case curves big enough to notice was the only justification for the policy. Given the short serial interval any mandates should have made a clear and obvious impact on case numbers within days, but that never happened.

"we have to spend a year doing studies to figure out what a little back-of-the-napkin risk analysis shows"

Both risk analysis and the studies proved wrong. The real world data is the ground truth here, because that's what the policies were designed to affect.

comment 5y ago · link · parent

i.e. there is no liability for either of them? The point of granting full approval was so the government could claim that it is no longer be considered 'experimental'. Normally that means the usual liability rules kick in. If not because the usual rules are overridden by other rules elsewhere it would appear the approval was pointless and changed nothing.

comment 5y ago · link · parent

What studies has he fabricated?

comment 5y ago · link · parent

Luckily 1% IFR is an over-estimate by around 10x, may 5x if you use pessimistic assumptions, especially now with the vaccines. UK govt admitted in Parliament a few weeks ago that IFR is now <0.1%

Moreover that number assumes everyone will get infected, but there's nothing deep driving that belief. Scientists don't understand to what extent the immune system can recognize and fight viruses based on prior exposure to other similar viruses, so they just ignore the possibility and assume no such ability exists at all. Yet it's been nearly two years now and I never got infected even after I spent 10 days self-isolating with someone who had it and had symptoms. Most of the population hasn't tested positive despite saturation levels of testing. The assumption of 100% infection doesn't seem to be a very good one.

comment 5y ago · link · parent

Biologically and chemically but not liability-wise, which makes no sense, and is exactly the point the throwaway is making.

comment 5y ago · link · parent

It's telling that this is downvoted, even though it presents actual evidence from an actual SWA employee vs the random speculation found elsewhere in the thread. The cause isn't leanness or MBAs, its pilots protesting against vaccine mandates, by the testimony of an actual pilot who works there.

comment 5y ago · link · parent

NFC is a superset of RFID I think. At least, you can read the tags with the NFC tag functionality of a smartphone.

Edit: oops yes you're right I meant ICAO, IATA is a different airline related organization.

comment 5y ago · link · parent

That claim isn't the opposite of his, though.

Regardless, if I recall correctly Coinbase paid people generously to leave if they disagreed! Pretty hard not to increase attrition with a policy like that.

comment 5y ago · link · parent

Google routinely makes offers to people only for SRE roles even if they want another. It happened to me in 2006 and it sounds like not much changed.

SRE is an odd department inside Google because they want people with an unusually wide mix of skills. They want a lot of people who are software developers and have those skills but who also have networking, UNIX sysadmin and maths skills. The requirements and interviews are/were more intense than for regular SWE roles. My interviewers tested all of those and more. At the end even if you just want to write software you get an offer that boils down to "it's SRE or nothing" because frankly, not that many people want to do SRE work, so they have to be a bit muscular about it. Normally they point out that after a year or two you can transfer if your job performance is good enough, which is what I did.

Anyway this Watt guy sounds like he's blaming Google for not giving him a free choice of roles. That's not a demand made of any normal company. Usually it's understood that companies have particular needs and are looking to fill them.

comment 5y ago · link · parent

When I was young, a Google recruiter reached out to me and I joined the firm. It was the good years and I enjoyed it a lot, learned a lot too. When I was older I quit. I wouldn't want to work there now. The company seems to have changed in deep ways for the worse :(
1
333435
46