Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nemo1618
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
99 ms
·
481.
▲
by
nemo1618
8y ago
I have expressed it to them a few times now, yes. :)
482.
▲
by
nemo1618
8y ago
I'm thankful for my parents. Growing up, I thought that my parents were needlessly strict and uncool and that all my friends had it better than me. Only once I was old enough to look at other parents from an adult perspective did I rea
483.
▲
by
nemo1618
8y ago
>mmap() makes it easy to use read-only memory, which catches memory corruption bugs You might appreciate this toy Go package I hacked together: https://github.com/lukechampine/freeze It uses mmap and mprotect to &qu
484.
▲
by
nemo1618
8y ago
Idiomatic Go is influenced by the style of its creators; Russ Cox explicitly endorses the view that "A name's length should not exceed its information content...Global names must convey relatively more information, because they ap
485.
▲
by
nemo1618
8y ago
This chart doesn't take into account the possibility of errors, though (unless you equate an error to wasted time, which is dubious). Even if you only need to run a command once a year, and it only involves a few short steps, it's
486.
▲
by
nemo1618
8y ago
It's arguably more error-prone, e.g. Rob Pike justifies Go's decision to use curly braces like so: >Some observers objected to Go's C-like block structure with braces, preferring the use of spaces for indentation, in the s
487.
▲
by
nemo1618
8y ago
I really can't stand how articles like this bury the actual information (in this case, basically just CBT) deep in anecdotes and other context that I don't care about. Is it just me, or has it gotten worse lately? Maybe in the Age
488.
▲
by
nemo1618
8y ago
Hmm. I was hoping for something more definitive here, like "The masses of each particle are known to be correct to 5 decimal places. Even if we nudge each value as far as we can, the result is still slightly less than 2/3."
489.
▲
by
nemo1618
8y ago
Since no one seems to have answered your other question: The intended meaning is almost certainly "It blocks X11 selection stealing for inane security reasons."
490.
▲
by
nemo1618
8y ago
You call that a WAT? I'll show you a WAT. https://play.golang.org/p/ePRpDbaFaRl
491.
▲
by
nemo1618
8y ago
I used the method of Dr. John Sarno to rid myself of chronic wrist pain/RSI. I say "rid" instead of "cure" because Sarno's method claims that such pain is entirely psychogenic, and is thus addressed by psycholo
492.
▲
by
nemo1618
8y ago
I've been writing Go for five years and I've never had a pressing need to create my own generic container type. The built-in types -- arrays, slices, maps, and channels, or some composition of them -- have proved sufficient. When
493.
▲
by
nemo1618
8y ago
I'm glad I'm not the only one sad to see generics invading a perfectly good language. Programmers love generics because they enable higher-order abstractions, and programmers love abstractions -- code that isn't DRY is like a
494.
▲
by
nemo1618
8y ago
You might be interested in my project: https://github.com/lukechampine/ply The idea is that when people say "generics", they usually just mean map/filter/reduce. So ply just bakes those into the lan
495.
▲
by
nemo1618
8y ago
Yeah, I ask because that's my personality type as well, and stress has manifested in a number of chronic physical symptoms for me (primarily wrist pain and gastro problems). Treating the symptoms as a signal, like "oh, I must be s
496.
▲
by
nemo1618
8y ago
Do you have chronic pain or another chronic condition? I'm trying to find out if they're common among people who are non-confrontational, perfectionists, and generally suppress their emotions.
497.
▲
by
nemo1618
8y ago
If you're implying that "import foo" always puts foo in scope, that's never been true -- the package name doesn't need to match the last element of the path. Granted, you can count on it being true in 90% of cases,
498.
▲
by
nemo1618
8y ago
If you mean ChaCha20-Poly1305, looks like performance improvements may land in Go 1.12: https://github.com/golang/go/issues/22809 ChaCha can be accelerated with generic SIMD instructions on any arch that supp
499.
▲
by
nemo1618
8y ago
>Business may be a game, Levine realized, but it's not a one-time game. It's more like an infinite game. It's a game in which people have to live with each other, work with each other again, and perhaps, write another big
500.
▲
by
nemo1618
8y ago
Related: if anyone hasn't seen this before, you have to check out the infamous, utterly bizarre pitch for Pepsi's latest logo: https://www.goldennumber.net/wp-content/uploads/pepsi-arnell... Don't
501.
▲
by
nemo1618
8y ago
I'm relieved to see that the fate of Go is ultimately controlled by a small team of highly talented engineers, not a nebulous "community" that designs by democracy. If Go had been designed by community vote from the beginning
502.
▲
by
nemo1618
8y ago
Based on the length of this article, I was hoping it would actually, you know, describe the method used to reverse T2D, but I didn't see any such description other than vague references to "nutrition." Frustrating. Also, I&
503.
▲
by
nemo1618
8y ago
I love Go's value types. If you're careful/obsessive, you can write programs that don't allocate anything on the heap. That sort of power is really nice to have in a pinch.
504.
▲
by
nemo1618
8y ago
Thanks for the detailed reply. I agree that this isn't the best use of Anki; I did it more as a way of testing how effective spaced repetition is. And in that respect, the experiment was a success, so now I feel confident using this sy
505.
▲
by
nemo1618
8y ago
Low-level languages are almost always "hacking" languages, since direct hardware access inevitably brings with it a degree of unsafety. But the reverse is not true: "hacking" does not imply "low-level," as exem
506.
▲
by
nemo1618
8y ago
The distinction between "hacking" and "protective" languages is a good one. If you want to be balanced as a programmer, you need to deeply understand at least one language in both categories. Protective languages are won
507.
▲
by
nemo1618
8y ago
I've been experimenting with Anki recently. I loaded up a deck of popular fonts, with the goal being to memorize them to the point where I could recognize them in the real world. Each card contains the sentence, "The quick brown f
508.
▲
by
nemo1618
8y ago
Don't mind me, just sharing my favorite Van Gogh self portrait: https://www.vangoghmuseum.nl/en/collection/s0016V1962 The long, aligned strokes give the painting a feeling of motion and gravity, like bits of
509.
▲
by
nemo1618
8y ago
I think the author hits the nail on the head here: >Almost all the tricks I’ve built up over the years for creating embedded DSLs in Java or Ruby or Clojure are simply unavailable. >...if there’s one complaint I’ve heard consistently
510.
▲
by
nemo1618
8y ago
[]byte is crucial if you need to frequently modify the contents. The classic example is building a string with a loop that appends a new character on each iteration. Using += to concatenate strings inside such a loop will be slow; the Right
More ›