Better HN
topnewbestaskshowjobs
Log inSign up

nulltype

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

Submissions

comment 10y ago · link · parent

Right, I'd like to avoid that complexity entirely, just get direct access to things rather than hinting what I want.

comment 10y ago · link · parent

Well imagine I could address memory on the CPU die like a register but say 1MB of memory, located right next to the normal place you put a cache.

It does not have to be coherent I think. Process thrashing sounds like an issue though. I imagine if the address space is across all CPU cores then the software can pin to a core so that the access is local. Remote access to another CPU will be slow, but I'm not sure how great it is with caches anyway.

comment 10y ago · link · parent

If main memory is so slow, would it be better to treat cache as memory and handle it directly in code rather than try to trick it into doing what we want?

comment 10y ago · link · parent

Did they change the Skip? I used to take that and it was just a normal bus in the normal street as far as I recall.

comment 10y ago · link · parent

Well the reason light rail and subways are so good isn't because they're on rails, but because they get their own track. If you put a bus on its own street, suddenly they're not as bad anymore: https://en.wikipedia.org/wiki/Bus_rapid_transit

comment 10y ago · link · parent

Does MigratoryData use the kernel networking stack or bypass it? Also is the Zing JVM included or do you have to license that separately?

comment 10y ago · link · parent

That sounds like 1s latency. Is it producing a sustained rate of 2Mpps?

comment 10y ago · link · parent

Where is the ping once per second part? All I could find was this commit removing pings: https://github.com/Gazler/phoenix_chat_example/commit/f809b2...

comment 10y ago · link · parent

I did in the post. Interactive queries.

comment 10y ago · link · parent

I think you are correct, but there is a case where saturating the cluster is maybe not the ideal situation.

I think there's a latency trade-off there. So imagine you have a job where latency matters, like a user wants to run a bigquery-style interactive query across 1TB of data, and ideally it should complete within 1 minute. Lets say it takes 10 instance hours (600 instance minutes) to complete this query.

With per-minute billing you could launch 600 instances and complete it in a minute. You could also do the same with per-hour billing, but you would overpay by a factor of 60x or you would launch 10 instances and wait an hour for the query to complete.

Assuming you have a bunch of these queries coming in, you could queue them up, but then the latency will suffer, because you'll have to delay starting a job until you get to that position in the queue.

If you wish to trade some wait time for some cluster efficiency, yes, you can just queue them up and then slowly scale the cluster up and down to keep 100% utilization.

However, it would be nice if you really could scale up and down at per-minute increments and let Google figure out how to get their cluster utilized efficiently and let them take advantage of their different customers with different workloads and preemptible instances.

comment 10y ago · link · parent

Go has it's own GC, so why would it need WebAssembly's? Does web assembly disallow programs from doing their own GC?

comment 10y ago · link · parent

Wow this guy looks exactly like Jonathon Blow

comment 10y ago · link · parent

Well the actual article says 7% slower when compiling the http package.

comment 10y ago · link · parent

Yeah I couldn't find any estimates about how much time though. It seems like the express train would not be affected much at all.

comment 10y ago · link · parent

Why electrified vs normal caltrain? Will that decrease the variance or door to door time of using caltrain?

comment 10y ago · link · parent

I have a similar setup, but I actually alias the go command itself so I don't have to type anything special.

comment 10y ago · link · parent

Hi! I made some Go customizations for atom, and there were a few things that I thought worked pretty well, maybe consider adding them to this project:

1) Auto GOPATH detection: since all code is located underneath a canonical GOPATH, if the GOPATH is not set, traverse upward a few directories until you find one with a "src" folder in it. This means that I don't have to launch it from a terminal and deal with environment variables. Also, I use a GOPATH per project, so as long as each window auto-detects its own GOPATH, that works great.

2) Cross-compile all the tools (gocode, etc) for the most common platforms, presumably windows and mac, and include them in the extension so that it doesn't rely on auto-install or whatever and just works out of the box.

comment 10y ago · link · parent

While Google could potentially abandon App Engine, it's much more likely it will simply remain unchanged for a number of years (as indeed it has roughly been for the past few years, save for Managed VMs).

GCP is now offering an increasingly larger percentage of what App Engine used to offer, so really the future may look a lot more like just build your apps on GCE + PubSub + Cloud Datastore and don't even mess with App Engine at all.

comment 10y ago · link · parent

I use the lowest level of paid support, I think it is the silver plan, and have observed similarly high quality levels of support. Sometimes you get a lower level support dude and have to convince him that your issue is real, but overall the support is good.

comment 10y ago · link · parent

Running a company and running around a race track might be different sorts of skills.

comment 10y ago · link · parent

I believe you can do renames with the oracle tool

comment 10y ago · link · parent

The most successful micropayment service of can think of is probably Spotify. It doesn't look how everyone was imagining micropayments but is effectively the same thing.

comment 10y ago · link · parent

If you need to write code that runs on your go server and on the client, there's always https://github.com/gopherjs/gopherjs

84.

Assembly programming in Go(goroutines.com ↗)

32 points · by nulltype · 10y ago · 3 comments

comment 10y ago · link · parent

Well one official solution would be to use the vendor path.

comment 10y ago · link · parent

Honestly renewing certs is a huge pain and should be automated even in the 1 year case. I usually have forgotten after a year how I obtained and installed the cert last time.

The Lets Encrypt flow with DNS is way less complicated than obtaining a cert through many commercial services, so it probably works out about even.

12345
16