Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
echlebek
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
421.
▲
by
echlebek
10y ago
It's probably a bad thing. From what little I understand: the earth has a lot of carbon dioxide and methane sequestered in permafrost, deep water, and ice. As the average temperature increases, the rate at which these gases are release
422.
▲
by
echlebek
10y ago
Everyone just hates ads.
423.
▲
by
echlebek
10y ago
"I’m not ready to destroy my entire FB identity, but after posting this, I will logout and delete the app as a first step." I abandoned facebook in 2012, deleting my profile entirely. I'd encourage the author to do the same.
424.
▲
by
echlebek
10y ago
This is not inheritance, but rather embedding. A form of composition. Go does not have inheritance. https://golang.org/doc/effective_go.html#embedding
425.
▲
by
echlebek
11y ago
There's lots of countries that have socialist policies that are doing just fine, many of them western countries. Sometimes they are better off than the USA. Socialism just happens to be a dirty word in American culture. Here's one
426.
▲
by
echlebek
11y ago
My father always said "Practice makes permanent" and I think he was right about that.
427.
▲
by
echlebek
11y ago
Classical instruments are designed, just as much as any other artifact created by humans. If pianos were not designed, then neither were bicycles, looms or printing presses.
428.
▲
by
echlebek
11y ago
This is a good thing. It means there is a 1:1 mapping between numbers in JSON5 and IEEE floats.
429.
▲
by
echlebek
11y ago
Go has concurrency features that the other languages you mentioned don't have. The select construct is a very nice language feature and allows a surprising amount of power. Go's compiler is very fast, which saves a lot of time in
430.
▲
by
echlebek
11y ago
Like the JVM, Go programs have a runtime that has overhead.
431.
▲
by
echlebek
11y ago
Benchmarks are an important part of optimizing a program. Another important part of optimization is profiling. Profiling lets you see where your program is spending the bulk of its time. Then you can make informed decisions about where to d
432.
▲
by
echlebek
11y ago
> Some worry sex robots might hurt already marginalised sex workers I doubt that anyone actually worries about this.
433.
▲
by
echlebek
11y ago
I take it you're not from a rural area. I was splitting wood when I was the age of those girls. It's not as dangerous as you make it out to be.
434.
▲
by
echlebek
11y ago
It's extremely easy to create apps in Python and Qt. Deploying those apps consistently is hard.
435.
▲
by
echlebek
11y ago
Thank you both for the helpful replies.
436.
▲
by
echlebek
11y ago
I've had a lot of pushback from our operations team about the Go TLS stack, which they consider to be less secure and less vetted than OpenSSL. They (rightly) point to this message from Andrew Gerrand in 2013: https://groups
437.
▲
by
echlebek
11y ago
Funny enough, we started out with a file-based system like the one you described, and moved to an HDF5-based system. Are you not concerned about i-node consumption with the file-system based approach?
438.
▲
by
echlebek
11y ago
A former coworker of mine has made a lot of contributions to a project called sovereign: https://github.com/sovereign/sovereign > "Sovereign is a set of Ansible playbooks that you can use to build and maintain
439.
▲
by
echlebek
11y ago
I'm 32 years old. I haven't ever had a cable subscription or equivalent. I grew up in rural Canada. We had two channels (broadcast) because cable companies wouldn't service our area. Once I moved out, I could barely afford to
440.
▲
by
echlebek
11y ago
The Go authors have solved this problem thoroughly. When working in Go, I usually never have to think about this. https://blog.golang.org/strings
441.
▲
by
echlebek
11y ago
> Would you take more money to be a janitor? Yes. There is nothing wrong with being a janitor.
442.
▲
by
echlebek
11y ago
Hi, I enjoyed your article. You have some good points about tiny types, but if you read through the code in the Go standard library, you won't find this style applied in very many cases. Typically, only if one wishes to attach a method
443.
▲
by
echlebek
11y ago
f = open("mainfile") print(f.read())
444.
▲
by
echlebek
11y ago
But nobody uses smallbasic, and millions of people use Python. edit: I'm being hyperbolic here, but I think ubiquity is extremely important. You want people to be able to play.
445.
▲
by
echlebek
11y ago
I found reading this oddly therapeutic.
446.
▲
by
echlebek
11y ago
Once you've exhausted all the low-hanging fruit, like people calling .keys() on dicts, or doing unnecessary linear searches, Cython really starts to shine. I've seen it perform ~40 times better than pure Python in time-consuming l
447.
▲
by
echlebek
11y ago
I've optimized quite a bit of code with Cython. I do something like: python -m cProfile module.py | gprof2dot -f pstats | python -m xdot -
448.
▲
by
echlebek
11y ago
This is a comically myopic viewpoint, bordering on offensive to those of us who live in the (very large) world outside of Silicon Valley. There are some really amazing places and people out there. You can have an excellent life and career w
449.
▲
by
echlebek
11y ago
Dr. Knuth did a Q&A session at UBC earlier this year, which was open to the public for free, on a first-come first-serve basis. I was able to score a seat. He was a wonderful and thoughtful speaker, and did his best to answer questions
450.
▲
by
echlebek
11y ago
I happen to really like A-star search. So I'll give this a shot just for fun. Let Q[(Node, Cost)] be a priority queue. Let G be a graph. (This makes up the search space.) Let V be the set of Nodes visited by the algorithm. Le
More ›