- 10 Jun, 2014 2 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
- 09 Jun, 2014 6 commits
-
-
Kevin Modzelewski authored
Don't worry, a non-gil version is coming. Use a gil for now so we can start working on the other threading requirements, such as GC.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Well, the thread-creating should work, but nothing is threadsafe.
-
Kevin Modzelewski authored
Remove read from freed memory
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Update chr to be compatible with CPython
-
- 08 Jun, 2014 1 commit
-
-
Krzysztof Klinikowski authored
-
- 07 Jun, 2014 12 commits
-
-
Kevin Modzelewski authored
Not all exposed to python code yet This commit is pretty large because it contains two separate but interrelated changes: - Rewrite the function argument handling code (callCompiledFunction and resolveCLFunc) into a single callFunc that does its own rewriting, and support the new features. -- this required a change of data representations, so instead of having each function consist of variants with unrelated signatures, we can only have a single signature, but multiple type specializations of that signature - To do that, had to rewrite all of the stdlib functions that used signature-variation (ex range1 + range2 + range3) to be a single function that took default arguments, and then took action appropriately.
-
Kevin Modzelewski authored
Can emit add/sub/etc instructions with 32-bit operands in addition to 8-bit now Can get the RSP and RBP in rewriter1, for accessing scratch space Change some debugging output Fix a gc bug: if an object gets new'd, and takes a parameter that gets new'd, the sequence is 1) object space gets allocated 2) parameter space gets allocated 3) parameter gets constructed 4) object gets constructed The bug is that the object construction is what initializes the GC header, so if step #3 causes a collection, it can see that the allocation from step #1 has an invalid header. As a workaround, always zero out the header in allocation, and skip blocks with zeroed headers. The real solution is probably to have the GC manage the header itself rather than expecting the user to; this would mean that gc_alloc would take the allocation kind, put that into the header, and then return a pointer to the post-header data section of the allocation.
-
Kevin Modzelewski authored
Experimenting with vim+make integration Changed installation instructions slightly Added rlwrap support for repl
-
Kevin Modzelewski authored
-
Marius Wachtler authored
Currently many places in the codebase create AST_Jump objects but do not initalice the line ,col numbers. Set them to -1, in order to not call SetCurrentDebugLocation with random locations.
-
Marius Wachtler authored
-
Kevin Modzelewski authored
Fix crash: register string iterator class
-
Kevin Modzelewski authored
Tried up to 210379 with the same segfaults.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Marius Wachtler authored
-
- 05 Jun, 2014 1 commit
-
-
Kevin Modzelewski authored
Replace a simple "num_args" argument with a packed struct that takes num_args and adds num_keywords, has_varargs, and has_kwargs. Tried to add asserts in all the places that don't allow keywords/varargs/starargs Started refactoring things; got to the point of attempting argument->parameter shuffling, but it's tricky if we allow every compilation to have a different signature (used by builtins). Really they all have the same signatures but different specializations; to get to that point, need to add defaults.
-
- 04 Jun, 2014 5 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
- 03 Jun, 2014 13 commits
-
-
Kevin Modzelewski authored
- Support parsing (but not running) **kw in function definitions - more consistent assertion of what parts handle non-simple arguments or not
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Added implementation of 'dir'
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Implementation of __iter__ for tuple, added tests
-
Vinzenz Feenstra authored
Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Vinzenz Feenstra authored
Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Vinzenz Feenstra authored
- Added dir0 which would in theory return the local scope, but for just returns the content of the builtins module - Added a unit test file for dir which won't print anything as the list sorting does not work as expected at the moment (missing full implementation) and the attributes are different as well (pyston has some CPython 2.7.5 does not have and vice versa) - dir1 implements the lookup on a passed object - If the object has a __dir__ method, it will call it and return the result returned by this method - Otherwise all class and instance attributes and methods are returned - If the object has a __dict__ attribute, additional to the previous one it will return the keys from that one as well Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Vinzenz Feenstra authored
Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Vinzenz Feenstra authored
Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-