1,263 karma · joined Sep 5, 2009 (17y ago) · 307 submissions
comment 11mo ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
I absolutly recommend it. There is also a comics that tell his grand father, his father story and himself that tells a lot of what a war is and also tells a little bit of the making of PoP.
10.
How Stable Diffusion Works (AI Image Generation) [video](youtube.com ↗)
2 points · by ecaradec · 3y ago · discuss
comment 3y ago · link · parent
The trick is that you make sure that your table is large enough to not have a lot of collisions, then if you have a collision instead of storing exactly in the bucket given by the hash, you store it in the next available bucket. When you look for a key, you get the hash, then the index from the hash, and you start searching at this point. If you reach an empty value, then there is no value. If you find the value then you return that. So everything is stored in a single array, no need for extra allocations and it is better for cache locality.
The same principle is used here for very minimal hash table (13 lines): https://nullprogram.com/blog/2020/10/19/
This video also talk about how to optimize hash table and look into several implementations: https://www.youtube.com/watch?v=DMQ_HcNSOAI&t=1690s&ab_chann... . It talks about techniques used by advanced hash table. There was a lot more that I didn't know.
comment 3y ago · link · parent
We need energy, but people as dismissing every source of energy because they are looking at each source one at a time. We should have taught people years ago that there is no perfect choice.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 6y ago · link · parent
dog => mammal (dog implies mammal )
What can we say about not a dog ? (can be a cat, or a chair... ) What can we say about not a mammal ? (can be a chair, building... )
It's more intuitive because we as human understand the groups.
comment 6y ago · link · parent
However, I think the real value in double entry accounting is that it not only represent money you have but also things you own: If you buy a pen, you have less money, but you have an extra furniture pen and your accounting can reflect that. It can also reflect the loss of value of the pen over time.
It is also useful if you get in debt to buy something: you transfer money from a debt account to your current account, you buy the thing you wanted to buy and appropriatly report the value of what you own in accounting. You now have a thing, and a debt to be repaid in whatever term was agreed.
It's also very useful as a tool of control for state. All exchanges you have with other entities are recorded in a separate account. It's possible to take that account and check that the other entity accounting book match exchanges they have with you.
comment 6y ago · link · parent
This might be what you want : https://www.agner.org/optimize/#manuals
23.
Tovey explains the column geometry of the simplex method(youtube.com ↗)
2 points · by ecaradec · 6y ago · 1 comment
comment 6y ago · link · parent
26.
Show HN: An multipass optimizing compiler for a simple language(github.com ↗)
2 points · by ecaradec · 6y ago · 1 comment
comment 7y ago · link · parent