HNHacker News
TopNewBestAskShowJobs

eliben

3,222 karma · joined July 5, 2010

http://eli.thegreenplace.net
submissionscomments
eliben··on The Lost Ways of Programming: Commodore 64 Basic
Nostalgia is important.

But I wouldn't agree with a statement that things are worse today than they used to be.

JS with something like codepen.io is an excellent zero-install, write-whatever environment kids and adults can both enjoy.

eliben··on Paradigms of Artificial Intelligence Programming (1992)
Ah, PAIP... it's such a wonderful book! I highly recommend aspiring programmers to read it even if they don't care about Lisp or AI; the sheer amount of common programming wisdom in this book is priceless.
eliben··on The Nobel Prize in Chemistry 2020
Certainly well-deserved; CRISPR is a transformational invention.
eliben··on A Handwritten Math Parser in 100 lines of Python
Recursive descent is what I use today. En-vogue or not, it's the most robust, flexible and - most importantly - maintainable approach in the long term.
eliben··on Ask HN: How to self-host comments on your otherwise static blog?
My blog is decently high-traffic and has been static/Pelican for several years.

After using Disqus for a while I decided to drop comments entirely because they're more trouble than they're worth. A quick write up about it -- https://eli.thegreenplace.net/2018/turning-off-blog-comments...

TL;DR: don't.

eliben··on Ask HN: Great fiction books that have had a positive impact on your life?
Funny coincidence - I'm just rereading this book now, and I think I like it more than the first time (~11 years ago). Getting older makes me appreciate Steinbeck even more.

But I'm not entirely sure about his discussion of the word "timshel" in the original Bible. I'm a native Hebrew speaker, and I don't read any "may" into it - it's more of a declaration of the future like "you will rule/control it" rather than "you may rul/control it".

eliben··on Mapping Coronavirus, Responsibly
What caught my eye is that in Hubei province, which we all imagine as a zombie apocalypse now, only ~110 out of every 100,000 got infected, and at this point the new infection rate is going down.

Which is quite amazing, given that the virus was spreading there for weeks (at least) without anyone being aware of anything before all the mess was uncovered and announced.

eliben··on [dead]
I'm curious - what you feel is specifically the barrier? Which parts of your Node project you want to port to Go and don't because you don't know where to put them?
eliben··on Show HN: PyCParser, C parser and interpreter in Python
pycparser is actually from ~2008 :-) [http://eli.thegreenplace.net/2008/11/15/pycparser-v10-is-out], but it was probably less easily discoverable in those days - it was initially in SVN and the first release was a tarball drop.

pycparser doesn't do anything about interpreting C, it ends its job at creating the AST.

By the way, pycparser has no external dependencies. It uses PLY but vendors it. I had to port it to Python 3 before PLY did itself, and stuck to the vendoring because it's so convenient.

eliben··on Cloud Run Button: Click-to-deploy your Git repos to GCP
You're linking to a question about a different service (App Engine) from 3 years ago
eliben··on Go compiler internals: Adding a new statement to Go
Check out part 2 (http://eli.thegreenplace.net/2019/go-compiler-internals-addi...) which talks about the compiler backend - there are many optimizations done on SSA
eliben··on Go compiler internals: Adding a new statement to Go
Thanks for posting this :)

Part 2 is http://eli.thegreenplace.net/2019/go-compiler-internals-addi...

eliben··on Michelin Rolls Out an Airless Tire That Will Be “Puncture-Proof”
I wonder why they can't just close off the outer walls with rubber same as in regular tires.
eliben··on World's tallest tropical tree discovered and climbed in Malaysian Borneo
Redwood National Park is amazing - one of the best parks IMHO. Walking along these trees is a humbling experience. Jedediah Smith area is highly recommended
eliben··on World's tallest tropical tree discovered and climbed in Malaysian Borneo
Nice article, but unfortunate hyperbole:

  climbs one of the potential candidates for the world's tallest tree
At 330 feet it's hardly a match for the world's tallest trees. California redwoods routinely clock 370 feet and 330 is quite an ordinary occurrence you can see on quick accessible hikes
eliben··on Ask HN: How do you overcome Weltschmerz or fatalism about our future?
Reading good history books really helps. It's amazing how hard and terrible life was for 95% of the world's population just 150 years ago.
eliben··on Equivalence of State Machines and Coroutines
On the same topic, from 2009: https://eli.thegreenplace.net/2009/08/29/co-routines-as-an-a...
eliben··on On the uses and misuses of panics in Go
In what way does the post remind you of that scene?
eliben··on The Oldest Building in Every US State
Nope, in Colorado there's a Pueblo building from the 12th century. It's there in the article
eliben··on Humble book bundle: Linux geek by no starch press
It's really strange that price went up so much. I bought the hardcover new from Amazon for $60 in 2013.
eliben··on Humble book bundle: Linux geek by no starch press
Thanks for the kind feedback, very happy I could help :)
eliben··on Humble book bundle: Linux geek by no starch press
It's an excellent book, highly recommended. Copy pasting a review I wrote a few years ago [https://eli.thegreenplace.net/2012/12/29/summary-of-reading-...]:

