Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Dead code elimination for entire modules and their init procs if empty (#10032) | cooldome | 2018-12-30 | 2 | -1/+7 |
| | | | | | | * 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 | 1 | -4/+14 |
| | | | | | | * 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 | 2 | -0/+32 |
| | | | | | | * {.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 | 1 | -0/+3 |
| | | | | | | | (#10131) * fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84 * add test | ||||
* | Support undefined in isNil (#9960) | Alexander Ivanov | 2018-12-30 | 1 | -0/+16 |
| | |||||
* | fixes #10082 | Andreas Rumpf | 2018-12-30 | 1 | -0/+11 |
| | |||||
* | revives: Move typetraits.`$` to system. Fixes #5827 (#10071) | Timothee Cour | 2018-12-30 | 1 | -0/+14 |
| | | | | | | * 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 | ||||
* | Const tuple unpacking: add tests (#10100) | ee7 | 2018-12-27 | 1 | -0/+16 |
| | |||||
* | fixes #10101 (#10103) | Timothee Cour | 2018-12-27 | 2 | -5/+5 |
| | |||||
* | Add ability to sample elements from openArray according to a weight array ↵ | c-blake | 2018-12-23 | 1 | -1/+27 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#10072) * Add the ability to sample elements from an openArray according to a parallel array of weights/unnormalized probabilities (any sort of histogram, basically). Also add a non-thread safe version for convenience. * Address Araq comments on https://github.com/nim-lang/Nim/pull/10072 * import at top of file and space after '#'. * Put in a check for non-zero total weight. * Clarify constraint on `w`. * Rename `rand(openArray[T])` to `sample(openArray[T])` to `sample`, deprecating old name and name new (openArray[T], openArray[U]) variants `sample`. * Rename caller-provided state version of rand(openArray[T]) and also clean up doc comments. * Add test for new non-uniform array sampler. 3 sd bound makes it 99% likely that it will still pass in the future if the random number generator changes. We cannot both have a tight bound to check distribution *and* loose check to ensure resilience to RNG changes. (We cannot *guarantee* resilience, anyway. There's always a small chance any test hits a legitimate random fluctuation.) | ||||
* | fixes #10033 [backport] | Araq | 2018-12-22 | 1 | -1/+24 |
| | |||||
* | Don't use parseutils.parseInt in the times module (#10028) | Oscar Nihlgård | 2018-12-22 | 1 | -0/+11 |
| | |||||
* | Fixed insert for nil seq in js (#10068) | Yuriy Glukhov | 2018-12-21 | 1 | -0/+32 |
| | |||||
* | C++: make async tests green on Windows | Araq | 2018-12-21 | 1 | -0/+1 |
| | |||||
* | os.walkDir: correctly evaluate paths when relative = true (#10057) [backport] | alaviss | 2018-12-21 | 1 | -0/+8 |
| | |||||
* | lots of testament bug fixes and improvements: (#10044) | Timothee Cour | 2018-12-20 | 1 | -11/+11 |
| | |||||
* | use anon structs and unions for a much better debug experience (#10055) | Andreas Rumpf | 2018-12-20 | 1 | -23/+20 |
| | |||||
* | Make copies for params which are captured in closures. Fixes #7048 (#10050) | rec | 2018-12-20 | 1 | -0/+44 |
| | | | | | * Copy params which are captured in closures. Fixes #7048 * Forgot to emit a newline; minor adjustments to the test | ||||
* | fix test failure | Timothee Cour | 2018-12-19 | 1 | -0/+1 |
| | |||||
* | fix #8255 numerous issues with splitFile | Timothee Cour | 2018-12-19 | 1 | -0/+15 |
| | |||||
* | proc does not take untyped/typed as argument (#9981) | Neelesh Chandola | 2018-12-19 | 2 | -0/+14 |
| | | | | | | * proc does not take untyped/typed as argument * Add TODO | ||||
* | [os] fix #10017 regression, fix #10025 regression (#10018) | Timothee Cour | 2018-12-18 | 1 | -2/+5 |
| | | | | | * [os] fix #10017 regression * [os] fix #10025 regression | ||||
* | add `getCurrentCompilerExe` to vmops (eg allows to get nim compiler at CT); ↵ | Timothee Cour | 2018-12-18 | 2 | -0/+49 |
| | | | | add tests for vmops (#9925) | ||||
* | Fixes #10005 | recloser | 2018-12-15 | 1 | -0/+17 |
| | |||||
* | fixes #9994 | Andreas Rumpf | 2018-12-15 | 3 | -1/+5 |
| | |||||
* | fixes #9978 | Andreas Rumpf | 2018-12-14 | 2 | -0/+9 |
| | |||||
* | os.nim: use the new pathnorm.normalizePath implementation | Araq | 2018-12-14 | 1 | -55/+26 |
| | |||||
* | fixes joinPath regressions | Araq | 2018-12-13 | 1 | -0/+5 |
| | |||||
* | os.nim: big refactoring, use the new pathnorm that was extracted by ↵ | Araq | 2018-12-13 | 1 | -63/+94 |
| | | | | compiler/pathutils.nim; added os.relativePath | ||||
* | Merge pull request #8748 from LemonBoy/when-in-objects | Andreas Rumpf | 2018-12-12 | 1 | -0/+51 |
|\ | | | | | Pervasive replacement of nkRecWhen in generic types | ||||
| * | Pervasive replacement of nkRecWhen in generic types | LemonBoy | 2018-10-19 | 1 | -0/+51 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Long story short, even if the type contains no reference at all to its generic parameters we still have to walk its AST and evaluate any nkRecWhen nodes that semRecordNodeAux skipped due to the type being a generic one. We also must be careful to modify the type `n` node in place since it may be referenced by the caller as seen in the tillegaltyperecursion test. Moreover we also can't have the nkSym drift away from their original values in order not to break the JS nkObjConstr codegen. | ||||
| * | Don't skip poll() when no handles are present. (#8727) | Dominik Picheta | 2018-08-23 | 1 | -0/+17 |
| | | | | | | | | | | | | | | | | | | | | | | Fixes #7886. Fixes #7758. Fixes #6929. Fixes #3909. Replaces #8209. | ||||
* | | Merge pull request #9937 from cooldome/pragmablock_custom_pragma | Andreas Rumpf | 2018-12-12 | 1 | -0/+22 |
|\ \ | | | | | | | Language feature: implement custom pragmas in pragma blocks | ||||
| * | | add test | Andrii Riabushenko | 2018-12-11 | 1 | -0/+22 |
| | | | |||||
* | | | Rework nil/option for nre in light of ""==nil | Flaviu Tamas | 2018-12-11 | 3 | -18/+25 |
| | | | | | | | | | | | | Fixes #9243 | ||||
* | | | Revert 7f49364fd0 for nre | Flaviu Tamas | 2018-12-11 | 2 | -5/+5 |
| | | | |||||
* | | | Merge pull request #9805 from pacien/181126-list-append | Andreas Rumpf | 2018-12-11 | 1 | -1/+2 |
|\ \ \ | | | | | | | | | add SinglyLinkedList.append procs | ||||
| * | | | add SinglyLinkedList.append procs | pacien | 2018-11-27 | 1 | -1/+2 |
| | | | | |||||
* | | | | Merge pull request #9881 from timotheecour/pr_ref_9880 | Andreas Rumpf | 2018-12-11 | 2 | -9/+32 |
|\ \ \ \ | | | | | | | | | | | refs #9880 show index and bound in lots of `index out of bounds` errors | ||||
| * | | | | refs #9880 show index and bound in lots of `index out of bounds` errors | Timothee Cour | 2018-12-09 | 2 | -9/+32 |
| | | | | | |||||
* | | | | | make tests green again | Araq | 2018-12-11 | 1 | -0/+2 |
| | | | | | |||||
* | | | | | attempt to make travis green | Araq | 2018-12-11 | 1 | -0/+1 |
| | | | | | |||||
* | | | | | megatest: make it green on Linux | Araq | 2018-12-11 | 6 | -9/+9 |
| | | | | | |||||
* | | | | | make more tests green | Araq | 2018-12-11 | 2 | -36/+8 |
| | | | | | |||||
* | | | | | make tests green; better output for when megatest execution fails | Araq | 2018-12-11 | 5 | -5/+5 |
| | | | | | |||||
* | | | | | testament megatest: furher refactorings making more tests green | Araq | 2018-12-11 | 2 | -5/+6 |
| | | | | | |||||
* | | | | | testament: joinable is now an explicit concept of a test spec | Andreas Rumpf | 2018-12-11 | 14 | -3/+24 |
| | | | | | |||||
* | | | | | Testament: refactoring; makes the test joiner green | Araq | 2018-12-11 | 24 | -25/+46 |
| | | | | | |||||
* | | | | | lots of small changes | Arne Döring | 2018-12-11 | 81 | -95/+111 |
| | | | | | |||||
* | | | | | megatest checks output and nimout | Arne Döring | 2018-12-11 | 13 | -195/+169 |
| | | | | |