I know it has been posted in the Nimony progress thread already, but in case anybody out there didn't notice...
Nimony 0.2.0 is out: https://nim-lang.github.io/nimony-website/version0_2.html
Why? import std / syncio
var my_list : seq[int] = @[1, 2, 3] my_list.add 4 echo len(my_list) echo my_list
$nimony -r c hello.nim hello.nim(7, 1) Trace: instantiation from here lib/std/syncio.nim(117, 5) Error: Type mismatch at [position] write stdout, my_list [2] expected: string but got: seq (declared in lib/std/syncio.nim(37, 1)) [2] expected: bool but got: seq (declared in lib/std/syncio.nim(40, 1)) [2] expected: int64 but got: seq (declared in lib/std/syncio.nim(44, 1)) [2] expected: uint64 but got: seq (declared in lib/std/syncio.nim(47, 1)) [2] seq does not match constraint T (declared in lib/std/syncio.nim(50, 1)) [2] expected: char but got: seq (declared in lib/std/syncio.nim(53, 1)) [2] expected: float64 but got: seq (declared in lib/std/syncio.nim(56, 1)) make: /home/eldenring/nimony/bin/nimsem m --isMain nimcache/helec270z1.p.nif FAILURE: /home/eldenring/nimony/bin/nifmake --base:'' -j run nimcache/helec270z1.build.nif
Congratulations for the first beta release of Nimony! Cloned the repository and compiled using Nim 2.2.6 Looks like the compilation succeeded on my Ubuntu 24.04.3. I struggled a bit to find the correct compilation command. nimony c -r file.nim and nimony -r c file.nim commands work but:
nimony
too few command line arguments
# Why is it not the help printing? nimony --help gives the -r or --run option like in Nim. It is not a command. Therefore:
nimony -r test_nimony.nim
command expected More surprisingly:
nimony c test_nimony.nim # Contains a hello_world Outputs nothing, exit code is 0 (success), no binary seems to have been produced. No a.out, no test_nimony. The test_nimony.nim file is unchanged. Where are the binaries in this case ? I tried to build nimony and it was sucdcessful. But on compiling a program, it failed.
E:\Work\IFRS\CALI\Sep_25\WorkSpace>C:\Users\Himanshi\nimony\bin\nimony c IFRS_2025_CSM_Main.nim
C:\Users\Himanshi\nimony\src\nimony\nimsem.nim(211) nimsem
C:\Users\Himanshi\nimony\src\nimony\nimsem.nim(192) handleCmdLine
C:\Users\Himanshi\nimony\src\nimony\nimsem.nim(59) singleModule
C:\Users\Himanshi\nimony\src\nimony\sem.nim(5389) semcheck
C:\Users\Himanshi\nimony\src\nimony\sem.nim(5327) semcheckCore
C:\Users\Himanshi\nimony\src\nimony\sem.nim(655) semStmt
C:\Users\Himanshi\nimony\src\nimony\sem.nim(4757) semExpr
C:\Users\Himanshi\nimony\src\nimony\semdecls.nim(791) semProc
C:\Users\Himanshi\nimony\src\nimony\semdecls.nim(635) semProcImpl
C:\Users\Himanshi\nimony\src\nimony\semdecls.nim(10) semProcBody
C:\Users\Himanshi\nimony\src\nimony\sem.nim(655) semStmt
C:\Users\Himanshi\nimony\src\nimony\sem.nim(4781) semExpr
C:\Users\Himanshi\nimony\src\nimony\semdecls.nim(163) semLocal
C:\Users\Himanshi\nimony\src\nimony\semdecls.nim(107) semLocal
C:\Users\Himanshi\nimony\src\nimony\semdecls.nim(66) semLocalValue
C:\Users\Himanshi\nimony\src\nimony\sem.nim(4913) semExpr
C:\Users\Himanshi\nimony\src\nimony\semcall.nim(1006) semCall
C:\Users\Himanshi\nimony\src\nimony\semcall.nim(799) resolveOverloads
C:\Users\Himanshi\nimony\src\nimony\semcall.nim(328) buildCallSource
C:\Users\Himanshi\.choosenim\toolchains\nim-2.2.6\lib\std\assertions.nim(41) failedAssertImpl
C:\Users\Himanshi\.choosenim\toolchains\nim-2.2.6\lib\std\assertions.nim(34) raiseAssert
Error: unhandled exception: C:\Users\Himanshi\nimony\src\nimony\semcall.nim(328, 5) `cs.args.len >= 1` [AssertionDefect]
make: C:\Users\Himanshi\nimony\bin\nimsem.exe m --isMain nimcache\IFR23towf.p.nif
FAILURE: C:\Users\Himanshi\nimony\bin\nifmake.exe --base:"" -j run nimcache\IFR23towf.build.nif How do I fix this?