Is the PyPy GIL part of the PyPy interpreter implementation in RPython, or is it something that translate.py automatically adds? i.e., if I were to write my own new language interpreter in RPython and ran it through translate.py, would it be subject to the GIL a priori, or would that be up to my interpreter code?
1
There are 1 answers
Related Questions in PYPY
- Installing Pip for PyPy on Windows
- using pip in a venv for running under PyPy?
- Speeding up unpacking of encrypted image file in python
- Difficulty installing packages with pip
- What is the purpose of python.exe in the pypy binary distribution?
- pypy3 performs better on W11
- Type annotations in pypy give an error but work in python3
- Cannot run a notebook using pypy with vscode because "could not build wheels for psutil, which is required to install pyproject.toml-based projects"
- pypy install statsmodel on Windows
- Why Pandas is not working with PyPy3 and post some errors
- How do I get my script to run on pypy instead of Python
- How to install pypy7.3 python3.10 using conda?
- How to properly round to the nearest integer in double-double arithmetic
- SciPy fails to build from source on Mac under CPython 3.9/PyPy on Intel & M1 Macs
- The pypy python3 interpreter won't recognize a folder within the current directory
Related Questions in GIL
- Issue with GIL on Python 3.12.2
- python: With GIL, is it still possible to have deadlocks with threading? (Not multi-processing)
- How to Prevent Gunicorn Workers/Threads from Blocking During External API Calls in Flask App
- Why is this multi-threaded code faster than the sequential one, if the task is 100% on the CPU? - Python3.10
- Python Import Module fails using C API if more than one subinterpreter import a module that imports some specific modules
- Threading is replaceable in Python?
- RAII in pybind11 does not call destructor when added calllbacks
- Parallel processing in python and need for if __name__ == '__main__'
- Does cProfile include the time waiting for the GIL
- Why does the presence of the Global Interpreter Lock not prevent data corruption issues when using thread shared state?
- Polling in py-spy flame graph of celery worker
- How to assign weight to selection list options? and do calculations with the weights? in jira software
- Python parallel threads in 3.13 GIL-less environment
- How can I release the GIL before calling an embedded C function?
- python multithread ( FIle read I/O ) is not parallism?
Related Questions in RPYTHON
- PyPy, RPython and Python versions compatibility when translation process
- RPython jit logs
- Delete strings (support regex) stored in list from a text file
- How to use rpython translator to convert my python script into pypy?
- rPython can't find Pandas
- Connecting to DynamoDB using R
- Calling Python code from R
- RPython: Is it possible to specify/enforce a type on a variable?
- can't import package with rPython
- How to run python script in Rstudio
- Using the rPython package for creating and "getting" a numpy array
- using R's rPython to run python's rpy2
- Error installing rPython (scrdir)
- rPython and __future__ imports
- Using rPython import numpy with python 3.5
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The GIL handling is inserted by module/thread/gil.py in your PyPy checkout. It's an optional translation feature and it's only added when thread module is enabled. That said, RPython itself is not a thread-safe language (like for example C), so you would need to take care yourself to lock objects correctly, so they don't come up inconsistent. The main issue would be to provide a thread-aware garbage collector, because the one that we use right now is not thread safe and just adding a lock would remove a whole lot of benefits from a free-threading model.
Cheers, fijal