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.
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 · ▲301I'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 · ▲323Faster user-land reimplementations for several common builtin native JavaScript functions. - codemix/fast.js
TypeScript 6.0Mar 2026 · typescriptlang.org · ▲156The 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 · ▲178map33.js is a JavaScript library to build 3D maps. Made by Openbloc with three.js.
Reactive Maps2017 · opensource.appbase.io · ▲218Build awesome maps with reusable UI + data components.
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 22h ago · permit.petercai.com
- IV
Life & fun · 13d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 14d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 8d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 12d ago · carrierexplode.com

Life & fun · 22d ago · space.bl2.net
Source: Show HN post ↗ · launch text quoted in part