[...] many books have tried to be the successors to Richard Stevens' legendary APUE. I think that "The Linux Programming Interface" is one of the very few successes in that endeavor. This 1552 book has truly encyclopedic scope, although it focuses only on the Linux flavor of Unix. It's best treated as a reference, rather than a tutorial to read from cover to cover. That said, I read a good portion of its chapters whole (in addition to skimming through the rest), and the book is so well written it makes a very pleasant read. It explains many complex topics in great depth; even topics which don't have good coverage in other places, like pseudo-terminals. I enjoyed reading, and I will definitely use it as a reference when the opportunity presents itself.

eliben··on Basics of Futexes
Thanks for mentioning this, it's indeed one of the interesting subtleties of futex().

In my defense, I explicitly say in the post that it's not a replacement for the man page and suggest the readers at least go through the descriptions of FUTEX_WAIT and FUTEX_WAKE. The former explains this behavior in the very first sentence.

Moreover, the post mentions this behavior twice:

1. When explaining spurious wakeups in the wait_on_futex_value

  [...] FUTEX_WAIT will immediately return if the
  value at the futex address is not equal to val. In our case this can
  happen if the child issued a wait before the parent wrote 0xA, for
  example.
2. In a comment inside Mutex::lock()

   // We're here when either:
   // (a) the mutex was in fact unlocked (by an intervening thread).
But your point on avoiding an insidious deadlock is spot on.
eliben··on What makes a country good at football?
This is a good opportunity to clarify HN's policy w.r.t. paywall articles; are they allowed? encouraged? discouraged? Only for "reached your limit" paywalls in case some readers didn't reach said limit?
eliben··on Minimal character-based LSTM implementation
seq_length in this line: https://github.com/eliben/deep-learning-samples/blob/master/...

Is a variable that controls how much unrolling is done during training.

eliben··on Toshiba’s loss of star engineer tells tale of company's decline
That's not a particularly high salary for a senior SW engineer in Israel (where the cost of living is lower than in Japan)
eliben··on 100 Years Later, the Madness of Daylight Saving Time Endures
For some reason you seem to be terribly angry, though I assure you I didn't mean to impose anything here, just curious about the reasons. There's quite a bit of snark to cut through in your reply and the only substantial sentence I can find is "I don't want to move my schedule".

This is a perfectly valid reason, from which I assume you're not encumbered by any particular organizational schedule (such as school starting at a certain time, work starting at a certain time, regularly scheduled meetings year-round etc.); it makes sense that you would find these time changes annoying, although I'm not sure why it affects you if you truly don't care what the clock shows when the sun rises and sets.

eliben··on 100 Years Later, the Madness of Daylight Saving Time Endures
The issue with this is the late sunrise in the winter. In mid-Jan in LA the sun rises at ~7AM. It would rise at 8AM with daylight savings in winter. This sucks terribly since it moves your whole commute into dark; kids walk to school in the dark, etc.

It's pretty depressing to start the day in the dark, to be honest (with apologies to folks living in very northern or southern latitudes)

eliben··on 100 Years Later, the Madness of Daylight Saving Time Endures
These keep coming out, but I guess I just don't get it. Say, looking at it from the POV of parents with daycare/school-aged kids. Let's say that school always starts at 8, and kids wake up at 7. Full-day school/aftercare etc. is done by 5 PM or so.

During the summer in California, with daylight savings, the sun will rise at ~6 AM and set at 8 PM. The morning sun is mostly useless, at least for me. But 3 hours of sun after school ends is nice for kids to be outside, it's warmer, etc.

Without daylight savings, the sun would rise even earlier at ~5AM and set at 7 PM. So we've lost an hour of evening sun for an our of super-early morning. Sounds like a bad deal to me, but what am I missing?

eliben··on A week-long programming retreat
Backpropagation was first applied to Neural Networks over 30 years ago

[Rumelhart, David E.; Hinton, Geoffrey E.; Williams, Ronald J. (8 October 1986). "Learning representations by back-propagating errors". Nature]

← PreviousPage 5 of 34Next →