Recent submissions

Comment · 6 years ago
A related question if anyone knows good answers here.

What programming languages' de-facto thread implementations are not wrappers around pthreads? I think Go has its own thread implementation? Or am I mistaken?

Comment · 6 years ago
How can we build a society that supports volunteer work in open source? Should governments step in and provide open source grants for important projects just like it does for research work? So much of the world now depends on open source software. This problem needs to be solved soon.
Comment · 6 years ago
I really thought that pipenv was an anti-pattern. How hard it is to run "python3 -m venv venv; source venv/bin/activate; pip3 install -r requirements.txt" that one needs to create a whole new tool just to combine these three simple commands together? If it is so hard to just use three commands, just put those three commands in a script or Makefile and move on.

I know pip has its own flaws with not-so-great package and dependency management. But does that warrant a whole new tool? Or does that warrant fixing the existing tool?

Comment · 6 years ago
> From the outside, it seems like Javascript developers are all in high school

I wonder what the reason is for this kind of behavior to exist only in the Javascript community? Could it be that a vast majority of Javascript developers are really in high school? Are there any good stats sources for it?

Comment · 6 years ago
Comment · 6 years ago
Can you provide an example range of uniformly distributed integers that obeys Benford's law?
Comment · 6 years ago
Ramanujan also claimed 1 + 2 + 3 + ... = -1/12.

How does that work? Who can explain this to me?

Comment · 6 years ago
> creating a new green account and downvoting me isn’t going to change that.

It is impossible on Hacker News for a new green account with less than 500 points to downvote someone else.

Comment · 6 years ago
You just keep going round and round with handwaving that makes no sense. I read your link. I did not see Benford's law emerging anywhere in your link.

What does "max is uniformly distributed" even mean? If you think that the Benford's law holds good for a set of uniformly distributed numbers, why not simply provide that set? It would be so easy to prove your claim if you just provide an example set of numbers that obeys Benford's law.

All sets of numbers you have presented so far (0-300, 0-30000, 0-300000000000000000000000) do not follow Benford's law. It is very simple to show. In all these sets, the probability of first digit as 1 is equal to the probability of first digit as 2 which contradicts Benford's law.

Comment · 6 years ago
If you present a weird distribution to begin with, it should not be surprising that every digit does not have the same chance of appearing. That's not the point. We are not talking about weird distributions here.

If we are going to argue like this, I might as well present a set of two numbers S = {1, 2} and claim that when we choose numbers from uniform distribution, the probability of 3 occurring as the first digit is 0. Other commenters are not assuming weird distributions like this because this kind of discussion does not provide any new insights and is just a waste of time.

Comment · 6 years ago
Can you provide a concrete example of a range of numbers that you think obeys Benford's law?
Comment · 6 years ago
It does not matter what N you choose. The experimental results are always an approximation of Benford's law. The approximation gets better and better as N becomes larger and larger. The fact that you do not see Benford's law working with N = 19 is not in anyway a flaw in the way the experimental results are set up. It just means N is too small to approximate Benford's law closely.
Comment · 6 years ago
That's a fair point. Yes, I thought the same thing too when I read this. It is only introducing restrictions on sequential prime numbers. I doubt it has any bearing on the factoring problem yet, at least not without more work that can connect this to the factoring problem.
Comment · 6 years ago
The image was put in public domain. No further exclusive rights are required to sublicense it. You are allowed to pick work from public domain and sublicense it if you want to.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton