DEV Community

Cover image for πŸ‘‰ What is gleam language used for ❓
PiterDev
PiterDev

Posted on • Edited on

πŸ‘‰ What is gleam language used for ❓

If you are here you may have heard about the Gleam programming language.

Gleam as it says in their website is a friendly language for building type-safe systems that scale!.

It is inspired by languages like Rust, follows a functional paradigm similar to Elixir and it is calified by the authors as production ready.

One of the main features of the language is that can be runned on the BEAM (the VM used to run all the Erlang family languages and it is known by they good performance on concurrency enviroments) or Javascript (that can be runned on your favorite runtime or the browser).

Thanks to the Erlang target Gleam can be deployed to every machine that has a BEAM VM. And thanks to the Javascript target you can deploy to NodeJS, Deno, Browser and Bun (Not sure at 100% about this last).

So you can go ahead and do a WebApp full on Gleam for the server and the client. You can also do an incremental migration of a project from JS to Gleam or from Erlang to Gleam.

Gleam works with modules so you can develop a module and then integrate it on an existing codebase.

There are a lot of things built with Gleam and more that will be in the future because is a really interesting language for those who already know how to code in Elixir, Erlang or JS.

Right now I am doing my first Gleam project electron-gleam-quick-start a template to start creating Desktop APPs using Gleam and based in Electron. This will be the first template project that includes the most Gleam experience to Electron.

If you want to see a tutorial on how to use Gleam to extend an existing JS codebase leave a comment below and I will try to bring tou you as fast as I can :)

Top comments (0)