Published release of the project OneScript 2.0.0, which develops a cross-platform virtual machine independent of the 1C company and a compiler for executing scripts in the 1C:Enterprise language. The system is self-sufficient and allows you to execute scripts in the 1C language without installing the 1C:Enterprise platform and its specific libraries. The OneScript virtual machine can be used both for direct execution of scripts in the 1C language, and for embedding support for their execution into applications written in other languages. The project code is written in C# and distributed under the MPL-2.0 license. Supports work on Linux, Windows, and macOS.
OneScript supports all the features of the 1C language, including loose typing, conditional expressions, loops, exceptions, arrays, regular expressions, COM objects, and built-in functions for working with primitive types. The standard library provides functions for working with files and strings, interacting with the system, processing JSON and XML, network access, and using the HTTP protocol, mathematical calculations, working with layouts.
Initially, the system is designed for developing console applications in the 1C language, but the community is developing a library OneScriptForms, which allows you to create applications with a graphical interface. In addition to the standard library and OneScriptForms, about 200 packages with additional libraries and utilities are available for OneScript. To simplify the installation and distribution of libraries, a package manager opm is offered.
In the new version:
- A transition to the unified .NET platform has been made (combines the .NET Framework, .NET Core, and Mono), which made it possible to do without the use of Mono in Linux and macOS. Due to the replacement of the base platform, binary compatibility with existing external components (dll) is lost and components need