Better HN
topnewbestaskshowjobs
Log inSign up

nulltype

738 karma · joined Oct 15, 2013 (13y ago) · 478 submissions

Submissions

comment 11y ago · link · parent

Does Spanner talk to Bigtable? From reading the paper, I thought it was built directly on Colossus.

comment 11y ago · link · parent

How does it handle making a blocking socket call in a go goroutine?

comment 11y ago · link · parent

Here's a pretty sweet pick and place robot for reference: https://www.youtube.com/watch?v=vzHpDDttIBU

comment 11y ago · link · parent

Sure the robots can pick items out of bins, but can they wait in a 30 minute long security screening line at the end of their shift?

comment 11y ago · link · parent

Well what if this person was unemployed or unable to work? I think that maybe having health care depend on your employer is a bad idea.

comment 11y ago · link · parent

There's a similar one in Kyoto at the JR Rail station that is very nice with 8 styles of ramen, all in different little sit down restaurants with ticket machines: http://www.insidekyoto.com/kyoto-ramen-koji

comment 11y ago · link · parent

The Toto Washlet S300e comes with an air dry feature.

comment 11y ago · link · parent

This strikes me as an amazingly rational approach to build vs buy. Including trying to estimate the entire cost.

A solution you build yourself costs more than just the time of the engineer to build the first version, the work revolving around maintenance and improving it, when that could be borne by an outside company, could be quite high. Also, when an outside company makes it, they can amortize the cost of a new feature across multiple customers. And people will often build things that work with that product, saving you even more effort.

The cost of buying though, is also of course not just the money you pay (free and open source still have a significant cost). How complex is the bought system vs the one you would build? How hard is it to replace with something else? How well tested is it? I've done the 'buy' approach with some open source things and services before and super regretted it when it took longer to debug than writing my own and maintaining it would have.

comment 11y ago · link · parent

My understanding of the NIMBY thing is it's either: A) keep everything the way it is so that things don't change for me or B) keep everything the way it is so that my home value goes up. The arguments you use to enact a NIMBY strategy are not really important.

So type A NIMBYs were "right" in that they didn't want BART to go through their neighborhood because it would case the neighborhood to change, and lo and behold it did. Type B NIMBYs were "wrong" if they argued against BART because it had a positive effect on their home values.

comment 11y ago · link · parent

This is what I've done in the past, not sure why we need to "hack TCP" to get zero downtime.

As an additional thing I do rolling deploys where I just create an entirely new VM and add it before removing the old one. This just means that I don't have to recycle a node that might potentially have some state on it.

comment 11y ago · link · parent

I've seen some pretty impossible to comprehend or debug uses of templates. Perhaps my favorite, which represents most of the pitfalls you can create with C++ is the Boost library. And of that, the shining star is this page: http://www.boost.org/doc/libs/1_57_0/libs/geometry/doc/html/...

comment 11y ago · link · parent

The pitfalls of C++ that I've seen are mostly the things people build with the safe alternatives.

comment 11y ago · link · parent

A docker container is basically statically linking your binary one level higher. Rather than just including the libraries, you include all the support files and other processes. A VM is then like the next level above that.

comment 11y ago · link · parent

I imagine that if OSv becomes popular it will look like that.

comment 11y ago · link · parent

We got that solved. https://github.com/antirez/sds

comment 11y ago · link · parent

Thank god it's written in C and not C++

comment 11y ago · link · parent

You can also use localstorage these days. It's great not having to send data on every request.

comment 11y ago · link · parent

Yeah, REST is nice for some things, but for normal APIs, you're calling them from a programming language, so calling remote functions (RPC) is very similar conceptually to calling local functions. You might not be able to guess the paths as easily as REST(?) but then again trying to make things REST style doesn't always work out when the things don't allow all the REST verbs or don't fit into a hierarchy, etc.

For serving a filesystem over HTTP REST is great though. And all that caching stuff comes in handy.

From a practical API standpoint though, having two different encodings (GET in url with url parameter encoding, and POST with form encoded or JSON) is a pain and has caused a number of minor bugs and definitely extra work.

Using HTTP is basically a socket for JSON RPC style calls is I think the most straightforward route. In this you have one RPC per request, POST only, with a JSON request body and JSON response. If you use keep-alive it's similar to a socket but can go through some firewalls a bit easier, and has a built-in framing format and metadata thing. Also it works with existing log monitoring tools and frameworks.

comment 11y ago · link · parent

I agree that this doesn't seem to actually cover practical memory management. In Go (and perhaps most languages) this seems to mean avoid allocations, and if you have to allocate, avoid the heap.

Maybe some information about how heap size and mutation rate affect GC would be interesting, as well as the future of the Go GC.

One interesting thing about Go is that if your objects contain no pointers, the Go GC does not have to scan them. So you can supposedly create huge slices of any type containing no pointers and the GC will have a much lower load on it.

There's a really good article from Dmitry Vyukov including memory related stuff here: https://software.intel.com/en-us/blogs/2014/05/10/debugging-...

comment 11y ago · link · parent

What's the limit on limo medallions? Those use public streets.

comment 11y ago · link · parent

I'm suspicious of some of these reasons though. Why did they have so few taxi medallions in NYC? Why are they allowed to be leased to drivers?

comment 11y ago · link · parent

I haven't used Pusher or Socket.IO, so I don't know specifically what they offer. However, I have made a simple unidirectional websocket-type server and it was not a terrible hassle.

With a go server on a GCE n1-standard-2 you should be able to handle over 100k connections per server. I haven't done any benchmarks for throughput, but using redis as the messaging backend you can do pretty well.

You take 100k connections on each of the endpoint servers and make a single redis connection, using redis pubsub to subscribe to channels. Publishers can connect to the same redis and publish to those channels.

If you wanted bi-directional it could work a similar way I think, I'd guess the specific architecture depends on your requirements.

comment 11y ago · link · parent

I don't think performance costs are that big of a deal in general. The real costs with those sorts of services is perhaps centralization and dependency on an outside entity.

If we did manage to create some magical cross-language library (compile everything to C?) then maybe libraries would be back in style.

comment 11y ago · link · parent

Hilariously we seem to be getting code reuse mostly through network services these days instead of language specific libraries.

comment 11y ago · link · parent

He's like the Uber of startup founders.

comment 11y ago · link · parent

I think they should fix that bug where it's not actually looking at the comments. However, with the exception of that bug, I don't think I have ever made a comment that started with "//go:" and was not a directive. It seems kind of hard to make one of those by accident.

comment 11y ago · link · parent

Yeah me too, and I can't recall that ever causing an issue with these comment directives.

comment 11y ago · link · parent

I don't really agree. I don't see any substantial difference between //go: and #go: except that programs using the # syntax would not build on older versions of go. I haven't really run across any issues with the current syntax. What kind of issues are you having?
1
101112
16