Hacker Newsnew | past | comments | ask | show | jobs | submit | ilius2's commentslogin

Using Qt6 and Go.

Shows prices of:

- Cryptocurrencies

- Gold and silver

- Fiat currency rates

- Stocks


This does not conflict with Andrew Kelly's point! The software is not your js code!! Your js code is s tiny fraction of the software. The rest of it (including node) has serious design issues. JavaScript is an messy interpreted dynamically-typed language with a week type system that was designed for browser 30 years ago and even its creator discourages you from using it now.


This posts intention was not to conflict with his point. I used it as a hook and because the simple perfect function he was showing reminded me of the one I mentioned in the article.

And I agree with you on the second half :).


This is fascinating, but for some reason I don't care enough to read it all. So I just save it to a pdf file for later maybe!


So it's industry's management problem, not a tech problem.


That's nonsense. a/b is float in Python 3, and even in other languages a/b gets closer to it's actual value as a and b get bigger (the "limit", which is the basis of Algebra). So four operations in programming generally do agree with foundations of Algebra. But a/0=0 is %100 against Algebra. And it's very unintuitive. It's basically saying zero is the same as infinity, and therefore all numbers are the same, so why bother having any numbers at all?


Floats don't have multiplicative inverses, and the floating point operations don't give us any of the mathematical structures we expect of numbers. Floating point division already abandons algebra for the sake of usefulness.


Knuth vol 2 has a nice discussion of floating point operations and shows how to reason about them. Wilkinson's classic "Rounding Errors in Algebraic Processes" (1966) also has a good discussion.


> even in other languages a/b gets closer to it's actual value as a and b get bigger (the "limit", which is the basis of Algebra)

This is not generally true. 5/2 = 2, 50/20 = 2, 500/200 = 2, and so on no matter how big the numbers get.


Yes, I meant when the result gets bigger. You get the idea.


What's the output of this Go program, without going to the playground link?

  print(math.MinInt / -1)
https://go.dev/play/p/Vy1kj0dEsqP


If you were to define a/0 the most logical choice would be a new special value "Infinity". The second best choice would be the maximum supported value of the type of a (int, int64 etc). Anything else would be stupid.


What if a is negative?


Same. Unless you want to differentiate -0 and +0 (which make it more complicated), you can not distinguish infinity from negative infinity.


IEEE floating point representation does both


John Conway can


Who is Zoe if not you?!


who am I if not Zoe?


Checking the resistance of some cheap Chinese clip leads I bought. The way these are crimped often doesn't make great contact. But even after soldering them, the resistance was still high. The wires were really thin, but it turns out, the resistance was still high considering that. It turns out, the wires, though they look like copper, are made of iron and coated with copper!


Thanks! I tested all my stuff, same result. It's the clip leads and breadboard jumper wires. Some two years and older.

Larger gauge wires were all good, I guess it wouldn't go so unnoticed there.


If you don't give the binary or source to anyone else, no. If you do, you have to give them the rights to use the source code under GPL.


I installed FreeBSD on my old laptop a few days ago. With WiFi, desktop and everything. Pretty much everything worked except for HDMI-connected monitor. And my Linux is not listed in boot menu.


All omega-3 supplements are probably somewhat rancid and possibly harmful, specially in solid / pill form! I personally take cod liver oil (liquid) from a reputable brand, but I still don't %100 trust it to be healthy. It's much better to eat fatty fish or actual cod liver.


Can you say which brand? And what research have you found on them? I also do the same and just wonder if they actually work or not


EuRho Vital. Didn't find any research on it, but many doctors/dietitians I follow on YouTube said cod liver oil is better than pills. What do you use?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: