nowfound

Life & fun · May 12, 2024

es6_maps, new Elixir syntax feature via runtime compiler hacking

Hi HN! I thought you might enjoy this even if you don't know much about Elixir. `es6_maps` is a small library that introduces a "shorthand" map creation syntax, similar to shorthand object construction in JavaScript/TypeScript. For those unfamiliar with Elixir, the most interesting aspect might be how it achieves this. `es6_maps` takes advantage of BEAM (Erlang's VM) hot-reload capabilities to amend the Elixir compiler bytecode at runtime, adding functions that expand the shorthand syntax for further compilation. I think it's a nice showcase of the power you can wield (with care) when…

es6_maps, new Elixir syntax feature via runtime compiler hacking launched on May 12, 2024 with 71 votes, #597 of 4,539 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 2 years on.

Visit github.com ↗Alternativestop 13% of May 2024

In plain words

es6_maps is an Elixir library that adds JavaScript-style shorthand syntax for creating maps at runtime. It works by modifying the Elixir compiler's bytecode through BEAM's hot-reload capabilities to expand the shorthand notation before compilation. The library is designed for Elixir developers who want more concise map syntax and serves as a demonstration of what's possible when manipulating the BEAM virtual machine's compilation process.

written from the facts on this page · September 2026

From the sources

`%{foo, bar: 1}` — ES6-like shorthand syntax for Elixir maps and structs - kzemek/es6_maps

In the maker’s words, at launch

Hi HN! I thought you might enjoy this even if you don't know much about Elixir. `es6_maps` is a small library that introduces a "shorthand" map creation syntax, similar to shorthand object construction in JavaScript/TypeScript. For those unfamiliar with Elixir, the most interesting aspect might be how it…

Does a similar job

all alternatives →
  • 6to5 – Turn ES6 code into vanilla ES5 with source maps and no runtime2014 · github.com · ▲48

    🐠 Babel is a compiler for writing next generation JavaScript. - babel/babel

  • Datagridxl2.js – Fast Excel-like data table library2022 · datagridxl.com · ▲301

    I'm Robbert, the creator of DataGridXL.js. Last month I released version 2 which includes many new features. DataGridXL is a free (and commercial) editable data table library written in ES6. My goal is to develop the most performant & user-friendly spreadsheet-like data table out there: - It has zero dependencies. You don’t need any framework to use DataGridXL. - It is lightweight (~250kb) and easy to use. It does not even require messing with CSS. - It has its own Virtual DOM implementation to prevent DOM errors. - Developer friendly. Supports all modern web browsers Please take a look at…

  • Fast.js – faster reimplementations of native JavaScript functions2014 · github.com · ▲323

    Faster user-land reimplementations for several common builtin native JavaScript functions. - codemix/fast.js

  • TypeScript 6.0Mar 2026 · typescriptlang.org · ▲156

    The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.

  • Map33.js – a library to build 3D maps with Three.js2020 · map33.openbloc.com · ▲178

    map33.js is a JavaScript library to build 3D maps. Made by Openbloc with three.js.

  • Reactive Maps2017 · opensource.appbase.io · ▲218

    Build awesome maps with reusable UI + data components.

More life & fun this month

the category →

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, May 2024

the whole month →
  • Voicenotes▲1,485

    AI note-taker that's truly intelligent

    AI · 2024 · voicenotes.com

  • Wegic▲1,179

    The first AI web designer & developer by your side

    Dev tools · 2024 · wegic.ai

  • Insighto▲1,108

    Ship features users want

    Growth · 2024 · insigh.to

  • Ivee▲1,087

    The B2B influencer marketing platform

    Growth · 2024

  • Waxwing▲1,035

    AI copilot for every marketing task

    AI · 2024

  • AI powered zero-waste meal planner

    AI · 2024 · ohapotato.app