Better HN
topnewbestaskshowjobs
Log inSign up

antics

4,248 karma · joined Aug 13, 2010 (16y ago) · 545 submissions

clemmer.alexander@gmail.com alex@moment.dev
Submissions

comment 11y ago · link · parent

Only-kind-of-related: Instagram has a cool post about using ordered IDs to shard photos. It's here: http://instagram-engineering.tumblr.com/post/10853187575/sha...

Pretty cool stuff.

comment 11y ago · link · parent

I take your points to be the following. Correct me if I'm wrong. (1) Morale is low among our DC technicians, (2) many of the tech vendors are incompetent, (3) one time hotmail forgot to renew a cert, (4) you had a bad experience one time with an Azure demo.

Honestly, aceperry, I'm not seeing where any of this reflects poorly on our ability to operate x million machines, and the fact that you present it as evidence that we are not "competent" at provision our cluster effectively for our customers is worrying. I am starting to wonder if you know anything at all about the trade, because literally nothing here is relevant to your case. Even the hearsay you have about the DC vendors being incompetent is not really useful here, because it does not impact our operational capacity at all.

What am I missing in your statement that should cause me to worry?

comment 11y ago · link · parent

The point of moving it to user-space is that you can source a lot of the jobs of the TCP/IP stack to hardware directly. In some cases this dramatically speeds up your I/O.

Consider, for example that the dominant costs are things like demultiplexing and security checks. If you choose to implement multiplexing with virtual network cards then you get true 0-copy multiplexing, which is much faster than the software equivalent. And many of the security checks can be eliminated by using some combination of packet filters and logical disks. (The security BTW seems to be one big difference from RDMA, which might be an alternative, but I'm not really an expert.)

Some things can't be sourced to the hardware, like naming and access control. But that's fine.

(NB, I'm not arguing for this paper's position necessarily, I just thought it was interesting, and the motivation was good enough to start me thinking about how I might get around the kernel.)

comment 11y ago · link · parent

(Author here) Continuing our thread from Twitter, one of the things I wanted to say here is that things like pipelining and threading are good, but there is still improvement to be made at the kernel I/O layer. If we can reduce this latency there could be very compelling cost incentives especially at the datacenter level, and it might simplify application logic quite a bit.

This is one of the big reasons I like the paper I mention in this post.

245.

84% of a single-threaded 1KB write in Redis is spent in the kernel(blog.nullspace.io ↗)

158 points · by antics · 11y ago · 48 comments

comment 11y ago · link · parent

Say you have a list of full names and you want to teach a computer to get the first name out of each.

With "program synthesis", you provide a couple example outputs, and the computer tries to generate ("synthesize") a program that turns the input (i.e., the full name) into the output (i.e., just the first name).

Basically, this works as follows. You generate a ton of candidate programs, and then rank them that work for the input, and choose the "best" among them, and return that. The ranking is a bit of an art though.

comment 11y ago · link · parent

I work on infrastructure at MSFT. Collectively we stably runs hundreds upon hundreds of thousands of machines in clusters that are tens of thousands apiece, at scale workloads that only 2 or 3 other companies total have ever seen. So, when I say that it is very hard for me to reconcile your assertion that we lack "basic competence" in cloud management with the facts of the situation, I hope you will understand why. It makes me think that you have not thought carefully about what you are saying here.

If you'd like to share the specific stories this contractor told you, I'd be happy to talk you through it to figure out where your information went wrong.

comment 11y ago · link · parent

I work at MSFT too, and have been involved with open sourcing a major project, called Bond[1]. I'm happy to chat about this offline, if you like. Email is in the profile.

The short answer is that there are divisions in the company with a direct imperative to open source things, so if your manager is willing to encourage this (easy enough to figure out), the answer is often yes. Like almost every company, we tend to open source tools but not products (e.g., yes to Orleans, but no to the game it supports, Halo), so from there it's a matter of finding a group that has such tools, or is open to developing them.

Felix (who works for my old boss -- hi Felix!) is a special case. He works for a team called strategic engagements, whose job (I hope he'll correct me if I'm wrong) is specifically to engage with the public, usually on their own terms, which often involves non-MSFT tech. _That_ is an uncommon job, but if you want to talk to people in the group, just ping me when you get here and I'll put you in touch with the dev manager for the group.

[1] https://github.com/Microsoft/bond

249.

Half of IBM's profits come from mainframes(blog.nullspace.io ↗)

3 points · by antics · 11y ago · discuss

comment 11y ago · link · parent

C# isn't "technically" open source, it's just open source. If you want to contribute actual code and have it actually incorporated into the language, then all you need to do is follow the contribution guidelines here: https://github.com/dotnet/corefx/wiki/Contributing

comment 11y ago · link · parent

It's both.

$10B are spent each year on sales of actual mainframe computers. [1]

The article quoted in the last article claims that everything you sell around mainframes, like services, is a quarter of revenue.

Now, it's your turn to do something for me. Don't respond if you're not willing to read before you speak. I should not have had to explain this to you.

[1] http://europa.eu/rapid/press-release_IP-10-1006_en.htm

comment 11y ago · link · parent

johansch, you were wrong in such a fundamental way about this subject that it is hard for me to believe you know anything about it at all.

If you have any suggestions about how I can phrase this in a way that makes you both comfortable, and that still makes it clear that I do not believe you have any business speaking on this subject, then I am 100% happy to listen to you. :)

