Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cdoxsey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
98 ms
·
271.
▲
by
cdoxsey
9y ago
From the faq: https://golang.org/doc/faq#get_version > If you're using an externally supplied package and worry that it might change in unexpected ways, the simplest solution is to copy it to your local reposit
272.
▲
by
cdoxsey
9y ago
You can override the location of a package with dep. Indirection doesn't solve the problem it just moves it to the centralized repository. Go designers recommend vendoring packages which solves the problem.
273.
▲
Extending GopherJS
(doxsey.net)
1 points
by
cdoxsey
9y ago
|
0 comments
274.
▲
by
cdoxsey
9y ago
But then there's the cancer-warning-sign-manufacturing lobby...
275.
▲
by
cdoxsey
9y ago
> No, they are not. Hiring someone from a disadvantaged group does not mean that you have to fire someone from a privileged group. That is what a zero-sum scenario would require. No it requires not hiring the privileged group. If you are
276.
▲
by
cdoxsey
9y ago
How does that help a poor worker in Bangladesh? In many of these countries people voluntarily choose to work in these factories. They're terrible places to work, but apparently its still better than working in the fields. A more effect
277.
▲
by
cdoxsey
9y ago
They provide many things: - managed systems like s3, dynamodb, etc, which are not trivial to run yourself - on-demand and flexible instance types which allow you to try something without committing - spot instances, autoscaling groups, acce
278.
▲
by
cdoxsey
9y ago
The next 20 years will be a constant stream of half broken robots and ai systems. At least until we either get them to actually work or we figure out how bad they are and go back to using people again. It will be like setting up video confe
279.
▲
by
cdoxsey
9y ago
Check out Ecclesiastes. “Meaningless! Meaningless!” says the Teacher. “Utterly meaningless! Everything is meaningless.” 3 What do people gain from all their labors at which they toil under the sun? 4 Generations come and generat
280.
▲
by
cdoxsey
9y ago
FWIW that benchmark is not reliable . Developers have submitted go programs that do far better, but they get rejected because they use custom memory allocators. This is despite the fact that C++ does precisely this with an arena allocator.
281.
▲
by
cdoxsey
9y ago
If you run things efficiently you're eaking every ounce of performance out of this hardware. A 30% performance hit means a 30% cost increase. The bigger issue is for things that don't scale easily. That sql server that was at 90%
282.
▲
by
cdoxsey
9y ago
Your comment about religion is incorrect. Americans are very generous: https://givingusa.org/giving-usa-2017-total-charitable-donat... . Conservative Evangelical Churches spend an enormous amount of time and money helping pe
283.
▲
by
cdoxsey
9y ago
also check out https://github.com/golang/mock for mocking
284.
▲
by
cdoxsey
9y ago
It's been my hope that the russia story and Google and Facebooks realization of the technology they've built has been used in ways they never intended, might stand as a sober reminder about the reality of evil in the world. People
285.
▲
by
cdoxsey
9y ago
I disagree that its straightforward in C. C is built around pointers, but the bitmasked array uses a completely different kind of pointer. IE you can't just do n->n.num_children++; n->children[c] = (art_node*)child;
286.
▲
by
cdoxsey
9y ago
The Array Mapped Trie is an interesting data structure that's really hard to represent in code. Even this rust version is forced to use unsafe and manual allocation to pull it off. Most libraries seem to resort to using a dynamic array
287.
▲
by
cdoxsey
9y ago
I suspect this was said in jest, but have you tried steam lately? Nearly all indie games work in linux now, and even some major titles do (like Total War).
288.
▲
by
cdoxsey
9y ago
In the real world the kid who got 90% in 60 minutes becomes your manager when he realizes he's better off managing people than writing code.
289.
▲
by
cdoxsey
9y ago
Ameericans do realize how unhappy they are. There's an epidemic of opiate addiction. That unhappiness is the result of many things: major changes in the job market leaving millions without opportunities, the collapse of hundreds of sma
290.
▲
by
cdoxsey
9y ago
Here are a couple options: 1. You can use a blocker like qustodio. Use a long password you can't remember, write it down and give it to a friend. 2. Use accountability software like covenant eyes. Someone would receive a list of every
291.
▲
by
cdoxsey
9y ago
> Is there a good argument against this? Yes. The infrastructure in and around NYC. All the bridges need to be replaced (you can literally see the water below through them), the subway system is in tatters, Penn station is a mess of trai
292.
▲
by
cdoxsey
9y ago
Investing actually achieves something. When I make an investment in a company I'm providing capital that that company can use in various ways. In return I become an (very small) owner of the company. I get a say in how it's run (v
293.
▲
by
cdoxsey
9y ago
As a Christian, I would say, in general, no they should not be punished or fired for it. Occasionally people say things I find offensive, but its usually unintentional or, at the least, impersonal. A lot of engineers are very secular and ha
294.
▲
by
cdoxsey
9y ago
Don't disagree but what often goes unnoticed in this discussion is that there are generics designs out there: https://github.com/golang/proposal/blob/master/design/15292-... . It's not so m
295.
▲
by
cdoxsey
9y ago
The go assembly language is a bit idiosyncratic and didn't include all instructions, which led to https://golang.org/doc/asm#unsupported_opcodes . The standard library is actually chock full of specialized assembl
296.
▲
by
cdoxsey
9y ago
Perhaps there are use cases where this would make sense (mobile?), but for a server-side application, wouldn't encrypting the filesystem be better? I'm just imagining an operator trying to debug the system only to find out that he
297.
▲
by
cdoxsey
9y ago
One place this is really important is time. Never use a bare integer or float for measuring time (is it seconds? milliseconds? nanoseconds?), but something strongly-typed like datetime in python, or time.Time in Go. Also please do this in y
298.
▲
by
cdoxsey
9y ago
This is spot on. We actually do have immutable binaries and rebuild and replace them when making changes. (Unless you're Microsoft apparently) A more apt metaphor might be running multiple versions of the same binary which are similar
299.
▲
by
cdoxsey
9y ago
It looks like the swedish transplants were funded by research at a university, not insurance: http://sahlgrenska.gu.se/english/research/uterus/questions (though perhaps that's a distinction without a dif
300.
▲
by
cdoxsey
9y ago
In particular if the government freed up some of the wireless spectrum we could see wireless internet competition.
More ›