From eee8c5f5fe4489d9b2888d769fda61db6132e3f2 Mon Sep 17 00:00:00 2001 From: Emmanuel T Odeke Date: Fri, 28 Feb 2025 14:51:52 +0200 Subject: [PATCH 1/2] Update go-gno-compatibility.md: document that imaginary numbers are unsupported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Imaginary values are not supported in Gno. Found by fuzzing and compatibility checks between Go and Gno ```go package main const ( Nj = 0i ) ``` --- docs/reference/go-gno-compatibility.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/go-gno-compatibility.md b/docs/reference/go-gno-compatibility.md index 87c734d935f..c7756f2d84a 100644 --- a/docs/reference/go-gno-compatibility.md +++ b/docs/reference/go-gno-compatibility.md @@ -61,6 +61,7 @@ rune := rune('a') | `func (T1...) T2...` | full | full (needs more tests) | | `*T` (pointers) | full | full\* | | `chan T` (channels) | missing (after launch) | missing (after launch) | +| `imag` | unsupported | unsupported | **\*:** depends on `T`/`T1`/`T2` From ef2e46f042f3c5e58ecaa9be69f2a8622ee08807 Mon Sep 17 00:00:00 2001 From: Emmanuel T Odeke Date: Fri, 28 Feb 2025 22:31:03 +0200 Subject: [PATCH 2/2] Address review feedback from Morgan --- docs/reference/go-gno-compatibility.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/reference/go-gno-compatibility.md b/docs/reference/go-gno-compatibility.md index c7756f2d84a..a6c7be1e3c9 100644 --- a/docs/reference/go-gno-compatibility.md +++ b/docs/reference/go-gno-compatibility.md @@ -61,7 +61,6 @@ rune := rune('a') | `func (T1...) T2...` | full | full (needs more tests) | | `*T` (pointers) | full | full\* | | `chan T` (channels) | missing (after launch) | missing (after launch) | -| `imag` | unsupported | unsupported | **\*:** depends on `T`/`T1`/`T2` @@ -273,7 +272,7 @@ Legend: [^1]: `builtin` is a "fake" package that exists to document the behaviour of some builtin functions. The "fake" package does not currently exist in Gno, but [all functions up to Go 1.17 exist](https://pkg.go.dev/builtin@go1.17), - except for those relating to complex or channel types. + except for those relating to complex (real or imag) or channel types. [^2]: `crypto/sha1` and `crypto/md5` implement "deprecated" hashing algorithms, widely considered unsafe for cryptographic hashing. Decision on whether to include these as part of the official standard libraries is still