Claudio Russo

Results 150 issues of Claudio Russo

A user has requested an infinite precision bitwise negation operator on Nat and Int. https://forum.dfinity.org/t/how-motoko-uses-the-bitwise-negation-operator/7428/8 Should be easy to support, acc to @nomeata, pointing at: https://github.com/libtom/libtommath/blob/develop/mp_complement.c

compiler
language design
P2

- add optional quotas to Buf.rs Inspired by https://github.com/dfinity/candid/pull/524 TODO: [ ] skipping compound types [ ] specialize add_decode/skip_cost [ ] compile.ml ReadBuf & other changes.

Implement precise tagging of heap allocated objects. Splits * `TAG_ARRAY` into consecutive `TAG_ARRAY_I`, `TAG_ARRAY_M`, `TAG_ARRAY_T`, `TAG_ARRAY_S` (immutable array, array, tuple, shared function). * `TAG_BLOB` into consecutive `TAG_BLOB_B` ,` TAB_BLOB_T` and...

DO-NOT-MERGE

See https://github.com/dfinity/motoko/pull/4475/files#r1603467825

Improve the error message for compiled code that contains illegal top-level declarations in the main program.

todo: harmonize with candid_ui.md

Float point literal patterns are accepted by the type checker but not compiled correctly. - executed in the interpreter - non implemented in the compiler(s). We should either rule them...

Bug

See https://play.motoko.org/?tag=3223397402 for an example. The problem is likely in argument inference (missing predication on env.pre)