Better HN
topnewbestaskshowjobs
Log inSign up

code_biologist

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

Submissions

comment 3y ago · link · parent

Asking packagers to add upper bounds is less of a speed-hack vs. just the correct thing to do. What's interesting about conda-forge is that upper bounds can also be added later on via a "repodata patch".

I'm glad upper bounds can be updated, that definitely seems like the right approach. As a challenge on "just the correct thing to do", how should someone releasing a package using pandas specify an upper bound? Many basic dataframe uses will work just fine with pandas 3, whenever that happens. Some dataframe uses will break even in future minor releases. It's not clear to me that packagers can reliably predict that future.

Another example of upper bounds causing pain: I mostly use poetry which unfortunately makes overrides extremely hard. A bunch of small Django packages work fine in Django 4 but haven't been updated in years and specify they only work for Django 3.x releases. The poetry folks say it's a packager problem, the packagers never respond to a PR, and off I go to make an internal fork of yet another library.

comment 3y ago · link · parent

Thanks for the lib! I'm always charmed to come across such a concrete example of the fundamental theorem of software engineering: "We can solve any problem by introducing an extra level of indirection."

comment 3y ago · link · parent

^^^ Please do this. I'm completely ok with "using transformers voids your nonexistent warranty" and the community can deal with transformer API churn. Exposing the API makes it easier to adopt those community solutions, versus me needing to explain to teammates why I switched all the `tsc` invocations to `ttsc` and promise it's not that sketchy.

comment 3y ago · link · parent

> So then...exactly how it is done today? TypeScript provides an API to get type info at compile time.

That's exactly it, it doesn't. That project you linked (typescript-rtti) mentions in the README that you must install and use it via ttypescript, a typescript wrapper that patches the compilation process to expose compilation details to plugins. Except that plugin API is unofficial and changes break the ecosystem built on it. For example, ttypescript doesn't work for TS 5 and the dev doesn't want to spend time on it. ts-patch has stepped in to provide a source transformer API for TS 5.

There's no way I can recommend libraries like typescript-rtti in commercial projects until something changes. I hope the ts-patch folks don't burn out.

comment 3y ago · link · parent

1,000%. I learned discrete/set math in college and then later SQL on the job. Helping a few analysts moving beyond Excel skills to learn SQL was interesting. They struggled with some things that clicked quickly for me because I immediately had "oh, these are set operators" intuition. Stuff like when to use an outer join vs a cross join, or how to control cardinality of output rows in fancy ways (vs slapping `DISTINCT ON` on everything).

I passed on the set understanding where it explained an unintuitive SQL behavior and I hope it helped 'em.

comment 3y ago · link · parent

God. Migrate to Salesforce was exactly the idea brought up by the sales side at a job of mine. I was on the IT side. Thank god we talked them down (plus they got sticker shock).

Some sales asks were legit and we got 'em done. Some were legit but low ROI and never done/priority even as sales had majority say in those priorities. Some were "please take this customer-hostile, flaky, human-explicitly-in-the-loop CRM workflow that has the thinnest veneer of plausibility above pure gaming of KPIs and insert it into a core product flow that's working well".

I think low code tools will continue to proliferate and I'm not against it. I do think they will be an interesting test of how much and in what contexts consumers are willing to accept half baked solutions. The capital environment this past decade has meant corporate leadership has been able to touch hot stoves without getting burned. Often they've been rewarded for it.

comment 3y ago · link · parent

I'm curious if the author of that blog ever completed their work with temporal Postgres. I know about [1] but unfortunately work on hosted Postgres most often where the extension isn't an option.

[1] https://pgxn.org/dist/temporal_tables/

comment 3y ago · link · parent

I think all four of my ancestor comments are common "New Yorker" things.

comment 3y ago · link · parent

Salting your hash should work?

You could also use a 32 or 64 bit block cipher like skip32 if you want to prevent reversal. Or at least, it makes reversing non-trivial.

comment 3y ago · link · parent

I wanted a simple way to "orchestrate" containers on it

I recently started to use Portainer for this. It seems pretty serviceable.

comment 3y ago · link · parent

I came here to post that first link. I don't mind working with CBVs if that's the existing style in a project, but the very existence of CCBV highlights the pain of lots of indirection. Certainly a lot of power, but not trivial to remember how everything connects either.

comment 3y ago · link · parent

Eric Schmidt seemed very competent, given how much of the famed old Google culture was built during his tenure. I was at Google during the Larry Page era and contrasting him with Schmidt was not favorable.

comment 3y ago · link · parent

I have ADHD and though I love having a tidy home I struggle to make it happen. Still, I find chores to be a low stakes daily dojo to practice prioritization, executive function lol, "good enough" nonjudgemental thinking and all those values.

Two books helped me greatly and they both call out the exact distinction between perfection and efficiency you do. Consciously giving up on "efficiency" has helped me finish a lot of projects I otherwise would have put off for far too long!

