Show HN: ES6_maps, new Elixir syntax feature via runtime compiler hacking

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
  1. es6_maps

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

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. short_maps

    Discontinued ⚠️Retired⚠️ library that provided a ~m sigil for ES6-like map destructuring in Elixir.

    This was done previously with the `short_maps` library, which the author—a member of the Elixir core team—eventually retired and archived due to regrets from the undesirable impacts on clarity.

    https://github.com/whatyouhide/short_maps

  4. shorter_map

    Discontinued [GET https://api.github.com/repos/meyercm/shorter_map: 404 - Not Found // See: https://docs.github.com/rest/repos/repos#get-a-repository]

    2. at the same time, being a language feature it should be simple - es6_maps works only with atom keys and has no extra features over the key expansion.

    Point 1 is additionally reinforced by how easy it was to introduce to the compiler - I’m injecting just 9 lines of simple code, while parser and lexer already accept short-form maps without modifications.

    [0] https://github.com/meyercm/shorter_map

  5. destructure

    Javascript-style destructuring for Elixir

    I've been using Destucture [1] for a few years. It's an interesting compromise that works for atom and string keys because it's explicit, kind of like the sigil approach. Though this seems way more streamlined, especially as someone who uses JS for front-end apps.

    [1]https://github.com/danielberkompas/destructure/

  6. shorter_maps

    Elixir ~M sigil for map shorthand. `~M{id, name} ~> %{id: id, name: name}`

  7. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Show HN: ES6_maps v1.0.0, new Elixir syntax feature via runtime compiler hacking

    1 project | news.ycombinator.com | 25 May 2025
  • Ask HN: Why isn't Phoenix/Elixir more mainstream?

    4 projects | news.ycombinator.com | 29 Sep 2023
  • Working with JSON files

    2 projects | /r/elixir | 20 Sep 2022
  • How do you deal with manipulating deep / complex data structures in Elixir?

    2 projects | /r/elixir | 13 Sep 2022
  • A library for performing fast actions with nested data structures in Elixir

    2 projects | /r/elixir | 26 May 2022