Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | testament megatest: we can now tell which test failed; helps debugging and ↵ | Timothee Cour | 2019-01-05 | 3 | -20/+50 |
| | | | | | | | | prevents certain bugs, plus other fixes (#10089) * [testament] --verboseMegatest flag to make megatest compilation verbose * replace "tests" by testsDir * megatest's nimcache is now in same dir as other tests to avoid clobbering (eg when running tests from multiple Nim repos) | ||||
* | * move up runnableExamples definition so can be used more in system.nim (#10196) | Timothee Cour | 2019-01-05 | 1 | -28/+30 |
| | | | | * document that toInt, toBiggestInt round towards 0 and add runnableExamples * minor doc fixes | ||||
* | Fix the tuple returned by `os.splitFile()` in documentation (#10197) | Hugo Locurcio | 2019-01-05 | 1 | -1/+1 |
| | |||||
* | fix system.nim documentations (#10168) | alaviss | 2019-01-04 | 2 | -4/+4 |
| | | | | | * system: fix nimGC_getStackBottom doc * system/helpers: avoid leaking docs to system | ||||
* | expandFilename on windows is now consistent with other platforms (#10154) | Neelesh Chandola | 2019-01-04 | 2 | -52/+49 |
| | |||||
* | Guard against null exception (#10162) | rec | 2019-01-04 | 2 | -1/+4 |
| | |||||
* | Fix Typo in Compiler Guide (#10189) | Tristano Ajmone | 2019-01-04 | 1 | -1/+1 |
| | | | Change 'ableit' to 'albeit'. | ||||
* | fix bug in doAssertRaises when exception==Exception (#10172) | Timothee Cour | 2019-01-04 | 2 | -11/+31 |
| | | | | | * fix bug in doAssertRaises when exception==Exception * add testcase for doAssertRaises | ||||
* | fixes #10188 | Araq | 2019-01-04 | 1 | -0/+1 |
| | |||||
* | [backport] improve unicode docs, fixes #2353 (#10174) | Miran | 2019-01-04 | 1 | -85/+122 |
| | | | | | | | | * as instructed in #2353, provides a short description why there are no specialized procs for seq[Rune] * adds several examples to better explain what some functions do * small fixes (double backticks, add missing dots, etc.) * use `rune` instead of "unicode characer" | ||||
* | Undocument --genmapping (#10175) | Neelesh Chandola | 2019-01-04 | 1 | -2/+0 |
| | |||||
* | runnableExamples: compile and test them as a single file; fixes #9300 | Araq | 2019-01-04 | 1 | -2/+10 |
| | |||||
* | [backport] correctly document `toInt`, fixes #2764 [ci skip] (#10176) | Miran | 2019-01-04 | 1 | -4/+6 |
| | |||||
* | koch.nim: speed up tests for the 'testinstall' target for the nightly builds ↵ | Araq | 2019-01-03 | 1 | -2/+1 |
| | | | | (these tests are also covered by the other CIs) | ||||
* | exportc is now not allowed for type aliases (#9979) | Neelesh Chandola | 2019-01-02 | 2 | -0/+14 |
| | |||||
* | Add {.noReturn.} to system.raiseAssert (#10161) | Oscar Nihlgård | 2019-01-02 | 1 | -1/+1 |
| | |||||
* | [cleanup] remove dead code compiler.options.mergeConfigs (#10165) | Timothee Cour | 2019-01-02 | 1 | -78/+0 |
| | |||||
* | Add link to tutorial part III to docs.rst (#10157) [ci skip] | Ico Doornekamp | 2019-01-01 | 1 | -0/+3 |
| | |||||
* | Show field not initialized warning only when `notnil` used (#10155) | Neelesh Chandola | 2019-01-01 | 1 | -1/+1 |
| | |||||
* | Deprecate gc v2 (#10151) | Neelesh Chandola | 2019-01-01 | 12 | -21/+21 |
| | | | | | | * Deprecate gc v2 * warnDeprecated now has custom messages | ||||
* | Add Example code to Documentation comment of wordWrap proc. (#10146) | jiro | 2019-01-01 | 1 | -0/+5 |
| | |||||
* | fixes #10148 (#10149) | cooldome | 2018-12-31 | 2 | -13/+47 |
| | | | | | * fixes #10148 * fix a typo | ||||
* | fix off by 1 error in `col` shown by toFileLineCol (#10138) | Timothee Cour | 2018-12-31 | 4 | -4/+4 |
| | | | | | * fix off by 1 error in `col` shown by toFileLineCol * fix test failures | ||||
* | Resolve things raised in https://github.com/nim-lang/Nim/issues/10081 ? (#10084) | c-blake | 2018-12-31 | 3 | -30/+86 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Resolve things raised in https://github.com/nim-lang/Nim/issues/10081 ? CDF is a standard ident in all things related to random numbers/sampling, and full words "cumulativeDistributionFunction" would be silly long, in this case, IMO. We use lowercase `cdf` to make it not look like a type, remove all looping from `sample` letting callers do it. Besides just side-stepping any `sampleSize` name choice, callers may want to filter out samples anyway which this makes slightly simpler. Also add two variants of `cumsum`, value return and in-place update distinguished by the var-ness of the first argument. Add tests for `int` and `float` for both `cumsum` and the new `sample`. (The sample tests exercise the value return mode of `cumsum`.) Functionality pre-this-PR `sample(a, w)` is now the almost as simple `for i in 0..<n: sample(a, w.cumsum)`, but this new code factoring is almost surely better. The statistical tests pass, as before. * Address Araq comment in https://github.com/nim-lang/Nim/pull/10084 We can always add in some `var` version later if desired to save memory, but this change now at least firms up the `sample` interface. * Rename `cumsum` -> `cumsummed` to honor NEP1 style. Re-instate `cumsum` as the in-place transformation. Test both in `tests/stdlib/tmath.nim` and use `cumsummed` in the example code for sample since that's a simpler example. * Fix requests from https://github.com/nim-lang/Nim/pull/10084 : example in lib/pure/math.nim and comment whitespace in lib/pure/random.nim | ||||
* | Check there are no side effects before optimizing away compile time ↵ | deech | 2018-12-31 | 3 | -8/+56 |
| | | | | expressions. (#9934) | ||||
* | Before showing deprecated warning, check whether enum field was marked ↵ | Neelesh Chandola | 2018-12-30 | 1 | -2/+2 |
| | | | | deprecated or the whole enum type (#10135) | ||||
* | help Nim optimize intsets.initIntSet | Andreas Rumpf | 2018-12-30 | 1 | -8/+7 |
| | |||||
* | Dead code elimination for entire modules and their init procs if empty (#10032) | cooldome | 2018-12-30 | 6 | -99/+176 |
| | | | | | | * fixes #9798 * Change order of write modules * Move datInit calls ahead of initStackBottom | ||||
* | Show deprecation warning for fields of a deprecated enum (#10112) | Neelesh Chandola | 2018-12-30 | 2 | -7/+22 |
| | | | | | | * Show deprecation warning for fields of a deprecated enum * Add test | ||||
* | Deprecated pragma is now supported on enum fields (#10113) | Neelesh Chandola | 2018-12-30 | 5 | -12/+63 |
| | | | | | | * {.deprecated.} pragma is now supported for enum fields * Add tests * Simplify code | ||||
* | fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84 ↵ | Timothee Cour | 2018-12-30 | 3 | -2/+8 |
| | | | | | | | (#10131) * fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84 * add test | ||||
* | Support undefined in isNil (#9960) | Alexander Ivanov | 2018-12-30 | 3 | -3/+26 |
| | |||||
* | fixes #10082 | Andreas Rumpf | 2018-12-30 | 2 | -25/+22 |
| | |||||
* | refs #10121 (#10124) | Timothee Cour | 2018-12-30 | 1 | -1/+2 |
| | |||||
* | document --profiler:on (#10115) | Timothee Cour | 2018-12-30 | 1 | -0/+3 |
| | |||||
* | {.push raises: [].} is now ignored for vars/lets/consts (#10026) | Neelesh Chandola | 2018-12-30 | 1 | -6/+13 |
| | |||||
* | nim dump: add nimcache entry (#10122) | Timothee Cour | 2018-12-30 | 1 | -0/+1 |
| | |||||
* | `nim c` now allows: when defined(c) (#10130) | Timothee Cour | 2018-12-30 | 1 | -0/+1 |
| | |||||
* | revives: Move typetraits.`$` to system. Fixes #5827 (#10071) | Timothee Cour | 2018-12-30 | 4 | -25/+44 |
| | | | | | | * Move typetraits.`$` to system. Fixes #5827. * revive PR; adjust code to make sure everything works and add tests * fix tests/concepts/tstackconcept.nim * address comments | ||||
* | `checkErr` now shows actual system error msg instead of unknown error (#9987) | Timothee Cour | 2018-12-27 | 1 | -3/+14 |
| | |||||
* | Const tuple unpacking: add tests (#10100) | ee7 | 2018-12-27 | 1 | -0/+16 |
| | |||||
* | fixes #10101 (#10103) | Timothee Cour | 2018-12-27 | 3 | -6/+6 |
| | |||||
* | Pragma syntax is now consistent (#9993) | Neelesh Chandola | 2018-12-27 | 2 | -3/+40 |
| | | | | | | | | | | * Give deprecation warning when type pragmas do not follow the type name * pragma before generic parameter list in type definition is now deprecated * Update changelog * Fix bug where deprecated warning was being shown even though no generic param list was present * Fix bug * Use errGenerated * Best attempt at writing the grammar | ||||
* | [ci skip] update docs for build_all.sh (#10086) | Timothee Cour | 2018-12-27 | 1 | -1/+1 |
| | |||||
* | config/nim.cfg: disable tlsEmulation on Haiku (#10092) [backport] | alaviss | 2018-12-27 | 1 | -3/+0 |
| | | | | As of hrev52662, TLS support in Haiku is usable again. This has since been backported to R1/Beta1, so we can flip the switch upstream. | ||||
* | Fixes long-standing asynchttpserver regression. (#10102) | Dominik Picheta | 2018-12-27 | 1 | -21/+27 |
| | |||||
* | Revert sub-second randomize(). Fixes randomize for JS backend. (#10000) | Dominik Picheta | 2018-12-27 | 1 | -2/+6 |
| | | | Fixes #9999. | ||||
* | Fix const tuple unpacking not working for variables > 2 (#10099) | Neelesh Chandola | 2018-12-27 | 1 | -1/+1 |
| | |||||
* | fixes nim-lang/nimsuggest#76 (#10093) | alaviss | 2018-12-25 | 3 | -3/+41 |
| | | | | | | | | * nimsuggest: prevent out-of-bound access * fixes nim-lang/nimsuggest#76 * undo tester changes | ||||
* | fix #10049 (#10083) | Timothee Cour | 2018-12-23 | 2 | -2/+2 |
| |