es

es6_maps, new Elixir syntax feature via runtime compiler hacking

Hacker News

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 writing in BEAM languages. Let me know what you think!

Share card

Actual performance

71points
30comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
76%76% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, code · Missing: mac, agents, macos
73%73% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
45%45% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
41%41% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
39%39% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: introduce · Missing: web3, chat, crypto
6%6% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

es
es6_maps v1.0.0, new Elixir syntax feature via runtime compiler hacking58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

es6_maps v1.0.0, new Elixir syntax feature via runtime compiler hacking

Hacker News4
Ob
Objective-C, a new beginning (new compiler, new runtime)47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Objective-C, a new beginning (new compiler, new runtime)

Hacker News3
Ne
New Feature Flipping Ruby Gem24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

New Feature Flipping Ruby Gem

Hacker News2
Op
OpenLabeling new feature (video labeling with OpenCV trackers)26%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

OpenLabeling new feature (video labeling with OpenCV trackers)

Hacker News2
A
A container runtime implemented in x86_64 assembly55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A container runtime implemented in x86_64 assembly

Hacker News3
Su
Subverting Go's Runtime System47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Subverting Go's Runtime System

Hacker News2
To
Toggle Methods and Endpoints at Runtime48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Toggle Methods and Endpoints at Runtime

Hacker News2
Mi
Mixing C++ with Angelscript for runtime introspection and debugging59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mixing C++ with Angelscript for runtime introspection and debugging

Hacker News1
Re
Restate, a Distributed Async Runtime55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Restate, a Distributed Async Runtime

Hacker News2
Ae
AegisBPF – Deterministic Runtime Enforcement via eBPF LSM35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AegisBPF – Deterministic Runtime Enforcement via eBPF LSM

Hacker News2