Hybrid visual and textual functional programming.
Go to file
Hubert Plociniczak 20531d51df
Initialize builtin methods lazily in non-AOT mode (#8654)
Registration of builtin methods is done upfront, similarly to AOT mode, but the initialization is delayed until the first use.
One still has to read the full list of builtin methods and register them in the builtins scope or we would be getting the `NoSuchMethod` errors otherwise. But the most expensive operation, initialization of classes and getting a method via a reflection, is all done on the first usage.

The result is an improved startup and negligible performance impact in regular usage.

Closes #8423.

# Important Notes
Visible speedup.
1. (old) Program returning plain "Hello World" (no stdlib loading)
![Screenshot from 2024-01-02 17-34-35](https://github.com/enso-org/enso/assets/292128/b8348cbb-baf6-4292-8c0e-c8a3492c6583)
2. (new) Program returning plain "Hello World" (no stdlib loading)
![Screenshot from 2024-01-02 17-34-54](https://github.com/enso-org/enso/assets/292128/63dd6c4f-49e2-4a5e-ab95-2460c155b91c)
About 10% improvement for the overall execution.

3. (old) Program printing "Hello World" (some stdlib loading)
![Screenshot from 2024-01-02 17-40-21](https://github.com/enso-org/enso/assets/292128/cf3f464c-8f00-4adf-9499-a6ac86430da0)
4. (new) Program printing "Hello World" (some stdlib loading)
![Screenshot from 2024-01-02 17-40-41](https://github.com/enso-org/enso/assets/292128/3ef99893-ccaf-4ea7-90ba-aa090f904a50)
About 2% improvement for the overall execution.

Minor price to pay for lazy initialization:
![Screenshot from 2024-01-02 17-56-12](https://github.com/enso-org/enso/assets/292128/faa682d8-5370-43d2-9fc9-3454af5749a4)
2024-01-04 08:55:21 +00:00
.cargo Bump rustc to nightly-2023-01-12 (#4053) 2023-02-02 23:05:25 +00:00
.github Unify File_Format_Metadata with File_For_Read (#8628) 2024-01-04 03:57:05 +00:00
.idea/runConfigurations Use Enso Font (#7516) 2023-08-17 18:36:12 +00:00
.vscode Icon and documentation for Enso VSCode extension (#8051) 2023-10-15 04:43:26 +00:00
actions/setup-build misc: bump wasm-pack (#3983) 2022-12-14 18:45:39 +01:00
app Tweak commitEdit API (#8667) 2024-01-04 08:24:33 +00:00
build Add tests for Enso Cloud auth + simple API mock for Enso_User (#8511) 2023-12-19 17:41:09 +00:00
distribution Unify File_Format_Metadata with File_For_Read (#8628) 2024-01-04 03:57:05 +00:00
docs Refactor widgets to handle dynamic config in input (#8624) 2024-01-03 13:37:52 +00:00
engine Initialize builtin methods lazily in non-AOT mode (#8654) 2024-01-04 08:55:21 +00:00
integration-test Introducing new notifications to the GUI (#7458) 2023-08-04 16:48:23 +02:00
lib Read registered Persistance objects only once (#8658) 2024-01-02 18:04:29 +00:00
project Fix build of engine benchmarks (#8620) 2023-12-22 11:40:32 +00:00
std-bits Sort handling of Nothing within Column || and && (#8656) 2024-01-03 10:40:40 +00:00
test Unify File_Format_Metadata with File_For_Read (#8628) 2024-01-04 03:57:05 +00:00
tools Unify File_Format_Metadata with File_For_Read (#8628) 2024-01-04 03:57:05 +00:00
.eslintignore Shaders precompilation (#4003) 2023-01-27 01:09:09 +01:00
.git-blame-ignore-revs Layer/Rectangle improvements (#6247) 2023-04-19 09:06:20 -07:00
.gitattributes Eliminate VCS TimeoutExceptions on startup (#8080) 2023-10-18 09:34:08 +00:00
.gitignore Add text_length to column for in-memory and database (#8606) 2023-12-21 11:31:13 +00:00
.ignore Refactoring: merge utils into prelude; merge workspaces. (#3151) 2021-11-10 14:36:08 +01:00
.jvmopts Update java formatter sbt plugin (#8543) 2023-12-15 14:45:23 +00:00
.node-version Use .node-version for pinning Node.js version (#6057) 2023-03-23 12:00:08 +00:00
.npmrc [Gui2] Opening projects and language server connection (#7813) 2023-09-22 03:43:25 +00:00
.prettierignore Add tests for Enso Cloud auth + simple API mock for Enso_User (#8511) 2023-12-19 17:41:09 +00:00
.prettierrc.yaml Fix prettier config; run prettier (#6132) 2023-03-31 14:49:34 +02:00
.scalafmt.conf Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
build-config.yaml New GUI/IDE build script support (#7832) 2023-10-03 20:07:20 +02:00
build.sbt Format Java sources in benchmark configuration (#8638) 2023-12-28 17:06:06 +00:00
Cargo.lock Build script fixes & improvements (#8285) 2023-11-23 21:19:31 +01:00
Cargo.toml Build script fixes & improvements (#8285) 2023-11-23 21:19:31 +01:00
CHANGELOG.md DataflowError.withoutTrace shall not store a trace (#8608) 2023-12-24 11:07:32 +01:00
clippy.toml Build script merge (#3743) 2022-10-10 23:38:48 +02:00
LICENSE Set up the repository (#1) 2019-06-11 17:07:54 +01:00
package-lock.json Display initialization message (#8573) 2023-12-21 16:15:30 +00:00
package.json Display initialization message (#8573) 2023-12-21 16:15:30 +00:00
README.md Consistent naming of visualization (#7124) 2023-06-26 17:04:35 +00:00
RELEASES.md Add API for component groups (#3286) 2022-02-24 15:41:14 +03:00
run Build script: git-clean and cwd fixes (#8424) 2023-11-29 20:35:06 +01:00
run.cmd Build script fixes & improvements (#8285) 2023-11-23 21:19:31 +01:00
run.ps1 Build script fixes & improvements (#8285) 2023-11-23 21:19:31 +01:00
rust-toolchain.toml Bump rustc to nightly-2023-01-12 (#4053) 2023-02-02 23:05:25 +00:00
rustfmt.toml Build script merge (#3743) 2022-10-10 23:38:48 +02:00

Chat Actions Status Actions Status License License


Enso.org. Get insights you can rely on. In real time.

Enso is an award-winning interactive programming language with dual visual and textual representations. It is a tool that spans the entire stack, going from high-level visualization and communication to the nitty-gritty of backend services, all in a single language. Watch the following introduction video to learn what Enso is, and how it helps companies build data workflows in minutes instead of weeks.


Screenshot 2021-04-15 at 12 16 32

Enso's Features

Turning your data into knowledge is slow and error-prone. You cant trust tools that dont embrace best practices and provide quality assurance. Enso redefines the way you can work with your data: it is interactive, provides intelligent assistance, and was designed on a strong mathematical foundation, so you can always trust the results you get.

      Intelligent suggestions of possible next steps. Build workflows in minutes instead of weeks.
      Enso analyses the data, suggests possible next steps, and displays related help and examples. It lets you build dashboards, RPA workflows, and apps, with no coding required. Enso ships with a robust set of libraries, allowing you to work with local files, databases, HTTP services, and other applications in a seamless fashion.
      Learn more →
      Reproducible, trustworthy results.
      Versioning and visual data quality management allow you to trust the results that you get.
      Learn more →
      A powerful, purely functional language. Both visual and textual.
      Enso incorporates many recent innovations in data processing and programming language design to allow you to work interactively and trust the results that you get. It is a purely functional programming language with higher-order functions, user-defined algebraic datatypes, pattern-matching, and two equivalent representations that you can switch between on-demand.
      Learn more →
      Mix languages with close-to-zero interop overhead.
      Import any library from Enso, Java, JavaScript, R, or Python, and use functions, callbacks, and data types without any wrappers. Enso uses GraalVM to compile them to the same instruction set with a unified memory model.
      Learn more →
      A cutting-edge visualization engine.
      Enso is equipped with a highly-tailored WebGL visualization engine capable of displaying many millions of data points at 60 frames per second in a web browser. Currently, Enso includes a set of core data visualizations out of the box, and you can easily extend it with libraries such as D3.js, Three.js, Babylon.js, deck.gl, VTK.js, Potree, and many more.
      Learn more →
      Runs everywhere.
      Enso is available on macOS, Windows, and GNU/Linux, and the Enso IDE runs on web-native technologies. In time, you'll be able to run it in the web-browser, giving even your tablet and phone access to your data.
      Learn more →

Getting Started

An example Enso graph



Enso Source Code

If you want to start using Enso, please see the download links in the getting started section above. Alternatively, you can get the IDE here. This section is intended for people interested in contributing to the development of Enso.

Enso is a community-driven open source project which is, and will always be, open and free to use. Join us, help us to build it, and spread the word!


Project Components

Enso consists of several sub projects:

  • Enso Engine: The Enso Engine is the set of tools that implement the Enso language and its associated services. These include the Enso interpreter, a just-in-time compiler and runtime (both powered by GraalVM), and a language server that lets you inspect Enso code as it runs. These components can be used on their own as command line tools.

  • Enso IDE: The Enso IDE is a desktop application that allows working with the visual form of Enso. It consists of an Electron application, a high performance WebGL UI framework, and the searcher which provides contextual search, hints, and documentation for all of Enso's functionality.


License

The Enso Engine is licensed under the Apache 2.0, as specified in the LICENSE file. The Enso IDE is licensed under the AGPL 3.0, as specified in the LICENSE file.

This license set was chosen to provide you with complete freedom to use Enso, create libraries, and release them under any license of your choice, while also allowing us to release commercial products on top of the platform, including Enso Cloud and Enso Enterprise server managers.


Contributing to Enso

Enso is a community-driven open source project which is and will always be open and free to use. We are committed to a fully transparent development process and highly appreciate every contribution. If you love the vision behind Enso and you want to redefine the data processing world, join us and help us track down bugs, implement new features, improve the documentation or spread the word!

If you'd like to help us make this vision a reality, please feel free to join our chat, and take a look at our development and contribution guidelines. The latter describes all the ways in which you can help out with the project, as well as provides detailed instructions for building and hacking on Enso.

If you believe that you have found a security vulnerability in Enso, or that you have a bug report that poses a security risk to Enso's users, please take a look at our security guidelines for a course of action.


Enso's Design

If you would like to gain a better understanding of the principles on which Enso is based, or just delve into the why's and what's of Enso's design, please take a look in the docs/ folder. It is split up into subfolders for each component of Enso. You can view this same documentation in a rendered form at the developer docs website.

This folder also contains a document on Enso's design philosophy, that details the thought process that we use when contemplating changes or additions to the language.

This documentation will evolve as Enso does, both to help newcomers to the project understand the reasoning behind the code, and also to act as a record of the decisions that have been made through Enso's evolution.