Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skiplang/skip
A programming language to skip the things you have already computed
https://github.com/skiplang/skip
Last synced: about 1 month ago
JSON representation
A programming language to skip the things you have already computed
- Host: GitHub
- URL: https://github.com/skiplang/skip
- Owner: skiplang
- License: mit
- Created: 2018-08-24T17:18:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-21T16:48:20.000Z (about 1 year ago)
- Last Synced: 2024-10-01T13:25:11.070Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://skiplang.com
- Size: 82.7 MB
- Stars: 1,972
- Watchers: 61
- Forks: 66
- Open Issues: 52
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - skip
- jimsghstars - skiplang/skip - A programming language to skip the things you have already computed (JavaScript)
README
[![CircleCI](https://circleci.com/gh/skiplang/skip.svg?style=svg)](https://circleci.com/gh/skiplang/skip)
## Skip Overview
Skip is a general-purpose programming language that tracks side effects to provide caching with reactive invalidation, ergonomic and safe parallelism, and efficient garbage collection. Skip is statically typed and ahead-of-time compiled using LLVM to produce highly optimized executables.
### Caching with Reactive Invalidation
Skip's main new language feature is its precise tracking of side effects, including both mutability of values as well as distinguishing between non-deterministic data sources and those that can provide reactive invalidations (telling Skip when data has changed). When Skip's type system can prove the absence of side effects at a given function boundary developers can opt-in to safely memoizing that computation, with the runtime ensuring that previously cached values are invalidated when underlying data changes.
### Safe Parallelism
Skip supports two complementary forms of concurrent programming, both of which avoid the usual thread safety issues thanks to Skip's tracking of side effects. First, Skip supports ergonomic asynchronous computation with async/await syntax. Thanks to Skip's tracking of side effects, asynchronous computations cannot refer to mutable state and are therefore safe to execute in parallel (this means that independent async continuations can continue in parallel). Second, Skip has APIs for direct parallel computation, again using its tracking of side effects to prevent thread safety issues such as shared access to mutable state.
### Efficient and Predictable GC
Skip uses a novel approach to memory management that combines aspects of typical garbage collectors with more straightforward linear (bump) allocation schemes. Thanks to Skip's tracking of side effects the garbage collector only has to scan memory reachable from the root of a computation. In practical terms, this means that developers can write code with predictable GC overhead.
### Hybrid Functional/Object-Oriented Language
Skip features an opinionated mix of ideas from functional and object-oriented styles, all carefully integrated to form a cohesive language. Like functional languages, Skip is expression-oriented and supports abstract data types, pattern matching, easy lambdas, higher-order functions, and (optionally) enforcing pure/referentially-transparent API boundaries. Like imperative/OO languages, Skip supports classes with inheritance, mutable objects, loops, and early returns. Skip also incorporates ideas from “systems” languages to support low-overhead abstractions, compact memory layout of objects via value classes, and patterns that ensure code specialization with static method dispatch.
### Great Developer Experience
Skip was designed from the start to support a great developer experience, with a rapid iteration speed more commonly associated with dynamic languages. The compiler supports incremental type-checking (with alpha versions of IDE plugins providing near-instantaneous errors as you type), provides hints for common syntax mistakes and to help newcomers learn the language, recognizes small typos of method/class names, and even recognizes common alternatives to Skip's standard library method names and suggests the correct name in Skip. Skip also features a code-formatter to ensure consistent code style and a tool for running codemods.
### Built by a Team of Veterans
Skip was designed by an experienced team including senior contributors to ActionScript, C#, Flow, Hack, HHVM, Prettier, React Native, and Relay.
### Documentation is in the `docs/` directory.
[Instructions for building with `cmake`](docs/developer/README-cmake.md)
## Website
http://skiplang.com
### Playground
http://skiplang.com/playground
## License
Skip is [MIT licensed](./LICENSE).