Better HN
topnewbestaskshowjobs
Log inSign up

usrusr

11,383 karma · joined Apr 22, 2013 (13y ago) · 5,854 submissions

Submissions

comment 2y ago · link · parent

How does all the "executed once on the first request" and video keeps running work in htmx? Is it an SPA, from the browser's perspective, just an SPA that follows the MPA model, in its interactions with the server, basically applying a diff to the SPA state? Not saying that's a bad thing, just trying to understand. Could be an awesome migration path to get some SPA benefits into an existing MPA.

comment 2y ago · link · parent

Did dicerolls in character creation exist in any game outside of Traveller? I vaguely remember a possibility of dying before the first game session. And character ability generally growing with age, so you'd either play a seasoned veteran or a young but clueless rookie. Not surprising at all that the game always struggled, very surprising that it made it through so many iterations nonetheless. (mine was TNE, but never really had a group)

comment 2y ago · link · parent

The as also does not burden the reader with guessing about the absence of unexpected stuff happening in the functions. Don't pepper the code with mostly unused hidey-holes just to perhaps save some busywork later.

If you do add valuation, make it an honest asValidatedAccountId("123"), not an accountIdFromString("123") that may or may not do more than casting.

(PS, very much off topic: speaking of hidey-holes, are any of the AOP monstrosities still operational?)

comment 2y ago · link · parent

Very interesting to see these things observed in numbers. Impressive 80ies peak among us gen X!

My music taste brain was initially formatted by that 1990ies idea of MTV mainstream vs independent (which paradoxically, also defined itself through existing on MTV, just in different niches), and from there it had been a slippery slope towards ever nichyer niche. Stuff where the big hits now have accumulated total Spotify plays in four-digit range, if they do exist there. When eventually I realized that winning at niche one-upmanship is a lonely celebration, what followed was mostly silence.

comment 2y ago · link · parent

Thanks, the part about that area being an industry hotspot after the civil war was completely new to me. From my German perspective, Spanish history with all its disconnect from the three "big stories" of the twentieth century almost feels like from a different timeline!

comment 2y ago · link · parent

It's an amazing success story (even if surely not without any bad spots), it makes me happy just knowing that it exists.

But I do wonder how much of its workability hinges on Basque nationalism rechanneled into something more useful than nationalism usually is. If that nationalism also had something like an independent state as a default outlet, the balance between cohesion and corruption creep might shift just enough across a tipping point. I'm really not sue that it can be replicated (but I'd love to be proven wrong!)

comment 2y ago · link · parent

Amazon seems to be the closest thing, with its studio channel subscription modules. If only it wasn't world-eating Amazon!

