Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    A unicorn-like Spinosaurus found in the Sahara

    From Iran to Ukraine, everyone’s trying to hack security cameras

    Ding-dong! The Exploration Upper Stage is dead

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      What the polls say about how Americans are using AI

      February 27, 2026

      Tensions between the Pentagon and AI giant Anthropic reach a boiling point

      February 21, 2026

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026
    • Business

      Google releases Gemini 3.1 Flash Lite at 1/8th the cost of Pro

      March 4, 2026

      Huawei Watch GT Series

      March 4, 2026

      Weighing up the enterprise risks of neocloud providers

      March 3, 2026

      A stolen Gemini API key turned a $180 bill into $82,000 in two days

      March 3, 2026

      These ultra-budget laptops “include” 1.2TB storage, but most of it is OneDrive trial space

      March 1, 2026
    • Crypto

      Banks Respond to Kraken’s Federal Reserve Access as Trump Sides with Crypto

      March 4, 2026

      Hyperliquid and DEXs Break the Top 10 — Is the CEX Era Ending?

      March 4, 2026

      Consensus Hong Kong 2026: The Institutional Turn 

      March 4, 2026

      New Crypto Mutuum Finance (MUTM) Reports V1 Protocol Progress as Roadmap Enters Phase 3

      March 4, 2026

      Bitcoin Short Sellers Caught Off Guard in New White House Move

      March 4, 2026
    • Technology

      A unicorn-like Spinosaurus found in the Sahara

      March 7, 2026

      From Iran to Ukraine, everyone’s trying to hack security cameras

      March 7, 2026

      Ding-dong! The Exploration Upper Stage is dead

      March 7, 2026

      Satellite firm pauses imagery after revealing Iran’s attacks on US bases

      March 7, 2026

      Fishing crews in the Atlantic keep accidentally dredging up chemical weapons

      March 7, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»The Gleam Programming Language
    Technology

    The Gleam Programming Language

    TechAiVerseBy TechAiVerseJanuary 14, 2026No Comments3 Mins Read5 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    The Gleam Programming Language
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    The Gleam Programming Language

    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!")
    }

    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.

    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.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleStop using natural language interfaces
    Next Article 1000 Blank White Cards
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    A unicorn-like Spinosaurus found in the Sahara

    March 7, 2026

    From Iran to Ukraine, everyone’s trying to hack security cameras

    March 7, 2026

    Ding-dong! The Exploration Upper Stage is dead

    March 7, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025705 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025291 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025165 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025125 Views
    Don't Miss
    Technology March 7, 2026

    A unicorn-like Spinosaurus found in the Sahara

    A unicorn-like Spinosaurus found in the Sahara But there was one thing that made S.…

    From Iran to Ukraine, everyone’s trying to hack security cameras

    Ding-dong! The Exploration Upper Stage is dead

    Satellite firm pauses imagery after revealing Iran’s attacks on US bases

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    A unicorn-like Spinosaurus found in the Sahara

    March 7, 20260 Views

    From Iran to Ukraine, everyone’s trying to hack security cameras

    March 7, 20260 Views

    Ding-dong! The Exploration Upper Stage is dead

    March 7, 20260 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    Best TV Antenna of 2025

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.