frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

NativeJIT: A C++ expression –> x64 JIT

https://github.com/BitFunnel/NativeJIT
38•nateb2022•5h ago

Comments

anon-3988•3h ago
Interesting, this is very similar to llvmlite.Builder which is a wrapper over llvm. I am probably going to create something similar for my Python -> C -> assembly JIT.
Twirrim•3h ago
There's also libgccjit, https://gcc.gnu.org/wiki/JIT, though all of the third party language bindings appear to be stale for it.
globalnode•3h ago
that project sounds interesting as well, but what do you do with libraries in python.. have the generated C code translate back to python calls?
anon-3988•3h ago
The point is not to compile entire Python programs, the point is to optimize specific parts of Python that matters. To illustrate, consider a calculating sum of 1 to N in python

def sum(N): x = 0 for i in range(N): x += i return x

There's absolute zero reason why this code has to involve pushing and popping stuff on the python virtual stack. This should be compiled into assembly with a small conversion between C/PyObject.

The goal is to get to a point where we can even do non-trivial things inside this optimized context.

Python will never be able to go down to assembly because Python support doing "weird shit" like dynamically creating modules, hell, even creating a Python file, running eval on that, and loading it as a new module. How are you even going to transpile that to assembly?

So I approach the problem the same way numba is approaching. But hopefully more modern and simpler (implementation wise). Planning on doing it using Rust and the backend should be agnostic (GCC, Clang, whatever C compiler there is)

lhames•17m ago
The LLVM ORC and Clang-REPL projects would be worth checking out if you haven't already: there's a healthy community of high performance computing folks working in this space over at https://compiler-research.org.

In particular, this talk might be interesting:

"Unlocking the Power of C++ as a Service: Uniting Python's Usability with C++'s Performance"

Video: https://www.youtube.com/watch?v=rdfBnGjyFrc Slides: https://llvm.org/devmtg/2023-10/slides/techtalks/Vassilev-Un...

b0a04gl•3h ago
how deterministic is the emit really. if i feed same expression tree twice,same node layout same captures. do i get exact same bytes out every time (ignoring reloc) or not. if output produced is byte stable across runs for same input graph ,that opens up memoized JIT paths.worth checking if current impl already does this or needs a pass to normalise alloc order
jdnend•2h ago
Why wouldn't it be deterministic?
xnacly•1h ago
Several possible reasons: - parallelism - concurrent machine code gen - different optimisations for different runs, producing differing machine code order, etc
nurettin•1h ago
It really sounds like a job for Java (Microsoft, I know, I know.)
adwn•1h ago
> It really sounds like a job for Java

Why?

kookamamie•52m ago
> auto & rsquared = expression.Mul(expression.GetP1(), expression.GetP1());

This is C++, no? Why not use operator overloading for the project?

Want to meet people, try charging them for it?

https://notes.eatonphil.com/2025-06-28-want-to-meet-people-charge-them.html
48•ArneVogel•1h ago•6 comments

Bought an Ampere Altra System

https://marcin.juszkiewicz.com.pl/2025/06/27/bought-myself-an-ampere-altra-system/
106•pabs3•3h ago•27 comments

Gridfinity: The modular, open-source grid storage system

https://gridfinity.xyz/
95•nateb2022•4h ago•33 comments

LetsEncrypt – Expiration Notification Service Has Ended

https://letsencrypt.org/2025/06/26/expiration-notification-service-has-ended/
37•zdw•3h ago•12 comments

NativeJIT: A C++ expression –> x64 JIT

https://github.com/BitFunnel/NativeJIT
38•nateb2022•5h ago•11 comments

The Book of Shaders

https://thebookofshaders.com/
124•max_•3d ago•19 comments

I made my VM think it has a CPU fan

https://wbenny.github.io/2025/06/29/i-made-my-vm-think-it-has-a-cpu-fan.html
517•todsacerdoti•18h ago•128 comments

Jane Austen's Boldest Novel Is Also Her Least Understood

https://www.nytimes.com/2025/06/27/books/review/jane-austen-mansfield-park.html
26•lermontov•2d ago•5 comments

Ask HN: What Are You Working On? (June 2025)

176•david927•11h ago•566 comments

Cell Towers Can Double as Cheap Radar Systems for Ports and Harbors (2014)

https://spectrum.ieee.org/cell-tower-signals-can-improve-port-security
85•transpute•10h ago•38 comments

LLM's Illusion of Alignment

https://www.systemicmisalignment.com/
27•GodotX•5h ago•13 comments

Amber insect fossils reveal "zombie" fungi likely lived alongside dinosaurs

https://www.cnn.com/2025/06/24/science/amber-insect-zombie-fungi-fossil
38•jackgavigan•3d ago•13 comments

Revisiting Knuth's "Premature Optimization" Paper

https://probablydance.com/2025/06/19/revisiting-knuths-premature-optimization-paper/
119•signa11•3d ago•54 comments

Touching the back wall of the Apple store

https://blog.lauramichet.com/touching-the-back-wall-of-the-apple-store/
147•nivethan•3d ago•113 comments

We accidentally solved robotics by watching 1M hours of YouTube

https://ksagar.bearblog.dev/vjepa/
140•alexcos•15h ago•105 comments

To the Postbox

https://literaryreview.co.uk/to-the-postbox
3•Caiero•2d ago•0 comments

The $25k car is going extinct?

https://media.hubspot.com/why-the-25000-car-is-going-extinct
153•pseudolus•16h ago•311 comments

Use keyword-only arguments in Python dataclasses

https://chipx86.blog/2025/06/29/tip-use-keyword-only-arguments-in-python-dataclasses/
41•Bogdanp•7h ago•11 comments

Ultrasound toothbrush promises painless checks for hidden gum problems

https://phys.org/news/2025-06-ultrasound-toothbrush-painless-hidden-gum.html
18•PaulHoule•3d ago•4 comments

4-10x faster in-process pub/sub for Go

https://github.com/kelindar/event
137•kelindar•16h ago•28 comments

Anticheat Update Tracking

https://not-matthias.github.io/posts/anticheat-update-tracking/
49•not-matthias•10h ago•10 comments

Building untrusted container images safely at scale

https://depot.dev/blog/container-security-at-scale-building-untrusted-images-safely
15•Telstrom90•3d ago•5 comments

Continuous Glucose Monitoring

https://www.imperialviolet.org/2025/06/29/cgm.html
77•zdw•5h ago•50 comments

ICE test train reaches speeds of up to 405.0 km/h

https://www.deutschebahn.com/de/presse/pressestart_zentrales_uebersicht/ICE-Testzug-faehrt-bis-zu-405-0-km-h-und-sammelt-wichtige-Erkenntnisse-fuer-den-Hochgeschwindigkeitsverkehr-13428394
85•doener•9h ago•85 comments

Finding a former Australian prime minister’s passport number on Instagram (2020)

https://mango.pdf.zone/finding-former-australian-prime-minister-tony-abbotts-passport-number-on-instagram/
116•guiambros•9h ago•45 comments

Many ransomware strains will abort if they detect a Russian keyboard installed (2021)

https://krebsonsecurity.com/2021/05/try-this-one-weird-trick-russian-hackers-hate/
272•air7•13h ago•149 comments

The Medley Interlisp Project: Reviving a Historical Software System [pdf]

https://interlisp.org/documentation/young-ccece2025.pdf
98•pamoroso•17h ago•9 comments

Nearly 20% of cancer drugs defective in 4 African nations

https://www.dw.com/en/nearly-20-of-cancer-drugs-defective-in-4-african-nations/a-73062221
107•woldemariam•8h ago•56 comments

Error handling in Rust

https://felix-knorr.net/posts/2025-06-29-rust-error-handling.html
131•emschwartz•11h ago•107 comments

Louvre shuts down with staff sounding the alarm on mass tourism

https://www.washingtonpost.com/world/2025/06/16/louvre-museum-paris-closed-lines-delay/2b303a16-4a9f-11f0-8fff-262d6ec54ab9_story.html
5•Michelangelo11•41m ago•2 comments