HNHacker News
TopNewBestAskShowJobs

polyphonicist

147 karma · joined January 12, 2020

submissionscomments
polyphonicist··on From Tower of Hanoi to Counting Bits (2011)
From the article:

> We will be dealing with arbitrary precision integers (bignums) in the problem, so let us also make a few assumptions:

> Addition or subtraction of an m-bit integer and an n-bit integer (m <= n) takes O(n) time.

> Counting the number of 1-bits in an n-bit integer takes O(n) time.

polyphonicist··on From Perl to Pi
Here is the fun bit hidden away in the comments page of this post:

> Randal L. Schwartz said:

> 27 Apr 2008 02:30 AM GMT (#1 of 1 comment)

> Glad you enjoyed that bit. That was Tom's humor on that one. I could never have been that clever. :)

It is heartwarming to see the author of a popular Perl book providing credit for a joke to his co-author in the comments of an early 2000 blog post by an independent blogger.

polyphonicist··on Mathematics for the Adventurous Self-Learner
Like other sibling comments, I would also like to know how you have used Anki to transform your career.

I like Anki but I have never been able to figure out how to capture complex and often long business related information in tiny cards.

polyphonicist··on Mathematics for the Adventurous Self-Learner
Which university, if you don't mind me asking?

Can you share the names of the textbooks?

polyphonicist··on Mathematics for the Adventurous Self-Learner
Shared a similar thought here: https://news.ycombinator.com/item?id=22401420

Yes, it is really important to learn math with study-mates. Just like in code, we do reviews, in math too, we need someone else who can review our proofs. It is even easier to make an error in a proof and believe that something is proven when it isn't. A study-mate helps to prevent us from fooling ourselves.

polyphonicist··on Mathematics for the Adventurous Self-Learner
The book looks lovely. Did you write it using latex? What is your tooling to author a book like this?
polyphonicist··on Mathematics for the Adventurous Self-Learner
I am going to suggest something that might go against this idea of self-studying math.

Do not do it alone. I mean, it is okay to self-learn mathematics as much as possible but don't let that be the only way to learn. Find a self-study group where you can discuss what you are learning with others.

I think the social-effect can be profound in learning. I realized this when I used to learn calculus on my own. My progress was slow. But when I found a few other people who were also studying calculus, my knowledge and retention grew remarkably. I think the constant discussion and feedback-loop helps.

With round the clock internet connectivity, it is easier to find a self-study group now than ever.

polyphonicist··on Show HN: Search code in GitHub repos using regular expressions
Can you provide detailed steps to reproduce? What strings did you search? Two examples of repos that appeared in the results? What is the link to your repo that did not appear in the results?

Details like this would help the OP to track down the exact cause of why it has indexed the forks but not the original repo.

polyphonicist··on Fiber – Express inspired web framework written in Go
Why does Go need web framework? What's wrong with net/http?
polyphonicist··on Inrupt, Tim Berners-Lee's Solid, and Me
> Even if you do hand your pod over to some company, it'll be like letting them host your domain name or manage your cell phone number. If you don't like what they're doing, you can always move your pod -- just like you can take your cell phone number and move to a different carrier. This will give users a lot more power.

The domain name analogy scares me rather than reassures me. Sure, DNS was created in good faith to be as distributed as possible, but is it? There are recent stories that show that individuals do not have as much control on domain names as one would ideally like. See these stories -

- Sinkholed: https://susam.in/blog/sinkholed/ (domain name hijack by German authority by accident)

- The duck tape holding the internet together: https://medium.com/thisiscala/the-duct-tape-holding-the-inte... (loss of control on domain name due to registrar error)

While the idea behind Solid sounds solid but the moment they talk about outsourcing pod hosting to third-party pod hosting providers, I get worried. Would it lead to walled gardens of pods? (Example GMail for emails) Would they add non-standard convenience features to create vendor lock-ins (Example GitHub for Git)? Would they abuse their power due to vendor lock-in (Example Sourceforge for SVN)?

polyphonicist··on Should you self-host Google Fonts?
Google has a reputation of shutting their services down. What if they shut their fonts CDN down or change their URLs without redirects?
polyphonicist··on Should you self-host Google Fonts?
> For example, most people don't consider that the W and the M in your font must look distinctly different, and not just vertical mirrors of each other.

Why isn't relying on default fonts provided by the user's system good enough for that?

polyphonicist··on More bosses give four-day workweek a try
I have a regular five-day workweek but to be honest, I work productively only 4 days a week. I find it hard to work productively all 5 days. On the day's I am not working productively, I just pretend to look busy to my manager. It would be nice to formalize this working pattern as a four-day workweek.

Where can I find such four-day workweek jobs?

polyphonicist··on Of Modes and Men (2005)
Actual quote from the article for context:

> Modeless: Computer scientists when writing code typically worked in different modes; you might have an insert mode, a delete mode, or a replace mode. You would first select the mode, then select the point on the screen at which the action was to occur, then perform the action. Tesler, in user experiments, proved that modes were confusing for nonscientific users and championed the “modeless” interface.

For non-technical users, sure modeless editing may be better. But for computer scientists, modeful editing may be better. The article mentions modeless editing to be better for no scientific users only, not necessarily for everyone.

polyphonicist··on Of Modes and Men (2005)
VSCode has a plug-in for Vim keybindings. Does not emulate Vim entirely but good enough to feel at home. Gives you best of both worlds: IDE-like features of VSCode and ergonomic manipulation of code of Vim.
polyphonicist··on Let's Encrypt has turned on stricter validation requirements
Does this require the user to make any changes?

I run a simple static website served with Nginx. I would like to know if this change has any impact on me.

polyphonicist··on How to write the perfect pull request (2015)
> If you share a development branch with someone, then you should prefer merging over rebasing

Your parent comment is suggesting rebase only for pulling latest changes in master into your pull request.

For merging someone's pull request to the team's master, sure use a merge commit.

But if you are working on a pull request and while you are working on it, the team's master gets updated and now you want to base your work on the recent master, by all means, use git rebase. That is what it is meant for, to rebase your work on another work. It's in the name itself.

Right tool for the right job.

polyphonicist··on Rust Ghost, Signing Off
Yes. And now this whole code-of-conduct business would probably have these perfectly reasonable greybeards banned from their own projects. Gone are the good old days of open source.
polyphonicist··on Learning from Turing’s silver hoard (2016)
Can you elaborate this more? I know about continental drifts and I know they occur at a scale much larger than a tiny box. Does it have any effect on the small scale a tiny box would be buried in if we are not burying the box near fault lines?
polyphonicist··on Benford's Law
Came here to say the same thing. Certainly haven't seen such depiction of infinity earlier. But this is a nice way. I am going to use it myself.
polyphonicist··on Benford's Law
That's interesting indeed. Any idea why Physics constants obey Benford's Law? Did the universe pick the physical constants from an exponential distribution?
polyphonicist··on NetBSD 9.0
I am a Linux user. What would be a good reason for me to try out NetBSD? Honest question.
polyphonicist··on Copyright statements do not need the year
Copyright statements themselves are not required by Berne convention. Copyright exists by default whether or not you put a copyright statement.
polyphonicist··on To become a good C programmer (2011)
Why is VLA useless?

Why was it added to C99?

polyphonicist··on To become a good C programmer (2011)
Has your book recommendations changed in this decade? Would you recommend different books today?
polyphonicist··on Ask HN: What are good solo developer blogs that you enjoy reading?
Sinkhole incident: https://susam.in/blog/sinkholed/

HN discussion: https://news.ycombinator.com/item?id=21700139

Pretty scary stuff for domain buyers!

polyphonicist··on Incident: Ethiopian B737 at Dire Dawa on Jan 9th, swarm of grasshoppers
> The crew went around, attempted a second approach but again needed to go around and diverted to their ultimate destination Addis Ababa (Ethiopia)

Do they mean "alternate destination"?