Better HN
topnewbestaskshowjobs
Log inSign up

sgmansfield

178 karma · joined May 25, 2016 (10y ago) · 31 submissions

[ my public key: https://keybase.io/paintballbob; my proof: https://keybase.io/paintballbob/sigs/8dngTxemmp2BUW3l6lOcEGUuxSbLxo-Fmy5qD8M3-gI ]
Submissions

1.

Tracking GitHub Stars(blog.gopheracademy.com ↗)

1 points · by sgmansfield · 8y ago · discuss

2.

Tracking the Stars(blog.gopheracademy.com ↗)

1 points · by sgmansfield · 8y ago · discuss

comment 9y ago · link · parent

I would hazard a guess that nearly all large scale use cases are negotiating those prices down quite a bit.

4.

GopherCon Talk: Creating a Custom Serialization Format(about.sourcegraph.com ↗)

2 points · by sgmansfield · 9y ago · discuss

comment 9y ago · link · parent

It's worth noting that they're running this benchmark on an absolutely enormous (and expensive) instance: https://aws.amazon.com/ec2/instance-types/x1/

comment 9y ago · link · parent

Call the credit card company and dispute the charges. Also, block any further charges if you can. Nothing gets people's attention like messing with their cash flow.

7.

Responding to everyday bigotry(splcenter.org ↗)

3 points · by sgmansfield · 9y ago · discuss

comment 9y ago · link · parent

Fantastic article. I noticed a couple of TODO's around, though. Does this hint at a second installment? :)

9.

Nanolog: Super Fast Logging for Go(blog.sgmansfield.com ↗)

4 points · by sgmansfield · 9y ago · discuss

comment 9y ago · link · parent

Sure, but that ruins the fun :)

comment 9y ago · link · parent

Thanks for letting me know, I'll see if I can fix it. If I could trouble you to do so, can you provide a screenshot?

comment 9y ago · link · parent

This was probably not explained well. The compilation failed with an error saying that I was basically trying to do something that was not allowed.

For your second question: I don't believe there is a way to use a separate assembler.

13.

A Foray into Go Assembly Programming(blog.sgmansfield.com ↗)

143 points · by sgmansfield · 9y ago · 20 comments

comment 9y ago · link · parent

client-side compression works out better for a couple of reasons:

1. You use less bandwidth in/out of the box. This matters in AWS because your bandwidth is (relatively) limited.

2. Your CPU usage to (de)compress is distributed over a larger fleet. The clients spend the CPU time, not the cache servers.

comment 9y ago · link · parent

Yeah it absolutely is. In fact, there's been tons of large improvements as of late, with more coming.

16.

Goroutree: A tree-based set made of coordinating goroutines(blog.gopheracademy.com ↗)

2 points · by sgmansfield · 9y ago · discuss

comment 10y ago · link · parent

Somewhat disappointing. It's just a long ad for nested.

18.

Go proposal: clarify how proposals are evaluated(github.com ↗)

1 points · by sgmansfield · 10y ago · discuss

19.

List of TCP and UDP Port Numbers(en.wikipedia.org ↗)

3 points · by sgmansfield · 10y ago · discuss

comment 10y ago · link · parent

Do you have a source for the 1% number?

Also I'd like to know what you would consider an appropriate amount of assembly code.

comment 10y ago · link · parent

He is not the sole contributor, actually. He squashes master every once in a while to a single commit, which removes other authors. If you peruse the travis builds page[1] you can see commits by other people

[1] https://travis-ci.org/kataras/iris/builds

comment 10y ago · link · parent

More specific to the license violations is this issue on httprouter:

https://github.com/julienschmidt/httprouter/issues/148

23.

Iris framework author exposed for license violations(reddit.com ↗)

27 points · by sgmansfield · 10y ago · 12 comments

24.

Managing Syscall Overhead with crypto/rand(blog.sgmansfield.com ↗)

1 points · by sgmansfield · 10y ago · discuss

comment 10y ago · link · parent

I was just about to post this exact same thing. Now there's an introduction of ranges and another API that is necessary to understand in order to grok this code. Bit twiddling, ANDing, and ORing are specific and absolute.

For example, what happens when I specify a range of 0..100 for a 32 bit int? what if the value is too big for the range? APIs around small operations like this introduce ambiguity that wasn't present before.

comment 10y ago · link · parent

Author here (of both Rend and the post).

We really are looking for raw performance, but not at any cost. I spent a bunch of time, and continue to do so, to eliminate extra work, indirection, and garbage.

Efficiency of runtime and development is a careful balance that Go fits well. Rust is immature. C is difficult for people who haven't been writing it professionally. Java (less Zing or other special cases) is too latent, even if it's very fast when it's running because of HotSpot optimizations. The list goes on, but I didn't see a reason to choose the others over Go, nor have I found something yet that beats it for our use case.

Really, Java just wasn't the language for the job. Go has a lower level and simpler interface, simpler runtime (with less indirection), and better model for concurrency. Yes, it's a new language for us, but it was the right tool for the job. Our garbage collection pauses are mostly under a millisecond, so they aren't really an issue.

Zing never really was on my radar. Looking at it now I shudder to think of the licensing costs, especially since we run tens of thousands of cache instances. We already pay enough just to run these servers. It's also a new Java runtime which very few people know about, and probably nobody at Netflix has used. I would have had to learn it all independently and continue to be on my own from then on. The Go slack team and community in general are very helpful and supportive, and I would speculate that the same level of support isn't available for Zing without paying.

comment 10y ago · link · parent

OK, I can reproduce. I'll forward, something seems wrong (obviously). Thanks for reporting this.

edit: No SSL on blogger custom domains. Sorry =/

comment 10y ago · link · parent

Sorry, not sure what's wrong. I tested in the latest firefox, safari, opera, and chrome and it works for me.

Edit: blogger doesn't do SSL on custom domains. Sorry =/

12