raffiot.py
cloudpickle
Our great sponsors
raffiot.py | cloudpickle | |
---|---|---|
2 | 5 | |
15 | 1,576 | |
- | 1.9% | |
0.0 | 6.0 | |
almost 2 years ago | 21 days ago | |
Python | Python | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
raffiot.py
cloudpickle
-
No-GIL mode coming for Python
I believe you just pass objects instead, like you would in OOP, and take the hit of pickling and unpickling them every time.
If you really want to pass lambdas, you can use a third party library to pickle them
https://github.com/cloudpipe/cloudpickle
Yes, this is not great.
-
Is it possible pickle a function with its dependencies?
That was my understanding as well but then I found this package -- cloudpickle which seems to serialize both data and functionality?
- Issue with sklearn
-
I'm learning monads by implementing IO in different languages
It used in production for several months now. We use it to train data science models. The main goal was to make multiprocessing code easier. It actually works great with multiprocessing, especially if you use a library able to serialize lambda functions such as https://github.com/cloudpipe/cloudpickle . I have yet to write a tutorial on how to use multiprocessing and cloudpickle to distribute work to all the worker processes. Thanks for letting me know about pfun. I've never heard of it. Having a look at its documentation, our goals seem to be very close. The features I wanted above all where:
What are some alternatives?
fasy - FP iterators that are both eager and asynchronous
extrainterpreters - Utilities for using Python's PEP 554 subinterpreters
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
pex - A tool for generating .pex (Python EXecutable) files, lock files and venvs.
orinoco - Functional composable pipelines allowing clean separation of the business logic and its implementation
pants - The Pants Build System
pfun - Functional, composable, asynchronous, type-safe Python.
scala-cli - Scala CLI is a command-line tool to interact with the Scala language. It lets you compile, run, test, and package your Scala code (and more!)
nix - Nix, the purely functional package manager
problems - Discussions about problems with the current C Api