[pypy-commit] [Git][pypy/pypy][branch/max_int_threshold] 5 commits: test, fix max_str_int for bigint -> str for cpython compatiblitly.

2022-10-27 Thread Matti Picus (@mattip)


Matti Picus pushed to branch branch/max_int_threshold at PyPy / pypy


Commits:
85097e12 by Matti Picus at 2022-10-26T17:49:20+02:00
test, fix max_str_int for bigint -> str for cpython compatiblitly.

We may want to diverge from CPython and set separate str -> int and int 
-> str thresholds

--HG--
branch : max_int_threshold

- - - - -
0c0657ce by Matti Picus at 2022-10-27T03:34:52+02:00
push check for bigint max_str_digits into rstring

--HG--
branch : max_int_threshold

- - - - -
addc31b4 by Matti Picus at 2022-10-27T11:42:44+02:00
test, fix some edge cases

--HG--
branch : max_int_threshold

- - - - -
3ce12eb5 by Matti Picus at 2022-10-27T11:43:49+02:00
stdlib change: timing test is different on PyPy, 50,000 digits is too fast

--HG--
branch : max_int_threshold

- - - - -
6a2514bf by Matti Picus at 2022-10-27T13:26:10+02:00
test, fix edge case with leading '-' in bigint -> str

--HG--
branch : max_int_threshold

- - - - -


7 changed files:

- lib-python/3/test/test_int.py
- pypy/objspace/std/intobject.py
- pypy/objspace/std/longobject.py
- pypy/objspace/std/test/test_longobject.py
- rpython/rlib/rarithmetic.py
- rpython/rlib/rbigint.py
- rpython/rlib/rstring.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/c0982221708e360d03a8637e039fc417ad01...6a2514bfcf73e294adfa8182a1a4c7d47b49ca00

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/c0982221708e360d03a8637e039fc417ad01...6a2514bfcf73e294adfa8182a1a4c7d47b49ca00
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy][branch/default] 2 commits: backport changes to support max_str_digits

2022-10-27 Thread Matti Picus (@mattip)


Matti Picus pushed to branch branch/default at PyPy / pypy


Commits:
bb73ee84 by Matti Picus at 2022-10-27T16:18:45+02:00
backport changes to support max_str_digits

- - - - -
0555344d by Matti Picus at 2022-10-27T23:22:08+02:00
merge heads

- - - - -


3 changed files:

- rpython/rlib/rarithmetic.py
- rpython/rlib/rbigint.py
- rpython/rlib/rstring.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/5be413ea7ce6ca4af11e7f67b4c86934c6bde054...0555344d6e45371e1bfbb345f6478310bed55522

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/5be413ea7ce6ca4af11e7f67b4c86934c6bde054...0555344d6e45371e1bfbb345f6478310bed55522
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy][branch/py3.8] 20 commits: implement the int_max_str_digits handling from CPython PR 96503

2022-10-27 Thread Matti Picus (@mattip)


Matti Picus pushed to branch branch/py3.8 at PyPy / pypy


Commits:
c557c19d by Matti Picus at 2022-10-16T15:01:21+03:00
implement the int_max_str_digits handling from CPython PR 96503

- sys.get(State).w_int_max_str_digits is the value to be used in conversions
- sys.int_info.default_max_str_digits and 
sys.int_info.str_digits_check_threshold
  are the compiled-in limits
- sys.{sg}et_int_max_str_digits are interfaces to manage w_int_max_str_digits
- sys.flags.int_max_str_digits is the startup value of w_int_max_str_digits
- new command line -X int_max_str_digits=number and environment 
PYTHONINTMAXSTRDIGITS
  are use at startup to set sys.flags.int_max_str_digits and 
w_int_max_str_digits

--HG--
branch : max_int_threshold

- - - - -
b5035ce4 by Carl Friedrich Bolz-Tereick at 2022-10-16T15:31:48+02:00
a failing unit test

--HG--
branch : max_int_threshold

- - - - -
f20efbc6 by Matti Picus at 2022-10-16T17:51:23+03:00
fix default int_max_str_digits value and add a check to the test

--HG--
branch : max_int_threshold

- - - - -
fac94bb8 by Matti Picus at 2022-10-18T00:38:11+03:00
rearrange code so int_max_str_digits works

--HG--
branch : max_int_threshold

- - - - -
3cb2e822 by Matti Picus at 2022-10-18T00:38:50+03:00
test, limit str -> int conversion to use int_max_str_digits

--HG--
branch : max_int_threshold

- - - - -
8c96b277 by Matti Picus at 2022-10-18T22:04:16+03:00
fix failing test_linear_long_base_16

--HG--
branch : max_int_threshold

- - - - -
06d74063 by Matti Picus at 2022-10-18T22:53:50+03:00
test, fix more edge cases

--HG--
branch : max_int_threshold

- - - - -
f432b4f8 by Matti Picus at 2022-10-19T23:57:18+03:00
add a TODO

--HG--
branch : max_int_threshold

- - - - -
635de3f3 by Matti Picus at 2022-10-20T00:09:57+03:00
add a failing test, fix with a hack to do float/complex parsing directly and 
raise
if int parsing passes max_int

CPython uses strtol to check that all the characters are valid for int, here we
check for '.' or 'e', 'E'

--HG--
branch : max_int_threshold

- - - - -
c0982221 by Matti Picus at 2022-10-23T17:50:03+03:00
merge py3.8

--HG--
branch : max_int_threshold

- - - - -
85097e12 by Matti Picus at 2022-10-26T17:49:20+02:00
test, fix max_str_int for bigint -> str for cpython compatiblitly.

We may want to diverge from CPython and set separate str -> int and int 
-> str thresholds

--HG--
branch : max_int_threshold

- - - - -
0c0657ce by Matti Picus at 2022-10-27T03:34:52+02:00
push check for bigint max_str_digits into rstring

--HG--
branch : max_int_threshold

- - - - -
addc31b4 by Matti Picus at 2022-10-27T11:42:44+02:00
test, fix some edge cases

--HG--
branch : max_int_threshold

- - - - -
3ce12eb5 by Matti Picus at 2022-10-27T11:43:49+02:00
stdlib change: timing test is different on PyPy, 50,000 digits is too fast

--HG--
branch : max_int_threshold

- - - - -
6a2514bf by Matti Picus at 2022-10-27T13:26:10+02:00
test, fix edge case with leading '-' in bigint -> str

--HG--
branch : max_int_threshold

- - - - -
353a7ae9 by Matti Picus at 2022-10-27T16:08:01+02:00
close branch to be merged

--HG--
branch : max_int_threshold

- - - - -
88c98ed4 by Matti Picus at 2022-10-27T16:09:46+02:00
merge max_int_threshold which mimics CPython's int/str size limits

--HG--
branch : py3.8

- - - - -
bb73ee84 by Matti Picus at 2022-10-27T16:18:45+02:00
backport changes to support max_str_digits

- - - - -
41df9515 by Matti Picus at 2022-10-27T16:19:18+02:00
merge default

--HG--
branch : py3.8

- - - - -
60533283 by Matti Picus at 2022-10-27T23:22:46+02:00
merge heads

--HG--
branch : py3.8

- - - - -


17 changed files:

- lib-python/3/test/test_int.py
- pypy/interpreter/app_main.py
- pypy/interpreter/astcompiler/astbuilder.py
- pypy/interpreter/astcompiler/test/test_compiler.py
- pypy/interpreter/test/test_app_main.py
- pypy/module/sys/app.py
- pypy/module/sys/moduledef.py
- pypy/module/sys/state.py
- pypy/module/sys/system.py
- pypy/module/sys/test/test_sysmodule.py
- pypy/objspace/std/intobject.py
- pypy/objspace/std/longobject.py
- pypy/objspace/std/test/test_intobject.py
- pypy/objspace/std/test/test_longobject.py
- rpython/rlib/rarithmetic.py
- rpython/rlib/rbigint.py
- rpython/rlib/rstring.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/465d64f3c8bd8cb535f1928b3f1a8201f01088c0...605332830a5b53645d97e8f94bdded5fb96e3a36

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/465d64f3c8bd8cb535f1928b3f1a8201f01088c0...605332830a5b53645d97e8f94bdded5fb96e3a36
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy] Deleted branch branch/max_int_threshold

2022-10-27 Thread Matti Picus (@mattip)


Matti Picus deleted branch branch/max_int_threshold at PyPy / pypy

-- 

You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy][branch/py3.9] 35 commits: small simplification

2022-10-27 Thread Matti Picus (@mattip)


Matti Picus pushed to branch branch/py3.9 at PyPy / pypy


Commits:
b172139f by Carl Friedrich Bolz-Tereick at 2022-10-11T10:29:44+02:00
small simplification

- - - - -
216ff70e by Carl Friedrich Bolz-Tereick at 2022-10-12T22:05:00+02:00
ouch, the logic is inverted here:

these should wait till timeout, not stop waiting immediately

- - - - -
c557c19d by Matti Picus at 2022-10-16T15:01:21+03:00
implement the int_max_str_digits handling from CPython PR 96503

- sys.get(State).w_int_max_str_digits is the value to be used in conversions
- sys.int_info.default_max_str_digits and 
sys.int_info.str_digits_check_threshold
  are the compiled-in limits
- sys.{sg}et_int_max_str_digits are interfaces to manage w_int_max_str_digits
- sys.flags.int_max_str_digits is the startup value of w_int_max_str_digits
- new command line -X int_max_str_digits=number and environment 
PYTHONINTMAXSTRDIGITS
  are use at startup to set sys.flags.int_max_str_digits and 
w_int_max_str_digits

--HG--
branch : max_int_threshold

- - - - -
b5035ce4 by Carl Friedrich Bolz-Tereick at 2022-10-16T15:31:48+02:00
a failing unit test

--HG--
branch : max_int_threshold

- - - - -
f20efbc6 by Matti Picus at 2022-10-16T17:51:23+03:00
fix default int_max_str_digits value and add a check to the test

--HG--
branch : max_int_threshold

- - - - -
fac94bb8 by Matti Picus at 2022-10-18T00:38:11+03:00
rearrange code so int_max_str_digits works

