News for hackers. Stuff that matters.
Re:Polars Cloud: The Distributed Cloud Architecture to Run P... by TheTaytay on Saturday March 08, 2025 @01:59PM (#43302538)
It’s funny you mention Modal. I use modal to do fan-out processing of large-ish datasets. Right now I store the transient data in duckdb on modal, using polars (and sometimes ibis) as my api of choice.

I did this, rather than use snowflake, because our custom python “user defined functions” that process the data are not deployable on snowflake out of the gate, and the ergonomics of shipping custom code to modal are great, so I’m willing to pay a bit more complexity to ship data to modal in exchange for these great dev ergonomics.

All of that is to say: what does it look like to have custom python code running on my polars cloud in a distributed fashion? Is that a solved problem?

Re:Polars Cloud: The Distributed Cloud Architecture to Run P... by ritchie46 on Sunday March 09, 2025 @11:23AM (#43309844)
Yes, you can run

`pc.remote(my_udf, schema)`

Where

`def my_udf() -> DataFrame`

We link the appropiate Python version at cluster startup.