Better HN
topnewbestaskshowjobs
Log inSign up

bcoates

5,109 karma · joined Jun 27, 2012 (14y ago) · 1,639 submissions

ben blueskylabs com
Submissions

comment 6y ago · link · parent

Am I the only one weirded out that the author didn't even consider writing/benchmarking the obvious byte-at-a-time version (in a loop, and/or unrolled) before resorting to a nonportable/incorrect 'optimized' version?

Versions of GCC old enough to drive are pretty good at generating fast code from byte operations and summing up bytes seems like the kind of transparently analyzable case where modern compilers really are sufficiently smart

comment 6y ago · link · parent

This is clever, but can someone who knows more about Ethereum internals comment on whether waiting for nonce order is a real problem in the network?

This only allows a modest amount of reordering (~dozens of tx for reasonably sized nonces?) before progress is still blocked totally on a delayed transaction

comment 6y ago · link · parent

They're secure in the sense of being low-risk for active content shenanigans and a small surface area for vulnerabilities. Attacking a network through a .tiff of a fax is a lot harder than attacking it through an email, pdf, word doc, http session, etc.

comment 6y ago · link · parent

You're not so much arguing that music shouldn't be capitalistic, but more capitalistic than it is today and also value (some?) musicians more.

People aren't paying for music (which has been noted is about as rare as air) but control over music. If you want the money (either through licensing, fee-for-performance, or patronage) you're going to give up your control to the person who is paying the piper. If you want to keep the control, you're probably going to have to give up doing it as a day job.

You can't produce non-alienated craft music like it was a pair of boots and expect people to want it anyway -- the entire value of music to others is in the alienation, the loss of control over the work ("playing to the crowd"), "supply and demand" isn't causing that and can't be reformed to change that.

If the audience is you, that's fine, but why should society value that over any other private activity that makes you privately happy? We should subsidize it as much as we subsidize rock-climbing, marijuana, binge-watching Seinfeld, etc.

comment 6y ago · link · parent

The point of these bots isn't to spread disinformation or to amplify political content (the article is wrong about this).

The point of these bots is to build up an account with credible behavior that you can use to make money (usually by scamming advertisers into buying paid tweets/followers, or by directly promoting scam products).

Political twitter is so formulaic and high volume that bot/sweatshop posts don't seem out of place compared to the usual traffic from real accounts.

If there were no politics on twitter they'd just send formulaic messages about pop culture or sports or something.

comment 6y ago · link · parent

As far as I can tell, recent builds of Chromium have broken Google login in ways that not-chrome-at-all browsers still work? I have to log into my gmail in incognito now or it just 500s when the site tries to eat my browser.

comment 6y ago · link · parent

If you're wondering why this is interesting, games that AIs excel at like chess/checkers/go are all two-player, zero-sum, perfect-information (everyone knows everything), deterministic games, so you can exactly predict your opponents behavior by simulating "what would I do if I were them, and trying to make me lose". The only real hard problem in this space is extreme branching factors.

Everything gets vastly more complicated once you break any of those rules: non-zero sum games create a prisoner's dilemma cooperate/defect dynamic, every three or more player game is non-zero sum (and exponentially more for every player you add), hidden information forces you to manage how much you reveal to your opponent and requires you to simulate multiple "alternate futures" based on things you learn after making a decision, and randomness is equivalent to an extra player that makes irrational unpredictable moves.

Games like that are vastly closer to the messy real world than the computationally expensive but near-ideal world of games like go, and they're much more of an open problem.

comment 6y ago · link · parent

Am I the only one disappointed this wasn't about someone refurbishing the Dardanelles Gun?

comment 6y ago · link · parent

It's not an intonation thing, the idiom is "Surely (conditionally true statement)?" and uppost was verbing for some reason

comment 7y ago · link · parent

Most or all of these are ill-formed and required to be diagnosed by a conforming compiler.

comment 7y ago · link · parent

