ringabout
2d6c200284
fixes documentation regression ( #20925 )
...
follow up https://github.com/nim-lang/Nim/pull/17004
2022-11-26 16:35:30 +01:00
ringabout
521720f30f
fixes #20873 ; rework vcc with arc/orc ( #20913 )
...
* fixes #20873 ; arc/orc is broken for vcc
* fixes signature
2022-11-25 08:49:46 +01:00
ringabout
b7d96cd3f5
fixes broken importc for vcc [backport] ( #20909 )
...
fixes broken imports for vcc
2022-11-24 20:16:51 +01:00
ringabout
ef29987781
An unnamed break in a block now gives an UnnamedBreak warning ( #20901 )
...
* unnamed break in the block now gives an error
* bootstrap
* fixes
* more fixes
* break with label
* label again
* one moee
* Delete test5.txt
* it now gives a UnnamedBreak warning
* change the URL of bump back to the original one
2022-11-24 07:31:47 +01:00
ringabout
d3eb1383d1
alloc uses atomic operations only when necessary ( #20899 )
2022-11-23 07:20:35 +01:00
ringabout
09b7f90475
move system/atomics out of system; std/atomics should be preferred ( #20875 )
...
* move `system/atomics` out of system; `std/atomics` should be preferred
* add deprecation message
* fixes
* fixes
* fixes
* fixes more tests
2022-11-22 20:39:30 +01:00
ringabout
0448f30fd9
fixes #20026 ; marks system procs which can raise defects ( #20864 )
...
* marks system procs which can raise defects
* add tests
* add more systemRaisesDefect
* add comment
2022-11-22 20:07:00 +01:00
metagn
27d9c67352
correct Ptr field name for RTL_CONDITION_VARIABLE? ( #20896 )
...
correct field name for RTL_CONDITION_VARIABLE?
ref #20895
2022-11-22 15:54:15 +01:00
Tanguy
19cc494b80
echo: only lock when threading is enabled ( #20890 )
2022-11-21 14:56:54 -05:00
ringabout
bce1f35f87
fixes strict effects ( #20885 )
...
* fixes strict effects
* remove nosideeffect
* Update lib/system/comparisons.nim
2022-11-21 14:55:13 -05:00
Ico Doornekamp
79b25a911b
channel send() condition variable lock ordering ( #20879 )
2022-11-21 13:11:28 +01:00
rockcavera
fe43f751eb
fix #20835 ( #20872 )
...
Update syncio.nim
2022-11-18 07:41:46 +01:00
ringabout
68f6926348
remove useless defines ( #20867 )
2022-11-17 23:04:43 +08:00
ringabout
cdbf5b4699
fixes a severe bug of testament ( #20832 )
...
* test azure
* use exit 1
* try again
* use useSysAssert
* disable i386
* use refc for tlsEmulation on i386
* use refc
* disable i386
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2022-11-17 09:38:07 +08:00
ringabout
e03a178bff
rename std/threads to std/typedthreads ( #20850 )
...
* rename `std/threads` to `std/oldthreads`
* fixes tests
* rename to `typedthreads`
* changelog
2022-11-16 16:35:20 +01:00
ringabout
06cd15663d
fixes ptr to cstring warnings[backport] ( #20848 )
...
* fix =#13790 ptr char (+friends) should not implicitly convert to cstring
* Apply suggestions from code review
* first round; compiles on windows
* nimPreviewSlimSystem
* conversion is unsafe, cast needed
* fixes more tests
* fixes asyncnet
* another try another error
* last one
* true
* one more
* why bugs didn't show at once
* add `nimPreviewCstringConversion` switch
* typo
* fixes ptr to cstring warnings[backport]
* add fixes
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-11-16 10:22:51 +01:00
Matt Haggard
1daf43fb14
Allow users to set log flushing rules ( #20817 )
...
* Add flushThreshold to std/logging loggers
* Remove duplicate field
* Add -d:nimFlushAllLogs for changing default flush behavior globally
* Add changelog entry for log flushing change
* Flush all log levels by default in Nim v2
2022-11-14 16:00:45 +01:00
Andrey Makarov
3eef0491a8
fix a few "broken link" warnings ( #20837 )
2022-11-14 15:43:29 +08:00
ringabout
73680cef95
[minor] documentation improvement ( #20825 )
...
[minor] documentation improvament
2022-11-12 21:05:57 +01:00
Derek 呆
6007a40eac
support UncheckedArray[T] in repr_v2.nim ( #20816 )
2022-11-11 19:31:59 +01:00
Vindaar
cc2b0f0172
[sugar] handle HiddenDeref in capture, error at CT if unsupported nnk ( #20680 )
...
* [sugar] handle HiddenDeref in capture, error at CT if unsupported nnk
Instead of running into trouble of the `.strVal` access failing, it's
better to error at CT.
* [tests] remove unnecessary import in test case
* improve ident extraction & extend test cases
* [tests] improve tests for `capture` of different types & act. check
2022-11-10 15:42:53 -05:00
ringabout
2848cdb18a
fixes #13781 ; fixes #14901 ; add acyclic pragmas to FlowVar ( #20804 )
...
* add acyclic pragmas to FlowVar
* add testcases
2022-11-10 16:54:39 +08:00
ringabout
f11b7debf7
remove name field for ARC ( #20797 )
...
* remove name field for ARC
* mistake
* improvement
* better
* typo
* fixes a pre-existing bug
2022-11-09 16:22:55 +01:00
Jake Leahy
1826ff7d84
Use same defaults as JS for fetch options ( #20783 )
...
* Use same defaults as JS for fetch options
* Add changelog entry
2022-11-09 12:22:18 +01:00
ringabout
d8d08324d3
clean up system/arc ( #20792 )
2022-11-09 06:13:52 +01:00
ringabout
7d15fdd375
implements display based subtype checking (6.4x faster without threads; 2.8x faster with threads) ( #20781 )
...
* WIP: fast 'of' operator based on the literature
* implement display based subtype checking
Co-authored-by: Araq <rumpf_a@web.de >
2022-11-08 13:08:01 +01:00
ringabout
ca3b6cba5d
fixes nightlies regression; patches for freebsd ( #20786 )
2022-11-08 10:13:29 +01:00
ringabout
66b0c843c3
fixes #20694 ; the exit function now takes cint type ( #20775 )
2022-11-07 12:17:52 +01:00
Ico Doornekamp
0b4f502393
Export trace member of exception type to allow custom stack trace entries ( #20772 )
...
Added insertStackTraceEntry() proc to allow custom stack trace entries
2022-11-07 12:17:00 +01:00
ringabout
fc8bfd781a
fixes pre-existing quit documentation regression [backport] ( #20763 )
...
fixes pre-existing `quit` documentation regression
2022-11-06 11:50:10 +01:00
ringabout
92e525d2a6
add effectsOf to map in the std/sets module ( #20760 )
2022-11-05 12:05:02 +01:00
ringabout
d5cc2085ea
ref #20694 ; quit value gets saturated to ranges ( #20753 )
...
* quit value gets saturated to ranges
* add documentation
* minimal changes
* refactor
* small fix
* add documentation
* fixes
* Update lib/system.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
2022-11-05 10:58:57 +01:00
n5m
51bef9b4a8
fix posix.mq_receive compilation with cpp backend ( #20710 )
...
* fix posix.mq_receive compilation with cpp backend
* only enable runnableExample on posix
* linux, not posix
* simplify example
* add test
* mqueue.h does not exist on MacOS
* place test case in own block
* drop runnableExamples
2022-11-05 06:31:19 +01:00
ringabout
12a20b9fb6
revert #20719 ; relieve std/assertions of the sysFatal dep ( #20743 )
...
* Revert "make `system/fatal` importable (#20718 )"
This reverts commit d735c447d3 .
* relieve `std/assertions` of the sysFatal dep
2022-11-04 09:53:19 +01:00
ringabout
8fb172c7a6
add effectsOf to std/tables ( #20751 )
2022-11-04 16:25:40 +08:00
Juan Carlos
4503fa5422
Uri.isIpv6 exported ( #20736 )
...
* Export Uri.isIpv6
* Export Uri.isIpv6
2022-11-03 09:48:51 +01:00
Juan Carlos
f562a5c55c
Improve dollar IpAddress ( #20729 )
...
* Improve dollar
* Improve dollar
* Simplify, remove 1 if in for loop
* ci
* Update lib/pure/net.nim
* Update lib/pure/net.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-11-03 09:48:25 +01:00
Antonis Geralis
606aa45ec6
Export FileMode ( #20726 )
2022-11-02 10:52:15 +01:00
ringabout
59083e2e48
fixes ssl static link regression ( #20722 )
2022-11-01 13:34:58 +01:00
ringabout
75ece74bdd
fixes #20526 ; use nimPreviewSlimSystem for documentation build ( #20714 )
...
* fixes #20526 ; use `nimPreviewSlimSystem` for `koch docs`
* fixes documentation errors
* fixes remaning issues
2022-11-01 12:53:14 +01:00
ringabout
07cf4486bc
change include genode/env to an import ( #20721 )
...
* change `include genode/env` to an import
ref 0b262e9496 (diff-8718bd20d8f61d6638d3d64b19efc31bcd40a6d5be8215b2a1f0b75ed93e8d56)
* fixes comments
2022-11-01 18:18:06 +08:00
ringabout
6166b796ba
refactor os imports into corresponding small modules ( #20720 )
2022-11-01 10:18:04 +01:00
ringabout
d735c447d3
make system/fatal importable ( #20719 )
2022-11-01 07:56:32 +01:00
Juan Carlos
2f6e06d224
Improve dollar ( #20672 )
...
* Improve dollar for uri
* Refactor
* .
* .
* verde
* optimize
* https://github.com/nim-lang/Nim/pull/20672#issuecomment-1295440246 [skip ci]
* https://github.com/nim-lang/Nim/pull/20670#issuecomment-1295937393
* ci
* Update lib/pure/uri.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-10-31 15:37:09 -04:00
Juan Carlos
229f146280
Improve getDataUri ( #20670 )
...
* Improve getDataUri
* Restart ci
* https://github.com/nim-lang/Nim/pull/20670#issuecomment-1295937393
2022-10-31 15:34:17 -04:00
ehmry
0b262e9496
Genode: add scheduleCallbacks to asyncdispatch ( #20708 )
...
* Genode: add native signal handler
* Genode: add scheduleCallbacks to asyncdispatch
This resolves some awkwardness where an RPC server may or may not
use callSoon while dispatching RPC but without scheduling timers
or I/O.
2022-10-31 19:24:57 +01:00
n5m
52166e3546
allow deferred close of nil stream ( #20706 )
...
* allow deferred close of nil stream
* improve example
2022-10-31 11:20:06 +01:00
ringabout
0a1f204f0f
removes channels_builtin when enabling nimPreviewSlimSystem ( #20713 )
2022-10-31 16:56:05 +08:00
ringabout
e1ddd2d524
put std/threads under the umbrella of nimPreviewSlimSystem ( #20711 )
...
* put `std/threads` under the umbrella of `nimPreviewSlimSystem`
* add changelog
* fixes tests
* fixes tests again
* fixes tests
2022-10-31 06:36:50 +01:00
ringabout
fb2ec8d192
follow up #20668 ; fixes nightlies ( #20701 )
2022-10-31 06:33:07 +01:00