Closed angelcaru closed 2 months ago
Should also make the language a lot faster thanks to mypyc, but I haven't tested it yet. Will report on that
UPDATE: mypyc
worked, but it didn't make it that much faster in my testing.
Did you tested make lint
?
No. Will test
Oh no
Also, here is a comparison of the performance of the mypyc-compiled version vs the original:
(
old_radon.py
is the uncompiled one, main.py
is the compiled one. PyPy included for completeness)
Oh no
Terrific!!
In my system pypy3
is way slower than cpython3
!
Added pyright
type checking. Use make typecheck
to perform this test.
Why? Isn't mypy good enough??
Why? Isn't mypy good enough??
pyright
is for strict type checking and mypy
for normal type hint checking.
I don't think we need strict typechecking right now. And mypy has a --strict
flag anyway, so there's no need to introduce a whole other tool into the project
Are you using any other ruff configs for formating?
No, I haven't changed it from the default.
Functions formatings are changing here.
def some():...
def some():
....
Functions formatings are changing here.
def some():... def some(): ....
ruff seems to prefer the top way, at least when there is ...
In my system it is making like this:
def some():
....
When you are doing it changes to:
def some():...
Well, it doesn't really matter that much. This PR is basically blocking all other progress in the project, we need to get it done ASAP
In my system it is making like this:
def some(): ....
When you are doing it changes to:
def some():...
I think you have some config somewhere. I literally just reinstalled ruff with pip and it still chose the second formatting.
Can you write a CI for automatic make lint
checking?
Will be easy to write.
Probably, but would have to research it. Would be a separate PR
Probably, but would have to research it. Would be a separate PR
Just a simple yaml script.
Closes REP-4 (#70)
Should also make the language a lot faster thanks to mypyc, but I haven't tested it yet. Will report on that