python3 whats_left.py --json | tail -n 1 | jq .
fib(33)on my computer took 10.627s when "threading" feature is on, and 6.29s when "threading" feature is off, and avoiding "threading" could allow other optimizations such as using
lastiinstead of atomic integers.
cargo build --release?
cargo run --release
cargo buildbuilds in debug mode
cargo build --releaseto build optimized
❯ target/release/rustpython Welcome to the magnificent Rust Python 0.1.2 interpreter 😱 🖖 >>>>> import sys; sys.path.insert(0, '/home/coolreader18/rspy-tests/asynchttp') >>>>> import aiohttp Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/coolreader18/rspy-tests/asynchttp/aiohttp/__init__.py", line 6, in <module> from .client import ( File "/home/coolreader18/rspy-tests/asynchttp/aiohttp/client.py", line 35, in <module> from . import hdrs, http, payload File "/home/coolreader18/rspy-tests/asynchttp/aiohttp/http.py", line 7, in <module> from .http_parser import ( File "/home/coolreader18/rspy-tests/asynchttp/aiohttp/http_parser.py", line 15, in <module> from .helpers import NO_EXTENSIONS, BaseTimerContext File "/home/coolreader18/rspy-tests/asynchttp/aiohttp/helpers.py", line 48, in <module> from typing_extensions import Protocol File "/home/coolreader18/rspy-tests/asynchttp/typing_extensions.py", line 364, in <module> class _FinalForm(typing._SpecialForm, _root=True): AttributeError: module 'typing' has no attribute '_SpecialForm'
❯ rustpython Welcome to the magnificent Rust Python 0.1.2 interpreter 😱 🖖 >>>>> import idna_ssl; import sys; sys.version_info = (3, 6, 0) >>>>> import aiohttp >>>>> aiohttp <module 'aiohttp' from '/home/coolreader18/rspy-tests/asynchttp/aiohttp/__init__.py'>
so going on with my importing issue from yesterday, it seems to be an issue with one of my other modules, it seems that rustpython is just hanging on some of my relative imports (
from .a import B), none of the file that im trying to import gets executed.
ive tried making a minimal but cant get any repro so im uploading the entire setup, https://github.com/Zomatree/discord.py/tree/rustpython-test and run
rustpython -m discord it should print a bunch of stuff then hang at
16 that is trying to import
discord/client.py#61, does this hang for anyone else?
from . import xstuff, but it's so weird I don't know how it works in cpython