learnforpractice
learnforpractice
llvm 13 has been released, but eosio.cdt is still using llvm 9, any plans for support a new llvm version?
I have encountered a strange problem: ```c #include #include typedef int64_t (*fn_foo)(int64_t); void call_fn(fn_foo fn) { printf("call_fn: %p\n", fn); fn(123); } ``` ``` gcc -shared -o libfoo.so foo.c ``` ```python...
t3.py ```python a: Union[int, str] = 123 print(123 == a) print(a == 123) ``` ``` codon run t3.py ``` output: ``` internal.codon:125:13-75: error: 'str' object has no method '__eq__' with...
It sounds like Codon doesn't correctly check some types. test.codon ``` class A(object): a: Array[byte] pos: int def __init__(self, ptr: Ptr[byte], len: int): self.a = Array[byte](ptr, len) self.pos = 0...
The generated `vtable` initialization code in the [prepareVTables](https://github.com/exaloop/codon/blob/ab7387b66a7be8b1cedafc6aec10b0b402d769ff/codon/parser/visitors/typecheck/infer.cpp#L380) function is quite significant and result in increased code size and increased initialization time. By performing a simple test, the value of...
I am encountering an issue where the code is not behaving as expected when calling a method in a class. Here is the relevant code: a.codon ```python class A(object): pass...