The books are "How to Manage Your Home Without Losing Your Mind" by Dana White for ADHD folks, "How to Keep House While Drowning" by KC Davis for when life is f'ed. Heartily recommend both.

comment 3y ago · link · parent

While we're on the topic of privacy focused frontends, anyone have recommendations for similar YouTube frontends?

comment 3y ago · link · parent

I think both are necessary in different circumstances. I use a simple litmus test: where does the state live to provide the best UX for my app if a user moves from their phone to a laptop and back again?

If the state needs to persist across devices it it server side (though a frontend cache can make sense), eg: onboarding flow or "task wizard" state.

Some UI interactions are much easier with state machines, but persisting state isn't a concern even across page refreshes, eg: complex animations or complex form validation states (especially validation that involves time or websockety things).

comment 3y ago · link · parent

I would broadly agree with your characterization, with a specific painful exception. In certain very left leaning American communities there is a guilt about or bias against cishet identities. The eager diagnosis of gender identity issues along with irreversible hormone and surgical treatments (great discussion from a former gender identity counselor in this Triggernometry interview [1]) constitute child abuse and medical malpractice in some instances.

I’m a happy cis adult male. I liked painting my nails a lot as a kid. I’m glad my parents just set me up with nail polish and ventilated area instead of bringing sexual identity into it.

[1] https://youtu.be/gbuGMbqjsSw

comment 3y ago · link · parent

I’ve become a data hoarder. It has shocked me how many YouTube videos and channels that I love have disappeared over time.

comment 3y ago · link · parent

This “flow chart” can exist now on the the back of well prompted large language models. Not that there isn’t potential for huge headaches for all parties (hallucination around medical topics will be really dangerous) but doctors should be prepared for far more sophisticated self diagnosis coming their way. I think the safest use might just be for lay users to get a third opinion and sanity check doctors.

comment 3y ago · link · parent

It matters to the degree you care about the data on that server. Watching ZFS checksum correction or ECC logs is always very enlightening. I have a TrueNAS box with critical stuff (offsite backup of it too, of course) and there are not a lot of errors but enough that I’m glad I went with ECC.

comment 3y ago · link · parent

You can stuff some pretty insane stuff in Redis keys beside ints, giant multi MB strings with globby query patterns. Your general point is dead on.

comment 3y ago · link · parent

Half the rows to scan in 99% of cases means you’ll still hit every page and incur exactly the same amount of IO (the expensive part) as a full table scan.

322.

Bivector.net: Geometric Algebra Resources(bivector.net ↗)

32 points · by code_biologist · 3y ago · 6 comments

comment 3y ago · link · parent

Then good luck building community around Hopf algebras, you certainly know the roadmap better than I. The internet is an amazing place to spread word on better mathematical tools.

Edit: I also just found https://bivector.net/ Holy crap. So good.

comment 3y ago · link · parent

Join the discord is a charmingly opaque answer to the question of where to find learning resources for an opaque topic. I'd guess OP was looking for something like youtube tutorials or short "programmer's guide to..." type resources.

Obviously an early line of research won't have anywhere near the depth, but as an example the geometric algebra community has done a great job of this. Lots of 10 minute videos to 2 hour lectures. Steve Brunton's videos are another example "learning ML math" resource that has helped me a great deal.

comment 3y ago · link · parent

Your comment comes across the same way as that long ago "Show HN" where somebody said that Dropbox is pretty much just rsync.

comment 3y ago · link · parent

Would you build something simpler and more reliable if it took you from shipping a week early to a week late?

I agree that anything else is extra, but most of my difficult professional engineering decisions are tradeoffs between those first two things: I can build on an older system less well adapted to current needs and deliver more quickly, or build something that fits current needs better but takes a bit longer. I sadly don't have enough days in life where there's a better and quicker option!

Put differently, it's a lot faster to put another layer of duct tape on top of the last duct tape patch of a pipe leak. But every layer of duct tape you put on makes it more difficult to replace the pipe segment underneath. Developing judgement on when to do which is the (difficult) trick.

comment 3y ago · link · parent

How many of the extremely successful open source projects have clear strong management that's one dude(ette)? Linux, Python, Ruby, Blender...

Great delegation and engaging with community feedback productively are of course part of that strong management.

comment 3y ago · link · parent

Just another thumbs up for 1000bulbs. I've made a small order through there, but I like my bulbs. It seems to get very expensive quickly going beyond 93 CRI.

comment 3y ago · link · parent

The point is that one of the externalities of EV materials production is CO2 emissions. Mining and processing the materials is incredibly fossil fuel intensive. By the time you have enough materials for a meaningful percentage of the world driving with EVs our CO2 footprint will be significantly worse than if we had focused on hybrid vehicles with small batteries.

comment 3y ago · link · parent

Thank you for sharing your prompt, it looks great! Other folks: if you take the time to develop prompts relevant to HN threads, please consider sharing them.
1
101112
18