source |
all versions |
oilshell.org
Oil 0.8.0
2020-09-03
This is the home page for version 0.8.0 of Oil, a Unix shell. To use it,
- Download a source tarball.
- Build and install it, as described in INSTALL.
These steps take 30 to 60 seconds on most machines. After that, you can
assemble an oshrc
file, which is described in the
manual.
Test results, metrics, and benchmarks are shown below.
Download
|
File / SHA256 checksum |
Size |
|
|
oil-0.8.0.tar.xz |
1,208,956 |
|
c65c8b4ca6fdcb277af62d639c6aca299b79c47ff45612add51ae9bc40c8b87a |
|
oil-0.8.0.tar.gz |
1,688,266 |
|
0ca934741aea5a86dceeb5febd61563f7d7fbd49f0c55dc0fdf6e71b8c87a590 |
|
oil-native-0.8.0.tar.xz |
207,608 |
|
b28607dcf94e5e2fd5dea1067179ca8975ff3514d75b92e48cb007dfbff00414 |
Note: oil-native
is a preview release, not a working shell.
What's New
Documentation
The Doc Overview links to all docs. It's work in progress, but these
docs are ready:
Help topics for OSH and
Oil. These documents underlies the help
builtin.
Github Wiki for oilshell/oil. The Oil
Deployments wiki page
has other ways of getting Oil. These versions may not be up-to-date.
Tests
Main Test Suites
- Spec Tests
- Wild Tests. Parse and translate thousands of shell scripts
with OSH.
- Unit Tests. Python unit test results.
Other Suites
Manual Tests
- [ ] Test build and install on OS X
Benchmarks
- Parser. How fast does OSH
parse compared to other shells?
- Runtime. How fast does OSH run shell
scripts?
- Compute. How fast does OSH run small programs
without I/O?
- Build. How long does it take for end users to
build Oil? How big is the resulting binary?
- Virtual Memory Baseline. How much memory do
shells use at startup?
- mycpp. Compares Python and generated C++
on small examples.
Metrics
- Lines of source, counted in different ways:
- osh-cloc. OSH and common
libraries, as measured by the cloc tool.
- src. The whole Oil repo organized by
type of source file.
- oil-cpp. The C++ code in the
oil-native
tarball.
- OPy. How much code is in the OPy
toolchain?
- Lines of dependencies:
- pydeps. Oil code plus the Python
standard library.
- nativedeps. Oil code plus a
slice of CPython.
- Bytecode Metrics
- OVM / CPython
- overview - An analysis of GCC's
compilation of OVM (a subset of CPython). Bloaty provides the
underlying data.
- cpython-defs/overview - We try to
ship as little of CPython as possible, and this is what's left.
oil-native
. The future of Oil is pure native code.
Source Code
These files may help you understand how Oil is implemented, i.e. with
domain-specific languages and code generation.
- _devbuild/gen/id.h. A list of language
elements, used in the lexer and in multiple parsers and evaluators.
- The regex-based lexer uses two stages of code generation:
- frontend/syntax.asdl. The syntax tree
for OSH and Oil.
- oil_lang/grammar.pgen2. The
expression grammar for Oil. In contrast, the OSH parsers are hand-written.
Also see the oilshell/oil repository.
OPy Tests
The OPy compiler is used to compile Oil to bytecode, but isn't itself part of
the release.
Tree-shaking:
Generated on Thu Sep 3 10:28:33 PDT 2020