I am having issues updating through choosenim:
> choosenim devel
Switched to Nim #devel
> choosenim update devel
Updating devel
Downloading Nim devel from GitHub
[##################################################] 100.0% 0kb/s
Extracting devel.tar.gz
Building Nim #devel
Warning: Building from latest C sources. They may not be compatible with the Nim version you have chosen to install.
Downloading Nim C sources from GitHub
[##################################################] 100.0% 0kb/s
Extracting master.tar.gz
Building C sources
Building koch
Exception: Execution failed with exit code 1
... Command: ./bin/nim c koch
... Output: Hint: used config file '/root/.choosenim/toolchains/nim-#devel/config/nim.cfg' [Conf]
... Hint: used config file 'koch.nim.cfg' [Conf]
... Hint: used config file '/root/.choosenim/toolchains/nim-#devel/config/config.nims' [Conf]
... /root/.choosenim/toolchains/nim-#devel/lib/system.nim(27, 48) Warning: unknown magic 'ZeroDefault' might crash the compiler [UnknownMagic]
... /root/.choosenim/toolchains/nim-#devel/lib/system.nim(355, 44) Error: invalid pragma: nodestroy
Cleaning failed build
Tip: 9 messages have been suppressed, use --verbose to show them.
Error: Build failed
I have a different issue with choosenim, it's downloading the x32 version again:
C:\>choosenim update devel
Updating devel
Info: Using the 'GITHUB_TOKEN' environment variable for GitHub API Token.
Downloading Nim latest-devel from GitHub
[##################################################] 100.0% 0kb/s
Extracting windows_x32.zip
Setting up git repository
Building Nim #devel
Compiler: Already built
Updated to #devel
Switched to Nim #devel
C:\>nim --version
Nim Compiler Version 1.9.1 [Windows: i386]
Compiled at 2022-12-21
Copyright (c) 2006-2022 by Andreas Rumpf
active boot switches: -d:release
Congrats to the RC! The migration of my (small) projects went very smooth.
Small suggestion for all future "new version" blog posts:
Suggestions for the current blog post:
HN mentioned this.
It’s night to see from this forum thread [1], which is summarized here [2], that some simplification was implemented.
Hope more simplification in syntax get implemented before final 2.0 release.
[1] https://forum.nim-lang.org/t/9132
[2] https://gist.github.com/j-james/08cd36b7475d461d6291416381ce98ad
when (NimMajor, NimMinor) >= (1, 9):
# New stuff
Then you can put anything for devel + 2.0 in that blockChangelog entries are usually added by people who make the changes and sometimes these people don't know much English. It's fine to rewrite these entries. I have no idea what the contentLength part is trying to say.
From my understanding the nimPreviewDotLikeOps feature is being given up on for some reason. No idea if this was a behind the scenes discussion.
No idea if this was a behind the scenes discussion.
There was a tiny open discussion about it but I cannot dig it up. It broke important code and at the same time didn't deliver its promised advantages.
It's not an echo "Hello, World!" however. Nim seems to have improved in binary size since that blog post. Is it due to arc/orc and panics:on? Or other changes also helped?
Since the Nim compiler has defaulted to ORC, the binary has decreased a lot. On my Linux, it drops from 84kb (--mm:refc -f -d:danger) to 50kb (-f -d:danger).