summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* remove deprecated stuffs from std/times (#18937)flywind2021-10-131-25/+25
|
* Removes deprecated {.injectStmt.}. Fixes #18666 (#18984)Dominik Picheta2021-10-131-10/+0
|
* Fixed `strictFuncs` support for `std/pegs` (#18951)quantimnot2021-10-071-138/+142
| | | | | | | | | | | | | | | | | * Fixed `strictFuncs` support for `std/pegs` Enabled `std/pegs` in the `strictFuncs` import test. Fixes #18057 Fixes #16892 See #18111 * Rebased from `devel` * Conditionally compile `std/pegs` in `koch` This is for supporting `csources` bootstrap. Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
* typo [backport] (#18967)flywind2021-10-071-1/+1
|
* rst: minor fixes (#18960)Andrey Makarov2021-10-063-3/+4
|
* fixes #18954 (#18955)Andreas Rumpf2021-10-051-2/+2
|
* rename nimEnableHashRef [backport] (#18941)flywind2021-10-041-5/+13
| | | | | | * rename nimEnableHashRef [backport] * Apply suggestions from code review Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Add support for `strictEffects` to `std/pegs` (#18949)quantimnot2021-10-041-1/+4
| | | | | | | * Add support for `strictEffects` to `std/pegs` * Fixed support of older Nim versions Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
* document -d:nimStrictDelete [backport] (#18939)flywind2021-10-031-0/+4
|
* with this patch :idx: can be used for the index generation for LaTeX (#18946)Andreas Rumpf2021-10-031-1/+1
|
* rename nimLegacyJsonutilsHoleyEnum [backport] (#18938)flywind2021-10-011-1/+5
| | | | | * enable nimPreviewJsonutilsHoleyEnum [backport] * docuement nimPreviewJsonutilsHoleyEnum
* [std/tempfiles] docs improvement (#18936)flywind2021-10-011-5/+6
| | | | | * unify comments * more
* correct licence header (#18935)flywind2021-10-015-5/+5
| | | | | * rename licence * spaces
* [std/tasks] more gcsafe stuffs [backport] (#18926)flywind2021-09-301-3/+3
|
* Adds source to single tags list (#18920)Jonas Schubert Erlandsson2021-09-291-1/+1
|
* envPairs works in vm, nims (#18615)Timothee Cour2021-09-292-179/+189
| | | | | * envPairs works in vm, nims * fixup
* change comment (#18913)flywind2021-09-281-1/+1
|
* fixes #18878 (#18883)Aditya Siram2021-09-251-1/+2
|
* fix a typo (rename `temporal` to `temporary` (#18892) [backport]flywind2021-09-241-1/+1
|
* ported Nim to proprietary CrossOS [backport] (#18889)Andreas Rumpf2021-09-241-1/+1
|
* correct effect tracking for .borrowed procs [backport] (#18882)Andreas Rumpf2021-09-231-1/+1
| | | | | | | | | | | * correct effect tracking for .borrowed procs [backport] * progress * fix error message in a test * correctly fix it Co-authored-by: narimiran <narimiran@disroot.org>
* fix #18844 (#18851)flywind2021-09-201-4/+4
|
* fixes #18858 [backport] (#18868)Andreas Rumpf2021-09-193-3/+10
| | | | | | | * fixes #18858 [backport] * ensure async tests work with --experimental:strictEffects [backport] * ensure async tests work with --experimental:strictEffects [backport]
* [minor] fix docs (#18834)flywind2021-09-111-6/+4
|
* fix code-block which causes missing docsflywind2021-09-111-2/+2
|
* distros.foreignDeps made public (#18830)Juan Carlos2021-09-101-4/+4
| | | | | | | | | * Deprecate distros.echoForeignDeps * Deprecate distros.echoForeignDeps * https://github.com/nim-lang/Nim/pull/18830#discussion_r705364162 * https://github.com/nim-lang/Nim/pull/18830#discussion_r705364162
* remove channels (#18801)flywind2021-09-041-498/+0
| | | | | * remove channels * test
* fix for js strict mode (#18799)Sven Keller2021-09-041-4/+1
| | | | | | | | * Assignments, which would accidentally create global variables, instead throw an error in strict mode * Assignment to a getter-only property Co-authored-by: Sven Keller <s.keller@cortona.de>
* we need something better than warningAsError for effect handling viol… ↵Andreas Rumpf2021-09-041-2/+1
| | | | | | (#18796) * we need something better than warningAsError for effect handling violations
* Document `-d:async_backend` flag (#18700)Jacek Sieka2021-09-031-0/+28
| | | | | | | | | | | | | | | | | | | | * Document `-d:asyncBackend` flag Since libraries may want to support multiple async backends, it's useful to standardize the way this is done, so as to simplify usage of any async backend within the ecosystem. A similar text is being added to chronos here: https://github.com/status-im/nim-chronos/pull/216 See also https://github.com/status-im/nim-chronos/issues/207 * typos, add none * Update lib/pure/asyncdispatch.nim * Update lib/pure/asyncdispatch.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #18494 (#18783)Andreas Rumpf2021-09-021-8/+34
|
* sequtils now support strict effect tracking (#18782)Andreas Rumpf2021-09-021-9/+14
|
* Fix initrand to avoid random number sequences overlapping (#18744)Tomohiro2021-09-022-16/+65
| | | | | | | | | | | | | | | | | | | | | | | * Fix initrand to avoid random number sequences overlapping * Minor fix * Fix compile error on js backend * Disable new test for js backend * Minor fix * tempfiles module uses random.initRand() * Remove unused module import from lib/std/tempfiles.nim * Initialize baseState in initRand() * Run tests/stdlib/trandom.nim from tests/test_nimscript.nims * baseState is initialized only with sysrand.urandom and quit if failed * Add comments
* strict effects (#18777)Andreas Rumpf2021-09-025-15/+25
| | | | | | | | | | | | | | | | | * fixes #17369 * megatest is green for --cpu:arm64 * docgen output includes more tags/raises * implemented 'effectsOf' * algorithm.nim: uses new effectsOf annotation * closes #18376 * closes #17475 * closes #13905 * allow effectsOf: [a, b] * added a test case * parameters that are not ours cannot be declared as .effectsOf * documentation * manual: added the 'sort' example * bootstrap with the new better options
* Fix #15150 (#18730)konsumlamm2021-08-311-1/+2
|
* add missing docs (#18758)flywind2021-08-291-0/+1
|
* Implement RFC-413 (#18749)Juan Carlos2021-08-262-4/+5
| | | | | | | | | | | | | | | | | | | | | | * Implement RFC 413 * Implement RFC 413 * Implement RFC 413 * Implement RFC 413 * https://github.com/nim-lang/Nim/pull/18749#discussion_r696320995 * Update lib/js/dom_extensions.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update lib/js/dom_extensions.nim * https://github.com/nim-lang/Nim/pull/18749#discussion_r696913310 Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #14511 [backport:1.4] (#18732)Dankr4d2021-08-251-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | * fixes #14511 [backport:1.4] Signed-off-by: Dankr4d <dude569@freenet.de> * Replaced fix with code from alaviss, for better readability, with small changes. Signed-off-by: Dankr4d <dude569@freenet.de> * - Specified output in test. Signed-off-by: Dankr4d <dude569@freenet.de> * Replaced case in nnkRecCase with a simpler version, which just adds the last son. Signed-off-by: Dankr4d <dude569@freenet.de> * Update tests/macros/t14511.nim * Update tests/macros/t14511.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* make deprecated message better (#18737)flywind2021-08-231-1/+1
|
* Fix #18718 (#18731)konsumlamm2021-08-231-5/+8
| | | Update tests
* Implement RFC-391 (#18585)Juan Carlos2021-08-221-107/+106
|
* fix #17898(randomPathName called twice in a row can return the same string ↵flywind2021-08-221-3/+17
| | | | | | | on windows) (#18729) * close #17898 * no need to consider js
* replace wrt with proper word (#18724)flywind2021-08-221-2/+4
| | | | | * what does wrt mean? * clarify
* Add ceilDiv to math (#18596)Tomohiro2021-08-191-0/+52
| | | | | | * Use assert in runnableExamples and improve boundary check * Add more tests for ceilDiv * Fix comment in ceilDiv * Calling ceilDiv with int type T such like sizeof(T) > 8 is error
* improvements to `addInt` and `$` for integer types (#18592)Timothee Cour2021-08-197-104/+96
| | | | | | | | * improvements to $(SomeInteger) and addInt * remove mIntToStr, mInt64ToStr * improvements * fix tests/pragmas/tinjectstmt.nim; the diff is harmless, cgen code is identical with -d:danger or debug mode * rm tests/system/tstrmantle.nim * revert compiler/jsgen.nim for -d:nimVersion140
* asynchttpserver: ipv6 support (#18706)Emery Hemingway2021-08-181-6/+7
| | | Fix #18705
* fix #18702(fix `parseutils.parseFloat`) (#18703) [backport:1.0]flywind2021-08-161-4/+5
| | | | | * fix #18702 * Apply suggestions from code review
* Documentation only, Terminal (#18696)Juan Carlos2021-08-141-1/+15
| | | Add simple progress bar example to terminal module
* fix #18692 AsyncHttpServer was hanging because client.close was not called ↵Timothee Cour2021-08-141-1/+3
| | | | (#18693)
* properly fix #10053 ; `FieldDefect` msg now shows discriminant value + ↵Timothee Cour2021-08-137-2/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lineinfo, in all backends (c,vm,js) (#11955) * fix #10053 FieldError for vm * fixup * FieldError now also shows runtime value of discriminant * fix field error reporting in vm * also report culprit line info in err msg * fix errors for newruntime 2 * fix for js * fixup * PRTEMP4 * works * works * works perfect * refactor * std/private/repr_impl * suppport --gc:arc * cleanup * refactor * simplify * simplify * simplify * fixup * move out compiler.vmgen.genCustom * fixup * fixup * add tests * revert compiler/debugutils.nim * simplify reprDiscriminant * fixup * lib/std/private/repr_impl.nim -> lib/system/repr_impl.nim * try to fix D20210812T165220 * honor --declaredlocs * control toFileLineCol via --declaredlocs