frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Nimic – Pure Python as a systems language with AOT compilation

https://github.com/dima-quant/nimic
3•dima-quant•1h ago

Comments

dima-quant•1h ago
nimic is a lightweight pure Python package that emulates Nim types and constructions, making it straightforward to transpile to Nim and compile AOT. Key principle: nimic code is valid Python that runs unmodified in CPython and also transpiles to equivalent Nim code.

Because nimic code is just standard Python with type hints and ctypes shims, it is a fully valid CPython script, so you can use the Python REPL during development, drop a breakpoint in the middle of a heavy algorithmic loop and inspect the variables natively.

Zero Lock-In: You don't need a special runtime engine. If the Nim compiler is not available, your script still runs (albeit slower than standard Python due to some emulation overhead) on any machine with Python installed.

Seamless Distribution: You can use this to develop high-performance logic natively in Python, debug it with Python tooling, and then compile to a native executable or C-extension via Nim.

Why Nim? Its syntax maps well to Python, it is rather clear how to emulate its constructions in Python, and its performance is comparable to C (as it compiles to C). Port of the "trace-of-radiance" Nim project to nimic can be found in "ndsl_raytracer" in my GitHub repo (dima-quant). With the compiled executable the render time for a single 512x288 scene dropped from many hours in Python to just 10 minutes on a single M1 CPU core. The repo also includes nimic ppm to mp4 converter.

Similar projects: - Pyccel (https://github.com/pyccel/pyccel): Python extension language using accelerators - SPy (https://github.com/spylang/spy) is a variant of Python specifically designed to be statically compilable while retaining a lot of the "useful" dynamic parts of Python. - Codon (https://github.com/exaloop/codon) is a high-performance Python implementation that compiles to native machine code without any runtime overhead.

It is still work in progress, e.g. there is no JIT and multiprocessing support yet, but now I'm not sure what functionality would be best to implement next. Any suggestions?

A History of Menus Is a Menu of History

https://pudding.cool/2026/06/menu-story/
1•speckx•20s ago•0 comments

App Store Connect (Apple) is down

https://developer.apple.com/system-status/
1•steviee•32s ago•0 comments

How much is Composer 2.5 subsidized in Cursor?

https://www.codejam.info/2026/06/how-much-is-composer-2-5-subsidized-in-cursor.html
1•funkyval•1m ago•0 comments

Micron Stock Dives After Memory Chip Rivals SK Hynix

https://www.barrons.com/articles/kospi-micron-stock-sk-hynix-samsung-be416ca2
1•01-_-•2m ago•0 comments

San Diego Photologs from the 1970s

https://www.beautifulpublicdata.com/san-diego-photologs-from-the-1970s/
2•jonathanmkeegan•3m ago•0 comments

AI agent security needs a composition graph, not just an SBOM

https://openaca.dev/blog/your-agent-risk-is-in-the-composition/
1•vinodkone•4m ago•0 comments

F3

https://github.com/future-file-format/f3
1•tosh•5m ago•0 comments

Show HN: Made in Everywhere – a live map of companies and products

https://www.madeineverywhere.co/
1•leonagano•5m ago•0 comments

No True Scotsman

https://en.wikipedia.org/wiki/No_true_Scotsman
2•chistev•6m ago•0 comments

GDM: When AI agents meet [video]

https://www.youtube.com/watch?v=V04bm-3d6EQ
1•simonpure•7m ago•0 comments

Show HN: Your self, in every light - a local-first MCP self model for AI agents

https://github.com/almakit/alma
3•0set0set•8m ago•0 comments

World Cup 26 Goal Map

https://a-maherr.github.io/wc2026-goalmap/
4•jonbaer•10m ago•1 comments

Why the U.S. Uses Only Half of Its Grid Capacity

https://spectrum.ieee.org/united-states-power-grid-capacity
2•Brajeshwar•10m ago•0 comments

Scaling Rails for a Peak Load of 41M Requests/Hour

https://andyatkinson.com/how-aura-frames-scales-for-peak-load-ruby-on-rails
1•knappe•10m ago•0 comments

Why someone switched from Wiki.js to my Go wiki and started sponsoring it

https://leafwiki.com/blog/a-beer-a-go-binary-and-a-wiki/
2•perber•11m ago•0 comments

Backblaze Announces Five-Year Multi-Exabyte Agreement with CoreWeave

https://www.businesswire.com/news/home/20260622788628/en/Backblaze-Announces-Five-Year-Multi-Exab...
4•mangogogo•12m ago•0 comments

Netanyahu, Trump planned Iran strike far in advance, ran deception campaign

https://www.timesofisrael.com/report-netanyahu-trump-planned-iran-strike-far-in-advance-ran-decep...
5•like_any_other•12m ago•0 comments

Phase Bit Retention (Ion) 99.54%

https://z6.oooooooooo.se
1•mbinatorom•13m ago•0 comments

Illinois' Social Media Tax Is a Modern Stamp Act – and Just as Doomed

https://www.techdirt.com/2026/06/23/illinois-social-media-tax-is-a-modern-stamp-act-and-just-as-d...
1•hn_acker•14m ago•0 comments

Utah Is Testing Out AI Doctors–and Actual Doctors Aren't Happy About It

https://www.wsj.com/health/healthcare/ai-doctors-utah-374653c8
3•speckx•15m ago•0 comments

Does This Radio Host Know Everyone in Wales?

https://www.nytimes.com/2026/06/22/world/europe/elis-james-wales-radio.html
1•reaperducer•16m ago•0 comments

Nobody trusted our internal dashboards, so we moved them to code

https://ably.com/blog/dashboards-as-code
1•jnewcomb•18m ago•0 comments

OpenMontage: Open-source, agentic video production system

https://github.com/calesthio/OpenMontage
4•vantareed•19m ago•1 comments

Syrian Subsea Cable Link Downed in Latest Act of Telecom Sabotage

https://www.kentik.com/blog/syrian-subsea-cable-link-downed-in-latest-act-of-telecom-sabotage/
1•oavioklein•19m ago•0 comments

I Got an Investor Check Through Cold LinkedIn Outreach

https://try.wayy.ai/cold-outreach-fundraising-ai-startups-wayy
1•TrueCare24•19m ago•0 comments

The Overnight Test

https://plud.net/the-overnight-test
1•anonfunction•22m ago•0 comments

Years without fluoridated water show pattern of tooth decay experts warned about

https://www.cbc.ca/news/canada/new-brunswick/years-without-fluoridated-water-shows-pattern-of-too...
1•Teever•22m ago•0 comments

The Observability Stack That Makes Datadog Look Absurd at Scale

https://medium.com/@amaan2000mohd/clickstack-the-observability-stack-that-makes-datadog-look-absu...
1•karlmush•23m ago•0 comments

Scam Jobs Are Genuinely Disgusting

https://dartrivity.bearblog.dev/these-scam-jobs-are-genuinely-disgusting/
3•speckx•27m ago•0 comments

Show HN: Caplets - Give your agent capabilities, not giant tool walls

https://caplets.dev
2•ianpascoe•27m ago•0 comments