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 :)

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how theyโ€™re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

๐Ÿ‘‹ Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay