summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix posix.mq_receive compilation with cpp backend (#20710)n5m2022-11-052-24/+41
| | | | | | | | | | | | | | | | | * 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
* revert #20719; relieve `std/assertions` of the `sysFatal` dep (#20743)ringabout2022-11-043-23/+21
| | | | | | | * Revert "make `system/fatal` importable (#20718)" This reverts commit d735c447d35948ef6fda8270d1665cbd66c4636a. * relieve `std/assertions` of the sysFatal dep
* add `effectsOf` to `std/tables` (#20751)ringabout2022-11-041-2/+6
|
* Uri.isIpv6 exported (#20736)Juan Carlos2022-11-031-1/+1
| | | | | * Export Uri.isIpv6 * Export Uri.isIpv6
* Improve dollar IpAddress (#20729)Juan Carlos2022-11-031-10/+14
| | | | | | | | | | | | | | | * 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>
* Export FileMode (#20726)Antonis Geralis2022-11-021-0/+1
|
* fixes ssl static link regression (#20722)ringabout2022-11-011-1/+5
|
* fixes #20526; use `nimPreviewSlimSystem` for documentation build (#20714)ringabout2022-11-0114-4/+35
| | | | | | | * fixes #20526; use `nimPreviewSlimSystem` for `koch docs` * fixes documentation errors * fixes remaning issues
* change `include genode/env` to an import (#20721)ringabout2022-11-012-2/+2
| | | | | | | * change `include genode/env` to an import ref https://github.com/nim-lang/Nim/commit/0b262e9496387d5e8adc0c5f6020b3f3300e8f79#diff-8718bd20d8f61d6638d3d64b19efc31bcd40a6d5be8215b2a1f0b75ed93e8d56 * fixes comments
* refactor os imports into corresponding small modules (#20720)ringabout2022-11-017-7/+9
|
* make `system/fatal` importable (#20719)ringabout2022-11-013-16/+15
|
* Improve dollar (#20672)Juan Carlos2022-10-311-30/+49
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Improve getDataUri (#20670)Juan Carlos2022-10-311-4/+12
| | | | | | | * Improve getDataUri * Restart ci * https://github.com/nim-lang/Nim/pull/20670#issuecomment-1295937393
* Genode: add scheduleCallbacks to asyncdispatch (#20708)ehmry2022-10-315-3/+188
| | | | | | | | | * 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.
* allow deferred close of nil stream (#20706)n5m2022-10-311-4/+14
| | | | | * allow deferred close of nil stream * improve example
* removes channels_builtin when enabling `nimPreviewSlimSystem` (#20713)ringabout2022-10-314-3/+5
|
* put std/threads under the umbrella of nimPreviewSlimSystem (#20711)ringabout2022-10-315-15/+15
| | | | | | | | | | | * put `std/threads` under the umbrella of `nimPreviewSlimSystem` * add changelog * fixes tests * fixes tests again * fixes tests
* follow up #20668; fixes nightlies (#20701)ringabout2022-10-311-4/+5
|
* move threads out of system (#20674)ringabout2022-10-2914-390/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move syslocks first * progress * clean up * go on * clean up * clean up * add imports syslocks * remove documentation * public deallocOsPages * fixes genode * fixes more * fixes boehmGC * cover more cases * fixes cyclic deps * fixes genode * cleanup * unpublic fields * cleanup * clean up
* fix #16264 low(Time) OverflowDefect (#20552)Bung2022-10-291-1/+1
| | | fix #16264 regression(0.18.0 => devel): import times; echo low(Time) gives OverflowDefect
* Fix #20628 for Windows (#20667)Andrey Makarov2022-10-284-26/+29
| | | | | | | * Fix #20628 for Windows * Move isRegular - !isSpecial and onlyRegular - skipSpecial * Forgot to change it in 1 more place
* openssl 3 support no longer opt in + some 1.0 support (#20668)metagn2022-10-272-45/+100
| | | | | | | | | | | | | | | * Revert "Add OpenSSL 3 support (#19814)" This reverts commit 2dcfd732609a2cfa805e5a94cc105399a2f18632. * openssl 3 support no longer opt in + some 1.0 support * hopefully fix * maybe fix * final attempt * actual fix hopefully
* Added openarray[char] overloads to std/unicode (#20648)Jason Beetham2022-10-271-46/+417
| | | | | | | | | | | | | | | | | * Added openarray[char] overloads to std/unicode Call substr instead of index slice inside unicode Added substr overload for openarray for parity with string functionality Made style checker happies and fixed overloads for substr * Added update to changelog [skip ci] * Inline unicode string operations * Moved substr overload to unicode Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* cleanup os related documentation links (#20663)ringabout2022-10-273-27/+12
| | | cleanup documentation links
* fixes #20654 FAMs should not be used in the C++ backend (#20655)Juan M Gómez2022-10-251-1/+3
| | | | | * fixes #20654 FAMs should not be used in the C++ backend * updates the test so it only affects clang
* clean up `std/os` related modules (#20651)ringabout2022-10-256-157/+140
| | | | | | | | | * clean up `std/os` related modules * use `cmpPaths` * reset * cleanup
* Change both code snippets to use the same test URL (#20647)Saint2022-10-251-1/+1
|
* Implement Unix file regularity check (#20448) (#20628)Andrey Makarov2022-10-254-41/+61
| | | | | * Implement Unix file regularity check * update std/dirs also
* Added 'openArray[char]' overloads to 'std/parseutils' (#20527)Jason Beetham2022-10-244-114/+481
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added 'openarray[char]' overloads to 'std/parseutils' * Removed redundant `start` and `last` params from slice using procs * Fixed type for parseIdent overload * fixed one by off with 'substr' * removed missed start parameters for procedures * Added 'openarray[char]' overloads to 'std/parseutils' * Removed redundant `start` and `last` params from slice using procs * Fixed type for parseIdent overload * fixed one by off with 'substr' * removed missed start parameters for procedures * Fixed VM op to work with new 'opcSlice' * Corrected captureBetween's logic to work with openarray * js sys's parsefloat logic now uses openarray Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* Add better error messages to `std/jsonutils` (#20629)Jake Leahy2022-10-241-7/+7
| | | | | * Add better error messages * Add fmt on tuple msg
* fix fwrite prototype (#20644)Jacek Sieka2022-10-242-2/+2
| | | | | | | | | * fix fwrite prototype * Update lib/std/syncio.nim Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* fixes the typical (not a == b) bug in the documentation (#20643)ringabout2022-10-241-2/+2
| | | | | * fixes the typical (not a == b) bug; uses runnableExamples * cannot add runnableExamples
* Fix tuple size check in `std/jsonutils` (#20637)Jake Leahy2022-10-241-2/+12
| | | | | | | | | | | * Add test for tuple being invalid size * Test tuple size before accessing fields * Fix formatting for import * Fix not being able to build from csources_v1 Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Pass json options to hooks (#20638)Jake Leahy2022-10-241-14/+16
| | | | | | | | | | | * Added tests * Fix expected string * Allow hooks to take an optional parameter that is the current options * Add options to hooks for other generic types * Fix doc links
* Remove side-effects from sysFatal with panics on (#20632)Tanguy2022-10-241-16/+17
|
* improve error message when using `toTask` with a call with a return value ↵ringabout2022-10-231-1/+2
| | | | (#20622)
* add `std/appdirs` (#20618)ringabout2022-10-221-0/+73
|
* add typesafe `std/paths`, `std/files`, `std/dirs`, `std/symlinks` (#20582)ringabout2022-10-214-0/+522
| | | | | | | | | | | | * split std/os; add typesafe std/paths * add more files, dirs, paths * add documentation * add testcase * remove tryRemoveFile * clean up * Delete test.nim * apply changes * add `add` and fixes
* Add `safe` parameter to `base64.encodeMime` (#20559)Amjad Ben Hedhili2022-10-211-3/+11
| | | | | | | | | | | | | | | | | | * Improve `encodeMime` signature * `string` to `openArray[char or byte]` * `safe` parameter * Fix * Revert "Fix" This reverts commit a394c505c2ab751621c24fd29b17e97c01251c1f. * Remove encodeMime's openArray overload * Document the `safe` parameter * Add changelog entry
* move procs in os to `appdirs` (#20605)ringabout2022-10-202-141/+150
| | | | | * move procs in os to `appdirs` * Update lib/std/private/osappdirs.nim
* [std/os] split and re-export (#20593)ringabout2022-10-206-2044/+2245
| | | | | | | * [std/os] split and export * move to private modules * fixes docs and tests Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* refactor envvars, oserrors; register vmops (#20592)ringabout2022-10-183-339/+5
| | | | | * refactor envvars, oserrors; register vmops * remove type definitions
* fixes #20572 (#20585)Andreas Rumpf2022-10-171-1/+2
| | | | | * fixes #20572 * added a test case
* [`std/os` clean up] import and export `osseps` (#20580)ringabout2022-10-173-2/+3
| | | import and export osseps
* Documentation only, dom (#20584)Juan Carlos2022-10-171-0/+31
| | | Add docs to dom
* atomicInc global alloc counters (#20571)Antonis Geralis2022-10-162-9/+9
|
* fixes #19162; enable `strictEffects` for v2 (#19380)ringabout2022-10-153-10/+10
| | | | | | | | | | | | | | | | | | | * enable stricteffects * add gcsafe * fix tests * use func * fixes pegs tests * explicitly mark repr related procs with noSideEffect * add nimLegacyEffects * change URL * fixes docopt * add `raises: []` to repr * fixes weave * fixes nimyaml * fixes glob * fixes parsetoml * Apply suggestions from code review * Update testament/important_packages.nim * add legacy:laxEffects
* fixes #3748 (#20563)Andreas Rumpf2022-10-141-2/+5
| | | | | | | | | * fixes #3748 * fix the regression * don't use the new allocator for the SSL wrapper * fixes regression
* follow up #19714; add `memmem` optimizations for `find` on Linux, Macos and ↵ringabout2022-10-131-1/+26
| | | | | | | | | | | | | | | BSDs (#20556) * fixes tests * add memmem optimization for find * fixes * ty[o * fixes `"abc".find("") == 0 doesn't work on macOS Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* Markdown code blocks migration part 7 (#20547)Andrey Makarov2022-10-1217-414/+429
|