[TASK] Cpython (https://github.com/SENATOROVAI/intro-cs/issues/4)#624
[TASK] Cpython (https://github.com/SENATOROVAI/intro-cs/issues/4)#624YurGusev wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 71f81f6f21
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # Ответ: интерпретатор - это программа, которая читает и запускает код | ||
| # построчно. |
There was a problem hiding this comment.
Correct the CPython execution model
For Q10, saying CPython reads and runs code “line by line” gives learners the wrong model: CPython parses/compiles the source to bytecode first, then executes that bytecode in the virtual machine. Since this file is the lesson answer key for the CPython task, please describe the compile-to-bytecode step instead of presenting execution as purely line-by-line.
Useful? React with 👍 / 👎.
| # Ответ: PyPy работает быстрее CPython. Главное отличие для задания - PyPy | ||
| # быстрее, но подходит не для всех проектов. |
There was a problem hiding this comment.
Explain PyPy's speedup mechanism
Q19 asks why PyPy can run faster, but this answer only repeats that it is faster and not suitable everywhere. That leaves the requested explanation missing for the PyPy section; please mention the JIT/tracing optimizer compiling hot paths to machine code, otherwise the lesson does not answer the question.
Useful? React with 👍 / 👎.
| # Ответ: для сравнения нужно запустить один и тот же `performance_test.py` сначала | ||
| # через CPython, затем через PyPy и сравнить строку `Execution time`. PyPy должен работать быстрее CPython, но использовать его можно не для всех | ||
| # проектов. |
There was a problem hiding this comment.
Include actual performance comparison results
In practical task 5, the answer only says how to run performance_test.py, but the task is to compare CPython and PyPy. Without the measured Execution time output for both interpreters and a conclusion, the submission does not demonstrate that the practical task was completed or give readers anything to verify.
Useful? React with 👍 / 👎.
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
Closes https://github.com/SENATOROVAI/intro-cs/issues/4
Describe your change:
Посмотрел видео Интерпритатор Cpython и PYPY и ответил на вопросы.
Fixes #4
Checklist: