Better HN
topnewbestaskshowjobs
Log inSign up

code_biologist

1,562 karma · joined Aug 24, 2019 (7y ago) · 536 submissions

Submissions

comment 4y ago · link · parent

Fooflation - Avoiding descriptive names of methods/variables in favor of "result1, result2, goOn"

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

Why is that an important distinction? It's not clear to me that it is.

comment 4y ago · link · parent

An analogy is "can you tell what problems Django solves that can't be handled by wsgi and psycopg?" Nothing fundamentally different, but life is a whole lot easier with Django. Honestly if you're doing data engineering and you haven't spent time with a good DAG runner, you're doing yourself a real disservice.

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

It's been more than a decade since I've used Clojure so I say this with a big grain of salt.

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

I was going to say Spirited Away with an honorable mention to Howl's Moving Castle as a crowd pleaser — but I haven't see either you mentioned. Thanks for the rec!

comment 4y ago · link · parent

Paul Sutter has a great astronomy and physics podcast called "Ask a Spaceman". His "Five Exciting Missions After James Webb" episode (20 min) got me really excited for the future: https://www.youtube.com/watch?v=DiYVsoxbxAI

comment 4y ago · link · parent

Is that inflation adjusted? At least according to usinflationcalculator.com, $0.95 of 1950 dollars is $29.93 in 2022 dollars.

Edit: the bls.gov inflation calculator says $0.95 of 1950 dollars is $11.98 in 2022 dollars. :shrug:

comment 4y ago · link · parent

An interesting current example of political interests at stake far beyond the on-face discussion of sustainability is the Dutch farmer protests. Discussed a few days ago on HN: https://news.ycombinator.com/item?id=31989112

comment 4y ago · link · parent

Here's the warning: Lattice-based cryptography is much more risky than commonly acknowledged. This applies, in particular, to lattice KEMs under consideration within the NIST Post-Quantum Cryptography Standardization Project (NISTPQC) as of October 2021. The above document...

There's a linked PDF paper with more detail.

comment 4y ago · link · parent

There's a lot of good ecosystem stuff around this, though I personally can't use most of it as the HypoPG extension isn't on AWS RDS. :(

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

I remember a golden age of programming reddit and HN in the late 2000s that inspired me learn a bunch of new programming languages, Haskell the biggest influence among them. It seemed like people were always posting their own personal languages, lisps (I remember the hot takes on Arc lol), and such all the time. I have very fond memories of going through Jack Crenshaw's "Let's Build a Compiler" after seeing it posted a bunch of times, then trying to build my own language in a similar vein.

Cheers to you, and I hope you're learning and having fun working on your project!

comment 4y ago · link · parent

data is scoped globally by default, as opposed to per mount.

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

What do you mean by Filmic? Their website (filmicpro.com?) seems very focused on mobile phone cinematography stuff, not photos.

comment 4y ago · link · parent

Slapping some scipy, sklearn, or pandas stuff into Django was a pretty workable solution even back when. Just want to sing the the praises. I've slayed a lot of normal size (as opposed to big) data problems with Django/Flask. Rub some JS charting on top of it and people thought you were a wizard.

comment 4y ago · link · parent

https://materialize.com/ is billed to be that. That behavior is not trivial to implement.

comment 4y ago · link · parent

See also “nerd sniping”: https://xkcd.com/356/

comment 4y ago · link · parent

What does EEE mean?

comment 4y ago · link · parent

In the absence of Rust, would C or C++ be top contenders for a given project? Then Rust might be a good fit.

If the contender language is Go, think carefully before using Rust.

If the contender language is Python, think very carefully before using Rust.

comment 4y ago · link · parent

Evolution did a great job? I highly recommend reading Nick Lane's "Power, Sex, Suicide". Mitochondrial function is a complicated question. It's amazing nature makes it work at all. Two aspects he discusses:

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.

[1] https://www.nature.com/articles/s41586-019-1213-4

[2] https://www.pnas.org/doi/10.1073/pnas.1910141117

comment 4y ago · link · parent

Read it as soon as you have the time. It is every bit the equal of The Vital Question.

comment 4y ago · link · parent

I think he meant Jony Ive, who absolutely got out of hand without Steve.

comment 4y ago · link · parent

I hate deployment so much.

comment 4y ago · link · parent

> because they are different from country to country, that rules out the possibility that the cause has anything to do with intrinsic differences between men and women, it disproves the idea that there’s a “natural disposition” that is purely based on sex, at least as the primary reason for the distribution today.

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

You just can't, similarity metrics (especially cosine) on 768 dim arrays are prohibitively slow.

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

The beautiful thing about spatiotemporal entities is that physical time provides "out of the box common sense" decent locality, and physical space excellent locality, for the blocking process your parent comment mentions.

It sucks to work on a whole product catalog or rolodex.

comment 4y ago · link · parent

Cool stuff! Is PostGIS support difficult?

comment 4y ago · link · parent

*50-100x faster for analytical queries.

Columnar storage. Vertica was the real innovator. Redshift, BigQuery, Snowflake, Citus, Timescale, etc just took the idea and ran with it.

comment 4y ago · link · parent

Great product positioning. I hope their follow-up is better than typical Google. The ML features are a good start, but I hope they get some BigQuery ML style model-definition-in-SQL features.

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

comment 4y ago · link · parent

100%. I love him, but his blockchain and battery tech analyses are pretty off factually.

comment 4y ago · link · parent

Nice to see a fellow fan of Peter Zeihan style demographic analysis in the comments.
1
131415
18