summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fulfill https://github.com/nim-lang/Nim/pull/14995#issuecomment-664914391 ↵c-blake2020-07-284-42/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#15104) request. This can be conceived as an alternate, more capable resolution of https://github.com/nim-lang/Nim/issues/12200 than https://github.com/nim-lang/Nim/pull/12208 The code re-org idea here is to upgrade tablimpl.nim:`delImpl`/`delImplIdx` to abstract client code conventions for cell emptiness & cell hashing via three new template arguments - `makeEmpty`, `cellEmpty`, `cellHash` which all take a single integer argument and clear a cell, test if clear or produce the hash of the key stored at that index in `.data[]`. Then we update the 3 call sites (`Table`, `CountTable`, `SharedTable`) of `delImpl`/`delImplIdx` by defining define those arguments just before the first invocation as non-exported templates. Because `CountTable` does not save hash() outputs as `.hcode`, it needs a new tableimpl.nim:`delImplNoHCode` which simply in-lines the hash search when no `.hcode` field is available for "prefix compare" acceleration. It is conceivable this new template could be used by future variants, such as one optimized for integer keys where `hash()` and `==` are fast and `.hcode` is both wasted space & time (though a small change to interfaces there for a sentinel key meaning "empty" is needed for maximum efficiency). We also eliminate the old O(n) `proc remove(CountTable...)` in favor of simply invoking the new `delImpl*` templates and take care to correctly handle the case where `val` is either zero for non-existent keys in `inc` or evolves to zero over time in `[]=` or `inc`. The only user-visible changes from the +-42 delta here are speed, iteration order post deletes, and relaxing the `Positive` constraint on `val` in `proc inc` again, as indicated in the `changelog.md` entry.
* disable sink inference, only enable it for the stdlib. Reason: better source ↵Andreas Rumpf2020-07-286-5/+18
| | | | code compatibility (#15105)
* Change clibdir and cincludes for NetBSD (#15102)Euan2020-07-281-1/+9
|
* Fix #11352 strutil.insertSep() fails on negative numbers (#15087)Bung2020-07-282-6/+30
| | | | | | | | | | | | | | | | | | | * fix #11352 strutil.insertSep handle negtive number * test for #11352 * optimize * not parts string var * Update lib/pure/strutils.nim Thanks! Co-authored-by: alaviss <leorize+oss@disroot.org> * need to be countdown Co-authored-by: alaviss <leorize+oss@disroot.org>
* deprecate tables.allValues; continuation of #15047 (#15092)Miran2020-07-281-1/+2
|
* cleanup ARC documentation (#15100)Andreas Rumpf2020-07-282-44/+0
|
* yet another fusion fixnarimiran2020-07-281-1/+1
|
* another bumpnarimiran2020-07-281-1/+1
|
* bump FusionStableCommit to the latest commitnarimiran2020-07-281-1/+1
|
* Improvements to Windows install instructions (#15099)Ray Imber2020-07-281-0/+9
|
* fixes #15076 (#15095)Andreas Rumpf2020-07-274-28/+57
|
* fix #14698 nkRecWhen caused internalAssert in semConstructFields when ↵Timothee Cour2020-07-272-1/+24
| | | | | | | | | | | generic type not mentioned in fields (#14709) * fix #14698 nkRecWhen caused internalAssert in semConstructFields when generic type not mentioned in fields * address comment * Update compiler/semtypinst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStm… ↵Bung2020-07-272-1/+30
| | | | | | | | | | | | | | | | | | | (#15078) * fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStmtListExpr; genAsgn with lvalue tyVar and rvalue tyPtr * correct logic * add test for #11354 * handle nkHiddenAddr when n.len == 1 * Update compiler/jsgen.nim * Update compiler/jsgen.nim * Apply suggestions from code review Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #14189 (#15080) [backport]Bung2020-07-271-2/+2
|
* more renamingsAraq2020-07-272-3/+3
|
* code cleanupAraq2020-07-273-209/+1
|
* fixes a closure iterator memory leaks, progress on #15076Araq2020-07-272-1/+37
|
* Add test-cases for #12576 and #12523 (#15085)Danil Yarantsev2020-07-272-4/+36
| | | | | * Add a test-case for #12576 * Add a test-case for #12523
* Small optimization for the CI pipeline. (#15088)alaviss2020-07-271-15/+25
| | | | | | | | | | | * azure-pipelines: cache csources to speed up build Building csources takes about 2-4 mins, and since it hasn't changed for a long time, employ some caching to cut the time spent. * azure-pipelines: remove ppa avoidance configs Testing shows that there aren't any difference between having this and not having it, so removing this to simplify the code.
* parsecsv: fix '\0' being displayed as '0' in docs (#15086) [backport]Jjp1372020-07-271-2/+2
|
* compiler: minor code cleanupsAraq2020-07-274-5/+4
|
* Bump nimble (#15077)genotrance2020-07-261-1/+1
|
* fixes #15038 [backport:1.2]Andreas Rumpf2020-07-263-46/+29
|
* fixes #15052Andreas Rumpf2020-07-262-0/+22
|
* fix nightlies: smaller log files (#15074)Miran2020-07-251-1/+1
| | | | Hopefully this will fix "The job exceeded the maximum log length, and has been terminated."
* koch: bundle nim-lang/fusion with Nim (#15061)alaviss2020-07-251-4/+19
| | | Initial work on bundling nim-lang/fusion as part of the Nim distribution.
* Add a test-case for #12990 (#15072)Danil Yarantsev2020-07-252-2/+16
| | | | * closes #12990 * Add a test-case for #12990
* strict func: much better error messages (#15068)Andreas Rumpf2020-07-255-47/+134
| | | | | * strict func: much better error messages * documented the 'strict funcs' mode
* writing to a location counts as "side effect"; implements ↵Andreas Rumpf2020-07-255-5/+283
| | | | https://github.com/nim-lang/RFCs/issues/234 (#15030)
* deprecate tables.add (#15047)Miran2020-07-251-4/+8
|
* fix #14684 (#15059)Bung2020-07-251-0/+2
|
* fix #14534 (#15060) [backport]Bung2020-07-251-1/+1
|
* Bump nimble commit (#15053)genotrance2020-07-251-2/+2
|
* fix assignment to converted concept type (#15051)jcosborn2020-07-242-17/+41
| | | | | | | * fix assignment to converted concept type * check for resolved concepts * add extra test
* jsre: try to fix nightlies (#15057)Miran2020-07-242-1/+5
|
* fixes #15056 [backport]Araq2020-07-241-2/+6
|
* fixes #15036Andreas Rumpf2020-07-232-3/+2
|
* fixes #15044 [backport:1.2]Andreas Rumpf2020-07-232-3/+23
|
* json.nim: smaller init size (#15048)Miran2020-07-231-2/+2
| | | | There was a recent `rightSize` change in tables.nim, so the existing value (4) was creating too large tables.
* enforce browsers.nim only handles URLs [backport] (#15045)Andreas Rumpf2020-07-231-4/+10
|
* Change testing commands for some packages (#15041)Miran2020-07-221-6/+4
|
* fixes #15026 [backport] (#15040)Andreas Rumpf2020-07-221-1/+1
| | | no test case since only a special case was affected and the special case got removed
* fix #15033 (#15034)Hugo Granström2020-07-221-1/+1
|
* Add a testcase for #14480. Fixes #14480 (#15037)Danil Yarantsev2020-07-221-0/+7
|
* smtp: Fix STARTTLS, request HELO once TLS is established (#15032)Mildred Ki'Lya2020-07-221-3/+9
|
* ARC: optimize the code better when --panics:off (#15031)Andreas Rumpf2020-07-211-18/+24
|
* fix several newline problems (#15028) [backend]Miran2020-07-213-2/+37
| | | | * prevent newlines where they shouldn't be * 'contentLength' shouldn't be negative
* Fix #2408 - add -d:globalSymbols (#14904)genotrance2020-07-212-1/+7
|
* Shadow Dom apis (#14979)Bung2020-07-212-0/+37
| | | | | | | | | | | * shadow dom api * fix typos * host to Element type * fix code style * move elementsFromPoint to dom_extensions.nim
* Merge pull request #15027 from nim-lang/araq-cursor-fixAndreas Rumpf2020-07-212-4/+65
|\ | | | | cursor inference bugfix