https://gleam.run/ Have your say in the Gleam Developer Survey Lucy the star, Gleam's mascotGleam NewsCommunitySponsor PackagesDocsCode Lucy the star, Gleam's mascot Gleam is a friendly language for building type-safe systems that scale! Try Gleam a soft wavey boundary between two sections of the website The power of a type system, the expressiveness of functional programming, and the reliability of the highly concurrent, fault tolerant Erlang runtime, with a familiar and modern syntax. import gleam/io pub fn main() { io.println("hello, friend!") } Kindly supported by * Lambda Class * Williams & Holmes * Black Hammer Consulting and sponsors like you! Reliable and scalable Running on the battle-tested Erlang virtual machine that powers planet-scale systems such as WhatsApp and Ericsson, Gleam is ready for workloads of any size. Thanks to its multi-core actor based concurrency system that can run millions of concurrent green threads, fast immutable data structures, and a concurrent garbage collector that never stops the world, your service can scale and stay lightning fast with ease. pub fn main() -> Nil { // Run loads of green threads, no problem list.range(0, 200_000) |> list.each(spawn_greeter) } fn spawn_greeter(i: Int) { process.spawn(fn() { let n = int.to_string(i) io.println("Hello from " <> n) }) } Ready when you are Gleam comes with compiler, build tool, formatter, editor integrations, and package manager all built in, so creating a Gleam project is just running gleam new As part of the wider BEAM ecosystem, Gleam programs can use thousands of published packages, whether they are written in Gleam, Erlang, or Elixir. (main) gleam add gleam_json Resolving versions Downloading packages Downloaded 2 packages in 0.01s Added gleam_json v0.5.0 (main) gleam test Compiling thoas Compiling gleam_json Compiling app Compiled in 1.67s Running app_test.main . 1 tests, 0 failures Here to help No null values, no exceptions, clear error messages, and a practical type system. Whether you're writing new code or maintaining old code, Gleam is designed to make your job as fun and stress-free as possible. error: Unknown record field +- ./src/app.gleam:8:16 | 8 | user.alias | ^^^^^^ Did you mean `name`? The value being accessed has this type: User It has these fields: .name Multilingual Gleam makes it easy to use code written in other BEAM languages such as Erlang and Elixir, so there's a rich ecosystem of thousands of open source libraries for Gleam users to make use of. Gleam can additionally compile to JavaScript, enabling you to use your code in the browser, or anywhere else JavaScript can run. It also generates TypeScript definitions, so you can interact with your Gleam code confidently, even from the outside. @external(erlang, "Elixir.HPAX", "new") pub fn new(size: Int) -> Table pub fn register_event_handler() { let el = document.query_selector("a") element.add_event_listener(el, fn() { io.println("Clicked!") }) } Friendly As a community, we want to be friendly too. People from around the world, of all backgrounds, genders, and experience levels are welcome and respected equally. See our community code of conduct for more. Black lives matter. Trans rights are human rights. No nazi bullsh*t. a soft wavey boundary between two sections of the website Lovely people If you enjoy Gleam consider becoming a sponsor (or tell your boss to) * simone * Antharuu * Benjamin Moss * Hazel Bachrach * Matt Van Horn * Mike Roach * Danielle Maywood * Pete Jodo * David Cornu * upsidedowncake * Dylan Anthony * Patrick Wheeler * Kile Deal * KamilaP * Stefan * Fernando Farias * Landon * Rotabull * Sebastian Porto * Chris King * Benjamin Kane * Chris Rybicki * Jerome Schaeffer * Ripta Pasay * Anthony Dickson * jooaf * Wundersmiths * Brad Mehder * Sam Zanca * Scott Wey * Matt Savoia * Mark Holmes * Tristan de Cacqueray * Coder * Evan MORVAN * Noah Betzen * frankwang * Alex Manning * Dan Dresselhaus * Damir Vandic * lidashuang * Chris Olsen * Adam Johnston * Redmar Kerkhoff * Volker Rabe * Mark Dodwell * Sean Cribbs * MzRyuKa * Qdentity * Graham * Robert Malko * Joey Trapp * Danny Martini * Samu * Kevin Schweikert * Tomasz Kowal * Cam Ray * Gabriela Sartori * Leon Qadirie * Rico Leuthold * jstcz * Dylan Carlson * Nomio * Hubert Malkowski * Comamoca * Mikael Karlsson * Will Ramirez * Eber Freitas Dias * Manuel Rubio * Eileen Noonan * Jonas Hedman Engstrom * Giacomo Cavalieri * shxdow * Joseph Myers * Sammy Isseyegh * Lexx * Jojor * Raul Chouza * The Sentience Company * Martin Poelstra * Christopher David Shirk * Weizheng Liu * Anthony Maxwell * Nikolas * Tristan Sloughter * Race * Jake Cleary * Chris Donnelly * Corentin J. * Chad Selph * Chris Vincent * Brett Cannon * Yasuo Higano * Jorgen Andersen * Seve Salazar * renatillas * Scott Trinh * Ryan Moore * Jesper We * Francis Hamel * Yamen Sader * Iain H * Ben Marx * Shawn Drape * Rasmus * Christopher Jung * Alembic * Danny Arnold * Kuma Taro * Philpax * Russell Clarey * Bjoern Paschen * Falk Pauser * Tudor Luca * Rupus Reinefjord * Aleksei Gurianov * Michael Duffy * albertchae * Baqtiar * Vassiliy Kuzenkov * Niket Shah * David Pendray * James Birtles * Lukas Bjarre * Valerio Viperino * Savva * Guillaume Heu * Julian Hirn * David Bernheisel * Billuc * Kero van Gelder * Giovanni Kock Bonetti * Ivar Vong * Henry Warren * Martin Rechsteiner * Charlie Govea * bgw * Jean-Luc Geering * Leah Ulmschneider * Sgregory42 * Cameron Presley * Clifford Anderson * Bruce Williams * Edon Gashi * ZWubs * OldhamMade * Evan Johnson * Nikolai Steen Kjosnes * Johan Strand * Tim Brown * Max McDonnell * Chris Ohk * Ethan Olpin * Ian M. Jones * Dan Strong * Fede Esteban * Mario Vellandi * Ben Myles * Robert Attard * James MacAulay * Constantin (Cleo) Winkler * Igor Montagner * Oliver Tosky * Bruno Konrad * Jan Skriver Sorensen * Nicklas Sindlev Andersen * n8n - Workflow Automation * Sakari Bergen * Ian Gonzalez * metame * Gavin Panella * Thomas * Zsombor Gasparin * Alex Kelley * Cris Holm * Guilherme de Maio * Peter Rice * Florian Kraft * Arya Irani * Rintaro Okamura * Shane Poppleton * Hammad Javed * Adam Wyluda * Ed Hinrichsen * Diemo Gebhardt * Joseph Lozano * Leo Ostera * Isaac McQueen * Zsolt Kreisz * Jan Pieper * bucsi * Sigma * Paul Guse * Ernesto Malave * Dave Lucia * Jimmy Utterstrom * Ninaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa * Timo Sulg * Rodrigo Alvarez * Krzysztof Gasienica-Bednarz * Andre Mazoni * Azure Flash * Hari Mohan * Guillaume Hivert * Erik Terpstra * Ruslan Ustitc * Adam Daniels * Dan * John Strunk * Henrik Tudborg * Constantin Angheloiu * Ed Rosewright * Lee Jarvis * Jachin Rupe * Comet * Kemp Brinson * MoeDev * Alexandre Del Vecchio * Matt Heise * Chew Choon Keat * Mark Rudolph * Natanael Sirqueira * Cole Lawrence * NicoVIII * Michael Mazurczak * Martin Janiczek * Oliver Medhurst * Justin Lubin * Andrii Shupta * Grant Everett * Strandinator * Sam Aaron * Jimpjorps(tm) * Adam Brodzinski * Pattadon Sa-ngasri * Andrew Varner * Gabriel Vincent * Daniele * Matthew Jackson * Chris Lloyd * G-J van Rooyen * evanasse * iskrisis * Matt Mullenweg * Rob Durst * Thomas Coopman * Leonardo Donelli * Michael Jones * Isaac * Lennon Day-Reynolds * Pedro Correa * Carlos Saltos * Dan Gieschen Knutson * Thomas Crescenzi * Aaron Gunderson * Alex Houseago * Stephen Belanger * Theo Harris * Robert Ellen * Shritesh Bhattarai * METATEXX GmbH * Luke Amdor * Mark Markaryan * Christopher Keele * Walton Hoops * Viv Verner * Filip Figiel * Jerred Shepherd * John Bjork * Reilly Tucker Siemens * Jon Charter * Felina Rivera Calzadillas * Adrian Mouat * Alexander Stensrud * inoas * fruno * Richard Viney * Arthur Weagel * optizio * Rohan * Nick Leslie * ollie * Jonas E. P * Tobias Ammann * Adi Iyengar * nunulk * Carlo Munguia * Brian Glusman * Aboio * Steinar Eliassen * Ajit Krishna * Jake Wood * Antonio Farinetti * Brett Kolodny * Jean-Adrien Ducastaing * Christopher De Vries * Scott Zhu Reeves * Tom Schuster * Jon Lambert * Renovator * Abel Jimenez * Joey Kilpatrick * Ameen Radwan * tommaisey * Slawomir Ehlert * Olaf Sebelin * Ben Martin * Andy Young * Joshua Steele * rebecca * Sean Roberts * Ram Prasanth Udhaya Baskar * Henning Dahlheim * Christopher Dieringer * Nigel Baillie * Michal Timko * Hannes Nevalainen * Jean-Marc QUERE * Bruno Michel * Natalie Rose * Bjarte Aarmo Lund * Wilson Silva * ad-ops * Stephane Rangaya * Isaac Harris-Holt * dagi3d * Jean Niklas L'orange * N. G. Scheurich * Fabrizio Damicelli * Geir Arne Hjelle * Marius Kalvo * Hans Raaf * Eric Koslow * erlend-axelsson * ErikML * Evaldo Bratti * Barry Moore II * Emma * Julian Schurhammer * Anthony Scotti * Kristoffer Gronlund * Renato Massaro * Jen Stehlik * Felix * Hazel * Sasa Juric You're still here? Well, that's all this page has to say. Maybe you should go read the language tour! Let's go! --------------------------------------------------------------------- Wanna keep in touch? Subscribe to the Gleam newsletter We send emails at most a few times a year, and we'll never share your email with anyone else. This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Lucy the star, Gleam's mascotGleam * News * Cheat sheets * Discord * Code * Language tour * Playground * Documentation * Sponsor * Packages * Gleam Weekly * Roadmap * Case studies * (c) 2026 Louis Pilfold * Code of conduct