Better HN
topnewbestaskshowjobs
Log inSign up

origin_path

526 karma · joined Jul 4, 2022 (4y ago) · 705 submissions

Submissions

comment 4y ago · link · parent

Yes, I know C++, I didn't say that's the only way to allocate objects in C++, just that if you do write a heap allocated object that has virtual methods (a pretty common thing to want to do), then the metadata for that will be larger than 64 bits. Your malloc storing metadata non-adjacent to the allocation doesn't change the fact that there is some, and it has to be stored.

comment 4y ago · link · parent

If you look at the tricks needed to shrink it to 64 bits then you'll see why this is hard. Consider that this object header has to contain:

- GC state bits.

- The class metadata, i.e. pointer to a Class<> object.

- Lock data, including possibly a pointer to a lock.

- Possibly, an identity hash code.

- Possibly, a GC forwarding pointer.

Several of these are pointers! If you're on a 64 bit machine, just

one* of them implemented naively if immediately 64 bits. In other words Java object headers provide a lot of stuff.

To pack the whole thing down to just 64 bits requires a lot of clever implementation tricks, exploiting what exact combinations can appear, etc. Also note that this overhead isn't Java specific. In C++ you have malloc headers and then the C++ vtable pointer, in many cases. So just running "new SomeObj()" in C++ will immediately blow you past the heap overhead of Java after this JEP is merged, and if you need to add a lock and/or reference count to catch up with the Java feature set then you're at multiples of it.

comment 4y ago · link · parent

ART and Dalvik bytecode doesn't change the Java memory model in any way, though.

comment 4y ago · link · parent

I think the bar to a "WTF" reaction here is lower because this is the sort of thing we've come to expect from Go. I'm in the same boat as jstimpfle where I looked at Go some years ago, found it to be remarkably quirky for a relatively traditionalist language that isn't trying to do lots of new ideas, and haven't yet regretted staying away.

It's not just this bizarre gotcha (the fact that C# had it too doesn't make it OK). It's that Go has so many of these cases where they took very strong positions on things and then later reversed their position only after many, many years:

- Generics

- Only one gc knob

- No backwards incompatible language changes

Also, Go has been around quite a long time now and we've all read quite a few rants about its surprising cases. How comes this one never came up before? The thread provides evidence that it bites people regularly. It suggests to outsiders that you can't easily evaluate Go by reading about it because there will be sharp edges that people aren't talking about simply due to the quantity of things that are even worse.

comment 4y ago · link · parent

