summary refs log tree commit diff stats
path: root/lib/std
Commit message (Collapse)AuthorAgeFilesLines
* Small doc improvements for `std/with` (#17556)konsumlamm2021-03-291-3/+4
|
* nnkArglist => nnkArgList + special case stylecheck:error (#17529)Timothee Cour2021-03-271-1/+1
| | | | | * nnkArglist => nnkArgList * special case stylecheck:error
* close #11330 sets uses optimized countSetBits (#17334)flywind2021-03-221-0/+17
| | | | | | | * Update lib/pure/bitops.nim * Update lib/system/sets.nim * Apply suggestions from code review Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* improve jsutils docs (#17421)Timothee Cour2021-03-211-10/+42
| | | | | * improve jsutils docs * address comments
* Use importjs (#17422)konsumlamm2021-03-191-2/+2
|
* follow up #17276 (#17355)flywind2021-03-191-2/+10
| | | | | | | | | | | | | * improve test coverage for isolation * a bit better * rename channels to channels_builtin * follow up #17276 * fix * Update lib/std/private/jsutils.nim
* fix a typo (#17417)flywind2021-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "make system random work in VM" * fix #17380 * attempt to fix bug * fix * better * fix * a bit * fix the leaks * revert * fix * better * follow up #17391 * fix * Update tchannels.nim * Update tests/stdlib/tchannels.nim * Update tchannels.nim * fix a typo
* [std/channels]fix recv leaks(Part One) (#17394)flywind2021-03-171-23/+6
|
* fix #17383: json.%,to and jsonutils.formJson,toJson now works with ↵Timothee Cour2021-03-161-1/+3
| | | | | | | uint|uint64 (#17389) [backport:1.2] * fix #17383: json.%,to and jsonutils.formJson,toJson now works with uint|uint64 * fixup * fix for js
* fix #17380 (#17391)flywind2021-03-161-1/+2
|
* make std/sysrand better (#17360)flywind2021-03-151-19/+29
|
* clarify the behavior of newChan flywind2021-03-121-0/+4
| | | follow up the advice of `timothee`
* New channels implementation for ORC (#17305)flywind2021-03-121-0/+510
| | | | | | | * Update lib/std/channels.nim * Rename tchannel_pthread.nim to tchannels_pthread.nim * Rename tchannel_simple.nim to tchannels_simple.nim Co-authored-by: Mamy Ratsimbazafy <mamy_github@numforge.co>
* fix wrong examples (#17350)flywind2021-03-121-11/+6
| | | | | | | | | * fix wrong examples * Update lib/std/compilesettings.nim * Update lib/std/compilesettings.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* clarify the docs of isolation (#17335)flywind2021-03-111-1/+7
| | | | | | | * improve test coverage for isolation * a bit better * clarify the docs of isolation
* Use `.. warning::` (#17320)konsumlamm2021-03-103-3/+3
|
* add typetraits.OrdinalEnum, enumutils.symbolName (#17281)Timothee Cour2021-03-101-3/+25
|
* fix #17275 (#17276)flywind2021-03-091-0/+4
|
* add setutils.[]= (#17272)Timothee Cour2021-03-081-3/+17
| | | | | * add setutils.[]= * address comments * proc => func (for other symbols too)
* Add module jsfetch (#12531)Juan Carlos2021-03-063-0/+346
| | | | | | | | | | | | * Add module jsfetch for fetch support for JavaScript target https://developer.mozilla.org/docs/Web/API/Fetch_API * Update lib/std/jsheaders.nim * Update lib/std/jsformdata.nim * Update lib/std/jsfetch.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com>
* add warnings to std/isolation (#17270)flywind2021-03-051-0/+3
| | | | | | | | | | | * remove unnecessary when statement * remove outdated codes * reuse jsffi * move js json coverage * add warnings to std/isolation
* Add unsafeIsolate and extract to std/isolation [backport:1.4] (#17263)flywind2021-03-051-0/+8
|
* fix #17264 [backport:1.4] (#17266)flywind2021-03-051-1/+2
| | | | | * fix #17264 * fix vm * fix js and add tests
* follow up #17165 (#17262)flywind2021-03-041-0/+1
|
* Improve Bigint (#17252)Juan Carlos2021-03-041-0/+2
| | | | | | | | | | | | | * https://github.com/timotheecour/Nim/issues/566#issue-799927295 * Update lib/std/jsbigints.nim Co-authored-by: flywind <xzsflywind@gmail.com> * Update lib/std/jsbigints.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com>
* rename prepareStrMutation to prepareMutation (#17235)flywind2021-03-031-1/+1
| | | | | | | * remove unnecessary when statement * remove outdated codes * rename prepareStrMutation to prepareMutation
* fixes #17173 (#17213)Andreas Rumpf2021-03-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | * fixes #17173 * add testcase (#17214) * Apply suggestions from code review * fix for newruntime * Apply suggestions from code review * Update lib/system.nim * Update lib/system.nim * Update lib/system.nim Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
* add overload `add(a: var string, b: openArray[char])` (#15951)Timothee Cour2021-03-011-0/+16
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-281-8/+8
|
* add warnings to std/sysrand (#17191)flywind2021-02-261-0/+4
| | | | | | | | | | | | | | * remove unnecessary when statement * remove outdated codes * add warnings to std/sysrand * Update lib/std/sysrand.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* clean up wrapnilsflywind2021-02-251-1/+0
|
* refs #17114: workaround for arm64 which should segfault but does not (#17178)Timothee Cour2021-02-251-1/+0
| | | | | | | * refs #17114: workaround for arm64 which should segfault but does not * fixup * Update lib/std/wrapnils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* wrapnils: add `??.` which returns an `Option` (#16931)Timothee Cour2021-02-241-50/+49
| | | | | | | * wrapnils: add option-like API with ??., isSome, get * fix test after rebase * cleanups * fix changelog * address comments regarding get vs unsafeGet
* add strbasics.strip (#16280)flywind2021-02-241-0/+97
|
* add enumutils.items for sparse enums, typetraits.SomeSparseEnum (#17080)Timothee Cour2021-02-231-2/+17
| | | | | | | * add enumutils.items for enum with holes * changelog * ref in lib.rst * use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept * address comment: rename back to enum with holes
* add io.readChars overload (simpler, less error prone) (#16044)Timothee Cour2021-02-221-1/+1
| | | | | | | | | | * add simpler to use readChars overload * use new readChars overload * Update lib/wrappers/openssl.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* [JS + docs] improve std/monotimes module (#17103)flywind2021-02-221-42/+44
|
* use single backtick (#17141)flywind2021-02-216-33/+33
|
* enable bsd for tsetutils; improve setutils API (#17098)Timothee Cour2021-02-201-5/+8
|
* Add setutils.complement, setutils.fullSet (#17066)Jason Beetham2021-02-181-1/+24
|
* fix #17078 csources generation (#17079)Timothee Cour2021-02-181-5/+3
| | | | | * fix #17078 csources generation * fixup
* add -d:nimStrictMode in CI to keep code from regressing; fixes ↵Timothee Cour2021-02-172-2/+4
| | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
* make system random work in VM (#17059)flywind2021-02-171-4/+5
| | | | * make system random work in VM
* document `since` (#17048)Timothee Cour2021-02-161-1/+15
| | | | * document `since` * address comment
* array literals uses typed arrays; fix a jsgen bug (#16850)flywind2021-02-151-0/+8
| | | | | | | * array litterals uses typed arrays * Update compiler/jsgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Small update for packedsets (#17037)konsumlamm2021-02-151-12/+11
| | | | Rename PTrunk to Trunk Use ord instead of cast[int]
* compilesettings: add libpath (#16997)Timothee Cour2021-02-121-0/+1
| | | | | | | | | | | * compilesettings: add libpath * add test * changelog * fixup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* add system random to stdlib: std/sysrand (#16459)flywind2021-02-112-0/+314
|
* std/wrapnils does not use experimental:dotOperators anymore (#16996)Timothee Cour2021-02-101-12/+9
|
* Improve documentation for std/sha1 (#16970)konsumlamm2021-02-091-35/+50
|