Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rbonvall
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
91.
▲
by
rbonvall
7y ago
Thanks for putting it this way. I always wondered why cross compilation was a big deal. For me it sounds like saying "look, I can write a text in English without having to be in an English-speaking country!".
92.
▲
by
rbonvall
7y ago
It's a reference to the Silicon Valley sitcom: https://youtu.be/cB7dInljmO4?t=23
93.
▲
by
rbonvall
7y ago
My wife and I call each other "donkey", and some years ago we used the horse emoji, which was low resolution enough to look as a donkey if you squinted. But modern emojis are too high resolution and it definitely looks like a hors
94.
▲
by
rbonvall
7y ago
A nice solution that is easy to implement in Excel is using a sorting network, that sorts an array by doing the same exchanges for any input. Here I did it just for fun: https://imgur.com/a/qPugrJ6
95.
▲
by
rbonvall
7y ago
And, for that matter, Perls 0, 1, 2, 3, 4, and 5. https://perldoc.perl.org/perlhist.html#INTRODUCTION
96.
▲
by
rbonvall
7y ago
Selection bias. You don't find out about the ones that don't share. I also quit social media and told no one (oops, it seems I just did).
97.
▲
by
rbonvall
7y ago
But underscores also work for numbers that don't have lot of zeros. Compare: 12_345_678 1.2345678e7
98.
▲
by
rbonvall
7y ago
Downvoting already has a small reputation cost: https://stackoverflow.com/help/privileges/vote-down
99.
▲
by
rbonvall
7y ago
While it was customary to omit the accent in uppercase letters due to technical limitations, this is not (and never has been) accepted by the Royal Academy: http://www.rae.es/consultas/tilde-en-las-mayusculas (link in
100.
▲
by
rbonvall
7y ago
You can have the line break appended at the end by using the three-arg version of mkString: (header :: rows).mkString("", "\n", "\n") My two cents: I prefer the second solution. Maybe it's because
101.
▲
by
rbonvall
7y ago
I agree, it's nice to use the same symbols you'd use on paper. I did something similar in Scala http://mez.cl/en/lambda-dsl/
102.
▲
by
rbonvall
7y ago
Let me add that lenses are not just a Haskell thing. It's a simple (and beautiful IMHO) concept from functional programming that can be introduced in many languages. Also, you can have lenses without the cryptic operators.
103.
▲
by
rbonvall
7y ago
One use case for modelines was specifying the encoding of the file: # vim: set fileencoding=iso-8859-1 Trivia bit: the Python interpreter understands Vim and Emacs modelines as encoding declaration for source files: https:/&#
104.
▲
by
rbonvall
7y ago
Haskell's syntax is pretty minimal: f 0 = doThing f 1 = otherThing f _ = doDefault
105.
▲
by
rbonvall
7y ago
I prefer to believe this anecdote by Dana Scott: https://youtu.be/SphBW9ILVPU?t=575
106.
▲
by
rbonvall
7y ago
One I hate is sin^{2}(x) meaning "sine squared" and sin^{-1}(x) meaning "the inverse of the sine function".
107.
▲
by
rbonvall
8y ago
That feature was removed in python 3: $ python2 >>> def f((a, b)): ... return a + b ...· >>> f((1, 2)) 3 $ python3 >>> def f((a, b)): File "<stdin>", lin
108.
▲
by
rbonvall
8y ago
It's 2^12 × 3^8 × 8! × 12!
109.
▲
by
rbonvall
8y ago
You just made me realize that I cannot either!
110.
▲
by
rbonvall
8y ago
I understand the expectation of having the application open on your workstation while you're at the office, but having notifications enables on your personal phone is not sane.
111.
▲
by
rbonvall
8y ago
I get the same gut reaction as you, but I tried reformatting the code a little bit and it's not _that_ terrible. From the very little APL I've learnt, I know that operators always have either one parameter (named ω) or two (named
112.
▲
by
rbonvall
8y ago
Probably those freely distributed condoms are the leftovers from that lady's trip.
113.
▲
by
rbonvall
8y ago
Maybe it should've been called "the getter-setter ziggurat."
114.
▲
by
rbonvall
8y ago
There are some nice examples here: https://fsharpforfunandprofit.com/series/why-use-fsharp.html I like this one: https://fsharpforfunandprofit.com/posts/designing-for-correc...
115.
▲
by
rbonvall
8y ago
Perhaps everyone misheard when he said "you're full of t-shirts."
116.
▲
by
rbonvall
8y ago
I have written code to traverse matrices in which I use indices `I` and `J` to iterate over submatrices and indices `i` and `j` to iterate over individual values in a submatrix. Upper/lower case add a new dimension to name things that
117.
▲
by
rbonvall
8y ago
Vim digraph feature (ctrl-k) is very convenient for this. Digraphs are two-character mnemonics for symbols. They tend to be easy to remember and they are standardized in RFC 1345 [1]. Greek letters are always a latin letter followed by an a
118.
▲
by
rbonvall
8y ago
Yes, article titles have evolved to be clicked.
119.
▲
by
rbonvall
8y ago
This is from 2012, so it makes more sense to be surprised that it doesn't mention git being a crowdfunded, gamified, phablet-compatible cybertool as-a-service on the cloud.
120.
▲
by
rbonvall
8y ago
Good catch. Fixed.
More ›