Commit Graph

6451 Commits

Author SHA1 Message Date
Jeong YunWon
bb6dc785b5 Merge pull request #2152 from RustPython/coolreader18/stable-sort 2020-08-28 00:13:25 +09:00
Noah
7a6ce8c338 Update timsort 2020-08-26 23:31:14 -05:00
Noah
1149de294f Fix max+test_max 2020-08-26 22:33:11 -05:00
Noah
defcbb821c Skip unsupported sort tests 2020-08-26 21:50:23 -05:00
Noah
2a180af0ab Add test.test_sort from CPython 3.8.3 2020-08-26 21:50:01 -05:00
Noah
edb9df8071 Use timsort for the list sort algorithm 2020-08-26 21:49:44 -05:00
Noah
9598392aea Allow floats in jitted functions (#2150) 2020-08-26 08:36:56 -05:00
Jeong YunWon
358b4b159d Merge pull request #2148 from youknowone/windows-ci
Windows CI
2020-08-26 17:37:39 +09:00
Jeong YunWon
85724006e2 Windows CI 2020-08-26 14:29:03 +09:00
Youngchan Lee
57fbce9d31 Handle TypeErrors in bytes() & bytearray() 2020-08-26 14:11:50 +09:00
Ben Lewis
989a7ae051 Merge pull request #2142 from skinny121/jit
Proof of concept JIT compiler
2020-08-25 17:24:05 +12:00
Ben Lewis
73f23b8dee Rename JIT to Jit 2020-08-25 07:18:46 +12:00
Ben Lewis
93bbf19fd4 Fix specifying multiple features in test_snippets.py
Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
2020-08-25 07:16:59 +12:00
Ben Lewis
7a4acdf40f Move cfg onto __jit__ method. 2020-08-25 07:16:58 +12:00
Ben Lewis
3e0673fe00 Fix ci features argument. 2020-08-25 07:16:58 +12:00
Ben Lewis
e70b2db78d Add jit feature when running tests, and run rustfmt. 2020-08-25 07:16:58 +12:00
Ben Lewis
c773d9f214 Use OnceCell to hold the jitted code. 2020-08-25 07:16:58 +12:00
Ben Lewis
4bdae47eb3 Make jit optional by adding a 'jit' feature. 2020-08-25 07:16:58 +12:00
Ben Lewis
cfb8018a4f Add jit test. 2020-08-25 07:16:58 +12:00
Ben Lewis
c5c6a2c21d Add support for a few more bytecode instructions. 2020-08-25 07:16:58 +12:00
Ben Lewis
bf221bf408 Handle first couple of bytecode instructions in jit. 2020-08-25 07:16:58 +12:00
Ben Lewis
b2ab9d9bdf Initial jit prototype. 2020-08-25 07:16:58 +12:00
Jeong YunWon
809816cc23 Merge pull request #2145 from RustPython/coolreader18/update-deps
Update deps
2020-08-24 16:53:33 +09:00
Jeong YunWon
888f9c0820 Merge pull request #2097 from hyperbora/dev
Corrected the problem of mishandling optional kwarg in max function
2020-08-24 16:48:37 +09:00
Noah
d912fdef41 Use async/await for wasm-bindgen-futures stuff 2020-08-23 21:23:31 -05:00
Noah
1e952e10b9 Update cpython dev-dependency and clean up bench.rs 2020-08-23 21:00:13 -05:00
Noah
cbeb87ef0b Update dependencies 2020-08-23 20:39:53 -05:00
Noah
e8f9145f24 Merge pull request #2144 from youknowone/new-lookup
call_tp_new uses single iterator
2020-08-23 19:00:51 -05:00
hyperbora
e9ee1ba4a0 Corrected the problem of mishandling optional kwarg in max function 2020-08-24 01:01:41 +09:00
Jeong YunWon
b5275206bd Merge pull request #2143 from youknowone/type-clone
Remove type clone functions from vm.ctx
2020-08-24 00:13:28 +09:00
Jeong YunWon
b683823290 call_tp_new uses single iterator 2020-08-23 20:46:25 +09:00
Jeong YunWon
5ca7ec7d2e Fix weakref type name 2020-08-23 20:28:15 +09:00
Jeong YunWon
f8a5cc4b23 Remove type clone functions from vm.ctx
which misleads to clone types when we don't need.
2020-08-23 20:26:37 +09:00
Jeong YunWon
5fd934d561 Merge pull request #2120 from youknowone/derive
Rework derive
2020-08-23 20:23:10 +09:00
Jeong YunWon
fd3aba5033 doc using syn-ext 2020-08-23 19:39:28 +09:00
Jeong YunWon
dded3ffc53 Remove redundant clone from new_class 2020-08-23 19:10:46 +09:00
Jeong YunWon
0b59f20d96 pystruct_sequence uses make_class_with_base 2020-08-23 19:10:46 +09:00
Jeong YunWon
df5948e2db fixup pyclass 2020-08-23 19:10:46 +09:00
Jeong YunWon
5edaf12d2a pyclass_ident_and_attrs 2020-08-23 18:37:43 +09:00
Jeong YunWon
29dc4dabbb multiple error tracking 2020-08-23 18:30:14 +09:00
Jeong YunWon
2458307dc3 rewrite pyclass 2020-08-23 18:30:14 +09:00
Jeong YunWon
e4fa05ae70 attrs replacement technique 2020-08-23 18:24:46 +09:00
Jeong YunWon
8d46a96068 use meta item rather than parent name 2020-08-23 18:24:46 +09:00
Jeong YunWon
9d025b0e4e #[pyclass] now requires module field 2020-08-23 18:24:46 +09:00
Jeong YunWon
c9c1ac9532 Give module names for classes 2020-08-23 18:24:46 +09:00
Jeong YunWon
5e9df32b18 #[pyclass] must contains name 2020-08-23 18:24:46 +09:00
Jeong YunWon
d422de6f00 Rework derive and rewrite pymodule.rs 2020-08-23 18:24:46 +09:00
Noah
4e80bfd158 Merge pull request #2141 from RustPython/coolreader18/pynativefunc-rework
Just use normal Box for PyNativeFunc
2020-08-22 22:17:37 -05:00
Jeong YunWon
c9e2d6da67 Merge pull request #2105 from youknowone/tp-name
PyClass::tp_name() and repr
2020-08-23 11:59:12 +09:00
Jeong YunWon
b4e8e762a6 Merge pull request #2112 from youknowone/eager-return
Clean up unnessessary match and use exactly_one
2020-08-23 11:57:58 +09:00