How to Install and Uninstall erlang-luerl Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 06,2024

1. Install "erlang-luerl" package

Please follow the guidelines below to install erlang-luerl on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install erlang-luerl

2. Uninstall "erlang-luerl" package

Here is a brief guide to show you how to uninstall erlang-luerl on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove erlang-luerl $ sudo apt autoclean && sudo apt autoremove

3. Information about the erlang-luerl package on Ubuntu 20.10 (Groovy Gorilla)

Package: erlang-luerl
Architecture: amd64
Version: 1:0.4-2
Priority: optional
Section: universe/libs
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Ejabberd Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 636
Depends: erlang-base | erlang-abi-17.0, erlang-base (>= 1:22.2.4+dfsg) | erlang-base-hipe (>= 1:22.2.4+dfsg)
Filename: pool/universe/e/erlang-luerl/erlang-luerl_0.4-2_amd64.deb
Size: 375376
MD5sum: 6e32e8e9ba3f9ecdd077ff527bd8052b
SHA1: 465c7ec22772b4b9a96351205ef3bcc4f1c3d18e
SHA256: e88d13d9602e5be6d960fba2a58601ec5c819231897d5eac6b827c214d482ace
SHA512: ad71e04b6f382031acffe7f78ee82cc782bae0a4285945748b56a8baf38f1b42b36d6071880ab141574665e899c712ce974248495ac25b633b0f249e761432df
Homepage: https://github.com/rvirding/luerl
Description-en: implementation of Lua in Erlang
An experimental implementation of Lua 5.2 written solely in pure Erlang
.
When to use Luerl:
.
Fast Language Switch: Luerl should allow you to switch between Erlang and Lua
incredibly fast, introducing a way to use very small bits of logic programmed
in Lua, inside an Erlang application, with good performance.
.
Multicore: Luerl provides a way to transparently utilize multicores. The
underlying Erlang VM takes care of the distribution.
.
Microprocesses: It should give you a Lua environment that allows you to
effortlessly run tens of thousands of Lua processes in parallel, leveraging
the famed microprocesses implementation of the Erlang VM. The empty Luerl
State footprint will be yet smaller than the C Lua State footprint.
.
Forking Up: Because of the immutable nature of the Luerl VM, it becomes a
natural operation to use the same Lua State as a starting point for multiple
parallel calculations.
.
However, Luerl will generally run slower than a reasonable native Lua
implementation. This is mainly due the emulation of mutable data on top of an
immutable world. There is really no way around this. An alternative would be
to implement a special Lua memory outside of the normal Erlang, but this would
defeat the purpose of Luerl. It would instead be then more logical to connect
to a native Lua.
.
Some valid use cases for Luerl are:
* Lua code will be run only occasionally and it wouldn't be worth managing
an extra language implementation in the application;
* the Lua code chunks are small so the slower speed is weighed up by Luerl's
faster interface;
* the Lua code calculates and reads variables more than changing them;
* the same Lua State is repeatedly used to 'fork up' as a basis for
massively many parallel calculations, based on the same state;
* it is easy to run multiple instances of Luerl which could better utilise
multicores.
Description-md5: ba0442956c0172294ab501db8dfd5616