Better HN
topnewbestaskshowjobs
Log inSign up

apendleton

4,277 karma · joined Feb 29, 2012 (14y ago) · 994 submissions

Submissions

comment 6y ago · link · parent

The situation I was talking about above is one I've observed in production but don't have samples at the ready for, so maybe I'll give another example of weird antemeridian stuff that doesn't require example idiosyncratic polygons: bounding boxes.

We see cases in computational geometry all the time where people use [min_x,min_y,max_x,max_y] bounding boxes when operating on sets of points or polygons or whatever, usually either (a) as entries in some sort of a spatial index like an R-Tree, or (b) as part of some short-circuit to avoid a more expensive polygon operation (like, if the question is "is this point in this polygon?" if you have the polygon's bounding box pre-calculated, you can first cheaply check if the point is in the box before doing the expensive point-in-poly operation; likewise to see if two polygons intersect, you can see if their bounding boxes intersect first, etc.).

Turns out though, that with the usual naive bounding box math, features like the US or Russia end up with bounding boxes that wrap all the way around the world in the X direction, which makes them pretty useless for those kinds of operations. So then you inevitably think "well, okay, we can have the bounding box cross the antemeridian." But then all kinds of assumptions about bounding boxes start to break down: suddenly your "minimum" can be bigger than your "maximum," and your point_in_bbox function that wasn't AM-aware breaks, as does your bboxes_intersect function. So then you fix those, but it turns out even the process of figuring out what the optimal bounding box of a multi-part geometry that can cross the antemeridian should be is non-trivial; imagining a multi-point geometry comprised of three points spaced equally in the X direction around the world, there are three possible distinct, equally optimally sized bounding boxes one could draw, so it turns out a given set of points doesn't have a unique optimal bounding box anymore either.

Even assuming a set of points does though, you usually end up with an algorithm that looks for the biggest X-direction "gap" between components and makes that the part not in the bounding box, and the rest in. But that leads to yet more subtle weirdness: in non-wrapping geometry, for example, you can assume that if you have two sets of points, and calculate the bounding boxes for each, the bounding box of the union of the sets of points is the bounding box of the union of the bounding boxes. But in the wrapping/AM-crossing context, that's not necessarily the case anymore: your points could combine in such a way that that optimal largest "gap" is now in a different position, and you have a totally different bounding box over the combined sets of points than you would over the combined bounding boxes.

etc., etc., etc.

None of this is impossible to handle, but it's sort of akin to those "things programmers assume about dates" blog posts: most people, and especially people who live in the continental US, just don't think about any of this, and don't encounter it in US testing, and then their code totally breaks in bizarre ways once usage extends to other parts of the world because these corner cases are unaccounted for.

comment 6y ago · link · parent

Explaining it in terms of points and distances is an effort at making the content accessible, but the issues arise when you're dealing with complex shapes, which might not be able to be unambiguously represented: given a sequence of points representing a polygon, it will not always the case that the shorter line connecting two points is the intended one, for example. And it's possible to contrive examples where you have two such shapes, where if you assume that each consecutive pair of points signifies an edge that's the shortest possible line between those two points, and then you naively calculate the intersection of those two polygons, you can end up with a situation where your new, intersected polygon (under the same set of assumptions) has lines that suddenly go the other way around the world. It can get really gnarly really fast. As the article suggests, most people just give up and split the polygons into pieces.

comment 6y ago · link · parent

You still have a discontinuity, you've just moved it from the antemeridian (+/-180 degrees) to the prime meridian (0 degrees). The issue isn't the sign, it's the wrapping.

In a lot of ways, this is actually worse. Lots of software can ignore problems posed by antemeridian-crossing geometries because in practice, not that many people encounter them (not many people live there). This would move any problems to the middle of the UK, plus a good chunk of west Africa.

comment 6y ago · link · parent

But there are programs that focus on access to resources based around class, and to the extent that there are factors besides class that matter (like race), exclusively-class-oriented programs fail to fully level the playing field. That this program exists to help combat bias doesn't stop someone else from starting a different program aimed at attacking a different angle with different eligibility criteria. The more the merrier.

comment 6y ago · link · parent

> As far as I can see, this doesn't exist in the tech world (any more)

Bluntly: there's probably a lot that you can't see.

comment 6y ago · link · parent

> Aren't these the real reasons why people are disadvantaged?

No, or at least, not exclusively. There's tons of social science research in which, for example, two identical fabricated resumes were submitted for a battery of jobs, differing only by, say, a headshot of a black vs. white person, or a stereotypically-African-American name vs. a stereotypically white (or not-obviously-race-signaling) one. In these studies there are huge differences in response rates and callbacks, even when everything else about the resumes (educational attainment, experience, etc.). is identical.

It's true that many black people suffer structural disadvantages because of systemic lack of access to resources, etc. But they also suffer disadvantages because they're black.

comment 6y ago · link · parent

I get the sense that a lot of the distinction is that at SpaceX he has a by-all-accounts extremely competent lieutenant in Gwynne Shotwell running the day-to-day operations and probably, to some extent, helping keep him grounded, whereas it has always seemed like there's been a bit of a non-Elon leadership vacuum at the top at Tesla. To the extent that there has been other top management, they don't seem to last that long, and seem to have trouble earning his trust, which I imagine makes challenging his nuttier ideas harder to do.

comment 6y ago · link · parent

I believe these are cases where the publication itself didn't nominate the piece or author for consideration as typically happens, but the board decided to consider it anyway.

comment 6y ago · link · parent

Prophylaxis is for people who are currently negative (it's pre-exposure, not post). You need to give them the medication (or a placebo) and then wait long enough for a significant fraction of each group to have had an opportunity to become infected, so you can meaningfully compare the trial group with the control group. They're all wearing PPE and such anyway (both groups), so not that many are going to seroconvert even in the control group in just a couple of weeks.

comment 6y ago · link · parent

There's some evidence now that viral load peaks in the first week, and it's the second week that tends to be a problem for people with very serious cases. By the time many of these patients are hospitalized, their viral load is already going down on its own, and their serious complications are either due to immune overreaction (the so-called "cytokine storm"), or some sort of opportunistic co-infection like bacterial pneumonia.

It's decently likely from what I've been reading that there might end up being effective pharmaceuticals for each stage, but that they'll be totally different from one another: maybe HCQ and antivirals like remdesivir or favipiravir early, and maybe immune-modulators like tocilizumab or even corticosteroids in this second phase. But again, the devil will be in the details, as it looks like HCQ doesn't work late, and steroids or other immune modulators might be actively harmful in that first stage when the virus is still surging.

As for mechanism: nobody is really sure. HCQ does have some immune-modulating effects (that's what makes it useful for lupus), but there's also speculation that it might have some effect on the interaction between the ACE2 receptor and the coronavirus spike protein, and so somehow inhibit viral entry (see, e.g., https://www.nature.com/articles/s41421-020-0156-0).

comment 6y ago · link · parent

Yes, different arms will have data available at different times. The prophylaxis one might take longer than the others, but for the ones involving sick people, once they hit their target enrollment (which probably won't take long at all), those people will either get better or they won't.

comment 6y ago · link · parent

Personally I'm witholding judgment until the results of the PATCH trial (https://clinicaltrials.gov/ct2/show/NCT04329923) arrive, as it'll finally give us some decent statistical power, and be a full, double-blind RCT. It also has multiple study arms (health-care worker prophylaxis, home-quarantined early stage, hospitalized later-stage), so if it turns out that HCQ is effective but that by the time patients are hospitalized it's too late, as some are now suggesting, we should finally know with some degree of certainty.

comment 6y ago · link · parent

That's probably not significant for Starlink specifically, as they're constrained by fairing volume rather than maximum payload mass (which is to say: even if they weren't recovering the booster, they wouldn't be able to increase the number of satellites).

comment 6y ago · link · parent

This is true for any way of providing for retirement, though. Eliminating pensions just transfers the risk from companies to individuals. It's clear why companies would want this, but not clear it's societally beneficial.

comment 6y ago · link · parent

We'd only get to see the financials of Starlink, not of SpaceX (that's a big motivation of spinning it off).

comment 6y ago · link · parent

> both nearly went bankrupt, and both were eventually acquired

Nitpick: in Bombardier's case at least, these were separate events. The acquisition wasn't to deal with bankruptcy (they got a Canadian government bailout for that), but rather to gain access to Airbus's US manufacturing facilities to avoid import tariffs on US deliveries, which became necessary following a Boeing anti-dumping complaint that would have made the C-Series prohibitively expensive to US carriers.

comment 6y ago · link · parent

I think it's probably just that if you wanted a general-purpose large-volume cargo aircraft, this isn't what you'd design. They wanted a thing that fit very specific, odd dimensions for a particular aircraft wing, and also didn't need very many of them, so they wanted to graft this all onto an off-the-shelf airframe. It ends up having what's probably an aerodynamically suboptimal shape, but Airbus doesn't care because at their low volumes, taking the hit there is easier than designing a new aircraft from the ground up that they'll only ever need a few of. Elsewhere in the industry, this particular shape probably isn't common, and if it were, there would be demand to design something better.

comment 6y ago · link · parent

That's all undoubtedly true, but fortunately, most flights don't require the capabilities of an A380, and in fact, demand for that specific set of capabilities is apparently low enough to stop building them altogether. Even for A320 flights, most are not 3500 miles, even if the aircraft is capable of it.

If we could make progress targeting just short hops targeted by DASH-8s or CRJs or whatever, we could still make significant progress, even if it meant leaving the longer-haul flights alone, or targeting their emissions with different technologies (synthetic fuels from carbon capture, maybe).

comment 7y ago · link · parent

> The money will quickly flow to employees and then to everything else.

Sure, I never said it was the rich people that had to do the spending, so we don't disagree there, but if "inflation" as commonly measured (CPI, say) is to occur, the prices of consumer goods have to change, and someone at some point has to buy some, whether it's the rich people or their employees, and if it's the latter it requires that the former sink their money into something that employs people. The author suggests that this happens less reliably than it used to (that they hoard cash, or I dunno, gold? whatever -- something societally unproductive)

comment 7y ago · link · parent

> claiming the money supply is essentially unrelated to inflation

I don't think this is the actual claim. The key quote is this (emphasis mine):

> Doubling the amount of gold in a country will have no effect on the price of cheese if you give all the gold to rich people and they just bury it in their yards, or use it to make gold-plated submarines

It's not that they're unrelated, it's that increasing the monetary supply is a necessary but not sufficient criterion for inflation to occur. I don't think the author would likely deny that printing boatloads of money resulted in inflation in Zimbabwe or Venezuela, just that if you increase the monetary supply specifically by giving it to rich people who hoard and it never gets spent on consumer goods, it won't affect the price of consumer goods. That's not how it went down in Venezuela, but is (the author asserts) what kept QE from working.

comment 7y ago · link · parent

Yes, this is apparently an upgraded version: https://spaceflightnow.com/2019/11/10/spacex-readies-upgrade... that has gone from 95% to 100% demisable, and also has Ka band antennas in addition to Ku.

comment 7y ago · link · parent

Anything you could do it with it would have capital costs. Maybe it's transient enough that that money would be better invested elsewhere. Like, if you only run your cryptocurrency mining when the price is negative, your capital is stuck in an idle asset most of the time, and if you run it all the time, it's the average price you want to consider, not the minimum price (even if the minimum price is negative), and my guess is that Australian electricity isn't cheaper on average than other kinds of power other places (especially places with lax environmental regulation).

Another way to think about it: uses like those you propose that can soak up excess energy in the grid are exactly why energy markets are allowed to float, and even to go negative. If there's a surplus, they want you to use it, and if it were economical to store it and sell it back to the power company later, both they and you would benefit. That this isn't common suggests that it isn't economical.

comment 7y ago · link · parent

They didn't scrap it exactly, they just relegated its function to use as an emergency propulsive abort system. But the Dragon 2 still has the super dracos... and one of them exploded, causing the loss of a test vehicle, a few months ago, which has resulted in timeline setbacks to the program. It doesn't seem like reliability has been a walk in the park there either.

comment 7y ago · link · parent

I would say start here: https://en.wikipedia.org/wiki/Eight_Magic_Words and amend as necessary.

comment 7y ago · link · parent

They can't appoint people, but they could change the quorum rules to allow the currently sitting commissioners to regulate. It would require Presidential signature, though, or enough votes to override a veto.

comment 7y ago · link · parent

I don't know why it would be any different constitutionally from false advertising in any other context. It's not a crime per se, but false advertisers can be held civilly liable for misleading consumers, and individual consumers can sue false advertisers, as can the FTC on the public's behalf (presumably it would be the FEC instead, but work similarly). The court system (so, presumably a jury) decides whether or not it's false.

comment 7y ago · link · parent

Leaving aside the question of whether or not the FEC should regulate social media ads (and personally I think they should), as a practical matter, they can't for the time being. As of a few weeks ago with the resignation of a commissioner, the FEC lacks quorum, and the administration apparently isn't planning to appoint any replacements for the time being, which means they can't issue rules governing Facebook or anyone else, nor can they initiate enforcement actions or investigations, or issue advisory opinions about what campaigns or companies should and shouldn't do to comply with existing rules.

comment 7y ago · link · parent

As someone who does have this merger, which one (of Mary/marry/merry) does "wary" most resemble for you?

comment 7y ago · link · parent

This is backwards. The system is set up to make it impossible for players to both be successful students and successful athletes -- they're expected to spend most of their time on sport. That that's the case is absurd, but placing the onus on the students to rectify the situation bizarre; they have the least power of anyone involved. The onus should be on the schools.

Universities' principal missions should be pedagogy and research. If college sports as they now exist require hampering students' ability to learn (or, I suppose, do research), having those sports teams and operating them the way they do is in conflict with what should be their mission, and they should stop having sports teams.

comment 7y ago · link · parent

> Obviously this article is not referencing the full V8 engine, but a light version that may or may not make it into Chromium

Obviously? Right from the second sentence, the article says:

> Initially this project was envisioned as a separate Lite mode of V8 specifically aimed at low-memory mobile devices or embedder use-cases that care more about reduced memory usage than throughput execution speed. However, in the process of this work, we realized that many of the memory optimizations we had made for this Lite mode could be brought over to regular V8 thereby benefiting all users of V8.

1
91011
34