(and if only the implementation did not suck: there are shows on "BBC player", of all things, that I can't get with an English audio track, only an atrocious German dub. Some even start perfectly fine and then surprise-switch to dub only in some later season)

comment 2y ago · link · parent

The difference is that financial markets, despite all the harm they do, also provide utility. That entire invisible hand resource allocation thing. Opinions might differ about the amount of value relative to the harm, but very few would consider it zero or negative. Sports betting and lotteries don't, all the downside without any upside.

comment 2y ago · link · parent

The basic logic is convincing: the canal killed the train line's business long before containers became a thing. Ship-to-train and train-to-ship should be far more feasible today than it used to be back then.

And the train-to-ship part would double as ship-to-ship redistribution, fanning out to different ports in both Asia and on the east coast. Basically a role similar to the one served by Atlanta in the United network.

comment 2y ago · link · parent

Why optimize for latency when throughout is your single dominatant metric? And with braking distances being the limiting factor of all train signaling schemes, you might even find yourself able to increase throughput by going slower. (not necessarily of course, but train signaling schemes are ... complicated)

comment 2y ago · link · parent

Thanks for pointing that out, it never occurred to me that it might be the same organisation!

The open ocean approach had always been far out in terms of good intentions but unrealistic expectations in my eyes, but with this pivot it's actually awesome: the fancy idea as an accidental Trojan horse to get the reasonable but not quite as exciting idea off the ground.

In hindsight this could have been the one best possible path, I doubt that they would be where they are if they had started out with the effective but boring (compared to their exiting off-shore fantasies!). And neither would they be where they are if they deliberately started with the Trojan horse, knowing of its nature. The best salespersons are always those who honestly fail to understand why the buyer might prefer something different than what they are selling.

comment 2y ago · link · parent

Yeah, cars do not have particularly high requirements in terms of energy density. In a pinch people have been able to substitute petrol with fuel as low density as wood: https://en.wikipedia.org/wiki/Wood_gas_generator

But that's just the driving around use case, others are very far out of reach.

comment 2y ago · link · parent

Armchair evolutionist suggestion: because there must be something in the code that makes them better than other species at being picky mating? Or particularly susceptible for breaking compatibility in terms of successful mating?

comment 2y ago · link · parent

I read it as an erosion of the implicit assumption that ads bring in the money, and projects like Android and Chrome spend it, indirectly empowering the ads division. "Why can't we just focus on eating the cake? Those guys in the bakery with their funny hats and food-grade tooling should grow up and learn to stand on their own feet without our handouts." Pixel hardware is the closest thing Google has to a division that could sustain itself from revenue streams unrelated to ads.

Probably makes a good impression on shareholders who'd prefer to see all divisions disinvested but the money counting one.

comment 2y ago · link · parent

I should have checked instead of replying from memory: It's actually footgunB that is refused by the compiler. footgunA is accepted and will even call happily into an overridden implementation from a field initializer in the superclass. That way you can get a method to see a final field null on one call and non-null on the next.

comment 2y ago · link · parent

The intention for "nothing before super" is clear, but that rule never delivered on its promises. Because all those footguns are still in place, in field initializers as well as in function calls inside the super() argument list:

  class Sub extends Super {
    int field = footgunA();
    Sub() {
      super(footgunB());
    }
  }

It's a zero merit headache factory and good intentions alone cannot change that.

comment 2y ago · link · parent

Scala may have started out as a "nicer Java" back when Java was in its fossilized stage, but the niche it has grown into is more like a Haskell for the JVM. A pretty cool niche, but niche. "Nicer" just isn't part of its claim anymore, hasn't been for quite some time.

Kotlin can certainly be seen as a what Scala could have been if had stayed on the "nicer Java" course, and no, Java isn't anywhere close to overtaking Kotlin in the field of unambitous but spectacularly effective niceties. Because that's what Kotlin is, from a Scala perspective: low hanging fruit language features, not powerful enough to even bother. But the Kotlin standpoint is that more powerful isn't necessarily a good thing, they judge a feature on how it improves mundane code, without changing the entire programming paradigm. Scala has long stopped trying to be a "nicer Java", they have chosen a different path. And that's not a bad thing, it just isn't for everybody.

comment 2y ago · link · parent

Push am (ever so slightly) larger fraction of the sun's energy output into our atmosphere, what could possibly go wrong!

I know, the amount of net electricity per added total energy might end up no worse than in a fusion power best case scenario, but still... When you add the climate effect of re rocket launches required I don't think it could ever become worthwhile.

comment 2y ago · link · parent

So they could build a battery big enough to serve 15 minutes of the nighttime trough and declare mission accomplished with only enough solar to fill the battery on a rainy winter solstice day? Some goalposts just beg for getting moved. (I assume that this is unrelated to the 2045 goal, so it's not really bad, just bad headlining)

comment 2y ago · link · parent

Without the "your enemy is not capitalism, it's the Jew!" ploy that entire "working class brownshirts beat up communists on behalf of industrialists" thing would not have happened at all. Antisemitism was the keystone that kept their self-contradicting ideological mess from collapsing before they even got a foot on the ground.

comment 2y ago · link · parent

It was so much more than just a cash/property grab. It was also an accidental ideology hack to plaster over the unsolvable conflict between working class and capitalism.

Short reminder that by name, it was a socialist workers' party. But a socialist workers' party fooling themselves into believing that all strife of the working class could somehow be blamed on the subset of capitalists who happened to be Jews. And by doing so, they offered capitalists who were not a lifeboat to survive the upcoming revolution, survive with all their status and wealth, or more even. A revolution was coming, and they would rather have it brown than red. Many of the moneyed class despised Nazis as the uneducated roughlings that they were, but begrudgingly accepted them as lesser evil compared to red socialists. Before, in almost all cases I guess, eventually getting pulled in by all the cheering. It may sound absurd to us, but Nazism ran on positivity. "Be part of it, it will be awesome" (unless of course you happen to be one of those we need as common enemies to unite against, please be a good victim and just shut up while we remove you from existence. Don't worry, we'll find a substitute for you to push out next when you're gone)

Without antisemitism to distract the working class, nazism would have never grown beyond a group of sad drinking buddies with bad pick-up lines. The cash/property grab happened much later, about a decade after antisemitism enabled the unlikely alliance of (some) capitalists and (some) workers that carried them into power.

comment 2y ago · link · parent

> Why not use an elongated blimp shape? Why the v?

For the upper stage: it would only be an airship at the start, then transition into an inflatable hypersonic lifting body before eventually reaching orbital velocity. Very similar to how a seaplane starts swimming by displacement, then transition to gliding on the water before eventually taking off.

For the lower stage: I suspect the shape is more like a branding thing, and knowledge transfer ("perhaps some of what we would have to learn about v-shaped blimps can be learned in the lower atmosphere?")

comment 2y ago · link · parent

I really like that idea and I don't want to suggest that it can't ever work, but the sudden purchase frenzy that did not happen is far from the only failure mode. Leave it running a decade or two and things might look very different. Slow, invisible expenses creep and in the end you have a culture where those who spend a little slower than others are shamed into buying stuff just to make the others not look wasteful. There are many subtle mechanism at play that all facilitate expenses creep and there needs to be something pushing in the opposite direction. I'd rate it an unsolved problem.

Perhaps some generous budget limit, with a clear message that it's not intended to be fully consumed, and a clear rule that a certain percentage of whatever will be left at the end of the year is donated to some universally accepted good cause? Children and cute animals, please not religion. "You can get the book, no problem, but keep in mind that being the book means $5 less ponies!" (just don't make it manatees, you'd risk me working on a chromebook)

comment 2y ago · link · parent

Stuff like checking the rear view mirror when slamming the brakes upon some surprise uncertainty, true. Humans will always be bad at this, but for a computer it's trivial to include the tail situation in the brake decision.

comment 2y ago · link · parent

That's an age-old fantasy technology.

Today you'd do it with electric buses(/trucks) that run on dedicated highways, or at least on dedicated lanes that are not only electrified (bus operates from a pair of pantigraphs except for that "last mile" part of the trip in regular roads or when there is some maintenance situation), but also exclusively run computer controlled in paceline formations. No physical connection (or perhaps physical connection for power crossfeed, to share pantograph wear, but no physical connection for push/pull), just a low latency, ack-heavy data link so that they would all accelerate and brake perfectly synchronized. Those buses (or trucks) would benefit from slipstream just like train cars do, but still be able to independently branch away or join at any exit. Of course the power bill would have to be shared by the whole formation, no need to rotate the lead (like a bicycle paceline would do) except perhaps in an unelectrified segment or during a power outage.

This would offer point to point connections, have all the efficiency benefits of trains except for the energy cost of rubber-on-tarmac relative to steel-on-steel, and would also offer greatly increased throughout compared to trains because a formation like that would retain almost all of the emergency breaking capability of trucks (and realistically speaking, have better capability than a queue of human-operated trucks that keep almost but not quite enough safety distance for human reaction). The only reason I see why this is not the obvious future is that it requires enormous critical mass to pick up. It probably needs electric trucks first, then electric trucks with pantograph on some main lines, and only then pantograph electric trucks joining into robotic pacelines at some even later point.

(the absolute end game state of course would be dedicated rights of way with a rail option useable to dual mode vehicles that could quickly drop on their road wheels not only for exiting formation but also for braking - note that breaking should not even exist in a formation like that, outside emergencies.

comment 2y ago · link · parent

What buffer for solving delays would you consider acceptable for that mode switch? Train schedules are inherently fragile because there's so much interdependence. Every tiny bit of the trip is locked into a signaling segment block time slot and one train causing a shakeup leads to wild butterfly wing effects fanning out in all directions. Rail networks in places that have more than just a trivial amount of service tend to run very close to saturation, even if they don't look like that at all. But you can't cram trains on a line like you can cram cars on a highway (or planes in an approach pattern), that's just not how safe signaling for wheel-on-rail works.

And no, I won't accept "but it works in Japan!" as a counter, because Japan does not really have anything resembling a train network. They have a number of lines going up and down one corridor, plus two appendices branching off to the west coast. Compared to that, even the French star of lines separated by metro rides appears complex.

comment 2y ago · link · parent

Hydrogen electric is little more than greenwashing before we have anything resembling a hydrogen surplus on the horizon. Energy density is always an issue in flying applications and it's well possible that a boring old turboprop burning efuels (made from that very same hydrogen surplus) would be the clear winner. Losses of the transformation pipeline vs losses from carrying the most impractical fuel type ever tried. Minimizing the energy requirement at the final conversion step is an important thing all too often missed in the frenzy of converting the path to get there.

comment 2y ago · link · parent

The environmental issue with air travel is not high fuel consumption per passenger mile, but the number of miles per passenger. A coast to coast trip by car might burn just as much fuel as coast to coast by plane, but people simply wouldn't to that all that often in a lifetime.

That's for medium and long distance travel, short distance fuel consumption per passenger mile goes up dramatically.

OT: this is actually a point where I see a big, unserved gap in the market of climate-aware air travel. A feeder plane (from regional to intercontinental airport) dedicated to the market segment of "going by road or train might be roughly as fast, but I need to go to the airport and I can't risk missing my connection due to the unpredictable nature of ground travel". So you'd want a something the size of a CRJ or even just a dash-8, but ruthlessly optimized for fuel consumption. That would imply going slower (no issue at all when the time for bording etc greatly outweighs the time spent in the air!) which would imply moving the deep point in that induced vs parasitic drag diagram as far left as possible, which would imply going wild with wingspan, something sleek, carbon, like a performance glider, as wide as a 737 or beyond. One reason I've heard suggested for why this doesn't yet exist is that on those short hops (little time spent in the air), fuel cost is actually outweighed by crew cost so much that all the cost saving from lower fuel consumption would be eaten by getting less trips per crew-day. So it's an automaton problem in disguise? Or a regulatory problem?

comment 2y ago · link · parent

As in the cold end of the heat pump is inside the heated area of the house? That feels very weird. On the other hand with heat pumps, stacking multiple stages strategy isn't necessarily a bad thing! All inefficiencies are not really losses but merely resistive heating contributions (unless their heat escapes to the final cold sink aka outside) and in the end the real question is which configuration is good in terms of capex and maintenance.

In an environment where getting rid of humidity is a concern (mold!), a "cold end inside" heat pump for water might even double as a dehumidifier, with water condensing on the cold end sent to the sewers, contributing a little energy in the process.

comment 2y ago · link · parent

“I want it to give me 1-2 events that I am most likely to enjoy.“

That's the core property of voice interfaces and I see surprisingly little awareness for that: it does not matter if it's a phone menu beep code tree or a GPT or a star trek ship's computer: the low bandwidth linearity of the readout will never go away.

This is what makes voice interfaces so hugely attractive for the "searchy advertisial complex": if you haven't bought enough ads that the almighty relevance algorithm (1) puts you in the top spot you're out. What used to be the first page on the web is the top spot in voice, second place is first loser. No amount of intelligence can ever change that, voice interface implies handing over control in an unprecedented way.

((1) technically, claims that result ranks are not sold aren't exactly lies, when result ranks don't go to the highest bidder. But that does not mean that ad spend isn't a contributing signal in any number of deeper layers so in the end results appear indistinguishable from highest bidder, only that buyers don't get any contractually guaranteed result list exposure for their money)

1
202122
196