source |
all versions |
oilshell.org
Oil 0.10.0 Quality
2022-05-01
This is a supplement to the main release page.
Test Results
Spec Tests
Other Primary Suites
- Gold Tests. Compare OSH against bash (using
implicit assertions, no golden output.)
- Wild Tests. Parse and translate thousands of shell scripts
with OSH.
- Unit Tests. Python unit test results.
More
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:
- overview. The whole Oil repo organized by
type of source file.
- for-translation.
An overview of the "compile engineer" project.
- osh-cloc. OSH and common
libraries, as measured by the cloc tool.
- oil-cpp. The C++ code in the
oil-native
tarball.
oil-native
.
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.
Old
These links describe the CPython / "OVM" build, which should become
the "experimental" version of Oil.
OPy Tests
The OPy compiler is used to compile Oil to bytecode, but isn't itself part of
the release.
OPy / OVM Metrics
- OPy Line Counts.
- 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.
Generated on Sat Apr 30 21:44:54 EDT 2022