maybe? I like htmlhead.dev and it actually is a fairly underdocumented corner

comment 7y ago · link · parent

There's no reason to ever defeat the pinch-in behavior, it's what lets the user know the page is fully zoomed out.

maximum-scale=1.0 causes the page to be unscalable on mobile and is almost never what you want.

comment 7y ago · link · parent

Is mdn not satisfactory for that? searching 'mdn array.from' brings up a nice one-pager on that and it works for almost any web/js documentation.

comment 7y ago · link · parent

Do what they say, not what they do!

maximum-scale has only three valid uses:

1. extreme values, like 5.0, if a browser misdetects that zooming that far is useful when it isn't (rare)

2. pure-app websites like maps or video games that have alternative scaling arrangements and browser pinch-zoom gets in the way.

3. there is no number three, and the thing you are thinking of is incorrect.

maximum-scale is an automatic usability and accessibility fail otherwise, you are bad and should be made to feel bad if you use it.

comment 7y ago · link · parent

Maybe I have the brainworms from too much SQL but that seems pretty fine? It's an idiomatic CTE that more or less directly translates back to the problem statement. (nitpick: I'd exclude already-found rows from the union to do shortest-path in the CTE instead of doing it later)

comment 7y ago · link · parent

CREATE INDEX is fundamentally an implementation detail of the RDBMS engine; there can be no meaningful standardization there.

comment 7y ago · link · parent

Can JS static typing not evaluate constant expressions to infer types?

comment 7y ago · link · parent

I think it assumes that large investors aren't really passive, but intervene on behalf of their investments. If you convince someone to divest from X, then they have the luxury of remaining neutral when you propose that X be destroyed.

comment 7y ago · link · parent

It's not a policy issue, just a statistical artifact.

From variance alone you'd expect the US to be middle of the pack, and smaller countries to make up the extremes on any metric you can make up. Particularly if, as in the case of the OECD, you're essentially cherry-picking high performing, smaller countries.

You can't usefully compare ratios where the denominators differ that wildly.

If you want to measure the difference between Canada, nordic countries, the US, etc., you need to cluster them into reasonably-chosen and mostly uniformly-sized chunks, collect your metric on each chunk, and compare the distribution of chunks across systems of government/countries/etc. This would actually result in a statistically valid comparison.

That's a lot more work and as far as I know nobody ever does it.

comment 7y ago · link · parent

That link says the opposite -- that the vice premium disappears once you factor in their unusual capital structure.

Essentially, sin stocks are unusually well managed because they can't be used for empire-building by crappy executives.

comment 7y ago · link · parent

Do hydrides have any advantages at all over synthetic hydrocarbons or biofuels? It seems like an effort to shoehorn hydrogen in there somewhere instead of just admitting that it has literally no place at all in the energy economy

comment 7y ago · link · parent

I don't think anyone's trying to run an aluminum smelter off ethanol, if it's a reasonable transport/peaking/storage fuel EROI is irrelevant.

comment 7y ago · link · parent

"They have gun next door - there's shouting, I'm really scared WHAT DO I DO?!"

"Is something on fire?" "Is someone injured?" "I'm sorry, 911 is for emergencies only, not personal therapy"

comment 7y ago · link · parent

Right now they're being sold as an expensive novelty, but the producers are being open that their business plan is undercut meat on price and move downmarket.

That's a direct threat. Meat producers are probably imagining something like 10% beef / 90% artificial meat filler burgers being the norm for cheap ground beef.

comment 7y ago · link · parent

Which is bad news for the ~15m internet users in Kazakhstan. For the ~4000m internet users not in Kazakhstan & generally immune to their rubber hose attack, protecting them from being one BGP fuckup away from being MITMed by a hostile foreign power is much more important.

comment 7y ago · link · parent

Roommates are mostly a side-effect of banning SROs. If the NIMBYs had their way they'd be illegal too. Urban singles needing housing isn't new.
1
8910
55