Better HN
topnewbestaskshowjobs
Log inSign up

bcoates

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

ben blueskylabs com
Submissions

comment 12y ago · link · parent

Sure you can: as a random example, AWS supports SR-IOV today: you can directly communicate with a NIC from a userland linux process if you set everything up right.

The general idea is to have hardware with direct virtualization support (which is increasingly available on commodity hardware), then have a 'control plane' of layered, virtualized syscall APIs that configure a 'data plane' of virtualization-aware hardware. Permitted I/O operations occur just as if they were on bare metal, with asymptotically zero performance overhead, because you can process an arbitrary amount of data without invoking any code at the OS/hypervisor/cloud provider layer.

For example, my rented, virtualization-aware CPU allows me to run any non-privileged code that stays within a certain block of address space; my rented, virtualization-aware NIC allows me to send and receive any ethernet frames that match certain header bits; and my rented, virtualization-aware disk allows me to read and write to a certain range of LBAs. The nth-layer OS or cloud host or whatever can come in and alter these permissions at will but it need not examine every single syscall to see if it conforms to policy.

comment 12y ago · link · parent

> But they may also assume that more roads cause more travel, and decide to prevent trips by destroying roads.

Politicians in the city I live in are literally doing this, installing "traffic calming measures" (destroying perfectly good road lanes that were just resurfaced)

I believe phase two involves generating clean energy by harnessing the power of Bastiat spinning in his grave.

comment 12y ago · link · parent

If I was Uber, I'd get cozy with the Teamsters and use them to defend my interests against competitors, regulations, and the medallion owners.

comment 12y ago · link · parent

I understand the idea, but I don't have a lot of faith in the kernel to make the right decision under memory pressure--and neither do server application developers, hence the proliferation of massive userland disk caches in processes. The amount of allocated memory that the kernel can find to discard on a no-swap system is fairly small, so I'm somewhat relying on the rogue program overrunning the point of blowing out the caches and going all the way to panic the system.

Ideal tuning would probably also reserve some decent amount of space for file caches and slab but I'm not aware of any setting that does that.

It's an entirely different story on laptops and development servers, where the workload varies widely, may contain large idle heap allocations worth swapping, and manually configuring memory usage isn't practical.

comment 12y ago · link · parent

Are there people running servers that actually swap without it being a disaster? For regular 'cattle not pets' servers I just decline to create a swap partition and vm.panic_on_oom = 1.

Java's bloated heap, for example, has easy to use startup options that cause the Java process to use a deterministic amount of RAM, as does any other sane program that uses nontrivial amounts of memory.

OOMing (or swapping) a server almost always indicates an error that needs human intervention, so cleanly killing/rebooting the faulting system and raising the alarm in your monitoring system is the right thing to do.

comment 12y ago · link · parent

Wouldn't it just be simpler to fuse off the part of your linker that handles vtables? IIRC That'll kill every C++ feature that's objectionable to someone who likes the idea of 'C with templates'

Unless you want a truly simple C template system, in which case aren't the C11 type sensitive macros sufficient?

comment 12y ago · link · parent

They aren't that smart, some little old ladies in my town made a couple of million dollars by buying multiple life insurance policies on bums, then running them over. They apparently got caught by cops for the hit-and-run, because nobody at the insurance companies even noticed what should have been an improbably suspicious pattern of policies and payouts.

comment 12y ago · link · parent

Even the non-realtime data is dicey, I keep having apps showing weekday schedules on weekends for BBB lines.

I want a waze for buses that treats buses as an observation problem instead of a data-entry problem.

comment 12y ago · link · parent

The article makes it sound like there's no place at all to attach the pen on the Pro 3, is that true? I'm a heavy pen user w/ my Pro 1, that would be a dealbreaker for me.

comment 12y ago · link · parent

