es

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

Hacker News

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

Hi HN! It’s been a year since I posted a Show HN[0] for the initial release of my Elixir library, `es6_maps`. It enables JS-style "shorthand" map literals (`%{foo, bar}`) in Elixir through runtime compiler modification. We’ve been using `es6_maps` successfully in production throughout the year. During that time, we identified a couple minor pain points I wanted to fix: * Other tools working on token or AST level could be surprised by the de-facto invalid syntax. * `es6_maps` was only active at compilation time, so we couldn't paste-in shorthand code in deployed shells (very useful for debugging!) This week I released a new version, v1.0.0, that fixes these issues and more. `es6_maps` now amends the Elixir compiler at a different point (`:elixir.string_to_tokens/5`), which improves compatibility with other Elixir tools and happens to be a more stable API. Also, `es6_maps` can now be used at runtime, and includes an ElixirLS plugin to ensure it's active while the language server analyzes the code. The v1.0.0 release also signals production readiness. `es6_maps` has been battle tested, hasn't had any compatibility issues with new Elixir versions (and is now less likely to), and includes a formatter that can revert your shorthands whenever you'd want to "get out". Let me know what you think! [0] https://news.ycombinator.com/item?id=40333500

Share card

Actual performance

4points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
89%89% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, using, code · Missing: mac, agents, macos
80%80% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
61%61% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
37%37% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
22%22% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · 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 · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

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

es6_maps, new Elixir syntax feature via runtime compiler hacking

Hacker News71
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
Go
Golongpoll v1.1 released33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Golongpoll v1.1 released

Hacker News3
go
gocryptfs, an aspiring successor to EncFS, now in v1.049%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

gocryptfs, an aspiring successor to EncFS, now in v1.0

Hacker News20
Ne
Neodoc v1.0.0-rc.128%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Neodoc v1.0.0-rc.1

Hacker News6
Re
Revivejs v1.1.028%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Revivejs v1.1.0

Hacker News1
Go
Go-Featureprocessing v1.0.028%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Go-Featureprocessing v1.0.0

Hacker News1
In
IntroJS v1.0.0 released33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

IntroJS v1.0.0 released

Hacker News6