summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix #15617(fix compilation failure on -d:useMalloc --gc:none) (#17555)flywind2021-03-301-0/+10
| | | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add getPort to resolve Port(0) (#17559)Timothee Cour2021-03-301-15/+27
| | | | | | | | | * add getPort to resolve Port(0) * fixup * use getPort in examples + tests * address comments: do not re-export Port
* Rotation right and left refactored to generics. Continuation of #16622 (#17578)rockcavera2021-03-301-88/+31
| | | | | | | * Rotation right and left refactored to generics Continuation of [16622](https://github.com/nim-lang/Nim/pull/16622) * add runnableExamples
* [backport:1.2] Avoid inlining of newObj and newObjRC1 calls (#17582)Miran2021-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | This is taken from: https://github.com/status-im/Nim/commit/af69b3ceae16281efd45cbee4ce1bedd14282304 Full original comment: This is to avoid heavy inlining happening when two allocation calls would occur shortly after each other. This inlining would sometimes be accompanied with an optimisation as the compiler is able to see that cellToUsr ending the first allocation call is shortly followed by an usrToCell call. The pointer arithmetic is redundant and the compiler can eliminate it, leaving only the cell address in a register (and later the stack) instead of the actual pointer to the user data, as one would expect. This combined with a GC collect cycle will cause the stack scan to only notice the cell address, which is of no good due to a usrToCell in the gcMark call which shifts that address to an adjacent cell. This means that the actual cell of importance will not get marked and thus cause a premature collection of that cell. BOOM.
* Fix void async in templates (#17562)Ardek Romak2021-03-301-2/+3
| | | | | | | | * Fix https://github.com/nim-lang/Nim/issues/16159 * Add test for async in template * Shorten the expression * Even shorter Co-authored-by: Clyybber <darkmine956@gmail.com>
* Fix #17299, fix setAffinity for android (#17574)Clyybber2021-03-301-2/+17
| | | | | | | * Fix #17299 * Comment * Fix typo
* Add hasDataBuffered to asyncnet (#16000)Dylan Modesitt2021-03-291-0/+5
| | | | Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* [std/uri]fix #17481 (#17568)flywind2021-03-291-1/+1
|
* RST: enable parsing of prefix roles (ref #17340) (#17514)Andrey Makarov2021-03-291-18/+20
|
* [os:standalone]fix #14011 (#17564)flywind2021-03-291-2/+8
|
* added nkError to the AST (#17567)Andreas Rumpf2021-03-291-1/+2
| | | | | | | | | | | | | * added nkError to the AST * Update lib/core/macros.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update compiler/ast.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* [docs]fix #17473 (#17565)flywind2021-03-292-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix nim js cmp fails at CT * Add `hasClosure` to `std/effecttraits` * type * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * fix #14011 * Delete ttypetraits.nim * Apply suggestions from code review * fix #17473 * Revert "fix #14011" This reverts commit 0eed97a84b172b198bf4e6de69c04b84ef9d9f93. * Update lib/system.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Add `hasClosure` to `std/typetraits` (#17501)flywind2021-03-291-0/+11
| | | | | | | | | | | | | | | | * fix nim js cmp fails at CT * Add `hasClosure` to `std/effecttraits` * type * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/std/effecttraits.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* remove std/ prefix from doc/lib.rst now that canonical import is shown in ↵Timothee Cour2021-03-291-17/+10
| | | | | | | module docs (#17543) * remove std/ prefix from doc/lib.rst now that canonical import is shown in module docs * cleanup top docs for std/sha1
* Small doc fixes in net (#17566)Danil Yarantsev2021-03-291-4/+2
|
* remove docutils.nimble (not a real nimble package, and affected canonical ↵Timothee Cour2021-03-296-13/+7
| | | | | | | imports) (#17544) * remove docutils.nimble (not a real nimble package, and affected canonical imports) * cleanup redundant references
* Small doc improvements for `std/with` (#17556)konsumlamm2021-03-291-3/+4
|
* Fix net.readLine infine loop #17534 (#17535)ben2021-03-291-0/+1
| | | | | * Fix net.readLine infine loop #17534 * fix #17534 add return to template
* fix #14010(fix std/registry + arc) (#17551)flywind2021-03-291-8/+10
| | | | | | | | | | | | | * fix nim js cmp fails at CT * fix #14010 * Update tests/stdlib/tregistry.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tregistry.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Free the certificate after checking in `checkCertName` (#17558) [backport:1.2]Danil Yarantsev2021-03-292-3/+6
| | | | | | * Fix small leak in checkCertName * Size is not needed either * Free the certificate after checking
* [docs]close #12580 (#17549)flywind2021-03-281-2/+2
|
* follow up #17539 (#17548)flywind2021-03-292-2/+1
| | | | | * fix nim js cmp fails at CT * follow up #17539
* Add a getter for all defined Sections in parsecfg (#15450)Ardek Romak2021-03-281-0/+6
|
* system: fix link in `delete` proc (#17550)ee72021-03-281-1/+1
| | | The `delete` proc had a "See also" link that linked to itself.
* set const arch64 to fix compiling with vcc/icc (#17539)rockcavera2021-03-281-0/+1
|
* nnkArglist => nnkArgList + special case stylecheck:error (#17529)Timothee Cour2021-03-273-3/+3
| | | | | * nnkArglist => nnkArgList * special case stylecheck:error
* cleaned up the internal documentation (#17524)Andreas Rumpf2021-03-262-1/+81
|
* lent support for tables (#17505)flywind2021-03-251-9/+9
|
* fix RST parsing after option lists (#17442)Andrey Makarov2021-03-251-1/+72
|
* fix #17260 render `\` properly in nim doc, rst2html (#17315)Timothee Cour2021-03-242-7/+18
|
* fix #17325 linux 32bit CI; fix #17085 flaky test (#17469)Timothee Cour2021-03-241-3/+4
|
* fix #17490 (#17491)flywind2021-03-241-4/+10
|
* followup #16182 (#17472)flywind2021-03-231-3/+3
| | | | | * fix nim js cmp fails at CT * followup #16182
* remove {.compileTime.} for procs with NimNode: redundant because of ↵Timothee Cour2021-03-236-112/+106
| | | | tfTriggersCompileTime (#17463)
* add algorithm.merge (#16182)flywind2021-03-231-0/+94
| | | | | | | | | * add merge to algorithm * Apply suggestions from code review * Update lib/pure/algorithm.nim * Apply suggestions from code review * Update changelog.md Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com>
* fix #17454 (#17461)Timothee Cour2021-03-231-11/+9
|
* remove redundant void return in stdlib (#17464)Timothee Cour2021-03-237-12/+11
|
* close #11330 sets uses optimized countSetBits (#17334)flywind2021-03-224-85/+98
| | | | | | | * Update lib/pure/bitops.nim * Update lib/system/sets.nim * Apply suggestions from code review Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* prevent bitmasks double included in mmdist if -d:nimArcDebug added (#17436)Derek 呆2021-03-211-1/+2
|
* Improve jsre (#17365)Juan Carlos2021-03-211-30/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add dollar for regex * Add dollar for regex * Peer review feedbacks * Peer review feedbacks * Update lib/js/jsre.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/js/jsre.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/js/jsre.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Pear review * Beer review * Beer review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* improve jsutils docs (#17421)Timothee Cour2021-03-211-10/+42
| | | | | * improve jsutils docs * address comments
* Add documentation to the `macrocache` module (#17431)Danil Yarantsev2021-03-211-15/+176
| | | | | | | | | | | | | | | | | | | | | * Add docs to macrocache * use hint * Use incl in the incl example * add macrocache to lib * consistency * Update doc/lib.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * apply suggestions * clarify the warning Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* strutils: improve doc comments for `replace` funcs (#17427)ee72021-03-201-3/+4
| | | | | | | | | | | | | This commit fixes mispellings of "occurrence" introduced by: - 76a3b350ce0f (#17337) - 8e8bea9044f0 (#17339) and adds the same "every occurrence of" in the `replaceWord` func. Other changes: - Prefer "replace with" to "replace by". - Be more consistent with "the" - prefer "of the character" given that we wrote "by the character". - Try to be more consistent with writing the types - add "the string `sub`" given that we wrote "the character `sub`".
* Use importjs (#17422)konsumlamm2021-03-194-56/+56
|
* [FIX] use `mixin` for strscans.scanp (#17371)haxscramper2021-03-191-1/+2
|
* Clarify behaviour of char replace (#17339)Héctor M. Monacci2021-03-191-1/+1
| | | Clarify behaviour of char replace by adding ```every ocurrence of character```
* 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
* IC: green tests (#17311)Andreas Rumpf2021-03-195-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * IC: renamed to_packed_ast module to ic module * IC: don't store the --forceBuild flag, makes it easier to test * IC: enable hello world test * Codegen: refactorings for IC; changed the name mangling algorithm * fixed the HCR regressions * life is too short for HCR * tconvexhull is now allowed to use deepCopy * IC exposed a stdlib bug, required a refactoring * codegen: code cleanups * IC: even if a module is outdated, its dependencies might come from disk * IC: progress * IC: better name mangling, module IDs are not stable * IC: another refactoring helping with --ic:on --gc:arc * disable arraymancer on Windows for the time being * disable arraymancer altogether * IC: make basic test work with 'nim cpp' * IC: progress on --ic:on --gc:arc * wip; name mangling for type info
* 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
* improve jsconsole (#17414)Juan Carlos2021-03-191-0/+10
| | | | | | | | | * Add jsconsole.dir * Update lib/js/jsconsole.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>