Better HN
topnewbestaskshowjobs
Log inSign up

polyphonicist

147 karma · joined Jan 12, 2020 (6y ago) · 34 submissions

Submissions

1.

Ask HN: Would learning category theory be useful in my programming career?

3 points · by polyphonicist · 6y ago · 3 comments

2.

GNU Guix: Defining Packages(guix.gnu.org ↗)

4 points · by polyphonicist · 6y ago · discuss

3.

Product of Negatives (2010)(susam.in ↗)

94 points · by polyphonicist · 6y ago · 75 comments

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

6.

Ask HN: What are good distance learning Bachelor's/Master's degrees one can do?

161 points · by polyphonicist · 6y ago · 66 comments

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

Which university, if you don't mind me asking?

Can you share the names of the textbooks?

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

The book looks lovely. Did you write it using latex? What is your tooling to author a book like this?

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

13.

Ask HN: Do you use any web frameworks to develop web apps/microservices in Go?

1 points · by polyphonicist · 6y ago · 1 comment

comment 6y ago · link · parent

Why does Go need web framework? What's wrong with net/http?

comment 6y ago · link · parent

> 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)?

comment 6y ago · link · parent

Google has a reputation of shutting their services down. What if they shut their fonts CDN down or change their URLs without redirects?

comment 6y ago · link · parent

> 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?

comment 6y ago · link · parent

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?

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

> 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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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?

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

That's interesting indeed. Any idea why Physics constants obey Benford's Law? Did the universe pick the physical constants from an exponential distribution?

comment 6y ago · link · parent

I am a Linux user. What would be a good reason for me to try out NetBSD? Honest question.

28.

Ask HN: Which Vim plugins do you use?

2 points · by polyphonicist · 6y ago · 2 comments

comment 6y ago · link · parent

Copyright statements themselves are not required by Berne convention. Copyright exists by default whether or not you put a copyright statement.

comment 6y ago · link · parent

Why is VLA useless?

Why was it added to C99?

12