1,562 karma · joined Aug 24, 2019 (7y ago) · 536 submissions
comment 4y ago · link · parent
All fixed with a little TLC and experience :)
There's a funny overcompensation that greenhorns have when improving their code. Someone will ask them to use better names, then you get a few months of `let loopIndex = 0` when `let i = 0` would have been just fine.
comment 4y ago · link · parent
My sibling comment did a good job explaining, but the UI + configurable storage + configurable triggers all out of the box make life a lot easier.
comment 4y ago · link · parent
Where there weren't good wrappers, just a few functions "wrapping" Java libraries for my project's needs always felt lightweight and lispy. The little internal APIs I made almost always passed around the library's raw Java objects, but with more Clojure idiomatic ways to construct them, or slapping some seq on the library outputs.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
There's a linked PDF paper with more detail.
comment 4y ago · link · parent
https://github.com/HypoPG/hypopg
HypoPG is a PostgreSQL extension adding support for hypothetical indexes.
An hypothetical -- or virtual -- index is an index that doesn't really exists, and thus doesn't cost CPU, disk or any resource to create. They're useful to know if specific indexes can increase performance for problematic queries, since you can know if PostgreSQL will use these indexes or not without having to spend resources to create them.
With one approach to actually implementing it here: https://www.percona.com/blog/2019/07/22/automatic-index-reco...
https://github.com/ankane/dexter is an autoindexer project that builds on hypopg, and I believe it can be configured to autocreate indices — it will only suggest them by default.
comment 4y ago · link · parent
Cheers to you, and I hope you're learning and having fun working on your project!
comment 4y ago · link · parent
Uh, is the cache key the same? To me it is 100% clear that the cache key is used for a global cache, and that this is one of the core design principles of the library. This global cache management is exactly what I desire over useState without writing my own boilerplate.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
1) Mitochondrial selection is multilayered and aggressive. Mitochondrial population selection goes on during formation of egg cells [1]. Mitonuclear compatibility is heavily selected for during ontogeny [2]. Many miscarriages are are related to mitochondrial dysfunction. Once someone is born they've already passed a high selective bar for mitochondrial health.
2) There is a tradeoff between mitochondrial selectivity and fertility. Birds have much greater energetic requirements than mammals (flying is hard) and therefore have much greater mitochondrial selectivity. This means fewer offspring though. Pigeons and rats have similar size and metabolic rates, but a pair of rats can have 80+ offspring in a year while a pair of pigeons can only manage under 20.
comment 4y ago · link · parent
There is a broad trend that as women are more empowered, they are less likely to go into STEM: https://www.theatlantic.com/science/archive/2018/02/the-more...
comment 4y ago · link · parent
Any reason you couldn't just dump it in FAISS or Annoy? No need to do pairwise comparisons. Annoy claims to handle even up to 1,000 dimensions reasonably. https://github.com/facebookresearch/faiss/issues/95
comment 4y ago · link · parent
It sucks to work on a whole product catalog or rolodex.
comment 4y ago · link · parent
The list of supported extensions [1] is interesting and covers the biggies. Still, it always kills me that these hosted "Postgres+" solutions end up meaning no third party extensions. ZomboDB (easy ElasticSearch integration) is a PG extension I've always wanted to try, but haven't been able to.
[1] https://cloud.google.com/alloydb/docs/reference/extensions