105 karma · joined Nov 16, 2019 (7y ago) · 79 submissions
comment 3mo ago · link · parent
I have one request: if you are going to comment on the paper, please actually read it first. Here is a little test to check that you read it: did you notice the points below?
(1) This is a paper in the field of Computer Science. Having studied music all of your life, even at Berklee, does not qualify you in Computer Science, so be open to learning what Computer Science is. In science we have a practice of making the simplest model we can from which emerge the observed measurements. Hence the remark by Feynman quoted near the top of the paper on how to know when you are right:
"When you get it right, it is obvious that it is right -- at least if you have any experience -- because usually what happens is that more comes out than goes in. Your guess is, in fact, that something is very simple. If you cannot see immediately that it is wrong, and it is simpler than it was before, then it is right. The inexperienced, and crackpots, and people like that, make guesses that are simple, but you can immediately see that they are wrong, so that does not count. Others, the inexperienced students, make guesses that are very complicated and it sort of looks as if it is all right, but I know it is not true because the truth always turns out to be simpler than you thought."
Many of you seem to like very complex explanations of harmony. Note that Feynman is saying that is not an indication of a theory being right.
(2) This problem has not really been solved before. Even someone like Daniel Levitin was convinced (the last time I spoke to him) that Helmholtz had the correct theory of harmony. However, as I point out in the paper:
* The American Acoustical Society has a collection of experiments, one of which they say (not just me), proves Helmholtz's theory is wrong.
* If Helmholtz is right, playing multiple notes always sounds either a little worse or a lot worse, but never better, and so we would never play two notes at the same time at all; harmony would not exist and there would be nothing to explain.
(3) There is strong evidence for the absolute nature of auditory processing that is not only cross-cultural, but cross-species. In the paper, there is a quotation from Daniel Levitin's book "This is your Brain on Music", where he discusses an experiment he witnessed in graduate school where music was played through wiring directly into the brain of an owl. The music was played into the brain with the root removed; when coming out of the brain of the owl, brain had restored the root (see the paper for details).
That means that virtual pitch (1) is created by the structure of the brain, not by a cultural expectation, and (2) further, that it is created by the brain of, not just a human, but of an owl! This is a very strong argument for the assertion that the processing of sound and the artifacts thereof are quite universal.
(4) The explanation of the experience of the minor triad in "Harmony Explained" requires the concept of an inconsistency arising from a redundant recognizer algorithm. Being a musician does not make you an expert in recognizer algorithms and their emergent artifacts, so read what that is before you comment.
The theory of the minor goes like this: two redundant recognizers exist in the brain. When hearing a minor triad:
* one recognizer fires, that of the conjunction of three pairwise intervals of tones,
* whereas another recognizer does not fire, that of the triple of tones in order.
This combination of firings is inconsistent because it is not possible for it to occur by playing any single normal harmonic series on, say, a flute. To generate it, one must play multiple notes and then use the effect of the recognizer of intervals pairing up tones from across the notes. That is, this is a new kind of auditory perception that can be created as an artifact of the auditory recognizer algorithms of the brain, but cannot be heard otherwise.
If you object to my assertion that minor triad is well-described as "I recognize it, but something is wrong", try reading the explanation in the paper of the same phenomenon in visual perception called cubism. Say what you will about the minor triad, when you look at Picasso's "Head of Woman" (provided in the paper), does it not disturb you? Would not not describe it as "I recognize it, but something is wrong"? Does your objection to the analysis of the minor still stand in the context of visual art?
comment 3mo ago · link · parent
comment 3mo ago · link · parent
Not necessarily: if you read the essay, one assumption is that the brain is halving and doubling frequencies to fit them all into one frequency magnitude, an obvious optimization for reducing circuitry. If so, then an octave is too simple to fire the recognizer for a particular harmonic series; instead we need an input that places it relative to the other tones even after the halving/doubling.
Consider the fact that we name both middle C and high C as "C" because, even though they are different notes, they sound so similar that we literally deliberately confuse them notationally as they play the same role in harmony: one can be used to replace the other.
> Music is pleasurable when it mostly meets expectations but surprises you as well, IE it sits just outside of what we expect.
Ok, but where do the expectations come from? Your assertion that it is all culturally relative ("nurture") and none from the structure of the most efficient algorithm for recognizing the harmonic series ("nature") has no basis in fact; you just assert it without proof.
In contrast, there is strong evidence for the absolute nature of auditory processing. In the essay, there is a quotation from Daniel Levitin's book "This is your Brain on Music" where it discusses an experiment he witnessed in graduate school where music was played through wiring directly into the brain of an owl. The music was played into the brain with the root removed; when coming out of the brain of the owl, brain had restored the root (see the essay for details).
That means that virtual pitch (1) is created by the structure of the brain, not by a cultural expectation, and (2) further, that it is created by the brain of, not just a human, but of an owl! This is a very strong argument for the assertion that the processing of sound and the artifacts thereof are quite universal, not just across cultures, but across species.
> ratios and how chords derive from that was absolutely part of my education at Berklee
So at Berklee they teach recognizer algorithms and artifacts thereof? I did not know that Berklee is that strong in computer science. The explanation of the experience of the minor triad in "Harmony Explained" requires the concept of an inconsistency arising from a redundant recognizer algorithm.
In this case, one recognizer fires, that of the conjunction of three pairwise intervals of tones, whereas another recognizer does not fire, that if the triple of tones in order. This combination of firings is inconsistent because it is not possible for it to occur by playing any single normal harmonic series on, say, a flute. To generate it, one must play multiple notes and then use the effect of the recognizer of intervals pairing up tones from across the notes.
That is, this is a new kind of auditory perception that can be created as an artifact of the auditory recognizer algorithms of the brain, but cannot be heard otherwise. This is harmony.
If this this was taught to you at Berklee, please tell me which course that was and what the textbook is so I can look it up in the course syllabus and table of contents.
comment 1y ago · link · parent
comment 1y ago · link · parent
Here it is explained at length: "An Intuitive Explanation of the Information Entropy of a Random Variable, Or: How to Play Twenty Questions": http://danielwilkerson.com/entropy.html
comment 1y ago · link · parent
Valter Longo is one of the world's experts on fasting. You might want to read this article of his on fasting and cancer: https://www.cell.com/trends/endocrinology-metabolism/abstrac...
____
Starvation, Stress Resistance, and Cancer Roberta Buono, Valter D. Longo
Dysregulated metabolism is one of the emerging hallmarks of cancer cells. Differential stress resistance (DSR) and differential stress sensitization (DSS) responses are the mechanisms caused by fasting and fasting-mimicking diet (FMDs) to promote protection of normal cells and induce cancer cell death. Fasting-dependent reduction in glucose and IGF-1 mediates part of the DSR and DSS effects. Fasting and FMDs have the potential for applications in both cancer prevention and treatment.
____
Either Longo or another fasting researcher pointed out that you can make a level of chemotherapy where none of the rats that are not fasting live and where all of the rats that are fasting live. So fasting is a powerful alteration of cells that makes them tolerate chemotherapy much better.
You might want to contact Alan Goldhamer of TrueNorth Health Center. They have almost four decades of experience getting fantastic results by fasting people (about 20K so far), such as curing cancers, Lupus, Diabetes, etc. See https://youtu.be/42QAyVkAS_0?t=71 or this https://www.youtube.com/watch?v=xuebTcdLIKY
The below is from a friend of mine who an M.D. told me has read so much about biomedicine that "it's as if he went to graduate school":
____
In complete contrast to chemotherapy, fasting helps pain, anxiety and depression - http://www.mindthesciencegap.org/2013/04/10/fasting-for-ment....
For general information on fasting, I recommend reading or watching Dr. Jason Fung. He is a nephrologist from Canada. His book The Obesity Code (I have read it) is selling well, but you can get the same information by watching YouTube videos, which I preferred to his book. My favorite were his early lectures that are less flashy “The Aetiology of Obesity Part 1 of 6: A New Hope” https://www.youtube.com/watch?v=YpllomiDMX0 However, if a six hour graduate lecture series is more than you want to sign on for, any of the more recent videos at www.dietdoctor.com will provide the basics.
In addition to Dr. Fung, a number of doctors are publishing articles and videos about fasting and cancer:
* Dr. Fung quoting Noble winner for autophagy - https://www.dietdoctor.com/fasting-cellular-cleansing-cancer... & https://www.dietdoctor.com/attacking-cancers-weakness-not-st...
* Dr. Seyfried - https://www.youtube.com/watch?v=SEE-oU8_NSU - he wrote a book (https://www.amazon.com/Cancer-Metabolic-Disease-Management-P...) that I have not purchased this book, but it is highly regarded and referenced by others.
* Dr. Winters - https://www.dietdoctor.com/member/presentations/winters – This is a discussion of the metabolic approach to cancer
* Dr. Poff - https://www.dietdoctor.com/can-you-treat-cancer-with-low-car... - Keto diet and cancer
Some of this is very biochemistry based and is just tons of detail saying “fasting and/or a ketogenic diet will fight cancer.” Spending the time to understand the biochemistry of the disease and visualizing what you want your body to do will help your body heal. While this sounds very touchy, feely and like voodoo medicine to a traditionally trained biochemist, the research is strong on the ability of the mental imagery to have a therapeutic benefit. (Again, I cite Dr. Rosenthal, neuroscientist, as a higher authority).
____
comment 1y ago · link · parent
Note that infinity would be a fine answer IF MATHEMATICS COULD BE CONSISTENTLY EXTENDED to define it to be so, but this cannot be done (see below). Note that using infinity does not "break" mathematics (as some have suggested below) otherwise mathematicians would not use infinity at all.
If we have an expression that is not a number, such as 1/0, you can sometimes consistently define it to be something, such as a number or positive infinity or negative infinity, IF THAT WOULD BE CONSISTENT with the rest of mathematics. Let's see an example of the standard means of getting a consistent definition of exponentiation starting with its definition on positive integers and extending eventually to a definition for on a much bigger set, the rationals (ratios of signed integers).
We define 2 ^ N (exponentiation, "two raised to the power of N") for N a positive integer to be 2 multiplied by itself N times. For example: 2 ^ 1 = 2; 2 ^ 2 = 4; 2 ^ 3 = 8.
Ok, what is 2 ^ N where N is a negative integer? Well we did not define it, so it is nothing. However there is a way to CONSISTENTLY EXTEND the definition to include negative exponents: just define it to preserve the algebraic properties of exponentiation.
For exponents we have: (2 ^ A) * (2 ^ B) ("two raised to the power of A times two raised to the power of B") = 2 ^ (A+B) ("two raised to the power of A plus B"). That is, when you multiply, the exponents add. You can spot check it: (2 ^ 2) * (2 ^ 3) = 4 * 8 = 32 = 2 ^ 5 = 2 ^ (2 + 3).
So we can EXTEND THE DEFINITION of exponentiation to define 2 ^ -N for positive integer N (so a negative integer exponent) to be something that would BE CONSISTENT WITH the algebraic property above as follows. Define 2 ^ -N ("two raised to the power of negative N") to be (1/2) ^ N ("one half raised to the power N"). Check: (2 ^ -1) * (2 ^ 2) = ((1/2) ^ 1) * (2 ^ 2) = 1/2 * 4 = 2 = 2 ^ 1 = 2 ^ (-1 + 2).
Ok, what is 2 ^ 0 ("two raised to the power of zero")? Again, we have not defined it, so it is nothing. However, again, we can CONSISTENTLY EXTEND the definition of exponentiation to give it a value. 2 ^ 0 = (2 ^ -1) * (2 ^ 1) = 1/2 * 2 = 1. This always works out no matter how you look at it. So we say 2 ^ 0 = 1.
I struggled with this for days when I was a kid, literally yelling in disbelief at my parents until the would run away from me. I mean 2 ^ 0 means multiplying 2 times itself 0 times, which means doing nothing, so I thought it should be 0. After 3 days I finally realized that doing nothing IN THE CONTEXT OF MULTIPLICATION is multiplying by ONE, not multiplying by zero, so 2 ^ 0 should be 1.
Ok, is there a way to CONSISTENTLY EXTEND the definition of exponentiation to include non-integer exponents? Yes, we can define 2 ^ X for X = P / Q, where P and Q are integers (a "rational number"), to be 2 ^ (P/Q) = (2 ^ P) * (2 ^ -Q). All the properties of exponentials work out.
Notice how we can keep EXTENDING the definition of exponentiation starting from positive integers, to integers, to rationals, as long as we do so CONSISTENT with the properties of the previous definition of exponentials. I will not do go into the details, but we can CONSISTENTLY EXTEND the definition of exponentiation to real numbers by taking limits. For example, we can have a consistent definition of 2 ^ pi ("two raised to the power of pi") by taking the limit of 2 ^ (P/Q) as P/Q approaches pi.
HOWEVER, IN CONTRAST to the above extension of the definition of exponentiation, there is NO SUCH SIMILAR CONSISTENT EXTENSION to division that allows us to define 1/0 as ANY NUMBER AT ALL, even if we allow extending to include positive infinity and negative infinity.
The limit of 1/x as x goes to zero FROM THE POSITIVE DIRECTION = positive infinity. Some example points of this sequence: 1/1 = 1; 1/0.5 = 2; 1/0.1 = 10; 1/0.01 = 100, etc. As you can see the limit is going to positive infinity.
However, the limit of 1/x as x goes to zero FROM THE NEGATIVE DIRECTION = NEGATIVE infinity. Some example points from this sequence: 1/-1 = -1; 1/-0.5 = -2; 1/-0.1 = -10; 1/-0.01 = -100, etc. As you can see the limit is going to NEGATIVE infinity.
Therefore, since positive infinity does not equal negative infinity, there is NO DEFINITION of 1/0 that is consistent with BOTH of these limits at the same time. The expression 1/0 is NOT A NUMBER, even if you include positive and negative infinity, and mathematics cannot be consistently extended to make it into a number. Q.E.D.
comment 1y ago · link · parent
My implementation of delta debugging, "delta" is 19+ years old: https://github.com/dsw/delta
I released it as Open Source because Microsoft Research sent someone to my office to ask me to, back when Microsoft was calling Open Source a "cancer".
The LLVM introduction by Latner refers to the "standard delta debugging tool", so it is rather well-known: https://aosabook.org/en/v1/llvm.html 'unlike the standard "delta" command line tool.'
comment 2y ago · link · parent
One of Brian's primary points is the following:
> Scheme ... has a very simple, uniform notation for everything. Other languages have one notation for variable assignment, another notation for conditional execution, two or three more for looping, and yet another for function calls. Courses that teach those languages spend at least half their time just on learning the notation. In my SICP-based course at Berkeley, we spend the first hour on notation and that's all we need; for the rest of the semester we're learning ideas, not syntax.
Bullshit. Again, I was a TA for this course. You do not spend the rest of the semester on ideas, you spend the rest of the semester on the students being very confused.
This "everything looks the same" property of Scheme and of all LISP-like languages is a bug, not a feature. When the semantics is different, humans need the syntax to be different. In contrast, LISP/Scheme make everything look the same. It is quite hard to even tell a noun from a verb. This makes learning it and teaching it hard, not easy.
Brian is selling a fantasy here. If you think Scheme is so great, look at this nightmare of examples showing the various ways to implement the factorial function in Scheme: https://erkin.party/blog/200715/evolution/
All of this "abstractions first, reality second" agenda is just a special case of what I call "The Pathology of the Modern": the pathological worship of the abstract over the concrete. Everything modernism touches turns into shit. I am done with living in modernist shit and I hope you are too.
comment 2y ago · link · parent
https://dl.acm.org/doi/pdf/10.1145/362851.362858
"Exploratory Experimental Studies Comparing Online and Offline Programming Performance" by Sackman, Erikson, and Grant. Communications of the ACM. January 1968.
comment 2y ago · link · parent
"Exploratory Experimental Studies Comparing Online and Offline Programming Performance" by Sackman, Erikson, and Grant. Communications of the ACM. January 1968.
comment 2y ago · link · parent
comment 2y ago · link · parent
Get rid of pointers: When passing objects by reference, using references instead of pointers, especially reference to const, makes code much easier to read. When combined with vector instead of raw arrays, most uses of raw pointers go away.
Do not implement your own fancy data structures: instead use the Standard Template Library. I use STL map, set, and vector all of the time and they remove the need for most other data-structures. Also, when you can, use iterators to traverse these containers, rather than the visitor pattern. Using iterators keeps the control flow of the client contiguous, so it is much more flexible than visitors.
comment 2y ago · link · parent
comment 2y ago · link · parent
That's your problem right there: "cast". In C, you can cast things, but doing so breaks the type system, which can no longer help you. That's not the fault of C, that's your fault. You literally asked for it.
C is the useful idioms of assembly language made first-class. For fundamental reasons of the universe, C is the programming language. See also: https://embeddedgurus.com/barr-code/2018/02/c-the-immortal-p...
"This year a portion of my analysis is focused on multi-year trends. One trend that really stands out to me is that the C programming language refuses to give up the ghost.
"A longitudinal study of survey data spanning almost a decade and a half shows that C remains the primary programming language of embedded software. Remarkably, in that time C has actually gained market share from 50% to about 70%–at the expense of assembly, C++, and Java."
comment 2y ago · link · parent
I disagree: I spent 10 years in math and theory, ending up in grad school at Berkeley. I took something like 6 semesters of Calculus and I just about never use any of it. It was mostly a waste of my time, and the further it got form computing, the more it was a waste of my time. I certainly regret terribly how much of my time was wasted by listening to those Modern ("pure") Math assholes.
Note that Modern ("Pure") Math is distinct from Numerical ("Applied") Math which is quite useful if you are dealing with physical reality, but it is really just the computing approach again.
The important thing is that whatever abstractions you are studying, that their value is measured by their ability to help you solve problems in _reality_. Abstractions by themselves have no value and the Neo-Platonist belief that they do just makes people pathological. Notice how friendly Numerical Methods people are compared to how nasty Modern Math people are. (Seriously: you can tell people in each field apart just by their personalities.) The feedback loop with _reality_ is what makes the work valuable and the people normal and happy.
Does "infinity plus 1 equal infinity"? I can prove that the first transfinite cardinal, aleph-0, cardinal-plus 1 cardinal-equals aleph-0, whereas, in contrast, the first transfinite ordinal, omega, ordinal-plus 1 does not ordinal-equals omega. That is the formally correct answer according to ZFC (see below). Who cares? It will not help you with anything.
Modern mathematicians teach a formalism called Zermello-Frankl Set Theory Plus Choice (ZFC). It is a terrible abstraction for thinking about reality. In reality the mathematicians are now coming to computing people to ask for help proving their theorems formally using Calculus of Constructions. That shows that the computational approach is better than the mathematical approach. Computing has literally beaten mathematics at its own game.
My former boss ended up as Chair of Computer Science at Stanford. His specialty included formal methods for ensuring software correctness. Pretty mathematical, right? He likes to brag that he cannot remember the formula for the circumference of a circle. That's some pretty basic math to not remember and be a specialist in formal methods at Stanford.
If you want to code, do that. Do not let anyone tell you that any work in reality needs math. It is the other way around: math needs reality or it is just useless junk. Some formal methods may help, but only if it bubbles up from reality. Always make sure you work is in touch with reality. The way to do that is to always work on real problems and only use abstractions that help you with real problems.
In other words, just build something that helps someone solve a problem in reality. Everything else is secondary. Once you see your work help someone in reality, you will never forget it and you will have the path towards a life worth living.
comment 2y ago · link · parent
comment 2y ago · link · parent
People who have family really do not understand that. Christmas is full of lights and presents and songs and happy people until one day it is not.
I called my mom in the nursing home earlier today. I was singing her Christmas Carols when she just put the phone down and started drinking water.
I wasn't sure what was happening and with all the gurgling I thought maybe she was in trouble. I had to call the nursing staff and ask them to go find out what was going on. She was ok, so we had a laugh about it.
It's hard for me to hardly be able to talk to my mom anymore. She is so weak we can hardly talk on the phone. When she does talk, she does not always make very much sense. I am sad all the time about it, but there does not seem to be much I can do.
Maybe this story helps someone else who is also alone to know that it is just them.
comment 2y ago · link · parent
comment 3y ago · link · parent