A. R. Shajii
A. R. Shajii
Hello, We've been using the GC for several years now with great success. One issue we've come across though is a substantial performance degradation when multiple threads are calling `GC_malloc`,...
``` python class A: def __radd__(self, n: int): return 0 def f(): print('f') return 1 def g(): print('g') return A() f() + g() ``` Python gives `f g` but Codon...
Current master f7e513ac06055310656e5c3c3bc9e1d84571e1b4. Here is the test program: ``` c #ifndef GC_THREADS #define GC_THREADS #endif #include #include typedef struct list { long data1; long data2; long data3; struct list *next;...
``` python def func_1(N: int): print(N) def func_2(x: int) -> int: return x+N N = 0 func_1(42) ``` Python prints `42`, but Codon prints `None`.
``` python A = {"a": 1, "b": 2, "c": 3} B = {**A} ``` ``` Assert failed: dictionary items are invalid Expression: t && t->size() == 2 Source: /Users/runner/work/codon/codon/codon/parser/ast/expr.cpp:234 [1]...
``` python class A: apple = {"a": 1, "b": 2, "c": 3} class B(A): pass print(B.apple) ``` Works as expected in Python, but in Codon class `B` does not inherit...