Live data from Hacker News

Ask HN: Teach me something new

news.ycombinator.com

281–290 of 782 posts

Re: Ask HN: Teach me something new

#281
post #164

Earlier quoted context omitted.

Very interesting. whats the use case of this?

If it's proven then we can add a new pointless compiler optimization (some of them are already allowed to assume some things never terminate, even)

llvm skips it entirely.

https://twitter.com/badamczewski01/status/142826257042792857...

Re: Ask HN: Teach me something new

#282

Earlier quoted context omitted.

This is if you have emacs-based keybindings (which is the default). M-f/M-b (Meta, often the alt key or option key) will move forward/backward a full word. C-f/C-b moves forward/backward a character. C-w kills the previous word (if you're in the middle of a word it leaves everything from the cursor to the end intact). C-r will search backward in your history allowing you to type partial matches (like, "I know I compi…

Aren't all terminal bindings emacs-based, since they inherit from libreadline?

zsh doesn't use readline

Re: Ask HN: Teach me something new

#284

People have always and will always think that the time they are living in is the most important time ever. This is a self evident fallacy or a universal truth. These times we are living in are not the most important. Or, of they are, then everyone everywhere is at everytime living at the same importance. Now, there is something called the hinge of history that some mathematicians have looked into the chance of "well…

I’m impressed. This is denying the existence of something that must exist by construction, like denying there can be three things when you know the concept of 100, 0 and counting.

Re: Ask HN: Teach me something new

#285

I've described this on HN before; forgive me if you've already seen it. I have chronic migraine. It sounds worse than it is; I rarely suffer attacks anymore, and when I do, they're usually mostly harmless, as in the case I'll describe below. Contrary to popular belief, migraine is not a headache. It's something a little more like an epileptic seizure. Intense headaches are one common symptom, but there are a lot of o…

I have struggled explaining what the auras looks like, but for me they look like confetti, in particular the shiny stuff used to celebrate sports championships. Sorry for piggybacking on your fascinating account, but unless you experience it yourself, it is hard for non-affected people to imagine what it looks like.

Re: Ask HN: Teach me something new

#286
post #256

Most rape victims in the United States are men: https://www.hrw.org/reports/2001/prison/report.html Caution: that’s hard, explicit, distressing reading.

I assume it applies uniquely to the United States, given the high percentage of incarcerated people?

I would expect it to be at least as related to culture and governance as numbers, and therefore to be an issue in some other countries as well.

Re: Ask HN: Teach me something new

#287
post #36

Here's mine, the Pareto principle or the 80/20 rule. You will find that it applies in MANY ascpects of life and knowing it may give you an `edge'. https://en.wikipedia.org/wiki/Pareto_principle

Closely related -

In theory, there's no difference between the theory and the practice.

In practice, there is.

Re: Ask HN: Teach me something new

#288
post #132

In the 1800s, scholars who knew a lot of languages (including, often, several modern and ancient European languages, and increasingly also Sanskrit) started to notice some amazing patterns about similarities in words among all of these languages, including languages from very far apart and that had no visible connection at all from the point of view of their present-day speakers. As these patterns were explored, they…

The book "The Unfolding of Language: the evolution of mankind's greatest invention" by Guy Deutscher explains this very well and has numerous examples. As a language noob, I found it fascinating!

Appreciate the book recommendation, I have read “Through the language glass: why the world looks different in other languages” by the same author and similarly found it fascinating.

Re: Ask HN: Teach me something new

#290
post #257
post #110

I watched a piano/music teaching video from the 60s yesterday that made it all "click" [1] Most modern music chords patterns are easy to find out on piano. Start on any of the white keys, and play 7 white keys left to right. That is called a mode: a series of notes separated by certain intervals to compose a song. Different modes have different vibes. Atmosphere of the song ( sad or happy) is directly correlated by h…

> correlated by how "willing" the notes are to resolve to the mode root (the first key of 7 you hit). I've heard this explanation many times before, and I still don't understand how notes can be "willing" to do anything, or how a note can "resolve" to the root. Can someone ELI5?

It's theory, not law, and is in large part cultural and contextual. Basically, the motifs that we are familiar with have a certain notion of consonance and dissonance...consonance being notes that sound 'nice' together (due in part to overlapping harmonics reinforcing the sound), and dissonance being notes that sound a little 'off' or 'tense' (harmonics that don't overlap, so you get a 'beating' effect as the harmonics go in and out of phase).

Note 'resolution' is basically going from dissonance to consonance, providing a pleasing sense of stability.

What is considered consonant and dissonant can change with time and culture, so it's not a completely solid relationship, but overall a general pattern (like the notion of 'Major' being happy and 'minor' being sad is not a universal association).

Post reply on HN