cosmetic fixes for the 1.4 changelog [ci skip]
(cherry picked from commit 6b8baab)
(cherry picked from commit a43202e)
document that Nim executable must be included (#15611)
(cherry picked from commit b16b2eb)
Fix FreeBSD build failures (#15613)
The FreeBSD is/was failing, due to a conflict with installing Git. Git is guaranteed to be in the base image, so this removes that package from the package list. It also reverts back to the built-in `packages` tag since it's officially supported. Should the build fail in the future, the best place to go is the #sr.ht channel on freenode. (cherry picked from commit ba2a477)
* add test for #15584 * Rename userlocks.nim to trlocks.nim * add bug comment * improve cmd * reference bugfix, not bug * add test that runs rlocks * disallow joining joining with other test cases (e.g., a test case that invokes `RLock.initRLock()`) may cause this test to compile, when the goal is to test if these lines can be compiled in isolation (cherry picked from commit 78cbb52)
Tables, use sink val arguments more actively (#15625)
(cherry picked from commit 04f8fcf)
arc allocation method aligned (#15588)
* progress * fix typo (cherry picked from commit 833035b)
(cherry picked from commit 0f4b1ed)
* trigger valgrind failure on memory leak * remove non-malloc tests * remove ORC test is redundant because we already have an ARC test * only run valgrind tests on 64-bit Linux * disable freebsd and openbsd * Remove tleak_refc As to not test implementation details (or bug) * Fix test failures by removing redundant test Since this tests/shoulfail/tvalgrind.nim was specified here to fail this test itself fails since it will be skipped on non-linux CI * Remove test, reason detailed in the previous commit * Remove redundant disables * Revert removing disables * Add and use valgrind: leaks * Fix Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: n5m (cherry picked from commit 436e1fa)
Fix commentOffsetA for doc comments (#15643)
(cherry picked from commit f20e485)
Remove bit about opening files not raising (#15654)
Resolved #473 I am removing this bit because this advice to not throw on recoverable-from cases like a file failing to open is actually not respected by Nim standard library. `readFile` and `readLines` both throw and exceptions must be used as a method of control flow for the recovery from that. There are alternatives, like opening a file handle instead of using these helpers, but that's less convenient than these helper methods for cases where you really want to just slurp up a file to memory and use a fallback value if it doesn't exist or is for whatever reason not readable. (cherry picked from commit 725c7ca)
Fix compilation error for regions and memory profiling (#15641) (#15656)
Co-authored-by: Recruit_main707 <Recruit_main707@users.noreply.github.com> (cherry picked from commit ed0f8a4)
$(uint|uint64) now works with nimscript (#15644)
* $(uint|uint64) now works with nimscript * fixup (cherry picked from commit 3cbe8d2)
* add documentation that discardable pragma cannot use on template * Update doc/manual.rst Co-authored-by: Euan <euantorano@users.noreply.github.com> * Update doc/manual.rst Co-authored-by: Euan <euantorano@users.noreply.github.com> Co-authored-by: Euan <euantorano@users.noreply.github.com> (cherry picked from commit b2f51e2)
expect valgrind test failure on memory leak (#15669)
* expect valgrind test failure on memory leak * alloc 1 instead of 0 (cherry picked from commit 8da0e01)
[backport: 1.4] Better linebreaks (#15658)
(cherry picked from commit d8a6b0b)
fixes view types for sizeof() and --gc:orc (#15680)
(cherry picked from commit 64016dd)
Try to fix CI failures (#15701)
* Use cligens release version * Rework important_packages main loop * Fix * Fix * Create pkgs dir * Don't use nimble develop since it doesn't work for binary only packages, and always install head * Use git to get the latest release/tag instead * Tackle the root cause * Reduce diff * Cleanup (cherry picked from commit e18fc69)
* fix in the net.`$` to print zeros that are not in the compressed group * Update lib/pure/net.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update net.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> (cherry picked from commit 7252a50)
* ReSync with Devel * Fix prelude for JS target * ReSync devel * Fix prelude for JS target (cherry picked from commit e284445)
(cherry picked from commit d22ab0f)
(cherry picked from commit bf894ad)
Add support to the latest LibreSSL version (#15715) [backport:1.2] [b…
…ackport:1.4] (cherry picked from commit b2740f5)
Fixed iteration limit hit from execproc (#15723) [backport:1.2] [back…
…port:1.4] When calling procs from Nim in Nimscript you could hit the VM iteration limit even though the code is functioning properly. This resolves that by making the iteration limit reset eachtime you call a proc. (cherry picked from commit a876179)
add criterion to important packages (#15604)
* add criterion to important packages * use a special nimscript for criterion tests * fix criterion speed differently Co-authored-by: Andreas Rumpf <rumpf_a@web.de> (cherry picked from commit ea6c282)
(cherry picked from commit ae8eb1e)
Documentation only iup (#15732)
* ReSync with Devel * ReSync * Add Examples for IUP, based from official doc (cherry picked from commit 3a69f14)
[backport] fix #15595 procvar == works in VM (#15724)
(cherry picked from commit 3bdc000)
Document implicit return values from procedures (#15738)
(cherry picked from commit 2595544)
add tests for Testament "reject" action (#15709)
* add test for reject action * highlight that a compilation failure is expected * add the converse test for action=reject * add trailing newline * fix wording (cherry picked from commit 066f3eb)
fixes #10456,#12928 issues when chaining templates to sortedByIt (#15734
) * update c_malloc's to csize_t fix for broken --os:ios * I'm an idiot sorry * Create talgorithm.nim * workaround for #10456 I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is. * working test, use typeof rather than auto (cherry picked from commit 218acfe)
(cherry picked from commit f8cac6b)
Make newObjUninit proc to adhere to its name (#15764)
Co-authored-by: b3liever <b3liever@yandex.com> (cherry picked from commit 94e2b9e)