HN user

kevinconaway

876 karma

[ my public key: https://keybase.io/kevinconaway; my proof: https://keybase.io/kevinconaway/sigs/5RIAFrQwmuMtu-IH6gRMOAPM0cbYiD3-EEtPJZS2wZA ]

Posts45
Comments56
View on HN
slate.com 2y ago

“Wilhoit’s Law” was created by a different Frank Wilhoit (2022)

kevinconaway
2pts0
www.washingtonpost.com 2y ago

Pearls Before Breakfast (2007)

kevinconaway
1pts0
www.nytimes.com 3y ago

David Shor, a Data Guru for Democrats, Throws One Last Bash

kevinconaway
2pts0
www.washingtonpost.com 3y ago

A neighborhood’s cryptocurrency mine: ‘Like a jet that never leaves’

kevinconaway
5pts2
www.eater.com 5y ago

In Some States, the Boon of To-Go Cocktails Is Going, Going, Gone

kevinconaway
3pts0
www.washingtonpost.com 5y ago

Interior Department approves first large-scale offshore wind farm in the U.S.

kevinconaway
4pts0
www.washingtonpost.com 5y ago

Interior Department approves first large-scale offshore wind farm in the U.S.

kevinconaway
3pts0
nigeltao.github.io 5y ago

The Eisel-Lemire ParseNumberF64 Algorithm

kevinconaway
3pts0
www.bloomberg.com 5y ago

The L.A. Dodgers Are Named After Terrified Brooklyn Pedestrians

kevinconaway
1pts0
www.npr.org 5y ago

Mask Mandates Work to Slow Spread of Coronavirus, Kansas Study Finds

kevinconaway
23pts17
github.com 5y ago

Octotree and AGPL

kevinconaway
2pts1
www.bloomberg.com 5y ago

The L.A. Dodgers Are Named After Terrified Brooklyn Pedestrians

kevinconaway
1pts0
charity.wtf 5y ago

On Call Shouldn’t Suck: A Guide for Managers

kevinconaway
11pts1
www.washingtonpost.com 5y ago

Twitter issues new rules to counter manipulation ahead of election

kevinconaway
3pts0
www.nytimes.com 5y ago

There Are Two Ways Out of a Frog. This Beetle Chose the Back Door

kevinconaway
2pts0
www.npr.org 6y ago

How Inuit parents teach kids to control their anger (2019)

kevinconaway
177pts134
www.washingtonpost.com 6y ago

J. Crew files for bankruptcy, the first national retail casualty of the pandemic

kevinconaway
2pts0
www.washingtonpost.com 6y ago

Silicon Valley’s two-tiered system for white-collar workers is under pressure

kevinconaway
17pts1
hbr.org 6y ago

Two New Moms Return to Work – One in Seattle, One in Stockholm

kevinconaway
83pts72
www.washingtonpost.com 6y ago

Court orders Pentagon to halt work on Jedi cloud contract after Amazon protests

kevinconaway
3pts0
blog.golang.org 6y ago

Next Steps for Pkg.go.dev

kevinconaway
1pts1
www.washingtonpost.com 6y ago

France says its poultry industry will stop shredding male chicks by 2022

kevinconaway
3pts0
www.theverge.com 6y ago

Google aims to unify its workplace tools and messaging apps into one service

kevinconaway
1pts0
www.businessinsider.com 6y ago

WeWork is getting rid of free beer and wine on tap in North America

kevinconaway
2pts0
www.nytimes.com 6y ago

Caroll Spinney has died

kevinconaway
153pts29
blog.golang.org 6y ago

Go Turns 10

kevinconaway
337pts223
blog.golang.org 6y ago

Working with Errors in Go 1.13

kevinconaway
184pts114
www.insider.com 6y ago

Photos taken by the EPA reveal America before pollution was regulated

kevinconaway
157pts62
medium.com 6y ago

Performance Under Load – Adaptive Concurrency Limits Netflix (2018)

kevinconaway
2pts0
www.washingtonpost.com 6y ago

After Trump cites Amazon concerns, Pentagon reexamines $10B cloud contract

kevinconaway
13pts0

Because I have allowed my phone to absolutely ruin my attention span. If a show isn’t immediately engaging enough, I find myself reflexively reaching for my phone to fritter away time.

In the same vein, I have to consciously avoid taking my phone out while sitting at a stop light or going to the bathroom

It didn’t used to be this way and I hate it

With 200 CPU threads (128 CPU cores), I think most startups can run a complex microservice environment on a single machine.

Why would you want to? Your whole environment will be down when the machine, or some component thereof, fails or is rotated out for maintenance

I think this is more of a benefit for cloud providers in that they can pack more disparate customer workloads on to a single machine.

I think there is a difference between architectural changes that would inhibit the overall performance of an application vs language specific optimizations like the article is referring to.

My comment re write-profile-optimize was geared towards the latter, i.e. using strconv is usually uglier to read than fmt.Sprintf, you probably should leave it alone unless you've profiled and found it to be a problem.

Most of these techniques sacrifice readability so before implementing them, you should really profile to make sure that the code in question is a hot spot in terms of allocations or CPU usage.

That said, the example using sync.Pool is not quite right. The New function should always return a pointer type to avoid incurring an additional allocation on Get [0]

The code should look like:

  var bufpool = sync.Pool{
    New: func() interface{} {
        buf := make([]byte, 512)
        return &buf
    }}

  b := *bufpool.Get().(*[]byte)

  defer bufpool.Put(&b)
[0] see example in https://golang.org/pkg/sync/#Pool

How many people are willing to spend thousands on an exercise bike?

A lot, myself included. My wife and I gave it to each other for Christmas one year, right before our daughter was born.

At the time when we were new parents, it was perfect. We could exercise quietly without waking either the baby or each other, all without leaving the house.

Now that our daughter is older, we still use it albeit more infrequently in the summer when we both like to go out and run. However, the digital classes offered in the app are great for running & training. For me personally, it was easy to get stuck in a rut of just plodding along and not really improving my fitness. Having the coaches in your ear telling you what to do works well for me.

Apache Flink 7 years ago

It makes you wonder about some of the other insightful sounding top comments on topics that you aren't as well versed in

Unless you're in a niche that people are willing to pay a margin for or serve upscale customers who also don't mind paying margins (Costco, Whole Foods, Nordstroms, Apple, etc)

Is it fair to lump Costco in with these other companies as an example of places where consumers don't mind paying higher margins?

From a quick google search on gross profit margins:

- Costco: 13%

- Nordstrom: 38%

- Apple: 38%

- Costco: 33%

Costco's is also likely skewed due to their house brand where they likely make a much higher margin than the name brands

Ro Khanna is my hometown progressive. So..obviously..I distrust the politician representing us.

As someone not from the Bay Area, will you please explain why this is obvious?

Why can’t he do a better job with our multitude of problems?

Perhaps because he has only been in Congress since 2016 and in that time, the Democrats have been in the minority and mostly powerless to do much of anything

They Rejected Us 8 years ago

You're right, it is a two-way street. Candidates go in to the process hoping to get a job and employees go in to the process hoping to get a co-worker. Both are acting in good faith

Most companies disclose what their process is up front and you're free to opt out at any time. Intentionally wasting the time of the recruiters and engineers at companies you don't want to work for just to "practice" just seems really rude

They Rejected Us 8 years ago

Recruiting is a time consuming task for all involved and for you to casually waste peoples time in that manner is horribly disrespectful

They Rejected Us 8 years ago

I don't understand people who take a "no thank you" personally, some of the comments are along the lines of: "Ha! sure showed them!" but really it's just like dating, sometimes you get passed up for no other reason than you weren't the person the other was looking for at the right time.

Perhaps that makes sense if you don't make it past the application or initial phone conversation

However, once a company gives you the opportunity to demonstrate your professional skills, either via a technical phone screen / homework / on-site whiteboard-a-palooza, I don't think its accurate to state that they're just not that in to you.

Your personal performance in that session is the reason for you advancing forward or not and when you don't, it is hard not to take that personally.

Crystal City is a nightmare from a commuting perspective and an awful place to live.

Its more or less a ghost town since BRAC moved out a bunch of agencies and contractors a few years ago. This had the effect of hollowing out what little independent retail / dining there was there as most of it catered to the office lunch crowd.

From a commuting perspective, its right across the river from DC which makes it very difficult to get to from a driving / bus perspective. Taking the metro is somewhat better but would require a transfer for many people.

I honestly cannot think of a reasonable argument for why constant values should not be in static constants or enums.

My personal opinion is that values should be in constant values if:

- Its repeated more than once or referenced outside of the file

- The constant value is a "magic number" where the meaning of the value isn't obvious to outsider

If the value is used only once and the meaning of the value is clear, I think extracting a constant out is needless indirection.

For example:

  if (flags & 45676 == 0) {}
is a magic number that definitely should be a constant, even if its only used once:
  if (flags & ROLE_ADMIN == 0) {}
However something like:
  pool.setDefaultTimeoutMillis(1000);
is perfectly obvious in context IMO