summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* clean up old codes (#17071)flywind2021-02-172-5/+2
|
* fix the unused warnings on windows (#17073)flywind2021-02-171-8/+13
|
* remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ↵Timothee Cour2021-02-178-344/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#16918) * nimNoArrayToCstringConversion deadcode * nimbabel deadcode * nimHasalignOf deadcode * nimvarargstyped deadcode * nimhygiene deadcode * nimNewTypedesc deadcode * nimlocks deadcode * nimHasCppDefine deadcode * nimHasRunnableExamples deadcode * nimHasNilChecks deadcode * nimSymKind deadcode * minor macros refactoring * nimVmEqIdent deadcode * nimNoNil deadcode * nimNoZeroTerminator deadcode * nimHasSymOwnerInMacro deadcode * nimVmExportFixed deadcode * nimNewRuntime deadcode * nimAshr deadcode * nimUncheckedArrayTyp deadcode * nimHasTypeof deadcode * nimErrorProcCanHaveBody deadcode * nimHasHotCodeReloading deadcode * nimHasSignatureHashInMacro deadcode * nimHasDefault deadcode * nimMacrosSizealignof deadcode
* [Minor] improve the docs of getTempDir (#17058)flywind2021-02-161-3/+5
| | | | | | | | | * [Minor] improve the docs of getTempDir * more clear * Update lib/pure/os.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Improve documentation for bitops (#16961)konsumlamm2021-02-151-128/+131
| | | | | | | | | | * Improve documentation for bitops Use func Use let in runnableExamples * Remove unnecessary tests Fix #7587
* better getTempDir (#16914)flywind2021-02-151-14/+47
| | | | | | | | | | | * better getTempDir * fix comments * better * address comments * use uint32
* Better error message for rand(153 .. 102) (#17031)Dominik Picheta2021-02-151-1/+1
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Improve the heapqueue module (#17034)konsumlamm2021-02-151-55/+82
| | | | | | Improve documentation Optimize toHeapQueue Rename siftup and siftdown Add tests for the heap property
* Fix bug in removeDotSegments when path ends with dot (#17038) [backport:1.2]Benoit Favre2021-02-151-1/+1
|
* fix the wrong examples (#17035)flywind2021-02-151-19/+42
|
* fix #16978 unittest js foreign exception (#16998)Timothee Cour2021-02-131-3/+8
| | | | * fix #16978 unittest js foreign exception
* tables module uses runnableExamples (#16994)flywind2021-02-133-335/+312
| | | | | * tables module use runnableExamples * disable the tests
* Make parseopt available on all backends (#17009)hlaaftana2021-02-131-137/+148
| | | | | | | | | * Make parseopt available on all backends * fix spaces * fix getopt and update prelude * no crazy unnecessary version checks, use doAssert
* Improve math module (#17019)konsumlamm2021-02-121-496/+425
| | | | | | | | | | | | | | | | | | | | | | | | | * Improve documentation for math Support empty input for cumsummed Use runnableExamples Move some examples to tests Add more tests * Update tests/stdlib/tmath.nim Move some tests to trandom.nim Move tests into main template where possible Add test for #17017 * Add more tests for gamma & lgamma Remove gamma(-1.0) example Small fixes/changes * Move more tests into template main() * Fix typos * Add edge case examples for copySign
* Improve documentation for random (#17015)konsumlamm2021-02-121-185/+168
| | | | | | | | | | | | | * Improve documentation for random Use runnableExamples Minor changes * Apply suggestions Remove echo Use RNG in more places * Fix skipRandomNumbers example
* add system random to stdlib: std/sysrand (#16459)flywind2021-02-111-0/+1
|
* Improve documentation for cstrutils (#17004)konsumlamm2021-02-101-19/+23
|
* Improve documentation for unidecode (#16986)konsumlamm2021-02-092-26/+28
| | | | | | | * Improve documentation for unidecode Minor changes to gen.py * Fix typo in gen.py
* final SSL changes [backport:1.2] (#16983)Andreas Rumpf2021-02-092-8/+23
|
* uri module uses runnableExamples (#16982)flywind2021-02-091-50/+43
|
* fix #16967 [backport:1.2] (#16976)hlaaftana2021-02-091-1/+1
| | | | | * fix #16967 [backport:1.2] * move test to tsugar
* fix lists docs regression (#16981)flywind2021-02-091-21/+14
|
* Another typo corrected (#16974)Héctor M. Monacci2021-02-081-1/+1
| | | From `fliter proc` to `filter proc`
* Refactoring `bitops.rotateLeftBits()` and `bitops.rotateRightBits()`; adding ↵rockcavera2021-02-081-65/+223
| | | | | builtins and intrinsics. (#16622) Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* std/lists: Various changes to `lists` (RFC #303) (#16536)Peter Salvi2021-02-081-142/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Various changes to `lists` (RFC #303) * Removing a non-element is no-op; better tests * Remove preserves cycles; add appendMove alias; tests. * Return value for (singly linked) `lists.remove` * More test for lists.remove * Moved `lists.append` to the end of the file to see all `add` definitions * Disable testing js for now * Use workaround for swap js bug * Smaller diff * Undo "silent" deprecation of append * Correct typo in changelog Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Remove `appendMoved` Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Don't remove appendMoved Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Correct typo (#16972)Héctor M. Monacci2021-02-081-1/+1
| | | From `fliter proc` to `filter proc`
* basic cleanups regarding SSL handling (#16940) [backport:1.0]Andreas Rumpf2021-02-083-17/+58
| | | | | | | * basic cleanups regarding SSL handling * enabled certificate checking on Windows * updated the SSL test * quoting helps
* fix some warnings (#16952)flywind2021-02-0816-98/+98
|
* close #15767 (#16959)flywind2021-02-081-1/+8
| | | | | | | | | * fix some warnings * close #15767 * Revert "fix some warnings" This reverts commit 39f2f23b0026d50c42af7be3ad80edf0f1f19610.
* use typeof instead type (#16962)flywind2021-02-0810-22/+22
|
* Add initRand() with seed based on time (#16953)hlaaftana2021-02-071-10/+35
|
* close #16921 (#16951)flywind2021-02-061-30/+29
|
* make style consistent (#16944)flywind2021-02-051-16/+18
|
* Correct typo in osseps.nim (#16939)Rummskartoffel2021-02-041-1/+1
|
* stdlib/os: handle symlinks in copy/move functions (#16709)Roman Inflianskas2021-02-041-107/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | * stdlib/os: handle symlinks in copy/move functions - Added optional `options` argument to `copyFile`, `copyFileToDir`, and `copyFileWithPermissions`. By default, symlinks are followed (copy files symlinks point to). - `copyDir` and `copyDirWithPermissions` copy symlinks as symlinks (instead of skipping them as it was before). - `moveFile` and `moveDir` move symlinks as symlinks (instead of skipping them sometimes as it was before). - Added optional `followSymlinks` argument to `setFilePermissions`. See also: https://github.com/nim-lang/RFCs/issues/319 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 (second iteration) Skip symlinks on Windows. Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Sugar tests (#16820)konsumlamm2021-02-021-12/+14
|
* [ci skip] CountTable, remove link to unexisting procnarimiran2021-02-021-1/+0
|
* `dumpToString`: improves on `sugar.dump` (#16841)Timothee Cour2021-02-021-3/+32
| | | | | | | * dumpToString * _ * fixup * changelog * address comment: removed the word "Deprecated"
* Improve doc comments (#16902)konsumlamm2021-02-021-85/+123
| | | | | Add runnableExamples Use `reduce` in `initRational` and `//` Add static tests
* 2.5x- 3x faster copyFile on osx (#16883)Timothee Cour2021-02-011-0/+31
|
* JS: make hash float support IE/Safari (#16872)flywind2021-02-011-5/+10
|
* critbits: fix error from strictFuncs (#16877)ee72021-02-011-2/+2
| | | | | | | | | Previously, compiling a file containing just `import critbits` with `nim c --experimental:strictFuncs` would produce the following error: critbits.nim(529, 6) Error: 'toCritBitTree' can have side effects This was introduced by 2aed4186989e (#16564). Fixes: #16873
* distinctBase now is identity instead of error for non distinct types (#16891)Timothee Cour2021-02-011-7/+7
|
* remove quotation marks around imports - fixes links in the docs (#16888)Miran2021-02-012-2/+2
|
* Add more runnableExamples (#16864)konsumlamm2021-01-311-30/+80
| | | Add more links
* Minor docs improvement for oids (#16882)konsumlamm2021-01-311-9/+10
|
* refactor hash in JS backend (#16863)flywind2021-01-301-29/+31
|
* remove conditionals on nimHasUserErrors, nimNoNilSeqs2, nimNoNilSeqs (#16861)Timothee Cour2021-01-291-8/+2
| | | | | | | | | * cleanup docs for type(nil) | type(nil); simplify nimHasUserErrors * simplify nimNoNilSeqs2 * simplify nimNoNilSeqs * fixup
* A new request should always have a new content-length (#16667)Joey2021-01-281-9/+15
| | | | | | | | | * A new request should always have a new content-length In [my last PR](https://github.com/nim-lang/Nim/pull/16618) I made a mistake by assuming that the client.headers were cleared on every request, like the Python version. So, due to the fact that Nim keeps the client headers, we need to clear the Content-Length header on each request (which makes sense because you almost never want to use the same Content-Length twice, but you may want to reuse other headers) * Move content-length to newHeaders instead of in the global client headers * Use single backticks
* Improve documentation for the mersenne module (#16824)konsumlamm2021-01-271-16/+16
| | | | | | | * Improve documentation for mersenne Add tests for mersenne * Add link to Wikipedia article