Hacker News (curated)new | past | comments | ask | show | jobs| show hidden

CPython is written in C, did running it on Risc-V take more than a recompilation? Were there any surprises? Yes of course it needs testing and RISC-V in the CI stack, but I'd expect fairly smooth sailing.


In short, we haven't found many bugs, but it also wasn't just recompile on a new platform.

We've seen test failures like https://github.com/python/cpython/issues/151040

And perf support needs to be tested and merged https://github.com/python/cpython/issues/121201

Overall though, fairly smooth sailing as you say.

The reason RISC-V wasn't already supported is a mix of lacking hardware access for build bots and committers willing to pledge time to support it.


We ran it 4 years ago (including numpy) and it wasn’t a massive uphill climb or anything. It’s gotten a little easier since then if anything.

There is a Configure type subsystem, so you'll see stuff like this: https://github.com/python/cpython/pull/156277/changes#diff-4...

We ran python-3.14 on RISC-V before switching to C++ only. It compiled without any errors and all tests passed.

I don't understand the significance of this announcement in the submission.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact | github