Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redplanetlabs/nippy-serializable-fns
Nippy extension to freeze and thaw Clojure functions, including anonymous ones
https://github.com/redplanetlabs/nippy-serializable-fns
Last synced: about 2 months ago
JSON representation
Nippy extension to freeze and thaw Clojure functions, including anonymous ones
- Host: GitHub
- URL: https://github.com/redplanetlabs/nippy-serializable-fns
- Owner: redplanetlabs
- License: apache-2.0
- Created: 2020-01-03T18:00:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-11T14:08:36.000Z (over 1 year ago)
- Last Synced: 2024-12-10T10:03:41.062Z (about 2 months ago)
- Language: Clojure
- Homepage:
- Size: 24.4 KB
- Stars: 51
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# nippy-serializable-fns
[![Clojars Project](https://img.shields.io/clojars/v/com.rpl/nippy-serializable-fns.svg)](https://clojars.org/com.rpl/nippy-serializable-fns)A simple Clojure library that extends Nippy to allow freezing and thawing of Clojure functions. See [our blog post](https://tech.redplanetlabs.com/?p=124) for more discussion of this project and its implementation.
## Usage
Just add a dependency on the [Clojars package](https://clojars.org/com.rpl/nippy-serializable-fns), require the `com.rpl.nippy-serializable-fn` namespace, and then use `nippy/freeze!` and `nippy/thaw!` as usual. Clojure functions will effectively be serialized as the fn name plus any values captured in the fn's closure. Note that no code is serialized, so both the freezing process and the thawing process must run the same code version!
## License
Copyright © 2019 - 2023 Red Planet Labs Inc.
Distributed under the Apache Software License version 2.0