HNHacker News
TopNewBestAskShowJobs

ReflectedImage

476 karma · joined May 12, 2020

submissionscomments
ReflectedImage··on Zebrafish protein unlocks dormant genes for heart repair
Yeah but I don't think mice are more similar to Zebrafish than us. If you were a little more brave you could inject it into yourself.
ReflectedImage··on Bankruptcy judge rejects sale of Infowars to The Onion
The Onion bid was legally the correct bid to accept. It's got nothing to do with the cash amount, totally irrelevant.
ReflectedImage··on The Pythonic Emptiness
Typically, software developers write 3x the number of lines of code when using static typing compared to duck typing. It's just the nature of the static typing code style. Write 3x the lines, get 3x the bugs.

The programming language that has the least measured bug in practice is Clojure because it is duck typed and because it doesn't use OOP. Both static typing and OOP have a significant measurable negative effect on code correctness.

ReflectedImage··on The Pythonic Emptiness
Use the simplest syntax and check the code works via unit testing like you should be doing. Don't statically type your code as it increases the bugs by a factor of 3x typically.
ReflectedImage··on Don't return named tuples in new APIs
Because namedtuple is a simpler construct than frozen dataclass therefore it is always preferable in Python.

The number of characters and lines to access the members of namedtuple is significantly less than dataclass.

dataclass would have similar issues if st_dev was now defined as a string whereas namedtuple would not.

Whilst there maybe edge cases in using simpler constructs, in scripting languages we accept the edge cases as it pays off in 99.99% of cases to simply ignore them. If something goes wrong, you catch the exception "Ask for forgiveness not for permission" if you want to look up the concept.

ReflectedImage··on Don't return named tuples in new APIs
namedtuple is preferable as it's the more Pythonic solution. Simpler is better.
ReflectedImage··on Don't return named tuples in new APIs
That's what a class is for.
ReflectedImage··on ICC prosecutor seeks arrest warrants against Sinwar and Netanyahu for war crimes
Presumably in the Israeli and US courts
ReflectedImage··on Borgo is a statically typed language that compiles to Go
Ahh the failure to recognize that the great runtime and tooling is due to the language semantics.
ReflectedImage··on The last days of my type checker for JavaScript
No, it's forced modularity. It's saying there are hard lines between parts of your program that can't be crossed. This prevents the over time formation of spaghetti code.

It's like British tanks in WW2, your system is composed out of standard parts. Not necessary the best, but standard parts and that's what tends to be important.

ReflectedImage··on The last days of my type checker for JavaScript
Well it's a lack of training problem.

Someone properly trained with something like Smalltalk will on average output 3x the amount of software as someone trained on something like Java.

There are big advantages to doing it.

ReflectedImage··on The last days of my type checker for JavaScript
It's not really true that type safety is useful for large projects.

It's generally better to do proper micro-services.

Type safety is the inferior way of doing it where you get hit with a double whammy of long compile times and extreme code verbosity.

ReflectedImage··on The real reason for tech layoffs: to invest in AI
It would be cheaper to just send them all on a month long training course than re-hiring.
ReflectedImage··on Ask HN: C/C++ developer wanting to learn efficient Python
Going through the official Python tutorial is a must:

https://docs.python.org/3/tutorial/

Use multiprocessing not multithreading due to the GIL.

Python optimization is generally at a higher level, you use a better algorithm to get a result faster, rather than you saved an unnecessary copy.

Know when to use Python async.

Python is slow but you can always move work over into the database or dedicated library like NumPy.

Use the faster Python interpreter PyPy, which does JIT.

Do a multiprocessing pipeline with your CPU bound work broken down into stages.

ReflectedImage··on Glory is only 11MB/sec away (2023)
It's a later problem you can't solve! You cheaped out in the short term and will face ludicrous long term costs.

And not just you, it's a core part of cloud computing's monetization model.

Additionally, if anything goes wrong with your Digital Ocean account, Digital Ocean will not help you. So you are running a high risk.

ReflectedImage··on Glory is only 11MB/sec away (2023)
It's a cloud problem, you need good customer support to trust your business to the cloud. Only AWS delivers good customer support.
ReflectedImage··on Glory is only 11MB/sec away (2023)
I've seen a aws database segfault. Most likely due to custom aws patches.
ReflectedImage··on Glory is only 11MB/sec away (2023)
Well for a top 10 site, it's $1000 a month dedicated or $1,000,000 a month cloud.
ReflectedImage··on Glory is only 11MB/sec away (2023)
It's a straw man because both the cloud and dedicated suffer the same problem.
ReflectedImage··on Glory is only 11MB/sec away (2023)
$40 a month on a dedicated box will cover you for your first million users.

No you aren't running tests because you will be locked in to aws and your cloud computing bills will eventually bankrupt you.

ReflectedImage··on Saving cloud costs by writing our own database
Well presumably they need only 1/3 of a developer to do this and they intend to scale up 10x in the next 5 years.

$60,000 per year in-house vs $1,200,000 per year aurora. No brainer really.

ReflectedImage··on Tesla's $25,000 Car Means Tossing Out the 100-Year-Old Assembly Line
So what you are saying is he's brought some cool-sounding businesses and founded some business failures? It's not very impressive tbh.
ReflectedImage··on Debian on xz-utils: revert to version that does not contain changes by bad actor
Well Valgrind originally went off on it and oss-fuzz presumably would have caught it since here's a PR from the attacker asking for it to be disabled: https://github.com/google/oss-fuzz/pull/10667
ReflectedImage··on Backdoor in upstream xz/liblzma leading to SSH server compromise
It's all irrelevant. The attacker social engineered their way to being the lead maintainer for the project.
ReflectedImage··on Group buys up large tracts of land in Romania to create 'European Yellowstone'
How do they intend to install the super volcano underneath?
ReflectedImage··on The C++ Killers (Not You, Rust)
Simpler aka Python, Ruby, Basic, Pascal, not "lower level".
ReflectedImage··on The C++ Killers (Not You, Rust)
Well no, what do you think the word simpler means?
ReflectedImage··on The C++ Killers (Not You, Rust)
It also means you only get one third of the stuff done. Nothing "compiles and it works". That just means you suck at finding bugs :p
ReflectedImage··on The C++ Killers (Not You, Rust)
Because simpler languages are inherently better than more complicated ones.
ReflectedImage··on Boeing whistleblower found dead in US
Wait and see for what exactly?
← PreviousPage 4 of 19Next →