I'm sure you're otherwise intelligent, but this is an area where you should probably just listen.

comment 11y ago · link · parent

You have no idea just how hilariously wrong you are. Just read this passage from an Economist article about IBM mainframes:

> At any rate, the mainframe is a hugely profitable business for IBM. Only around 4% of the firm’s revenues come from mainframe sales. But once additional hardware, storage, software and all kinds of related services have been factored in, the mainframe accounts for a quarter of IBM’s revenue and nearly half of profits, estimates Toni Sacconaghi of Berstein Research.

Read that again. HALF of profits. A QUARTER of revenue.

Source: http://www.economist.com/blogs/schumpeter/2012/09/ibms-mainf...

comment 11y ago · link · parent

Oh give me a break.

The mainframe market is still $10B, and the fact that you can't think of a good use for one does not mean that IBM's product lines are irrelevant. The market should be addressed by major hardware manufacturers, there is still profit to be made here.

The fact that you are comfortable as a "hardware person" saying things like this publicly is a pretty clear indication that your world is much, much smaller than you think it is, relative to the size of the real world.

comment 11y ago · link · parent

>> I'll put it bluntly: you have no idea what you're talking about. Bond v1 was started when Thrift was not production ready. This is Bond v3.

> Let me put something bluntly. I don't care who started writing code first. Microsoft are well over half a decade late to the party. Thrift and Protobufs have been public domain since, what... 2007/8?

I think your technical complaints are almost all good and valid. I agree with essentially all of them. I don't want to fork Adam's sibling response here, so I'll leave it at that.

My point is that asserting that Bond was developed so that MSFT could purposefully ignore certain languages is pointedly wrong, and irresponsible considering the dearth of evidence you have to support it. And here you have 3 authoritative comments to say so. I don't understand how you can possibly disagree with this, or be upset that someone would take issue here. It's ok to be wrong.

comment 11y ago · link · parent

Hey Kenton. I see Adam Sapek bumming around the thread, so maybe he'll chime in here, but Bond works essentially by: (1) inspecting the schematized type, and (2) generating code that will quickly walk over that type and write it to a stream. So yes, it would probably require some surgery to make Bond do what Cap'n Proto is doing.

It is interesting to think about how it might work, though...

If you want to follow up, I encourage you to email Adam (adamsap -at- microsoft) or you can ping me and I'll loop him in (aclemmer@microsoft.com).

