HN user

lo0dot0

34 karma
Posts1
Comments80
View on HN

It's also good practice to chose an appropriate language for the problem. It's not premature optimisation to use a compiled language instead of Python when you already know the code will run thousands of times in a loop because of the application and use a lot of electrical energy in the process.

If you are unsure what you are doing, do not do it. For example, I just posted to hackernews. The button in my app says "submit", but doesn't warn me about posting to the internet. Is there any problem with that? No, because I know what I'm doing and anyone using the Internet should too.

Even if you can not compute the result in a finite number of steps through the naive approach there could still be a better approach, let me call it shortcut, for determining the value that can be computed. E.g. the geometric series result is known (a/(1-r)) but not computable through evaluating the series itself. A problem is undecidable if you can prove that the shortcut can not exist, it is decidable if you know a shortcut exists (knowing the formula is not required), and potentially either decidable or undecidable if a proof in either direction is unknown.

While it technically correct to say this it also gets the wrong point across because it leaves out the fact that ordering changes create only a small difference. Other examples where arithmetic is not commutative, e.g. matrix multiplication , can create much larger differences.

Obviously this is not how video compression and packets work but for the sake of the argument consider the following. The article speaks of a 300 fiber cable. A one bit per pixel square image with approx. 300 pixels is 17x17 in size. Not your typical video resolution.

Optics also have signal integrity issues. In practice OSNR and SNR limit optics. Cutting the fiber still breaks it. Small vibrations also affect the signal's phase.

No, not necessarily. If you can distinguish different amplitude levels you can do better. For example four amplitude modulation (4AM) carries two bits per symbol. There is also the option to use coherent optics, which can detect phase, and carry additional information in the phase.

Algorithms can see the difference between RGB 245, 245, 245 and RGB 246, 245, 245 (it's 1, 0, 0) but the eye can probably not, also depending on the monitor hardware. Thus the blurring effect might not be as strong as it looks like at first glance.