These are chat archives for dropbox/pyston
analysis_unittestfailed, any helps. The output seems a bit long. But I can put it here if you desired.
clfuncrelated commit recently. Maybe one of these commit broke it?
pow(3l, 3l, -8), and already get some progress, most of the test_pow test could passed. But I don't know how to let longPow accept float parameter, pow(long, float, mod) will say
TypeError: unsupported operand type(s) for ** or pow(): 'long' and 'float'.
TypeError: pow() 3rd argument not allowed unless all arguments are integers
ZeroDivisionError: 0.0 cannot be raised to a negative powerin intPow.
collections.defaultdict(arg). We rewrite this to but forget to add the call to
defaultdict.tp_init. This means on the first call it will succeed because during the rewrite we call it but the generated code does not contain the call...
// If we weren't passed the args array, it's not safe to index into it if (passed <= 2) initrtn = runtimeCallInternal(init_attr, NULL, init_argspec, arg2, arg3, NULL, NULL, keyword_names); else initrtn = runtimeCallInternal(init_attr, NULL, init_argspec, arg2, arg3, args, &args, keyword_names);
processDescriptordoesn’t deal with rewriting right now
processDescriptor, or if we just want to emit a call to
processDescriptorin the assembly
/* Wrap void * pointers to be passed between C modules */
defaultdictbug shows only up sometimes...
min()specialized for taking ints)
a, b = b, a
a, b = l, l
for i in range(10)(the range) or
Falseetc... do you plan to add type recording to getGlobal()? Because afaik we only supported getattr?
PyErr_Occurred()returns true, is there some easy way to dump the error to the console?
0m3.742sruntime. after doing
rm build/Release/lib_pyston/grp.pyston.so, runtime drops to
BoxedClassdoesn’t seem to have all the functionality of
BoxedHeapClasses, I guess
BoxedHeapClasses, we have the
as_sequencefield and then point
tp_as_sequenceat it, and if I turn, say,
tp_as_sequencewon’t be pointed to anything and won’t be initialized right (I’m not really entirely sure how all that initialization works but it seems like it’s just wrapping the
__iter__method or something, is that right?)
BoxedHeapClass, and that they actually seem to rely on its functionality of using attributes for this stuff just like Python classes do)