Are we? Most AI models that people know about are proprietary, with some (Google's) so proprietary they won't even provide API access to them.

Yes, Stability AI is doing great stuff with making this tech freely available for now, but it's not clear how sustainable that is in the absence of large VC funds. The players with the bigger more stable budgets are going the proprietary route.

comment 4y ago · link · parent

Seen another way, SerenityOS is almost entirely built on the work of others. Code isn't the hard part in any software project, it's usually the design and architecture that's the hard part (the source of competitive advantage).

The reason Andreas was able to build a community around SerenityOS so fast is the same reason Stallman/Linus were able to do so - everything about it is a direct clone of designs proven out by commercial OS vendors. The core is UNIX (well understood) and the GUI is Windows 2000 (well understood). The code may be fresh, but even there, it is just an ordinary C++ based OS, as conventional as can be. This means working on it is fun for the developers because there are relatively few debates over direction or design, and little risk - you know what you're getting right from the start.

But to claim that such a project is doing it all from scratch zero-rates the design aspect, which seems wrong.

comment 4y ago · link · parent

Huh, no they can't. Reducing malaria deaths can be extremely immoral depending on how it's done. And this is no mere academic problem. Some attempts to eradicate malaria have been ethically dubious e.g. bulk spraying whole areas with anti-malarial drugs. If it works, great, you eradicate it (in that area). If it doesn't you just bred and unleashed drug-resistant malaria on whole populations.

comment 4y ago · link · parent

Analysis of electric lights at night observed by satellites normally correlates well with GDP, but in the case of China it doesn't. It indicates that GDP was being over-reported significantly:

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3093296

comment 4y ago · link · parent

Yeah, totally mental. Me and the rest of the country, mate. The part you quoted is by far the least controversial aspect of anything I've said. In 2019 these problems weren't happening to anywhere near the same extent. Once lockdowns hit getting appointments has become drastically harder and this is widely reported.

comment 4y ago · link · parent

I want to be as optimistic as you, I do. At the moment I'm not though. My perception of things like the push for replication or pre-registration is not as a one-way ratchet towards progress, however slow moving, but more like pushing down on a blob of mercury. The problems aren't actually solved but simply get moved around by an academic community that deep down doesn't want to improve, only to create enough of an appearance of improving to dispel criticism.

For example, there was a big push to give people access to the raw data. Researchers were made to sign data availability statements. The appearance of improvement was created. Then one day someone decided to test if these statements meant anything and discovered they did not; compliance was extremely low [1].

This seems to be how it goes. After over a decade of noise about P-hacking and low replicability in the social sciences, estimated replicability of studies has hardly changed, nor has statistical power improved much [2].

And these are the subtle problems that people don't mind talking about because the problems are sufficiently opaque enough that the general public doesn't pay much attention. During COVID we saw just how deep and serious bad science can get. Climatology isn't better. P-hacking is an irrelevant concern if you aren't even comparing your hypothesis to actual data to begin with (c.f. computational epidemiology), or if your response to a hypothesis/data mismatch is to edit the data (c.f. surface temperature datasets). Poor replicability is likewise irrelevant if the supposedly top researchers in a field can't implement a model that can even replicate its own outputs, and literally nobody anywhere within the institutions cares!

The core problem here just doesn't seem to be something you can fix with this kind of incremental approach on top of the academic basis. You get the temporary appearance of progress in one or two fields where noise is being made, but it's fake and falls apart the moment someone examines it deeply or looks at a slightly different field.

Ultimately, academia doesn't institutionally care if the output of its professors is correct, only that output happens and gets attention. You can't fix this by requiring more forms to be filled out; these people are smart and have all day to find workarounds. For as long as their position and status in society revolves around creating mass/public perception that they're doing intelligent work, vs actual hard-nosed evaluation of said work by independent but deeply interested outsiders (e.g. companies that want to build things), we will continue to be disappointed by the failure of reform efforts.

[1] https://www.jclinepi.com/article/S0895-4356(22)00141-X/pdf

[2] https://fantasticanachronism.com/2020/09/11/whats-wrong-with...

comment 4y ago · link · parent

That only applies to posts where the writer has opted in to the paywall, right? If they want their content to be free, Medium will host it for free.

comment 4y ago · link · parent

Pre-registration is becoming more common but unfortunately, it isn't enough. For it to work there's an implied second stage: journals and other funding gatekeepers have to commit to blocking research if it doesn't actually implement the pre-registered plan. This does not seem to be happening reliably, or at least it's relatively easy to find counter-examples.

There's also a lot of scope for drama and problems at that second stage, because there can be a lot of wiggle room in whether what was done meets or doesn't meet the pre-registered plan. It might sound easy to follow a pre-written plan but for instance if what you're doing turns out to need adjustment due to discovering something you hadn't anticipated, then technically you might violate your pre-registration. In turn that can yield perverse incentives to not fix things.

Having been through a few rounds of "here's a new procedure that will yield better science, oh no it isn't really working" I'm not really enthused anymore by this kind of tactical fix. From a software dev perspective it's sort of like constantly hot-patching a system in prod to try and cover up bugs when the underlying problem is actually bad architecture that creates too many bugs in the first place. Getting overly fixated on P-hacking or non-replicability distracts from the deeper underlying problem of a mis-specified utility function.

Example: replication was meant to be the big hammer but most studies still aren't being replicated and when they are they sometimes use lax definitions of "replicate" that wasn't what people had in mind, e.g. they'll get an effect size 10% of what was originally reported and still label that study "replicated" or they'll get totally different numbers but claim that because the trend is sort of similar, that's replication.

comment 4y ago · link · parent

They don't use FORTRAN because of efficiency or emissions reductions lol, they use FORTRAN because they always did and the sort of scientists who do modelling rarely see any reason to upgrade their skills or tools.

Programming is something scientists tend to study only as far as needed to get results that look right. This is how the most influential COVID model ended up being a 15,000 line student-quality C program with hundreds of single-letter name global variables.

comment 4y ago · link · parent

The US is the opposite of a third world country.

comment 4y ago · link · parent

You claimed the budget didn't keep pace with population growth but it more than did. Even an aging population doesn't change needs by such a large amount.

comment 4y ago · link · parent

A common claim but utterly wrong. Population grew by 6.3% since 2011 years:

https://www.ons.gov.uk/peoplepopulationandcommunity/populati...

NHS budget grew in the same period 53%

https://www.kingsfund.org.uk/projects/nhs-in-a-nutshell/nhs-...

Even if you ignore the massive injection for COVID it grew 39%. The NHS has far more money per pop than ever before in its history yet it cannot meet even the most basic expectations that a third world country would have, like people actually being seen by a doctor in a timely manner if they collapse on the street and an ambulance is called out. Let alone less urgent stuff.

That's why the idea Palantir or any company would ever want to "steal the NHS" is delusional. The NHS is a bottomless bonfire of money, it's the USSR in healthcare form and works just as well. The more money it gets the more dysfunctional and broken it becomes. Nobody in their right mind would want to steal such a worthless thing.

comment 4y ago · link · parent

Father is in the North West.

comment 4y ago · link · parent

The NHS hasn't been defunded. Check my other comment on this thread - NHS funding has never been cut and has risen far faster than the population size has. The collapse here wasn't a slow event anyway, it has very clearly been triggered by lockdowns/vaccines. The near closure of the health service in a failed attempt to slow the spread of an airborne virus created a backlog, forcing vaccines on the care home industry caused a lot of people to quit exacerbating an already existing bed blocker crisis, and now the ambulance services are being overwhelmed by a sudden and (officially) "unexplained" rise in callouts for heart attacks, strokes etc. What could possibly cause that I have no idea.

And the NHS isn't being privatized anyway so no clue what you're even talking about. Privatizing it might start to fix it. Good luck getting contracts that pay you by size of your patient list and not how much work you actually do, in a properly privatized system!

comment 4y ago · link · parent

Laptops have batteries that can ride out a power failure of typical duration, especially for non-dev workers. People can get a lot done without the internet.

comment 4y ago · link · parent

It's because people install malware a lot. Usually it comes along for the ride with pirated software, creating a 2x headache. I remember when they introduced similar policies at Google for Windows workstations - the stated rationale was that Windows users would warez literally anything and this was independent of job role or position. Senior engineering managers would be warezing things and it would come bound to malware. So they moved to binary whitelisting, eventually :(

Linux avoids this problem mostly because it doesn't have much commercial software to pirate in the first place.

comment 4y ago · link · parent

They can have it. It's broken anyway. Even the basics don't work anymore. My father can't get an injury looked at. After weeks he got a doctor's appointment, doctor says he needs tests at the local hospital. Local hospital doesn't pick up the phone and only has a webpage for booking appointments, said page simply says there are no appointments available. As in, permanently. Not like, no slots in the next few weeks. As in, the site won't let you book appointments at all.

The injury doesn't seem to be healing and I'm getting worried. It's not an emergency but the sort of thing that maybe can fester and get worse. They're starting to talk about going private but it seems everyone talks about that now so I'm not sure it's so easy.

comment 4y ago · link · parent

It's curious how every single fake profile is of a woman. Suggestive of honey trapping, perhaps, but then why so many accounts.

comment 4y ago · link · parent

Very well. Google deciding to back it for Android wasn't some bold, out there decision. Android developers could already use kotlin, because of its Java interop. Google was just responding to pre-existing demand that the community was already generating.

That's why I don't think it makes much sense to treat kotlin in the same category as the other languages. Sure, it's a programming language, but the way JetBrains executed on it with its easy upgrade path from java and really excellent design, not to mention the toolchain, mean that it's success and trajectory cannot easily be generalized to other "weird languages".

comment 4y ago · link · parent

You know safesearch is optional, right? It even disables itself if it knows you're looking for porn. There is nothing that stops children from overriding it.

As for learning from the timnit thing I'm pretty sure the only thing people outside Google learned from that is that Google ai "ethicists" all seem to be crazy. Certainly that's the clear vibe on this thread.

comment 4y ago · link · parent

How? Rick says I did not do this, it's an ai fake and I'm being harassed. At that point, assuming people believe Rick, then it's likely he'll receive sympathy and support rather than considerable harm.

So there seems to be an implicit assumption here that the risk is faked material where people don't believe it's fake, for some reason. And the fix for that would be to ensure that the easy to use versions of generators are watermarking or otherwise recording what they made, so it's easy to find out if something was faked. That doesn't help of course if you're up against a programmer who can make awesome deepfakes locally with open source software and a great GPU but then we're back to the debate about costs because of course, if you to against well funded experts they could already do this sort of thing. In reality it doesn't happen.

comment 4y ago · link · parent

Of course it was binding and involuntary, as the EU is now proving by binding the ones that didn't volunteer. "Do it or else" doesn't make it voluntary because the institution doing the "or else" part is slow.

comment 4y ago · link · parent

But note that market development is only possible because the EU's reach is limited and it doesn't have any phone makers of its own. Technological progress requires market fragmentation, because progress doesn't turn up on everyone's doorstep simultaneously. So the EU is betting that it can engage in trivial populism like this whilst not losing out on any actual progress, because other parts of the world will 'bail it out' and continue researching such tech. Of course, it just solidifies the situation in which the EU has a pitiful tech sector because why bother introducing new ideas to the market when the EU might at any time randomly ban "fragmentation".

comment 4y ago · link · parent

Please don't refer to the "legislative branch" of the EU. The EU doesn't implement separation of powers like most governments do. Laws like this originate with, are passed by and are enforced by the Commission.

There is a so-called Parliament. It's more like the US House of Lords power-wise. It can slow down legislation or tweak it a bit. It can't actually change the law, which means it's not a Parliament.

There is a set of courts. You can appeal to them against the decisions of the Commission after the punishment is enacted. Unlike in normal democratic systems of government, the government doesn't have to prove guilt in a neutral court of law. They assert guilt, fine you a few billion dollars and then if you have enough money left over you can appeal in the courts. Years will pass and if you eventually win, you might get the money back. Of course the Commission might then just fine you again - the rules are vague and being in compliance essentially political. The courts also have a history of activism and 'discovering' new laws in the texts of existing laws.

The EU is structurally and philosophically a Soviet-style system, which makes sense given its origins in the Ventotene Manifesto. Like all such systems it has institutions that use the names as western democratic institutions, but on close inspection the rules are sufficiently different that they aren't effective.

"we have a society here and it demands concessions"

"Society" doesn't care about phone connectors or make demands. Governments do that. Survey the populations in EU countries and their top priorities are nowhere even close to this. They mostly care about the economy, immigration and climate change.

comment 4y ago · link · parent

Your first case doesn't have any relation to diversity officers, that's a matter for the courts. The outcome would have been the same regardless.

The US has bad healthcare outcomes for a lot of reasons unrelated to their health care system, like obesity - a problem for the UK too. It's not due to basic, fixable stuff like "the hospital has no appointments" or "doctors aren't under any obligation to actually serve patients".

"That guy could have got emergency health care - he could have walked into an MIU, or an ED, or he could have called 999."

The 999 service that's also in collapse? He'd have been told to piss off and stop wasting NHS time because it wasn't an "emergency", as it'd already been mis-diagnosed as something trivial. He didn't realize how serious it was until it was already far too late. Why are you trying to defend this outcome? It's a terrible, atrocious end for a man who did nothing wrong, and no, this sort of thing is not an outlier. We can see it in the millions of mission cancer diagnoses.

Your last points seem to be continuing the previous confusion. You can abolish the NHS and still have healthcare regulations, although the act of abolishing the NHS is itself an act of de-regulation. It means you have fewer of them, not none.

comment 4y ago · link · parent

Such stories are unique to the UK, as far as I know, and they aren't rare anymore. Maybe third world countries too.

The problem here is real and the causes are clear from history - ignoring history because you don't like it is no solution. My own father now cannot get healthcare in the UK for an injury he has, point blank cannot get it. There are no appointments at the local hospital with no information on when new appointments can be booked, it takes weeks to even see a doctor at all - maybe over the phone if you're lucky. They're talking about going private but all my family members in the UK seem to thinking that at once and the UK private sector is woefully under-provisioned due to decades of near religious pro-NHS fervor and an inability to compete against tax-funded services.

The US in particular is demonized in the UK and it's dumb. Firstly, there are tons of private healthcare systems elsewhere in the world that aren't the US, it's the default mode, not an exception. Secondly, healthcare in the USA is actually excellent. If you have insurance then what's happening to my family just wouldn't occur. All the controversy in the US is around people who can't or won't buy insurance yet who don't qualify for Medicare/Medicaid, and the employer link that is a quirk of their tax code specifically. Phasing out the NHS wouldn't require the UK to bias the tax code in favor of employment-linked health insurance, and it wouldn't mean needing to exactly duplicate their benefits schemes. Those two things aren't fundamental to the private run healthcare model.

1
789
24