Functional collections and utilities for Julia as light as air.
Noah C. Benson <nben@nyu.edu>
Air is a Julia library that aims to take advantage of Julia's builtin immutable paradigms to provide a set of functional utilities. Air is currently heavily under development and will be changing drastically in the foreseeable future. Inspiration for Air's design is derived largely from paradigms in Clojure and Scala.
Note that most of the basic plans have already been implementted, but are currently undergoing testing.
- Completed plans
- None
- Plans that are implemented but requiier testing
- Persistent data structures:
PArray
, a persistent array type that mimics Julia's nativeArray
PDict
, a persistent dictionary type that mimics Julia's nativeDict
PSet
, a persistent set type.LazyDict
, a persistent lazy dictionary type.
- Multi-threading utilities, inspired by Clojure
- Thread-safe
Delay
andPromise
types. - Thread-local
Var
type. - A
Volatile
type that operates with the@tx
macro to ensure that all updates to references within a synchronized block are performed atomically. - An
Actor
type for sending asynchronous jobs to independent threads which also respects the atomic requirements of transactionaltx
blocks. - A
Source
type for safely reading from inputs such as sockets or files while respecting the syncronization of transactionaltx
blocks.
- Thread-safe
- Persistent data structures:
- Plans that are not yet implemented
- Persistent Record Types. Tool for defining data structures that support lazy reification of members.
- Trransient types
PDict
should be O(1)-time convertable into the transientTDict
type that can be updated without copying memory and that can be converted into a persistent equivalent very quickly.PArray
andTArray
should have a similar relationship.
ChannelSourceKernel
type that creates a source kernel that pops values from a channel.- Better query/build/update API tools?
MIT License
Copyright (c) 2019 Noah C. Benson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.