Skip to content

PROTOTYPE: interpreter calls compiled stdlib functions - #755

Draft
paugier wants to merge 4 commits into
spylang:mainfrom
paugier:exp-native-stdlib
Draft

paugier wants to merge 4 commits into
spylang:mainfrom
paugier:exp-native-stdlib

Conversation

@paugier

@paugier paugier commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

I open this draft PR just to communicate about this PROTOTYPE. I played with the idea of calling compiled stdlib functions in the interpreter. The code is partly AI generated.

The good news is that it works and has a huge effect on the performance of the interpreter, especially for functions containing loops. Typically, I observe a x30 speedup for test_random.py -m interp --slow-tests.

@paugier paugier changed the title Exp native stdlib PROTOTYPE: interpreter calls compiled stdlib functions Nov 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant