Juan M Gómez
e43a51fcf3
Implements: [C++] constructor pragma improvement ( fix #21921 ) ( #21916 )
...
* implements: [C++] constructor pragma improvement (fix #21921 )
t
* fix test so it doesnt use echo in globals
* Update compiler/ccgtypes.nim
* Update lib/std/private/dragonbox.nim
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-05-30 21:47:26 +02:00
metagn
20446b437b
make proc not implicitly convert to pointer with a preview define ( #21953 )
...
* test `proc` not converting to `pointer`
* ignore define for now to test
* remove cstring
* fixes, changelog
2023-05-30 21:29:38 +02:00
ringabout
40f88da90b
alternative to #21914 ; split, rsplit now forbid an empty separator ( #21961 )
2023-05-30 13:40:09 +02:00
Andreas Rumpf
244565397d
fixes #21734 ; backport ( #21957 )
2023-05-29 21:31:53 +02:00
Federico Ceratto
ef060e8184
Suggest files and paths modules ( #21950 )
2023-05-29 17:51:31 +02:00
ringabout
108410ac34
fixes fieldDefect loses enum type info in ORC; consistent with VM and refc ( #21954 )
...
fixes fieldDefect loses enum type info in ORC
2023-05-29 14:59:59 +02:00
Simon Krauter
8c55e2999b
Fix documentation typo in endians.nim ( #21949 )
2023-05-28 19:40:37 +02:00
Juan Carlos
b96c501836
Refactor pragma inline ( #21930 )
...
* Add __force_inline support
2023-05-27 20:52:08 +02:00
Juan Carlos
38fdf13982
Clean nimbase ( #21927 )
...
* .
* Clean out nimbase.h
* Clean out nimbase.h
2023-05-27 07:44:15 +02:00
Zoom
656706026b
JS: Add some to-cstring converters for DateTime ( #21912 )
...
Add some to-cstring converters for DateTime
Changelog update
2023-05-26 16:40:53 +02:00
Jake Leahy
a8718d8a9e
Fix const in async regression ( #21898 )
...
* Add test case for a const being used inside an async proc
* Use `typeof` to get the type of the block instead of overloaded templates
This removes the problem with the symbol having different types
I am unsure why I didn't use this in the first place. IIRC I had problems with `typeof` when I first tried to use it in the original implementation
2023-05-25 07:08:36 +02:00
Juan Carlos
b7925bf5c9
Remove GC ( #21904 )
...
* .
* Remove GC v2
2023-05-25 07:06:31 +02:00
Juan Carlos
cb3f6fdc66
Improve times ( #21901 )
...
* .
* Improve times
2023-05-24 17:55:48 +02:00
metagn
4d6be458a0
js -r defines nodejs & program result undeclared if unavailable ( #21849 )
...
* js -r defines nodejs & program result undefined if unavailable
fixes #16985 , fixes #16074
* fix
* add changelog too
* minor word change
2023-05-24 17:55:09 +02:00
Bung
76a98fee65
fix #21251 Compiler SIGSEGV when using SharedTable ( #21876 )
...
fix #21251
2023-05-23 09:39:44 +02:00
Carlo Capocasa
9c2d2773ec
Weekday parse/format (replacement) ( #21857 )
...
* parsing capability for iso week year
* remove outdated test
2023-05-21 20:12:05 +02:00
noah edward hall
4186529ff7
Update threadpool.nim with correct link to typedthreads module ( #21865 )
2023-05-19 21:23:44 +02:00
Andreas Rumpf
1314ea7516
tasks that support return values ( #21859 )
...
tasks.nim: Code cleanups and support expressions that produce a value
2023-05-17 06:02:11 +02:00
ringabout
f22e5067c5
fixes #21847 ; let parseFloat behave like strtod ( #21854 )
2023-05-17 00:21:34 +02:00
Andreas Rumpf
f4a9b258c3
isolation spec update; WIP ( #21843 )
...
* isolation spec update; WIP
* wip
* docs update, WIP
* progress
* Update doc/manual.md
2023-05-14 16:58:28 +02:00
ringabout
ddce555998
improve wasMoved hooks; allow reset to use the overridden wasMoved hook ( #21831 )
...
* improve `wasMoved` hooks
* Because `wasMoved` is lifted
2023-05-12 15:24:14 +02:00
Ecorous
871e4af6ef
add getDataDir to std/appdirs.nim ( #21754 )
...
* add getDataDir to std/appdirs.nim
* reuse `osappdirs.getDataDir`
* Update lib/std/appdirs.nim
---------
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2023-05-12 20:44:29 +08:00
Matt Wilson
ea39c600ab
Add minmax to comparisons ( #21820 )
...
* Add `minmax` to sequtils
This adds a `minmax` proc to complement `min` and `max`; it computes
both results in a single pass for efficiency.
* Update lib/pure/collections/sequtils.nim
* Add minmax note to changelog.
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-05-12 14:02:09 +08:00
metagn
9810b8cf7f
just set CallNodes = nnkCallKinds, follows up #21829 ( #21833 )
...
These sets are now equal
2023-05-11 20:50:01 +02:00
Matt Wilson
802d57c237
Add nnkHiddenCallConv to nnkCallKinds ( #21781 ) ( #21829 )
2023-05-11 20:14:44 +08:00
ringabout
3b9999b93c
adds documentation for =wasMoved and =dup hooks and small fixes ( #21827 )
...
* adds documentation for `=wasMoved` and `=dup` hooks and small fixes
* Update doc/destructors.md
* Update doc/destructors.md
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-05-11 19:38:27 +08:00
metagn
02be212dae
clean up SOME pending/xxx/issue link comments ( #21826 )
...
* clean up SOME pending/xxx/issue link comments
* great
2023-05-11 10:23:52 +02:00
ringabout
055a00a6ef
make reset use the =destroy and wasMoved pair ( #21821 )
...
* make reset use the `=destroy` and `waMoved` pair
* fixes a space
* fixes `shrink` instead
* tiny fix
* fixes vm
* suppress the annotations since it breaks some important packages
2023-05-11 09:02:29 +02:00
Andreas Rumpf
f3a4cc584e
make ORC threadlocal, take two ( #21818 )
...
* ORC: make rootsThreshold thread local [backport]
* fixes the regression
2023-05-10 12:54:43 +02:00
ringabout
deaf684375
fix #9423 followup #17594 : distinct generics now work in VM ( #21816 )
...
* fix #9423 distinct generics now work in vm
* fixes cpp tests
---------
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2023-05-10 11:06:14 +02:00
metagn
5592d1ef2c
fix nimrtl and nimhcr on arc/orc ( #21814 )
...
* fix/workaround for nimrtl and nimhcr on arc/orc
fixes #21803
* try fix clang, debug linux failure
* just make duplicated procs not rtl
* actual fix for duplicated procs
2023-05-09 20:34:39 +02:00
Jordan Gillard
b169dad1e5
Improve and refactor cellseqs_v2 in Nim standard library ( #21796 )
...
* Refactor and optimize cellseqs_v2 in Nim standard library
* Extract resizing logic into a separate 'resize' procedure for better readability and separation of concerns
* Implement realloc for non-threaded cases to improve memory operations efficiency
* Use ',' instead of ';' between parameters in 'add' procedure for consistency with other Nim code
* Respond to Araq's feedback: Refactor resize function to use reallocShared
This commit replaces the usage of allocShared and deallocShared with reallocShared to optimize memory allocation and deallocation while resizing the CellSeq.
2023-05-09 20:33:35 +02:00
Andreas Rumpf
ec3bca8fab
Windows: use __declspec(thread) TLS implementation, it is MUCH faster… ( #21810 )
...
* Windows: use __declspec(thread) TLS implementation, it is MUCH faster than _Thread_local [backport]
* Update lib/nimbase.h
* better fix
2023-05-08 18:52:47 +02:00
ringabout
4533e894ad
adds an experimental mm:atomicArc switch ( #21798 )
2023-05-08 16:25:47 +02:00
Jordan Gillard
71f2e1a502
🚀 Enhancing CellSeq for Better Readability and Maintainability ( #21797 )
...
Refactor and improve readability of CellSeq in system directory
* Use half-open range in the contains procedure for better readability and to avoid potential off-by-one errors
* Extract resizing logic from add procedure into a separate resize procedure for better code readability and separation of concerns
2023-05-07 09:25:25 +02:00
ringabout
4a94f3606e
revert #21799 and #21802 which don't pass the tests ( #21804 )
...
* Revert "ORC: make rootsThreshold thread local [backport] (#21799 )"
This reverts commit b74d49c037 .
* Revert "fixes #21752 [backport] (#21802 )"
This reverts commit d0c62fa169 .
2023-05-07 09:22:42 +02:00
ringabout
b562e1e6d8
implement =dup hook eliminating wasMoved and =copy pairs ( #21586 )
...
* import `=dup` hook eliminating `wasMoved` and `=copy` pairs
* add dup
* add a test for dup
* fixes documentation
* fixes signature
* resolve comments
* fixes tests
* fixes tests
* clean up
2023-05-06 21:36:57 +02:00
Andreas Rumpf
b74d49c037
ORC: make rootsThreshold thread local [backport] ( #21799 )
2023-05-06 17:58:00 +02:00
ringabout
07233ceca0
fixes #21792 ; enable checks for sum, prod, cumsummed and cumsum ( #21793 )
...
* enable checks for sum, prod, cumsummed and cumsum
* fixes #21792
* add test cases
2023-05-05 14:23:38 +02:00
ringabout
62f1ad54ae
build documentation for checksums/md5 and checksums/sha1 ( #21791 )
...
* build documentation for md5 and sha1
* fixes documentation reference
2023-05-04 17:40:37 +02:00
Andreas Rumpf
79ac242c72
fixes #21780 [backport:1.6] ( #21785 )
...
* fixes #21780 [backport:1.6]
* complete patch
2023-05-04 16:42:04 +02:00
metagn
e5d0907a42
line info for strformat + fix issue with typed templates ( #21761 )
...
* line info in strformat
* also fix #20381
2023-05-02 11:28:52 +02:00
ringabout
afc30ca879
fixes #19863 ; move sha1, md5 to nimble packages for 2.0 ( #21702 )
...
* move sha1, md5 to nimble packages
* boot the compiler
* fixes tests
* build the documentation
* fixes docs
* lol, I forgot koch.nim
* add `nimHasChecksums` define
* clone checksums but maybe copying is better
* bump nimble hash
* use ChecksumsStableCommit
* fixes tests
* deprecate them
* fixes paths
* fixes koch
2023-05-02 10:49:17 +02:00
ringabout
aec5a4c474
fixes #20144 ; fixes asyncnet ssl on bsds ( #21763 )
...
fixes asyncnet on bsds
2023-05-01 15:42:53 +02:00
Al Hoang
a593e40ad6
fix build on haiku ( #21752 )
...
* missing maxDescriptors
2023-04-29 09:50:46 +02:00
ringabout
43f29842fc
closes #21745 ( #21746 )
2023-04-28 20:26:21 +08:00
metagn
380dafcc32
fix iterator equality + add test for proc equality + fix sameType ( #21707 )
...
* fix iterator equality + add test also for procs
fixes #21706
* all targets
* and isNil and repr
* separate overloads, fix sameType
* more restricted sameType?
* merge overloads again??
* remove sametype change for now
* fix sameType anyway (CI failure was not related)
---------
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2023-04-23 17:43:59 +08:00
Raynei
48de0d0cf4
Documented path substitution by compiler ( #21662 )
...
Document compiler path substitution (nim-lang#19928)
2023-04-21 15:37:21 +02:00
quantimnot
175a83c2de
refact: Remove assertion effect hiding workaround ( #21472 )
...
refact: Remove asseertion effect hiding workaround
There was a code comment to remove after bootstrapping with `nim >= 1.4.0`.
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2023-04-21 18:06:20 +08:00
Yardanico
418e54452b
Fix json.to for float fields that are not present ( #21695 )
2023-04-21 06:11:30 +02:00