I thought the problem was with the statement was the "we've got a strong correlation here" bit, as if that were a meaningful thing. Correlation is weak evidence for a proposition (and sometimes weak evidence is all you've got) but the correlation being strong doesn't mean anything at all past the threshold of pure chance.

Someone who claims it confidently like that is well into the area of making shit up then rationalizing it.

comment 12y ago · link · parent

I'm not in SF, but the whole taxi experience is shitty in LA:

1. Long waits (~10m minimum usually)

2. Unreliable (they'll take calls and never manage to show up)

3. Bad attitude/customer service

4. Constantly trying to rip you off by taking weird routes or trying to use the meter on flat-rate airport trips

5. High prices for shitty cars compared to Uber's range of services

I'd ride taxis, but only when I had to. The bus system was a more pleasant and reliable way of getting from one place to another. Uber has really changed that. For the 30% of the population that lives in cities it's a realistic alternative to dealing with a car, particularly if you're not a kid chauffeur.

comment 12y ago · link · parent

All user mode code has been in OS-enforced, security-bounded, per-process VMs that access each other and hardware through virtualized interfaces since forever (well, since the 90s for mainstream microcomputer OSes).

"Containers" are just user-accessible support tooling to get creative with how those interfaces work. It really should be much easier to make container software than the entire virtualization infrastructure from scratch, in the same way that it's easier to write tar than a filesystem driver.

comment 12y ago · link · parent

DikuMUD came out before M:TG and had mana, and is the CRPG ancestor of World of Warcraft (by way of EverQuest).

comment 12y ago · link · parent

There's nothing keeping a properly implemented secure erase from working -- all the data on disk should be written out encrypted so secure erase is just cycling the key. It has the advantage of being much faster and something you can do in software (and repeatedly)

Of course, for retiring a drive there's no good reason not to just physically destroy it.

comment 12y ago · link · parent

It sets a stack limit proportional to log(n) and gives up and heapsorts the subproblem if the limit is exceeded. You get no more than n log(n) quicksort operations, plus heapsorting any partition of the input which is also n log(n)

In other words, they use the worst-case n log(n) heapsort with an optimization to use the much faster quicksort for non-pathological inputs, which is almost always.

comment 12y ago · link · parent

Interesting point I haven't seen discussed directly before:

  System administration, which includes operator actions, system
  configuration, and system maintenance was the main source of failures
  -- 42%. Software and hardware maintenance was the largest category.
  High availability systems allow users to add software and hardware and
  to do preventative maintenance while the system is operating. By and
  large, online maintenance works VERY well. It extends system
  availability by two orders of magnitude.
I've usually seen the online vs offline maintenance tradeoff depicted as the availability benefits of online maintenance vs the massive development cost of a system that remains available despite operator error during maintenance -- but if you meet the much easier standard of fail-fast (human error causes the system to go down but doesn't corrupt the database) then online maintenance is still an overall win even if it's the primary cause of failures.

comment 12y ago · link · parent

That does not sound like a practical solution for any language that offers a standardized toolchain or no explicit compilation as features. For those languages adding a homebrew translation step results in discarding unrelated features that the user might have wanted, and completely isolates you from intermingling your code with the rest of the language community.

Syntax is not the most important thing in a language but it's not nothing either.

comment 12y ago · link · parent

Given that paper waste is apparently compostable (or at least not harmful to the composting process), would it make more sense to change the system to the blue bin being "plastic, cloth, and metal", green being "food, paper, and lawn trimmings", and black being "glass and everything else"?

This might not be 100% optimal but it seems a whole lot more user friendly and I'm sure simplicity of the system increases compliance.

comment 12y ago · link · parent

I was holding out for this announcement to upgrade my Surface Pro, which I've been happily using as a main work PC for more than a year now. I'm not big on the size/aspect ratio change--I don't carry a bag around, and the current surface is about as large as I'd want to handle. A bigger, presumably floppier keyboard isn't too enticing either.

3:2 makes the portrait mode go from silly to potentially useable, except for the part where almost no Windows programs are actually usable in portrait mode, and of course the keyboard requires landscape mode anyway.

With no interesting spec upgrades over the Pro 2 (I was hoping for LTE, or more ports) I think I'll get one of those instead.

comment 12y ago · link · parent

Lots of people are comparing it to meal-replacement alternatives, but I'm unimpressed with how it compares to much more mundane foods, like a 7-11 burrito that has a very similar nutritional profile, retails for $1.69 in single quantities, and is much easier to prepare (2 minutes, no dish washing, no need to refrigerate for settling)

http://www.nutritionix.com/7-11/7-select-burritos-beef-bean-...

comment 12y ago · link · parent

Calling it "healthcare" is a Democratic shibboleth, it's not a word you hear Eric Cantor use a lot.

comment 12y ago · link · parent

> I'm having trouble reconciling the two.

Why? It's extremely common for industry/standardization groups like the IETF to come to conclusions that are contrary to the position of one of its members, and it usually doesn't result in said member being expelled or falling on their sword.

comment 12y ago · link · parent

Well, in the case we're discussing, saying mean things about America and Obama on YouTube was the guys major claim to fame. There may have been credible intelligence that he was going to start putting al-Qaeda associated .gifs on Tumblr but of course something that sensitive is still Top Secret.

comment 12y ago · link · parent

IANAL, but I don't think there is any particular law allowing the police to use deadly force -- they just have the same self-defense and defense-of-others exception to murder laws that everyone else has. Self defense doesn't apply to threats like Anwar al-Awlaki that aren't immediate, even if they're extreme and inevitable--I can't shoot a guy for preparing to blow up a bomb an hour from now.

It's not the government killing people, it's an individual cop, and if they do so unlawfully the criminal exposure is personal. (In practice, prosecutors are reluctant to actually go after cops in anything but an extreme case, but this isn't unique to police killings)

comment 12y ago · link · parent

The last time I had to do fast, large sequential disk reads on Linux it was surprisingly complex to get all the buffering/caching/locking to not do the wrong thing and slow me down a lot. I wouldn't be surprised if non-optimized mmap() is a whole lot faster than non-optimized use of high level file i/o libraries.

comment 12y ago · link · parent

Re-use them for shipping out the finished product, so they become someone else's problem.

comment 12y ago · link · parent

Separate authentication from message delivery. The problem with both spam and spam mitigation measures is that the message is considered as coming 'from' a sending system instead of the actual originator of the email.

Splitting these up converts one impossible problem into a tricky but mostly solved problem (delivery) and a hard problem that has to be addressed anyway (internet identity)

comment 12y ago · link · parent

I have to agree with the deleter that called it "G11: Unambiguous advertising or promotion".

Suggestion: Cut out all the adjectives and stick to a 'just the facts' style. Find an article that isn't about DO's finances but instead just lists it aside other major cloud/VPS providers.

comment 12y ago · link · parent

This essay was written in 1958, before the 'Invisible Hand' was replaced by the Coase theorem which actually explains why externalities don't happen in free markets as often as you would think they would (instead of just observing it).

"It does take a mastermind to get close to any kind of optimal solution in many cases" isn't correct. Relaxing the optimality constraint doesn't actually make central planning any easier, difficulty is dominated by the worse-than-cubic scaling on the number of moving parts of the system (and look at how complex even pencil manufacturing is).

Nations actually tried this, a whole lot of useful math for optimization problems was discovered, but economic optimization is still algorithmically intractable.

comment 12y ago · link · parent

They're just ahead of the curve, a century from now people will be amazed that 20th century first-worlders went to so much expense and effort to bring filth and vermin as close as possible to where they live.

Water isn't cleaning the fecal bacteria off the toothbrush you keep in the same room as your toilet, your wall-to-wall carpeting is full of food crumbs that roaches love, etc.

1
242526
55