comment 11y ago · link · parent

> I think they just wanted their own version of Thrift such that they could ignore the languages they don't care about.

I'll put it bluntly: you have no idea what you're talking about.

Bond v1 was started when Thrift was not production ready. This is Bond v3. There is no conspiracy to make Bond hard to use for technology we "don't care about." In general I'm fine with tempered speculation, but your conclusion here is just lazy, and we both know it. It contributes nothing to the conversation, and spreads FUD for no good reason. We can do better, agree?

Now, to address your comments about customization directly: pluggable protocols are an example. The metaprogramming facilities of Bond are dramatically more rich than those of Thrift. A good example of these facilities: using the standard metaprogramming API and a bit of magic we have been able to trick Bond into serializing a different serialization system's schema types. So, picture Bond inspecting some C# Thrift type (or something), and then populating the core Bond data structures with data it finds there, and then serializing it to the wire.

This is the kind of power you get when you construct the serializer in memory using metaprogramming, and then expose that to the user. The flexibility is frankly unmatched.

comment 11y ago · link · parent

One problem with traditional VC money is that (most?) major VCs seem to enter the discussions with an idea of how much stake they want in the company they're investing in. So, when you have a number of VCs with this idea in a competitive round, the only thing that a VC can really change is the amount they're putting in relative to what others are putting in, so they all put more money in and the valuation goes way up and the amount of money ends up ballooning to 2 or 3 times what the founders originally wanted to raise. Lame.

Likely or not to succeed, it's clear who the VC system serves right now, and it's good to see the scene starting to shake up. If indie.vc can attract a nontrivial number of good early-stage startups, then they have a legit shot here. And good on them for taking that risk.

comment 11y ago · link · parent

Yes, everyone knows this. This is not helpful.

comment 11y ago · link · parent

Retric, look.

Do you realize that the whole point of asymptotic analysis is that _we do not care_ what integers we "really" deal with? These bounds specifically deal with sorting arbitrary data of unbounded size, and _no other assumptions_.

Do you understand? No assumption that we can use parallelism. No games with integers you see in "real life". None of that is relevant. You can't play games with practicalities to get a better bound. This is the general bound, and if you fiddle with it to get something else, you are changing the scope of the question to be something else entirely.

If you want to have a discussion about those other models, fine, but that's not the discussion we're having.

comment 11y ago · link · parent

It's completely false to say that "we know how schedulers work". The _only_ reason there is confusion in this thread and the 4chan thread is because so few people actually know anything about schedulers. If they did, no one would be confused. The fact that there is confusion at all is basically a huge point for explicitly stating your assumptions.

Moreover, that is essentially the whole point of the field of algorithms. Your job as an algorist is to abstract the algorithm away from the implementation details of wholly separate systems, and make all of your assumptions explicit. If you don't specify it, you can't analyze it. And, if an algorithm has to assume an entire, specific OS and scheduler is implemented under it, then you have gone about your job as an algorist completely wrong.

That is the appeal to practicality. But as if to prove my point, you _do_ end up making assumptions. You are assuming that the scheduler is backed by a priority queue, which is certainly not universally true. You don't get to a hard mathematical bound by waving away a detail as important as the data structure that backs the core sort mechanic. If your approach is to say "y'know, like a _normal_ scheduler", then you should stop and rethink your approach to the problem.

comment 11y ago · link · parent

No, sorry, that's not correct, it's not a decided issue whether it's linear time or not. It depends on what assumptions we _decide_ to make about the scheduler and the OS, what the API for sleep is, and so on.

One reasonable assumption is of course to assume that sleep works as it does on virtually all modern OSs, in which case, you're correct, but that is certainly not the only way it can be. You could easily imagine a specialized SortOS that executes one thread on one process and outputs messages at a specifically scheduled time after a program begins executing, in which case the result would be radix sort with extraneous waiting, rather than priority heap sort with extraneous waiting.

1
8910
19