Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
svat
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
301.
▲
by
svat
3y ago
JavaScript does not provide a way for the programmer to access memory positions (and e.g. does not guarantee that the the language runtime will maintain unvarying memory positions), so it doesn't make sense to talk about memory positio
302.
▲
by
svat
3y ago
In what way does it break down? Maybe if one is thinking of boxes, going by "a change to the value of a "? The book says: > When a binding points at a value, that does not mean it is tied to that value forever. The = operator
303.
▲
by
svat
3y ago
As I understand it, JavaScript does have a distinction between the primitive types and Object, but this does not show up in any significant way to the programmer / in any way relevant to how to view variables. To put it differently, th
304.
▲
by
svat
3y ago
Thanks, that gives a way of seeing the diff between the third edition and the current (last commit 45 minutes ago): https://github.com/marijnh/Eloquent-JavaScript/compare/f8f00...
305.
▲
by
svat
3y ago
"Binding" is used thousands of times in the language standard, including for variables: https://tc39.es/ecma262/#sec-variable-statement -- that's my point, that this book is precise while being approacha
306.
▲
by
svat
3y ago
My point is that it's not a simplification, it's precisely how the language works: bindings between values and names (JavaScript has no separate notion of memory pointer; everything is a "pointer"). (Similarly for Python
307.
▲
by
svat
3y ago
Because that's not how variables work in JavaScript/Python etc (though it may be fine for say C++ in the case of value types and copy constructors). For example: I'm typing on phone so for a quick example: let a = [];
308.
▲
by
svat
3y ago
I love this book, even since its first edition. It's very clear even on elementary stuff, e.g. see the section on bindings/variables: https://eloquentjavascript.net/02_program_structure.html#h-l... — avoids the p
309.
▲
by
svat
3y ago
BTW that one isn't a joke made up for this site: it's a verbatim quote from The Art of Computer Programming (Volume 2, page 2). TAOCP is full of silly-but-serious jokes like that.
310.
▲
by
svat
3y ago
The fact that "Chapter 11" refers to bankruptcy is the joke in the quoted joke. Calling this joke a "poorly-understood incident from that period", referring to Warren Buffett's books as books of the Bible, and sayin
311.
▲
by
svat
3y ago
(2002), or as it says (20002). Enjoy this set of pages. Clearly done with love. And shows how the 3:16 method -- "the way of the cross section" -- works. Unfortunate that he had to spoil the joke in the "story of O" page
312.
▲
by
svat
3y ago
Like if Microsoft for some reason decided to put all their Azure examples in files that opened in MS Paint, imagine a “My issue with Paint is that…” comment like the above. You should judge MS Paint by how good it is for its stated purpose,
313.
▲
by
svat
3y ago
This does not seem to be an issue with Observable (more an issue with d3 that it has not chosen to have copy-pastable examples elsewhere), but in any case this comment does not seem relevant to this post, as this post is precisely about how
314.
▲
by
svat
3y ago
https://caniuse.com/url-scroll-to-text-fragment -- yes Safari supports it
315.
▲
by
svat
3y ago
The Monty Hall problem is a thought experiment (based on a real game show). As evidence, see this letter from Monty Hall himself ("no trading boxes after the selection"): Dear Steve: Thank you for sending me the problem from &q
316.
▲
by
svat
3y ago
Reminds me of a Borges story ( https://en.wikipedia.org/wiki/Funes_the_Memorious , https://vigeland.caltech.edu/ist4/lectures/funes%20borges.pd... ) and the article also led me to https:/&
317.
▲
by
svat
3y ago
What do you mean by "the opposite"? In your notation, the example shows that Y(g) = g(Y(g)) which by the definition of the equals sign (A=B and B=A say the same thing), is the same as: g(Y(g)) = Y(g) — so Y(g) is
318.
▲
by
svat
3y ago
Look at the bits just before and after what you quoted: > That is the second key to reaching cynical teenagers: they must be treated like men and women whose decisions and opinions matter. I was eager to learn from their observations an
319.
▲
by
svat
3y ago
Assuming you mean GNU ed (which is the one that has had a recent release): https://fossies.org/linux/ed/ChangeLog (seems to be a web version of the file `ed-1.20.1/ChangeLog` within the ed release itself).
320.
▲
by
svat
3y ago
Just to be clear, it was not a competition. For more, please follow the links from some of the previous HN discussions, e.g. https://news.ycombinator.com/item?id=31301777 . [For those who may not follow all the links: Bentle
321.
▲
by
svat
3y ago
I don't think so -- as he tells it, the "distributed understanding" is a shortcut he's using in his later life (if something is important someone will tell/explain it to him), which he contrasts with the diligence&#
322.
▲
by
svat
3y ago
IMO your comment seems not to be addressing the point made in its parent comment. To make the point again with different words: - Using long descriptive variable names would give them meaning, and make the particular equation/expressio
323.
▲
by
svat
3y ago
What is his life's work / major insight that he's referring to here? > I had found— and partly invented— a prodigious explanation- device that reliably devoured difficulties, day after day. The insights (if that is what t
324.
▲
by
svat
3y ago
I do something similar but instead of `|| exit 0` I use `--allow-empty` on the `git commit`. I don't mind the empty commits this creates, as they let me know that there was a successful automated run that happened to be empty, rather t
325.
▲
by
svat
3y ago
“a floor wax and a dessert topping.”
326.
▲
by
svat
3y ago
• Bard when launched was using one of the PaLM models, which is inferior to GPT-3.5 (the free version of ChatGPT). • Bard since a couple of months ago was using Gemini Pro, which is roughly comparable (a bit worse or better depending on who
327.
▲
by
svat
3y ago
It's confusing because the name Bard and the UI also got an upgrade today, so I thought I was using Gemini Ultra but it turns out I'm not: https://imgur.com/a/3UriYpn — showing that Gemini Advanced is not wha
328.
▲
by
svat
3y ago
That submission was a link to the (uninformative) signup page, and the discussion is mostly about the link being uninformative and/or not working. This one is at least an announcement :)
329.
▲
by
svat
3y ago
ProseMirror (an excellent library IMO, though it takes a couple of hours of reading the docs to get started) has support for collaborative editing: https://prosemirror.net/examples/collab/
330.
▲
by
svat
3y ago
The most valuable thing about GEB for me was how self-indulgent it is. The book is entirely Hofstadter having fun: all those tricky dialogues, acrostics, puns where the setup and payoff are hundreds of pages apart, the marrying of form and
More ›