inv2004
inv2004
```nim import jsony echo {"aaa": 100}.toJson() # {"aaa":100} echo {100: "aaa"}.toJson() # [[100,"aaa"]] ``` Probably it is ok, but a bit inconsistent
Code: ```nim import jsony, tables let t = {100: "aaa"}.toTable echo t.toJson ``` Actual: ```json {100:"aaa"} ``` ^^^ json key uses quotes Expected: ```json {"100":"aaa"} ```
```nim echo plot(@[0.0], width=20) echo plot(@[0.0, 0.0], width=20) ``` Error: ``` /home/u/.nimble/pkgs/asciigraph-0.1.2/asciigraph.nim(91) plot /home/u/.choosenim/toolchains/nim-1.6.10/lib/system/fatal.nim(54) sysFatal ```
procfs collection in loop causes memory-leak. Probably reason of the memory leak: https://github.com/nim-lang/Nim/issues/22398
I was trying to use micro the lsp, it works fine, except that I cannot find any bind or command like ctrl-o in vim: go back Could you please let...
```nim when isMainModule: import futhark importc: path: "/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include" rename "u_int", "u_intt" "sys/sysctl.h" echo "a" ``` 0.13.2: `a` 0.13.3: ``` /Users/u/ttop/src/ttop/procfs.nim(4, 8) [DuplicateModuleImport] SIGSEGV: Illegal storage access. (Attempt to read from...
```nim Nim Compiler Version 2.0.8 [Linux: amd64] ``` ```nim /tmp/nimble_69489/githubcom_nimgramtltypes_#v0.2.0/writer/utils.nim(17, 13) Error: redefinition of 'cnt'; previous declaration here: /tmp/nimble_69489/githubcom_nimgramtltypes_#v0.2.0/writer/utils.nim(17, 13) stack trace: (most recent call last) /tmp/nimblecache-54174684/nimscriptapi_2555986624.nim(224, 29) /tmp/nimble_69489/githubcom_nimgramtltypes_#v0.2.0/tltypes.nimble(20, 13)...