frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

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

https://github.com/kzemek/es6_maps/blob/main/CHANGELOG.md
1•kzemek•4h ago
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

Supplemental Feeding as a Driver of Morphological Change in Anna's Hummingbirds

https://onlinelibrary.wiley.com/doi/abs/10.1111/gcb.70237
1•bookofjoe•5m ago•0 comments

TargetJS: Unifying UI Dev – Animations, State, APIs

https://medium.com/@wasfi2/targetjs-unifying-ui-dev-animations-state-apis-c745a04aa91d
1•ahmadwasfi•5m ago•0 comments

My $4/month self-hosted web server setup

https://wiki.ethanppl.com/blog/2025/05/25/self-host
1•ethanppl•5m ago•0 comments

Inside China's 'Stolen iPhone Building'

https://www.ft.com/content/752f84ac-329d-4e10-ae46-7a1c27319498
1•pseudolus•7m ago•1 comments

Generate 2D Character Frames

1•otmanedev•10m ago•0 comments

AI ain't B2B if OpenAI is to be believed

https://www.theregister.com/2025/05/25/ai_is_a_consumer_technology/
1•rntn•11m ago•0 comments

Mozilla Kills Pocket and Fakespot

https://blog.mozilla.org/en/mozilla/building-whats-next/
2•LopRabbit•12m ago•0 comments

C# 14: Exploring extension members

https://devblogs.microsoft.com/dotnet/csharp-exploring-extension-members/
2•ingve•13m ago•0 comments

Trump's Middle East AI Deal: "Just Count the Server Racks"

https://www.chinatalk.media/p/about-that-ai-middle-east-deal
2•taiwandongsuan•13m ago•0 comments

Highlights from the Claude 4 system prompt

https://simonwillison.net/2025/May/25/claude-4-system-prompt/
1•dcre•14m ago•0 comments

'Strange metals' point to a whole new way to understand electricity

https://www.science.org/content/article/strange-metals-point-whole-new-way-understand-electricity
1•pseudolus•15m ago•0 comments

A Visual History of Chessmen

https://chesshistory.github.io/
1•alberto-m•17m ago•0 comments

Show HN: BetterFriend – a CRM just to be a better friend

https://betterfriend-drab.vercel.app/
2•lttree•18m ago•0 comments

Show HN: Evolving Text Compression Algorithms by Mutating Code with LLMs

https://github.com/Think-a-Tron/minevolve/blob/main/main.py
1•Sai_Praneeth•19m ago•1 comments

OpenAI's attempt to register "GPT" as a trademark has been denied

https://twitter.com/JoshGerben/status/1922720861095591967
1•mikeirvine•21m ago•0 comments

Understanding Apple Private Relay blocking

https://www.tirreno.com/bat/?post=2025-05-25
1•reconnecting•21m ago•0 comments

Product Market Fit Collapse

https://www.reforge.com/blog/product-market-fit-collapse
1•tosh•24m ago•1 comments

Do we need publicly-owned social networks to escape Silicon Valley?

https://english.elpais.com/opinion/2025-05-25/do-we-need-publicly-owned-social-networks-to-escape-silicon-valley.html
1•belter•24m ago•0 comments

Design Pressure: The Invisible Hand That Shapes Your Code

https://hynek.me/talks/design-pressure/
2•NeutralForest•25m ago•0 comments

Neural Thermodynamic Laws for Large Language Model Training

https://arxiv.org/abs/2505.10559
1•anticensor•30m ago•0 comments

What If We Had Bigger Brains? Imagining Minds Beyond Ours

https://writings.stephenwolfram.com/2025/05/what-if-we-had-bigger-brains-imagining-minds-beyond-ours/
2•nsoonhui•30m ago•0 comments

Building interactive web pages with Guile Hoot

https://spritely.institute/news/building-interactive-web-pages-with-guile-hoot.html
8•e12e•32m ago•0 comments

There was a time when the US government built homes for working-class Americans

https://theconversation.com/believe-it-or-not-there-was-a-time-when-the-us-government-built-beautiful-homes-for-working-class-americans-to-deal-with-a-housing-crisis-253512
24•pseudolus•33m ago•25 comments

Show HN: Tried a Google Ad campaign and failed

1•countofarthur•37m ago•0 comments

Mutmut – Python Mutation Tester

https://github.com/boxed/mutmut
2•e-topy•38m ago•0 comments

JavaScript Style for Optimal Size

https://yoyo-code.com/javascript-style-for-optimal-size/
1•panstromek•39m ago•0 comments

Making Interpreters Faster

https://www.arraycast.com/episodes/episode106-interpreters
1•tosh•39m ago•0 comments

OpenPOWER Foundation – Open-Source / Open Hardware PowerPC CPU ISA

https://openpowerfoundation.org/
2•peter_d_sherman•44m ago•1 comments

Fast, Simple and Open Firebase Alternative: TrailBase

https://github.com/trailbaseio/trailbase/releases/tag/v0.12.0
7•trailbase-alt•46m ago•1 comments

Alabama paid a law firm that used AI and turned in fake citations

https://www.theguardian.com/us-news/2025/may/24/alabama-prison-lawyers-chatgpt-butler-snow
3•rectang•47m ago•0 comments