mirror of
https://github.com/enso-org/enso.git
synced 2024-12-25 03:43:41 +03:00
6769ab0ee7
This change downgrades hashing algorithm used in caching IR and library bindings to SHA-1. It is sufficient and significantly faster for the purpose of simple checksum we use it for. Additionally, don't calculate the digest for serialized bytes - if we get the expected object type then we are confident about the integrity. Don't initialize Jackson's ObjectMapper for every metadata serialization/de-serialization. Initialization is very costly. Avoid unnecessary conversions between Scala and Java. Those back-and-forth `asScala` and `asJava` are pretty expensive. Finally fix an SBT warning when generating library cache. Closes https://github.com/enso-org/enso/issues/5763 # Important Notes The change cuts roughly 0.8-1s from the overall startup. This change will certainly lead to invalidation of existing caches. It is advised to simply start with a clean slate. |
||
---|---|---|
.. | ||
builtin-base-methods.md | ||
caching.md | ||
demand-analysis.md | ||
execution-server-flow.md | ||
function-call-flow.md | ||
instruments.md | ||
ir-caching.md | ||
README.md | ||
runtime-features.md | ||
searcher.md | ||
unbounded-recursion.md |
layout | title | category | tags | order | ||
---|---|---|---|---|---|---|
section-summary | Enso Runtime | runtime |
|
0 |
Enso Runtime
The Enso runtime refers to both the compiler and the optimising JIT runtime for Enso. While this might seem like a strange choice, it makes sense internally as the components are integrated to a level not seen in most languages. It encompasses the following functionality:
- Parsing: Taking Enso code as input and generating an AST that maintains a sophisticated set of information about the input.
- Desugaring: Reducing the user-facing Enso code into a simplified language
known as
Core
. - Type Inference: Inferring the types of bindings in the user's code.
- Type Checking: Checking that the inferred and provided types for bindings match up across the codebase.
- Optimisation: Static optimisation processes to improve the performance of the user's program.
- Code Execution: Actually running the Enso code.
- Introspection Hooks: Providing hooks into the running code to allow the language server to inspect information about the code as it runs.
This folder contains all of the documentation related to the runtime, which is broken up as follows:
- Caching: A description of the runtime's value caching mechanism.
- Demand Analysis: A specification for the demand analysis process in the Enso compiler that assists users with working with suspended computations.
- Function Calling Flow: A description of the involved logic that goes into a calling a function performantly in the Enso runtime, while also supporting the flexible function syntax.
- Runtime Features: A description of (and plan for) the features of the Enso runtime.
- Unbounded Recursion: An exploration of techniques for achieving unbounded recursion on the JVM.
- Instruments: A description of instrumentation in the language runtime.
- Execution Server Flow: An explanation of how the execution server orchestrates Enso's execution.
- Builtin Base Methods: An explanation of the DSL we use for defining builtin types and methods.
- Searcher: An explanation of how the searcher works.
- Instruments: An explanation of how we compile Truffle instrumentation.
- IR Caching: An explanation of how we cache the compiler IR to reduce startup times.