4 ms·
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 C
by throwaway81523 1mo ago
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.
- tyingq 1mo agoThere is a Configure type subsystem, so you'll see stuff like this: https://github.com/python/cpython/pull/156277/changes#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810 https://github.com/python/cpython/pull/156277/changes#diff-4...
- emmatyping 1mo agoIn 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 https://github.com/python/cpython/issues/151040 And perf support needs to be tested and merged https://github.com/python/cpython/issues/121201 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.
- shash 1mo agoWe 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.
- rzulasf 1mo ago[flagged]
- tlk-22815 1mo agoWe 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.