News for hackers. Stuff that matters.

wbpaelias

Re:Structure and Interpretation of Classical Mechanics on Monday October 27, 2025 @11:23AM (#45722019)
I believe Veritasium had a series where they derive the equivalence to Newton's laws
They have desktop apps too, in my machine I'm only using the desktop stuff.
Re:Multi-Core by Default on Friday October 10, 2025 @12:26PM (#45540715)
If you're willing to let go of imperative syntax, Interaction Nets[0] might be interesting to maximize parallelism where possible. I think Bend[1] is probably the most mature implementation of that idea.

[0]: https://en.wikipedia.org/wiki/Interaction_nets [1]: https://github.com/HigherOrderCO/Bend

Re:Tracing JITs in the Real World CPython Core Dev Sprint on Friday September 26, 2025 @12:17AM (#45382594)
I think the compiler figures that if a new method comes up, it’ll just compile that when it needs to.
Re:Tracing JITs in the Real World CPython Core Dev Sprint on Friday September 26, 2025 @12:14AM (#45382567)
That makes sense. Why exactly would python need a tracing JIT instead of a method one though? It seems like either could work.
Re:Tracing JITs in the Real World CPython Core Dev Sprint on Thursday September 25, 2025 @08:45PM (#45381210)
I wonder how much Julia’s JIT could help inform Python’s.

Diagram: https://docs.julialang.org/en/v1/devdocs/img/compiler_diagra...

Documentation: https://docs.julialang.org/en/v1/devdocs/eval/

From what I understand, Julia doesn’t do any tracing at all, it just compiles each function based on the types it receives. Obviously Python doesn’t have multiple dispatch, but that actually might make compilation easier. Swap out the LLVM step with python's IR and they could probably expect a pretty substantial performance improvement. That said I don’t know anything about compilers, I just use both Python and Julia.