summary refs log tree commit diff stats
path: root/lib/std
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* use typeof instead type (#16962)flywind2021-02-082-6/+6
|
* clarify docs for wrapnils (#16929)Timothee Cour2021-02-041-2/+7
| | | Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* link compile-time options together in docs (#16879)n5m2021-02-021-2/+14
| | | | | | | | | | | | | | | | | | | | | * link similar compiler option proc together * fixup links * fix formatting and links * example formatting * drop declared * link to compilesettings * only link define pragmas once * drop another declared * backlink to compileOptions from compilesettings * remove newline
* JS: make hash float support IE/Safari (#16872)flywind2021-02-011-0/+4
|
* refactor hash in JS backend (#16863)flywind2021-01-301-0/+8
|
* BigInt runnableExamples: octal, binary, hex constructor (#16868)Juan Carlos2021-01-291-11/+19
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add lost functions (#16843)flywind2021-01-291-0/+8
|
* remove conditionals on nimHasUserErrors, nimNoNilSeqs2, nimNoNilSeqs (#16861)Timothee Cour2021-01-291-9/+3
| | | | | | | | | * cleanup docs for type(nil) | type(nil); simplify nimHasUserErrors * simplify nimNoNilSeqs2 * simplify nimNoNilSeqs * fixup
* improve code in categories.nim; add std/private/gitutils; fix flakyness in ↵Timothee Cour2021-01-291-0/+40
| | | | | | nim CI (cloneDependency in deps.nim) (#16856) * improve code in categories.nim; gitutils; fix flakyness in deps.nim * cleanups
* Small changes to std/sums (#16797)konsumlamm2021-01-251-13/+29
|
* make oids module better (#16704)flywind2021-01-251-0/+7
| | | | | | | * make oids modules better * Update lib/pure/oids.nim * fix
* Add std/setutils to lib.rst (#16791)konsumlamm2021-01-221-5/+10
| | | | | | | | | * Add std/setutils to lib.rst Improve doc comments for setutils * Adhere to the RST spec Use no UFCS in toSet
* perpare for more compact bit operations in JS (#16728)flywind2021-01-191-0/+12
|
* jsonutils.jsonTo: support opt (#16739)Timothee Cour2021-01-171-2/+2
|
* Improve documentation for packedsets (#16715)konsumlamm2021-01-161-137/+135
| | | | | | | | | * Improve documentation for packedsets Add more runnableExamples Add deprecated pragma to intsets Replace intsets with packedsets in lib.rst * Apply suggested changes
* js: improve tests + some docs (#16727)Timothee Cour2021-01-161-2/+12
| | | | | | | | | | | * js: improve tests * _ * _ * _ * fixup
* Add js BigInts (#16409)Juan Carlos2021-01-141-0/+193
| | | | | | | | | | | | | | | | | | | | | | | | | * Add BigInts * Renames tos plurals * Improve Stringifications * Update changelog.md Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * RunnableExamplerize * discard the discardable pragma * Several improvements from peer reviews, more docs * More doc, more test * More doc, more test * Better error message 'Error: usage of low is an {.error.} defined at jsbigints.nim' instead of just 'type mismatch JsBigInt' * is an overload, rename * proc to scare kids away * Update lib/js/jsbigints.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * https://github.com/nim-lang/Nim/pull/16409#discussion_r554365041 Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* refactor cmpNimIdentifier (#16611)flywind2021-01-131-0/+4
| | | | | | | | | * refactor cmpNimIdentifier * Apply suggestions from code review Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* Implements streams for sockets (#15729)PMunch2021-01-071-0/+181
|
* Jsonutils: pass opt for object in object (#16615)inv20042021-01-071-1/+1
| | | | | * jsonutils: fromJson forward opt param fix * jsonutils: object in object test + fix: opt pass
* jsonutils: fromJson forward opt param fix (#16612)inv20042021-01-061-4/+4
|
* make cstrutils work in VM (#16590)flywind2021-01-051-5/+24
| | | | | * make cstrutils work in VM * more
* refactor cmpIgnoreStyle and cmpIgnoreCase (#16399)flywind2020-12-311-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * init * support strutils * more * better * Call len once per string/cstring * Change var to let * Compare ternary on first char * More appropriate param name * fix * better * one test * impl * more efficient * minor Co-authored-by: Clyybber <darkmine956@gmail.com>
* move asciitables to std/private/ (#16498)flywind2020-12-291-0/+83
| | | | | * move asciitables * minor
* use hexchar in stdlib (#16290)flywind2020-12-171-6/+19
|
* Adds toSet to create sets from iterables (#16276)Jason Beetham2020-12-141-0/+32
|
* Fix broken links in docs (#16336)Elliot Waite2020-12-142-7/+7
| | | | | * Fix broken links in docs * Fix rand HSlice links
* styleCheck: Fix error for `sugar` and `std/with` (#16176)ee72020-12-021-1/+1
| | | | | | | | | | | | | | | | With this commit, we no longer see an error if we pass `--styleCheck:error` when compiling a file that contains `import sugar` or `import std/with`. The problem was that those modules (and only those modules) import `std/private/underscored_calls`, which contained a styleCheck issue: its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in `macros.nim`. This commit fixes the issue by renaming `nnkArgList` to `nnkArglist` repo-wide. The other way around would be a breaking change for code that used `nnkArglist` and `--styleCheck:error`. Fixes: #16174
* move decode_helpers to std/private (#16209)flywind2020-12-021-0/+22
|
* move rest of tests to testament (#16140)flywind2020-11-274-129/+0
| | | | * move rest of tests to testament * Update tests/stdlib/tsums.nim
* move tests to testament (#16101)flywind2020-11-243-48/+0
| | | | | | | | | * move tests to testament * minor * fix random * disable test random