HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bzurak

no profile record

Submissions

Fear and Loathing in Python: Building a Distributed Context System for Wool

gist.github.com
2 points·by bzurak·قبل 11 يومًا·1 comments

Distributed Python with Wool: Hello World

medium.com
1 points·by bzurak·قبل 4 أشهر·0 comments

What if Python was natively distributable?

medium.com
62 points·by bzurak·قبل 4 أشهر·64 comments

Show HN: I built Wool, a lightweight distributed Python runtime

github.com
15 points·by bzurak·قبل 4 أشهر·3 comments

Wool – A no-nonsense distributed Python runtime

github.com
4 points·by bzurak·قبل 4 أشهر·3 comments

comments

bzurak
·قبل 11 يومًا·discuss
For those of you unfamiliar with Wool (which I'm assuming is most of you reading this), it's a distributed execution runtime for Python I've been working on that adds parallelism to Python's existing async primitives, allowing you to "await" CPU-bound logic without blocking the caller with a relatively simple service topology compared to some of the other distributed runtimes out there. Concerns like prioritization, queuing, and routing can be expressed in native Python, while Wool handles the inter-process/host transport.

This gist illustrates some of the trials and tribulations I went through while implementing a distributed context system for the runtime. Maybe some of you will find it (i.e., wool, the feature, or the lessons) useful, but in any case I enjoyed the process (I may be a masochist) and learned a lot.
bzurak
·قبل 4 أشهر·discuss
I’m not sure why people are assuming I’m pushing for distributed OOP here. Wool is completely unopinionated about how you decide to architect your application - that’s the entire point.
bzurak
·قبل 4 أشهر·discuss
So if you wanted to scale, say, a hyperparameter search across a cluster, what would you prefer?
bzurak
·قبل 4 أشهر·discuss
I have a feeling people will begin to purposely use slightly incorrect grammar to give the impression they are indeed human in their writing.
bzurak
·قبل 4 أشهر·discuss
Wasn’t previously aware of this opinion, but having read it, I can tell you I’m not actually committing this fallacy within the framework- I’m not forcing anyone into making their instance methods RPCs- I leave that up to my users. They are grown adults (presumably) and can commit whichever fallacies they desire.
bzurak
·قبل 4 أشهر·discuss
Fair enough
bzurak
·قبل 4 أشهر·discuss
I think LLMs are incredible tools that I will continue to use unapologetically, but I’m also very particular and not going to be putting my name to AI slop. Those are my genuine thoughts on the matter, they just happened to be cleaned up by an automated stochastic parrot.
bzurak
·قبل 4 أشهر·discuss
Not on my watch
bzurak
·قبل 4 أشهر·discuss
You mean the cadence where everything is presented in threes? Yeah I hate it too, but beats paying some blogger to do it
bzurak
·قبل 4 أشهر·discuss
Sure, my argument is that those concerns should be composable with the distribution layer, not defined by it. There are plenty of different ways to pass data across a network or between machines, I'm not going to reinvent them all. There are also plenty of ways to manage non-transient errors (and very app-specific), I'm not going to implement them all. I'm also not assuming you need or want object persistence and replayability of your workflows. If you do, then use the right tool for the job.
bzurak
·قبل 4 أشهر·discuss
I agree
bzurak
·قبل 4 أشهر·discuss
Yeah but... who does that?
bzurak
·قبل 4 أشهر·discuss
To be clear, not all of your coroutines become distributed. You explicitly declare what you want executed remotely, and you'll probably want your workers running in a VPC - it's just a nifty way of scaling your app horizontally without sinking too much effort into how you choose to define your distribution boundaries. It wouldn't be any different than scaling any other service horizontally using something like Kubernetes (which is probably how you'd manage wool workers as well).
bzurak
·قبل 4 أشهر·discuss
But seriously, I just wanted to have an easy way to parallelize my projects without a bunch of slow, bloated, boilerplate ridden frameworks, and I'm having fun building it. And I must not be the only to have had this desire considering there's way more than one solution to this problem out there already, so f*k it.
bzurak
·قبل 4 أشهر·discuss
Is it possible it's both?
bzurak
·قبل 4 أشهر·discuss
I'm running this in a trusted environment, I'm not so ambitious as to try to make this some sort of whacky trustless distributed Python runtime. Just a fun project that's been marinating for a while, and now I have an army of clankers to do the dirty work of documenting and testing it.
bzurak
·قبل 4 أشهر·discuss
I guess I'm not old enough.
bzurak
·قبل 4 أشهر·discuss
For one, it's faster than prefect and ray so I can use it for more stuff without having to import a 10000000 line library.
bzurak
·قبل 4 أشهر·discuss
[dead]
bzurak
·قبل 4 أشهر·discuss
[dead]