Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
housecarpenter
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
91.
▲
by
housecarpenter
5y ago
The L in "falcon" in the spelling pronunciation is a "dark" L, which is a pretty different sound from the "light" L, but it's still there. In most accents of English L regularly manifests with the "da
92.
▲
by
housecarpenter
5y ago
English doesn't tolerate word-final -mb. It's always pronounced as -m, and the -b isn't pronounced when a suffix is added either. Other examples: dumb, tomb, comb, womb, numb, thumb, catacomb, Coulomb. All of these have a sil
93.
▲
by
housecarpenter
5y ago
French t is dental, English t is alveolar---in non-technical language, that means the French t is pronounced slightly further forward in your mouth, compared to the English t. The English t is also aspirated a lot of the time (though not as
94.
▲
by
housecarpenter
5y ago
It's happened again and again with other words. "often" (older pronunciation: "offen"), "Anthony" (older pronunciation: "Antony") and "tortoise" (older pronunciation: "tortuss"
95.
▲
by
housecarpenter
5y ago
I don't get bored, because I can regularly come up with some kind of project to work on that'll sustain my interest. However, so far I've never managed to finish one of these projects to an extent that I'm satisfied with
96.
▲
by
housecarpenter
5y ago
I believe "haitch" is normal in the Republic of Ireland, a shibboleth for Catholicism in Northern Ireland, and common in various odd areas where there's a lot of Irish influence. I'm English but some of my grandparents w
97.
▲
by
housecarpenter
5y ago
I think these features are more general young-isms, not really regional. Older Americans don't use them either, right?
98.
▲
by
housecarpenter
5y ago
The glottal stop is very common in British English varieties, but the extent to which it occurs is pretty variable, and it's still perceived as somewhat sub-standard (depending on where the T it replaces occurs; replacing Ts between vo
99.
▲
by
housecarpenter
5y ago
But then why should the average of zero items be zero? It still seems like just an arbitrary choice to me.
100.
▲
by
housecarpenter
5y ago
You do still hear people speaking of a string of bits, as well as a string of characters. I think the word "array" tends to be preferred for lists of numbers, since in its original sense in mathematics it was (and is) a synonym fo
101.
▲
by
housecarpenter
5y ago
I normally select the whole block that I just pasted and then press Tab or Shift+Tab to indent/dedent the whole thing at once---no possibility of missing the last line then. This works in most editors.
102.
▲
by
housecarpenter
5y ago
The Haskell concepts are not quite the same as the mathematical concepts; they're somewhat restricted, and different aspects of them are emphasized (e.g. monads---programmers generally think of bind as the basic operation and join as d
103.
▲
by
housecarpenter
5y ago
Python's int() truncates towards 0, but (at least in Python 3, I don't know if it was always the same in older versions) its division operator always floors, so -7 // 2 gives -4 even though int(-3.5) is 3. (The int() fun
104.
▲
by
housecarpenter
5y ago
In practice, when you use a modulo operator the second operand is usually some kind of length or size, which is inherently non-negative, while the first operand is an index or offset, which could easily be negative if there's no natura
105.
▲
by
housecarpenter
5y ago
An example would be if you want to find the month corresponding to a timestamp. The obvious thing to do is to scale the timestamp so that it gives you the number of months after the epoch, take that number % 12, and map 0 to January, 1 to F
106.
▲
by
housecarpenter
5y ago
I used generators with return values once when writing a lexer. I had generators for each of a bunch of different states of the lexer (e.g. skipping over whitespace, reading a numeric literal, reading a string literal, etc.). Each generator
107.
▲
by
housecarpenter
5y ago
It depends on whether you think of the break as success or failure. When I write a loop with a break it's usually some kind of search where the break happens once you've found something, and in that case the break is more of a suc
108.
▲
by
housecarpenter
5y ago
I'd slightly trollishly say nobody has aphantasia, it's just that some people make a false distinction between remembering what something looks like and seeing it. Same as what you're saying really, but makes people feel bett
109.
▲
by
housecarpenter
5y ago
In the relational model used by SQL, types are atomic. Sum types are inherently non-atomic. I'm sure you could graft them onto the language, the same way Postgres can have JSON type fields and all that, but I don't think you'
110.
▲
by
housecarpenter
6y ago
Sounds like it to me!
111.
▲
by
housecarpenter
6y ago
Python does have a "partial" function which does currying: from functools import partial a |> partial(zip, b) |> partial(map, func1) |> partial(filter, func2) |> partial(forall, func3) Obviously it's a b
112.
▲
by
housecarpenter
6y ago
Cantonese and other East Asian tonal languages are, more specifically, contour tonal languages; the distinctions between the different tones are based on the change in the tone through the syllable (rising vs. falling, etc.), rather than ab
113.
▲
by
housecarpenter
6y ago
You should read the famous book by Linderholm, Mathematics Made Difficult
114.
▲
by
housecarpenter
6y ago
It may be worth explicitly noting that category theory and set theory are not mutually exclusive. You can use set theory as the foundation, and build category theory on that, and then use category theory to do all that interconnection of fi
115.
▲
by
housecarpenter
6y ago
I think you could question people's desire to save endangered species in much the same way. Ultimately I think it comes down to the fact that languages (and species) are seen as intrinsically valuable to some extent and the world is ju
116.
▲
by
housecarpenter
6y ago
If you're drawing something you can see, I don't see why you would need visual imagination. Even if you're not drawing from something you can see, you can have a procedural memory of how to draw the thing, and you can see wha
117.
▲
by
housecarpenter
7y ago
I may be blinkered by my mathematical training, but to me this seems like the obvious thing to do. Here's an attempt to justify it based on common sense, no math stuff required. Suppose you do something like if(all(requirements)) {
118.
▲
by
housecarpenter
7y ago
The analogue of the OR operator in set theory is the union operator. People think of them as basically the same thing because of the correspondence between a property and the set of things with that property. If A is the property of being e
119.
▲
by
housecarpenter
7y ago
A little correction: an isomorphism is a homomorphism which is bijective and has a homomorphism as its inverse. For many structures the inverse being a homomorphism automatically happens as a logical consequence of the function being a bi
120.
▲
by
housecarpenter
7y ago
Yeah, Latin and Greek became somewhat more analytic during the time periods where a lot of foreign speakers were adopting them as their main languages. (That was during the Roman period, not the Middle Ages, for Latin; Latin in the Middle A
More ›