--HG--
branch : max_int_threshold

- - - - -
3cb2e822 by Matti Picus at 2022-10-18T00:38:50+03:00
test, limit str -> int conversion to use int_max_str_digits

--HG--
branch : max_int_threshold

- - - - -
8c96b277 by Matti Picus at 2022-10-18T22:04:16+03:00
fix failing test_linear_long_base_16

--HG--
branch : max_int_threshold

- - - - -
06d74063 by Matti Picus at 2022-10-18T22:53:50+03:00
test, fix more edge cases

--HG--
branch : max_int_threshold

- - - - -
f432b4f8 by Matti Picus at 2022-10-19T23:57:18+03:00
add a TODO

--HG--
branch : max_int_threshold

- - - - -
635de3f3 by Matti Picus at 2022-10-20T00:09:57+03:00
add a failing test, fix with a hack to do float/complex parsing directly and 
raise
if int parsing passes max_int

CPython uses strtol to check that all the characters are valid for int, here we
check for '.' or 'e', 'E'

--HG--
branch : max_int_threshold

- - - - -
d81440e9 by Carl Friedrich Bolz-Tereick at 2022-10-21T11:58:38+02:00
this test was broken by trace segmenting, the new behaviour is fine

- - - - -
8446dfa2 by Carl Friedrich Bolz-Tereick at 2022-10-21T12:02:43+02:00
merge

- - - - -
6e69759d by Matti Picus at 2022-10-21T16:22:48+03:00
add missing documentation of pypyjit module

- - - - -
077dd15b by Matti Picus at 2022-10-22T21:56:48+03:00
move links from bitbucket to heptapod and from morepypy to pypy.org/blog

- - - - -
8f36af76 by Matti Picus at 2022-10-22T22:10:14+03:00
expose a little explaination about the JIT decay parameter

taken from decay_all_counters() in metainterp/counter.py

- - - - -
91173edd by Matti Picus at 2022-10-22T22:22:44+03:00
fix sphinx formatting

- - - - -
c0982221 by Matti Picus at 2022-10-23T17:50:03+03:00
merge py3.8

--HG--
branch : max_int_threshold

- - - - -
d137501b by Carl Friedrich Bolz-Tereick at 2022-10-25T14:24:33+02:00
make it possible to change the REMEMBER_LIMIT

- - - - -
67e60b38 by Carl Friedrich Bolz-Tereick at 2022-10-25T16:01:31+02:00
move max trace length checking to warmspot so we can make the limit dependent
on the model

- - - - -
92f1f683 by Carl Friedrich Bolz-Tereick at 2022-10-25T16:55:23+02:00
fix

- - - - -
59dfc01f by Carl Friedrich Bolz-Tereick at 2022-10-25T22:08:40+02:00
make locals use an instance dict to be able to remove them commpletely/make the
access efficient

add a test_pypy_c test

- - - - -
465d64f3 by Carl Friedrich Bolz-Tereick at 2022-10-25T22:10:07+02:00
merge default

--HG--
branch : py3.8

- - - - -
85097e12 by Matti Picus at 2022-10-26T17:49:20+02:00
test, fix max_str_int for bigint -> str for cpython compatiblitly.

We may want to diverge from CPython and set separate str -> int and int 
-> str thresholds

--HG--
branch : max_int_threshold

- - - - -
0c0657ce by Matti Picus at 2022-10-27T03:34:52+02:00
push check for bigint max_str_digits into rstring

--HG--
branch : max_int_threshold

- - - - -
addc31b4 by Matti Picus at 2022-10-27T11:42:44+02:00
test, fix some edge cases

--HG--
branch : max_int_threshold

- - - - -
3ce12eb5 by Matti Picus at 2022-10-27T11:43:49+02:00
stdlib change: timing test is different on PyPy, 50,000 digits is too fast

--HG--
branch : max_int_threshold

- - - - -
6a2514bf by Matti Picus at 2022-10-27T13:26:10+02:00
test, fix edge case with leading '-' in bigint -> str

--HG--
branch : max_int_threshold

- - - - -
353a7ae9 by Matti Picus at 2022-10-27T16:08:01+02:00
close branch to be merged

--HG--
branch : max_int_threshold

- - - - -
88c98ed4 by Matti Picus at 2022-10-27T16:09:46+02:00
merge max_int_threshold which mimics CPython's int/str size limits

--HG--
branch : py3.8


[pypy-commit] [Git][pypy/pypy][branch/threaded-code-generation] endswith -> find when compiling to call_assembly

2022-10-27 Thread Yusuke Izawa (@3tty0n)


Yusuke Izawa pushed to branch branch/threaded-code-generation at PyPy / pypy


Commits:
244070be by Yusuke Izawa at 2022-10-28T15:44:18+09:00
endswith -> find when compiling to call_assembly

--HG--
branch : threaded-code-generation

- - - - -


1 changed file:

- rpython/jit/metainterp/optimizeopt/tracesplit.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/244070be032c8d2ca298df7a48a652da9487983e

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/244070be032c8d2ca298df7a48a652da9487983e
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com