News for hackers. Stuff that matters.
Re:Ask HN: How to self-study physics? by scottlocklin on Thursday March 26, 2020 @09:58AM (#22693589)
For the love of God, don't use Feynman lectures to learn physics. That's something you read after you know physics, for relaxation and conceptual stuff. Resnick & Halliday is a much better freshman/sophomore book.

Susskind's "theoretical minimum" is actually pretty good.

http://theoreticalminimum.com/courses

Fowler gives a pretty conventional undergraduate physics curriculum (adding Feynman in there somehow). If it were me: learn the math tools first. I assume you know linear algebra; learn differential equations. From there, go straight to higher level books. There's very little difference in undergraduate vs graduate quantum mechanics and E&M other than the math is slightly more sophisticated in grad school. Might as well do it right. Messiah for QM and Jackson for E&M. Classical mechanics, the tradition is to learn Lagrangian mechanics in high level undergrad and Hamiltonian in grad school. There's no real reason to do it in this order, and a decent reason (understanding Quantum) to do it in reverse order. Amusingly, the math is cleaner in Hamiltonian mechanics, but you may find yourself unable to do some simple problems you can do with Newtonian physics; so this will be a weird working backward thing. Stat Mech, I think you should just read Reif; skip Ma or whatever they use in grad school now.

FWIIW I know/knew people who did this: started grad school without having done any undergrad courses in physics. I think skipping a lot of the introductory stuff, and visiting it later is actually better.

The rest of it can be done with the same machinery you learned in QM, E&M, Mechanics and Stat Mech. Max leverage if you had to pick one: probably classical mechanics for a DL guy, E&M for general knowledge of tools.

I'd suggest not actually trying to simulate physical systems on a computer: you probably stare at computers too much anyway.

Re:Ask HN: How to self-study physics? by rguzman on Thursday March 26, 2020 @11:52AM (#22694778)
context: former theoretical physics grad student, dropped out ABD to start a company.

this comment is right on the money on several fronts:

- the Feynman lectures are great after you already understand some of the mechanics of "doing" physics and have some other exposure to the topics, Halliday & Resnick is a better place to start on any one topic

- with infinite time, i'd always follow the approach of learning the math first and then the physics, the book by Boas is pretty good for self study of the minimum necessary math

- there's no real reason to follow a traditional grad school curriculum ala Fowler unless you need to pass quals in a traditional grad school setting

- simulating physical systems on computers is a pretty good exercise, but very time-consuming, avoid if you already spend a lot of time in front of computers

and some thoughts of my own:

- "get a strong foundation in Physics" is a bit too vague to be a useful goal, some examples of potentially better goals: "be able to pass a classical mechanics qual in the allotted time", "be able to write down the standard model and explain it", "be able to grok N papers from the X section of arxiv per week", "be able to write down toy classical field theories and calculate their predictions", ...

- if you are looking to avoid computers, try supplementing your reading with simple experiments either by buying educational kits or by hacking together things

- the books by David Griffiths (esp the E&M one) are awesome

- try to follow curiosity instead of a program: trying to answer "how do superconducting materials work?" for yourself is better than "follow the grad intro to condensed matter that's available online"

- use the physics stackexchange and other forums: asking and answering questions can be very helpful

Re:Ask HN: How to self-study physics? by godelski on Thursday March 26, 2020 @09:42PM (#22699799)
I'll second Griffiths for E&M, Quantum, and Particle. I think everyone that has gone through a physics undergrad will swear by Griffiths. He is just such a delight.

But I'll suggest Marion and Thornton [0] for Classical. With Griffiths for E&M and Thornton for Classical you should be able to get a really good grasp on most of "physics". I'll also say that these series are upper division for undergrads. Given OP's background I think these would be fine starting points. If not, start with Halliday[1].

For grad level, the gold standard is Goldstein for Classical [2] and Jackson for Electrodynamics[3].

These types of books will give you a very strong base in physics and should enable you to branch out. Given your ML background you may be very interested in thermodynamics and statistical mechanics.

I'll also add an "out there" idea. Sign up for physics classes at your local community college if they offer labs. I say this as someone who went Physics -> CS and is doing HPC + ML. Labs really stress and force you to do analysis. Lower division labs won't ask too much, but if you go in with this intent I think you can get a lot out of it. I'm sure that if you did these lower div labs and talked to a professor at your local uni they would allow you to sit in on upper division labs (you would NEED to show that you are serious first, because these labs can be dangerous! Happy to help you learn doesn't mean happy to babysit and make sure you don't electrocute yourself or making sure you don't take a laser to the eye. TAing undergrad labs I saw enough people get electrocuted, including myself... more than once).

[0] https://smile.amazon.com/Classical-Dynamics-Particles-System...

[1] https://www.smile.amazon.com/Fundamentals-Physics-10th-David...

[2] https://smile.amazon.com/Classical-Mechanics-Goldstein-Poole...

[3] https://smile.amazon.com/Classical-Electrodynamics-Third-Dav...

Re:Ask HN: How to self-study physics? by psalminen on Thursday March 26, 2020 @03:47PM (#22697191)
Second Griffiths books, I used both his E&M and QM books in undergrad. His voice is excellent.
Re:Ask HN: How to self-study physics? by propter_hoc on Thursday March 26, 2020 @01:20PM (#22695769)
I can't believe I am reading a recommendation that someone with little background in E&M self-studies with Jackson. That book is incredibly difficult even with a great graduate-level professor.
Re:Ask HN: How to self-study physics? by scottlocklin on Thursday March 26, 2020 @01:32PM (#22695876)
The problems from undergrad (I think we used Purcell) were virtually identical. Jackson's book had problems which were more algebraically/computationally difficult, but otherwise; it was basically the same thing. It's a well written classic; no reason to use the book with slightly wimpier problems.

He asked me how to learn physics; not how to learn some wimpy undergrad physics which doesn't give you the big picture. Hindsight my undergrad E&M book was a waste of time, and we should have just used Jackson. I still have Jackson (and Eyges) on my shelf; the undergrad book was recycled years ago.

Re:Ask HN: How to self-study physics? by madhadron on Thursday March 26, 2020 @03:40PM (#22697115)
My graduate E&M course was actually taught out of Schwinger, which I thought was quite nice. I would never recommend it as a first run through E&M.

Jackson's problems are more technically difficult than, say, Purcell's, but how much of that difficulty actually helps with understanding E&M?

Re:Ask HN: How to self-study physics? by xzel on Thursday March 26, 2020 @01:28PM (#22695839)
+1. The Jackson book is notoriously difficult. I think Griffith's book might be better for a self-learner but, iirc, and I haven't read the book in more than 10 years now, he expects a pretty good understanding of applied calculus before you open the book, so read up on that! Best of luck with the studies OP.

Also, the look into the Feynman book QED once you have a little bit under your belt. Its a fun and pretty short read and there isn't much math at all. I also think its a fun thing to read while learning EM since it opens you mind up to the next subject down the line, QED.

Re:Ask HN: How to self-study physics? by neutronicus on Thursday March 26, 2020 @03:33PM (#22697042)
It all depends on your background in PDEs. I think the undergrad physics curriculum is pretty weak relative to some engineering disciplines here and Jackson is what really exposes this.

Coming from Nuclear Engineering I thought it was fine.

Re:Ask HN: How to self-study physics? by godelski on Thursday March 26, 2020 @09:47PM (#22699829)
I think PDEs are just weak in all undergrad curriculum. Most engineers I know could only do very basic PDEs. Physicists could do a little more because they learned it from Griffiths E&M. PDEs are typically more a grad school thing. The idea is to form a strong understanding first.
Re:Ask HN: How to self-study physics? by throwqwerty on Thursday March 26, 2020 @01:26PM (#22695824)
academic virtue signaling. like people recommending TAOCP to people that don't know how to program or rudin (either one!) to people that don't know any math.
Re:Ask HN: How to self-study physics? by hriir0 on Thursday March 26, 2020 @02:01PM (#22696160)
Interesting.

To me that’s just a subjective list the author likes.

The replies seem a bit on the level of “...but everyone knows really.”

I always took notions like “expert” virtue signaling to mean experts seem convinced we should all learn via the timelines they did.

Uni students versed in textbook physics, linear timelines for learning cause that’s how society taught them, are also experts in working cognitive theories. Incredible.

Re:Ask HN: How to self-study physics? by throwqwerty on Thursday March 26, 2020 @04:18PM (#22697502)
>To me that’s just a subjective list the author likes.

but the prompt isn't "list some books you like" but "how should I learn" so there's obviously intent in picking those books.

Re:Ask HN: How to self-study physics? by hriir0 on Friday March 27, 2020 @01:48AM (#22700675)
“Likes for learning” is not an unreasonable acquiescence for the reader to consider.

English is a terrible language and taking how we use it so literally is as bad as the language itself.

Re:Ask HN: How to self-study physics? by stared on Friday March 27, 2020 @07:41AM (#22702053)
This piece of advice is wrong on so many levels, from the general context. I cannot believe it got 1st place here.

(I got a Ph.D. in theoretical quantum optics, and I do have over a decade of experience teaching gifted high-school students. There is a lot of experience that works, and doesn't work, on people without prior background.)

Feynman Lectures are much a more lively, insightful, overview of physics (I started reading when I was 14 or 15 y.o.; jumped there after reading one advanced high-school textbook). While I do know people who preferred Halliday & Resnick, these were people who liked a more straightforward, even if less insightful or colorful, approach.

> learn the math tools first.

Nope. You can spend 2 years (not a joke) to get mathematics to prove Stokes theorem, in one of the more general versions. Or draw a few cubes and squares, and get there is 15 mins or so. For regular 1 dim integrals, it is a one year course of mathematical analysis, if you want to do it rigorously.

For many tools (e.g. Fenman Path Integrals) there is no rigorous math approach that is in use (at all). While, sure, you need to continuously improve your mathematical skills, my strong suggestion is first physics, then maths. Same Dirac Delta first as a trick, only later (and if you wish for math's sake) learn about distributions, Radon measures, etc.

For E&M: for introduction, totally start with Griffiths. It is much more approachable as the introduction.

> There's very little difference in undergraduate vs graduate quantum mechanics.

I don't know where to get started, but it is nor true. For quantum information - yes, you can start with undergraduate maths. For anything going into quantum field theory, you would need to know much more about Lagrangian mechanics, group representations, symmetries, differential geometry, etc.

Re:Ask HN: How to self-study physics? by scottlocklin on Friday March 27, 2020 @11:33AM (#22703724)
> You can spend 2 years (not a joke) to get mathematics to prove Stokes theorem, in one of the more general versions.

You're out of your mind. You don't need to prove Gauss-Stokes in the general version to understand Maxwell's equations; you just need 3-d calculus, and you're done. Bike shedding the process further is silly: I could claim you don't really understand GR (or for that matter, E&M) without Hatcher-level understanding of Algebraic topology. All you need is the simple calculus theorem, such as is presented in Jackson.

> For anything going into quantum field theory....

This is a rubbish argument: yes, you need more math to do quantum field theory. You also need basic quantum mechanics first, which is what I'm talking about for a self study program. If you want to go on to fiddle with QED, you can fool around with Itzykson and Zuber (and Griffiths book) later, when you actually know how non-relativistic QM works, and how relativity works. First learn basic Schroedinger stuff and something like S-matrix theory. Don't learn the shitty undergrad training wheels crapola; do the real thing. That's my advice in general. If you work your way through a differential equations book; there is no point in doing the intermediate stuff and a great argument (it's a waste of time; a make work program for physics professors, and a weeder for people with low dedication to the subject) for skipping it.

FWIIW I was not a theorist, though I had some theory papers queued up on quantum dynamics. I think what everyone knows after first year of grad school is a pretty good basket of knowledge, which is why the 1st year grad school program is virtually identical everywhere in the world. It's like a gentleman learning Latin in the old days. There is a direct line from advanced calculus to completed first years of grad school physics; one which I outlined above. The imbecile make-work program of doing a bunch of intermediate problems in junior and senior year; it's really not worth it if you're an adult with a functioning cerebral cortex. Or if you're trying to pass prelims/GREs which test you on these subjects. Otherwise; skip it -do the important bits, and revisit the training wheels versions later when you need them. That's all.

Re:Ask HN: How to self-study physics? by stared on Friday March 27, 2020 @11:49AM (#22703906)
To be frank, I don't get what you are up to. I sense a lot of anger, mixed with somehow chaotic notes.

> why the 1st year grad school program is virtually identical everywhere in the world

Certainly, it isn't. In the US usually starts with heavy regular coursework. In many European, there is some coursework. Unlike undergraduate physics, which is less varied, the subjects vary heavily on the place (specialization, the focus of concrete groups). In my case, it was purely research, no classes or teaching (it is less common, though).

Source: quite a lot of my friends did graduate-level physics in various places worldwide.

Re:Ask HN: How to self-study physics? by thinkr42 on Thursday March 26, 2020 @10:16AM (#22693766)
"For the love of God, don't use Feynman lectures to learn physics. That's something you read after you know physics, for relaxation and conceptual stuff..."

Agree with this 100%. To learn math or physics you have to do it, experiment, and all that.

Re:Ask HN: How to self-study physics? by beezle on Thursday March 26, 2020 @12:16PM (#22695086)
Feynman lectures are fine as a supplement to more standard text.
Re:Ask HN: How to self-study physics? by gaze on Thursday March 26, 2020 @10:57AM (#22694140)
HRK is for learning physics, feynman is for feeling like you're learning physics when you aren't, and ll is for feeling like you're understanding nothing.

LL and Feynman are definitely nice to look back upon though.

Re:Ask HN: How to self-study physics? by madhadron on Thursday March 26, 2020 @07:27PM (#22699057)
L&L assumes a particular set of steps and shared reading culture. I had the good fortune to have a professor take me through volume 1 in a classical mechanics class. Thereafter other volumes became very straightforward to read and taught me a lot of physics.
Re:Ask HN: How to self-study physics? by gaze on Thursday March 26, 2020 @08:33PM (#22699431)
Yeah I think that's right. LL is now something I look back upon frequently for reference... but you have to have been introduced properly.
Re:Ask HN: How to self-study physics? by AnthonBerg on Thursday March 26, 2020 @12:34PM (#22695290)
We all learn differently. Please don't deal in pedagogical certainties that may close doors unventured. Feynman's lectures were crucially eye-opening for me and many others.
Re:Ask HN: How to self-study physics? by ska on Thursday March 26, 2020 @12:38PM (#22695326)
It's pretty well established now that Feynman is not a good general approach for introductory physics. Plenty of talented teachers have tried it, and moved on to something more effective.

This doesn't contradict your point. A particular individual may find them very helpful in learning and understanding the foundational stuff. By all means try, and if it works for you, great.

However, it shouldn't be at the top of anyone's list of things to try first. And if you have tried, and it didn't work well for you - it's not you.

Re:Ask HN: How to self-study physics? by stared on Friday March 27, 2020 @07:23AM (#22701976)
> It's pretty well established now that Feynman is not a good general approach for introductory physics.

Citation needed.

For people at the Physics Olympiad level, it is hard to find something as eye-opening and insightful as Feynman Lectures on Physics.

For more "general audience", I guess that a more step-by-step is preferred. I know many people (usually not the Olympiad tribe) who preferred Halliday & Resnick.

Re:Ask HN: How to self-study physics? by dtornabene on Friday March 27, 2020 @09:18AM (#22702582)
I'm a logician and the Feynman lectures were incomprehensible when I tried to work through them. I for one am glad to see people pushing students toward more approachable texts.
Re:Ask HN: How to self-study physics? by AnthonBerg on Monday March 30, 2020 @08:02AM (#22727294)
This is very important! It's great to push students towards those texts that are approachable for them.

It would be bad if we were to push students away from texts that are approachable for them, right?

And very important that someone who learns like you is not pushed towards the Feynman lectures because they are not a good cognitive fit.

I promise, we all learn very differently sometimes. I for one found logic as classically presented in CS studies - as symbolic text? - I found it to be very inefficient to acquire. There's a great deal of cognitive transformation that needs to happen. I do much better with wide-ranging abstractions and then then approaching the core logic in a variety of different mechanical approaches – then I "see" the core logic "through" the abstractions and implementations.

And that said, I honestly wish I had easier access to the cognitive style that works "directly" in mathematical symbols and logic and that classical logical training works for. (I don't know if that's you, but I've talked to people that think/function like that.) And I greatly respect that capacity. I.e. I'm definitely not saying mine is better. Only different.

Re:Ask HN: How to self-study physics? by ska on Sunday March 29, 2020 @04:11PM (#22722257)
I don't see how your contention really fits - physics Olympiad types are by definition not general.

For what it's worth, when I was in that position I found some of the Landau and Lifshitz stuff at least as insightful. I'm all for Feynman as a supplement, by the way.

Re:Ask HN: How to self-study physics? by gowld on Thursday March 26, 2020 @09:50PM (#22699842)
> Plenty of talented teachers have tried it, and moved on to something more effective.

Including, you know, Richard Feynman.

Re:Ask HN: How to self-study physics? by AnthonBerg on Thursday March 26, 2020 @01:25PM (#22695813)
Exactly. I ask that the applicability of Feynman’s lectures is not presented in absolutes - not always, not for everyone, not never.

But definitely sometimes for some. Including to start with.

They’re quite beautiful.

Re:Ask HN: How to self-study physics? by abdullahkhalids on Thursday March 26, 2020 @03:12PM (#22696824)
I disagree with you. I teach physics. Everyone interested in physics should read the Feynman lectures, but they are neither sufficient or necessary to understand physics. They are merely oomph on top of already good understanding.

Let's imagine physics=boxing. No amount of reading boxing books, or watching boxing videos is going to teach you any boxing. To learn boxing you have to throw 10,000 punches. To learn physics, you need to solve 1000s of questions. That is the necessary and sufficient condition for understanding physics.

Same way one learns software engineering after writing 100s/1000s of programs, not by watching videos of smart people coding (though that can help make you better).

Re:Ask HN: How to self-study physics? by mindcrime on Thursday March 26, 2020 @03:20PM (#22696916)
Let's imagine physics=boxing. No amount of reading boxing books, or watching boxing videos is going to teach you any boxing. To learn boxing you have to throw 10,000 punches. To learn physics, you need to solve 1000s of questions.

I'm not sure that this is a very good analogy. You can buy a heavy bag, and go out in your garage and throw 10000 punches - with no instruction - and still not know how to throw a proper punch. OTOH, you can watch a few videos, learn some technique, and then go refine it by throwing the 10000 punches in the gym, and be a lot better off. Of course, it still won't be as good as hands-on training from a proper trainer, but my point is that you need both in the boxing case.

For physics... eh, I dunno. My original plan for college was to major in physics, and then I discovered computers, and physics went (mostly) out the door and in the rear-view mirror.

Re:Ask HN: How to self-study physics? by abdullahkhalids on Thursday March 26, 2020 @04:58PM (#22697923)
> learn some technique,

Exactly. Feynman lectures tell you what the laws are, and why they make intuitive sense. They don't tell you how to apply the laws to a wide variety of scenarios, even those not discussed in the book. Physics textbooks like Haliday & Resnick do exactly this; briefly state the law and then teach you how to apply the law.

But merely reading those textbooks won't help you either. You still have to turn to the exercises and solve a bunch of questions correctly to actually learn.

Re:Ask HN: How to self-study physics? by AnthonBerg on Thursday March 26, 2020 @05:17PM (#22698083)
> Everyone interested in physics should read the Feynman lectures, but they are neither sufficient or necessary to understand physics

We actually agree, almost perfectly.

I contend that for some, including myself, they are an incredibly powerful tool for building an intuition. Not only after other studies, but during and before as well.

You say your part as someone who teaches, and that's important. Conversely, I say my part as someone who has learned and is learning.

But we are in almost perfect agreement.

Re:Ask HN: How to self-study physics? by Koshkin on Thursday March 26, 2020 @12:06PM (#22694979)
I found the "no-nonsense" series of books on elementary theoretical physics by Jakob Schwichtenberg to be pretty good as a complement to Susskind's.
Re:Ask HN: How to self-study physics? by nearmuse on Thursday March 26, 2020 @01:10PM (#22695661)
So far, they seem like a good way of reconnecting odd pieces of university program scattered around in my head. Maybe from scratch, they do not have enough math and overexplain some stuff. What are the usual arguments against this though?
Re:Ask HN: How to self-study physics? by petermcneeley on Thursday March 26, 2020 @11:13AM (#22694301)
"I'd suggest not actually trying to simulate physical systems on a computer" I cannot disagree enough with this statement. I am double major in Physics and CS.

There are two kinds of physics, Math and Physics. Most of what you learn in uni physics is Math. But the Math is only one (outdated) description of the nature of physical law.

Leonard Susskind himself has said on multiple occasions that the equations of physics are at most highschool math however the solutions are sometimes phd+ level.

To me Physics is the study of the relationship between state. Mostly this state is finite and the laws governing its evolution are simple and local. A computer is the best tool to discover the solutions to this evolving state.

Re:Ask HN: How to self-study physics? by andrepd on Thursday March 26, 2020 @11:58AM (#22694869)
And I cannot disagree enough with your comment.

>There are two kinds of physics, Math and Physics. Most of what you learn in uni physics is Math. But the Math is only one (outdated) description of the nature of physical law.

Lord knows what you mean by this. By "math physics" do you mean theoretical, and by "physics physics" the experimental part? Even then, this doesn't make any sense. Every physics course teaches theory and experiment. Particularly, what do you mean by "Math is only one outdated description of the nature of physical law"? I'm very curious, maybe I'm missing something.

>Leonard Susskind himself has said on multiple occasions that the equations of physics are at most highschool math however the solutions are sometimes phd+ level.

So? Again, I don't see what you're trying to imply with this. Seems a perfectly correct observation.

>To me Physics is the study of the relationship between state. Mostly this state is finite and the laws governing its evolution are simple and local. A computer is the best tool to discover the solutions to this evolving state.

This to my opinion is, for a lack of a better word, "hipsterism". Physics is the science that studies the universe at the most fundamental level/low level. That's it. "State"? "This state is finite"? What do you mean by "this state is finite"? I struggle to see what this is trying to describe (there are infinite degrees of freedom in many theories throughout physics).

Re:Ask HN: How to self-study physics? by op03 on Thursday March 26, 2020 @04:23PM (#22697584)
Faraday did a lot of "self studying of Physics". He was a book binder who didn't know any Math (had to drop out of school at 13). The reason he got into it was not because he read a Physics or Math textbook or worked out math problems, but because some one liked the way he bound books and gave him a ticket to a Humphrey Davy talk at the Royal Institution. Thats all it took to get into Physics.

Without him dreaming up his experiments and tinkering away, god knows when Maxwell's equations would have been discovered.

Why did we have to wait for a Faraday to show up to do his simple experiments? How come all the natural philosophers and mathematicians of the age, around the whole planet, had not thought to do them?

If Faraday had asked that bunch how do I self-study physics the answers wouldn't have been too different to what we see today.

Today's version of Faraday could very well be some kid hacking away at some computer game, dreaming up scenarios, exercising imagination and cooking up experiments in the same way Faraday did.

Re:Ask HN: How to self-study physics? by petermcneeley on Thursday March 26, 2020 @01:02PM (#22695582)
Let me see if I can do a defense that doesnt merely look like an obvious backpedal.

If you want to do a standard study in physics you are probably going to go through a significant amount of mathematics. This is because the laws "universe at the most fundamental level/low level" are expressed as math equations. If OP wants to go that route then there are tons of resources available to them.

But since OP already has a CS degree I think a possible entry point is exploring these laws through computers and in some way deriving them from simulation (here is one such simulation https://www.falstad.com/gas/)

lets leave the more outlandish claims alone for now. Perhaps I went to far.

Re:Ask HN: How to self-study physics? by supdatecron on Thursday March 26, 2020 @11:39AM (#22694624)
> Most of what you learn in uni physics is Math. But the Math is only one (outdated) description of the nature of physical law.

Is this the lack of additional parameters for the equations? All of my physics problems (only took a couple courses) were like "what if this spherical horse rolled down a hill at 34 degree decline" but failed to include friction, atmosphere. Just gravity. It always felt fake to me. Perhaps this is what you were alluding to by the "outdated" description?

Re:Ask HN: How to self-study physics? by petermcneeley on Thursday March 26, 2020 @11:53AM (#22694791)
By outdated what I more mean is that I think if the greats of the ~1800 had modern computers they would probably not use mathematics in its current form to study physics. There already has been on transition of this kind. Newton used Geometry to study physics whereas today we use Math which more has its roots in symbolic logic.
Re:Ask HN: How to self-study physics? by Koshkin on Thursday March 26, 2020 @12:21PM (#22695146)
If people in 1800s had modern computers we'd be sitting now on ruins of the global nuclear war of 1850 all watching TikTok.
Re:Ask HN: How to self-study physics? by ukj on Thursday March 26, 2020 @11:37AM (#22694595)
I am to really glad to hear commentary like this coming from physicists. (read: glad to see others siding with my biases).

Ceteris paribus there is one significant distinction between Mathematics and Computer Science: state.

The Mathematical Universe is immutable/stateless/timeless. The Computational Universe is mutable/stateful/time-bound.

The observer effect in physics can be trivially expressed and evaluated as a mutating getter in any programming language.

It cannot be expressed in any Mathematical grammar.

Re:Ask HN: How to self-study physics? by davidivadavid on Thursday March 26, 2020 @11:50AM (#22694753)
It seems likely that anything that can be expressed in "any programming language" is isomorphic to something that exists in math and can be expressed in that language (automata theory, type theory, category theory, pick your poison).
Re:Ask HN: How to self-study physics? by ukj on Thursday March 26, 2020 @12:20PM (#22695130)
That is probably because you think expression end evaluation are isomorphic. They aren't.

Not all functions are referentially transparent. All Mathematical functions are assumed to be.

Re:Ask HN: How to self-study physics? by Koshkin on Thursday March 26, 2020 @12:13PM (#22695039)
> Computational Universe is mutable/stateful/time-bound

A bunch of functional programmers would like to have a word with you.

Re:Ask HN: How to self-study physics? by ukj on Thursday March 26, 2020 @12:39PM (#22695332)
A bunch of functional programmers continue to insist that the Turing Machine has no ticker tape which stores state?

Yeah. I know ;)

Re:Ask HN: How to self-study physics? by Koshkin on Thursday March 26, 2020 @02:17PM (#22696286)
Re:Ask HN: How to self-study physics? by ukj on Thursday March 26, 2020 @03:17PM (#22696884)
Yeah! So you know that read:T call that you have implemented in Scala?

You know that it could produce a different result on consecutive calls, right? Because the notion of a mutex/lock doesn’t exist in Math.

Mathematics doesn’t allow that, because it is not a “pure function”.

https://en.wikipedia.org/wiki/Pure_function

Non-determinism is the norm in distributed systems.

e.g any networked Turing machine.

Re:Ask HN: How to self-study physics? by davidivadavid on Thursday March 26, 2020 @03:43PM (#22697158)
You seem to imply that there's no mathematical model/theory of non-deterministic/distributed systems. Surely you don't believe that?
Re:Ask HN: How to self-study physics? by ukj on Friday March 27, 2020 @01:34AM (#22700642)
I am implying that Mathematical semantics are broken/incomplete.

Mathematics uses denotational semantics. It implies pass by-value and pass-by-reference are equivalent. They are in theory, they aren't in practice. That is why Haskell's lazy evaluation leaks time.

Engineers/physicists intuitively rely at least on operational semantics. It's a higher order logic, and since Linear Logic time is localized.

https://ncatlab.org/nlab/show/Geometry+of+Interaction

Re:Ask HN: How to self-study physics? by cannabis_sam on Friday March 27, 2020 @01:44AM (#22700664)
> That is why Haskell's lazy evaluation leaks time.

Could you maybe illustrate this with an example?

Re:Ask HN: How to self-study physics? by ukj on Friday March 27, 2020 @05:36AM (#22701427)
So as a brief summary: laziness leaks time. Whether that's a good or a bad thing depends on what you want/need. It may be a bad thing if you are doing cryptography because time leaks allow side-channel attacks ( https://en.wikipedia.org/wiki/Timing_attack ).

As with all philosophical squabbles - there are arguments for each side. It's up to you to make up your mind based on your particular use-case.

And so in context of crypto + Haskell, have a look at these two posts:

https://crypto.stanford.edu/~blynn/c/haskell.html

https://crypto.stanford.edu/~blynn/haskell/lazy.html

Re:Ask HN: How to self-study physics? by joel_ms on Friday March 27, 2020 @06:07AM (#22701579)
Thank you!

I was more wondering how time leaks and laziness relates to denotational vs operational semantics? I couldn't find anything about either in the links (they seem to be general descriptions of haskell and laziness..?).

Re:Ask HN: How to self-study physics? by ukj on Friday March 27, 2020 @09:22AM (#22702606)
Trivially. For any given system 'safety' is an operational concept, not a denotational one.

You can't formalize the notion of 'safety' let alone prove (in the Mathematical sense) that your code has it without examining its runtime behaviour.

In the words of Donald Knuth: Beware of bugs in the above code; I have only proved it correct, not tried it.

In one context lazy evaluation may be 'safe' - it another it may be 'dangerous' - the context in which this assertion is made is always about human needs and expectations, not mathematics.

With particular example being that lazy evaluation allows for side-channel attacks in cryptographic systems. That's undesirable - hence operationally 'unsafe'.

Re:Ask HN: How to self-study physics? by andrepd on Thursday March 26, 2020 @12:04PM (#22694950)
>The observer effect in physics can be trivially expressed and evaluated as a mutating getter in any programming language.

>It cannot be expressed in any Mathematical grammar.

What on earth are you trying to say...? There is a whole mathematical treatment of quantum mechanics, measurement effect included (several treatments). More to the point, any algorithm can be formalised in e.g. a Turing machine, or any other equivalent universal model of computation. So there's literally nothing in "computer science" that you cannot express in mathematics.

This reeks of Dunning-Kruger: you don't even know enough about what you're talking about to realise how badly little sense you're making. I strongly suggest you familiarise yourself with a topic before opining about it. I'll be hard-pressed to believe you ever opened a physics textbook in your life after high school. Why then do you feel the need to talk blindly about it? I never opened a book about aeronautics in my life, therefore I would never presume to lecture anybody about plane-building... That would just be arrogance.

Re:Ask HN: How to self-study physics? by gaze on Thursday March 26, 2020 @03:25PM (#22696969)
it's like... kinda true that the observer effect can be expressed as a mutating getter... but that isn't useful. The idea that it can't be expressed is really ignorant.
Re:Ask HN: How to self-study physics? by jshevek on Thursday March 26, 2020 @01:12PM (#22695688)
>This reeks of Dunning-Kruger: you don't even know enough about what you're talking about to realise how badly little sense you're making. I strongly suggest you familiarise yourself with a topic before opining about it. I'll be hard-pressed to believe you ever opened a physics textbook in your life after high school. Why then do you feel the need to talk blindly about it?

You can just address their ideas, this extra stuff isn't helpful.

Re:Ask HN: How to self-study physics? by ukj on Thursday March 26, 2020 @12:38PM (#22695324)
>Any algorithm can be formalised in e.g. a Turing machine, or any other equivalent universal model of computation

Quoting http://math.andrej.com/2006/03/27/sometimes-all-functions-ar...

>>The lesson is for those “experts” who “know” that all reasonable models of computation are equivalent to Turing machines. This is true if one looks just at functions from N toN. However, at higher types, such as the type of our function m, questions of representation become important, and it does matter which model of computation is used.

Mathematics only proves things up to isomorphism. Two things that are theoretically equivalent are not necessarily empirically equivalent.

Or, just the good ol' adage: in theory there is no difference between theory and practice, but in practice there is.

>So there's literally nothing in "computer science" that you cannot express in mathematics.

In addition to the examples in the blog post linked above, you cannot express a mutating getter in Mathematics.

Go ahead. I'll wait.

Re:Ask HN: How to self-study physics? by andrepd on Friday March 27, 2020 @05:02PM (#22706858)
The link you has its fallacy in the premise. It's defining "function" as "computable function", then complaining that many results that follow do not agree with the former definition! Either I'm really missing something or this is some poor attempt at trolling / bait-and-switch. Of course you have problems with that "computable function" definition when dealing with functions from Real -> Real, since many (in fact, almost all) real numbers are not computable!

Re mutating getter:

Monads for example are a standard way of formalising state in a pure-function universe. You seem to have some fundamental misconception about what "mathematics" is, since you keep repeating something about purity. Mathematics is merely the rigorous study of formal systems, of which your mystical "mutating getter" is one such system.

Re:Ask HN: How to self-study physics? by ukj on Friday March 27, 2020 @06:52PM (#22707618)
You have some deeply flawed (or entirely absent) philosophical upbringing. There are no "foundations" to anything - all definitions are arbitrary.

To assert that a premise is fallacious mandates that you have some prior notion of "fallaciousness".

You don't have an objective criterion for asserting whether one definition is better than another because you don't have a notion of "betterness" - it's all conventional.

It's precisely because I am an over-zealous formalist is why I see Mathematics for what it is - grammar, syntax and semantics.

It's just language.

Re:Ask HN: How to self-study physics? by diegoperini on Thursday March 26, 2020 @02:31PM (#22696430)
Mutating getter? Sounds like a generator function that yields. Or a pseudo random number generator implemented with a monad (WorldState, Value). Or any tail-recursive non-void function that carry state without loss?

I'm definitely not an expert but aren't irrational numbers are the best examples to show that these types of constructs already exist in math? You can't calculate them in finite amount of time. You use an analytical formula or series expansions to get the nth term instead.

Re:Ask HN: How to self-study physics? by ukj on Thursday March 26, 2020 @03:25PM (#22696967)
Assume that it is a black box to you, even though it is a white box to me.

Every time you call read() on it - you get a different result. It has side-effects.

This violates the “purity” of Mathematics.

Re:Ask HN: How to self-study physics? by diegoperini on Thursday March 26, 2020 @03:51PM (#22697231)
I just explained three different models to represent side-effects without leaving the purity. I'm not sure if you are trolling, throwing random big words or simply have a really misguided impression about how computer science connects with math.
Re:Ask HN: How to self-study physics? by ukj on Friday March 27, 2020 @01:55AM (#22700689)
Your monad(WorldState, Value) example assumes shared global state. So not a networked system then?

That's not a train-smash for your argument if you can show me a Mathematical model for a global mutex.

When the discussion turns to control-flow you are inevitably in the land of well-ordered imperatives, not Mathematical, lazy-evaluated declaratives.

Re:Ask HN: How to self-study physics? by ubercow13 on Thursday March 26, 2020 @03:23PM (#22696944)
What is special about a mutating getter? It operates on the state of the object S and outputs a new state S' and some value x. Some programming languages allow you to write 'functions' without explicitly passing all input state into the function, but does that imply anything fundamental or interesting about mathematics or computation? Is that anything more than a type of syntactic sugar?
Re:Ask HN: How to self-study physics? by ukj on Saturday March 28, 2020 @08:36AM (#22710760)
What is "special" is that the system has a peculiar property: f(x) != f(x).

If we claim to be subscribed to denotational (Mathematical) semantics then the above contradicts the identity axiom.

And it's not any deep and world-changing insight either - it's obvious to anybody who sees that the LHS and RHS are only evaluated at runtime - they don't have any inherent (denotational) meaning, which is why I keep harping on: programmers use different semantics to mathematicians. We care about things like interaction and control flow structures as first class citizens - those are precisely the things that have no mathematical equivalents. Timeouts, exceptions, retry loops.

It's not "syntactic sugar" - it's necessity for reifying control flow. In the words of the (late) Ed Nelson: The dwelling place of meaning is syntax; semantics is the home of illusion.

https://web.math.princeton.edu/~nelson/papers/rome.pdf

Re:Ask HN: How to self-study physics? by andrepd on Friday March 27, 2020 @05:03PM (#22706873)
Of course it isn't. OP seems to have some kind of misconception about what "mathematics" means, since they keep fixating on a vague concept of purity of notation.
Re:Ask HN: How to self-study physics? by Jenz on Thursday March 26, 2020 @02:15PM (#22696275)
> In addition to the examples in the blog post linked above, you cannot express a mutating getter in Mathematics.

Neither can you express foobarish bamboozles...

Re:Ask HN: How to self-study physics? by ukj on Thursday March 26, 2020 @02:54PM (#22696645)
I can express a mutating getter in any modern programming language much like you just expressed “foobarish bambozles” in English.

Q.E.D

Re:Ask HN: How to self-study physics? by jshevek on Thursday March 26, 2020 @01:08PM (#22695645)
Please don't use that style of quotation for non-code. It is awful on mobile.