summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice (#16714)Timothee Cour2021-04-195-16/+9
|
* IC navigator: added support for include files (#17784)Andreas Rumpf2021-04-199-33/+111
| | | | | | | | | | | | | | | | | * ic fixed navigator crash when track wrong/missed Also fixed an issue with getNimcacheDir not observing the outDir. * closer, but not sure how to test[skip ci][ci skip] * IC navigator: added support for include files * update * make posix happy via expandFilename * update Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
* Small privateAccess improvement (#17786)Clyybber2021-04-191-1/+1
|
* Introduce localErrorNode (#17785)Clyybber2021-04-197-24/+27
|
* Rename `=` to `=copy` in stdlib (#17781)Clyybber2021-04-195-4/+5
|
* fix #17732(forward args... to megatest) (#17780)flywind2021-04-191-3/+7
|
* ic refactoring (#17778)Andreas Rumpf2021-04-197-159/+146
| | | | | * minor IC documentation update * IC: refactoring: removed the 'shared' type and fields, these were a leftover from an earlier design
* fix #12521(type alias for openArray) (#17593)flywind2021-04-192-1/+27
| | | | | | | * fix nim js cmp fails at CT * fix #12521 * address comments
* [std/locks]close #7998(complete condition variables) (#17711)flywind2021-04-195-45/+60
| | | | | | * close #7998 * workaround genode * Update lib/system/syslocks.nim
* [std/locks]remove workaround for withLock (#17772)flywind2021-04-191-4/+3
| | | | | | | | | | Ref #6113 and #6049 The workaround for generics instantiation is unnecessary. It seems to be fixed by another PR I guess. The test still works. So the changes should be harmless. https://github.com/nim-lang/Nim/blob/devel/tests/stdlib/tlocks.nim I also add some inline pragmas.
* Documentation only, dom (#17770)Juan Carlos2021-04-191-1/+3
| | | | | | | | | | | | | | * ReSync with Devel * ReSync * https://github.com/timotheecour/Nim/issues/674 * Update lib/js/dom.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* [std/rlocks]add inline pragma (#17773)flywind2021-04-191-3/+3
| | | so that it can be used as the base of new locks module with destructors.
* [ci skip] document compiler/ic/rodfiles.nim (#17771)Saem Ghani2021-04-191-0/+72
| | | | | | | | | | | | | | | | * [ci skip] document compiler/ic/rodfiles.nim Why? * understand how rodfile module works and a bit of the format * leave notes behind for others * rather than Araq guess what others need, he can fix what other glean * possible model for making the compiler more aproachable Bonus: * might have found a minor bug in `loadSection` * Update compiler/ic/rodfiles.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* privateAccess now works with ref | ptr (#17760)Timothee Cour2021-04-198-15/+149
|
* declaredlocs followup: handle `cannot instantiate` errors (#17745)Timothee Cour2021-04-191-3/+3
|
* Fix #17755 (#17766)Dankr4d2021-04-181-2/+11
| | | Signed-off-by: Dankr4d <dude569@freenet.de>
* IC: fixes a long standing bug about DCE set computations (#17763)Andreas Rumpf2021-04-181-25/+33
|
* fix #17749 ignore SIGPIPE signals, fix nim CI #17748 (#17752)Timothee Cour2021-04-185-17/+57
| | | | | * fix #17749 SIGPIPE * fix for windows
* remove jstin from important packages (#17765)flywind2021-04-181-1/+0
| | | | | Ref https://github.com/nim-lang/Nim/pull/17759 https://github.com/LemonBoy/jstin/blob/master/src/jstin.nim is already archived and cannot pass CI anymore.
* IC exposes typedesc implementation shenanigans (#17759)Andreas Rumpf2021-04-182-1/+16
| | | | | | * IC exposes typedesc implementation shenanigans; so I change system.default's definition to what it should have been to begin with * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* make cuchar alias uint8 instead of char (#17738)shirleyquirk2021-04-172-1/+3
|
* fix range to unsigned conversion (#17754)Tanguy Cizain2021-04-172-1/+13
|
* -d:nimDebug: calls doAssert false instead of quit (#17739)Timothee Cour2021-04-179-14/+20
|
* replace defer with try ... finally (#17753)flywind2021-04-172-7/+14
|
* cString => cSourceString; tyCString => tyCstring so that error msgs show ↵Timothee Cour2021-04-1732-79/+79
| | | | cstring, not cString (#17744)
* IC: yet another embarrassing omission (#17743)Andreas Rumpf2021-04-174-10/+12
| | | | | * IC: yet another embarrassing omission * VM: fewer hacks that kept IC from working
* fix nim CI following #17455 (same postmortem as #17721) (#17740)Timothee Cour2021-04-161-6/+2
|
* removed nimfind tool, succeeded by 'nim check --defusages' (#17737)Andreas Rumpf2021-04-163-238/+0
|
* refs #17292 fix `repr`: `(discard)` now does't render as `discard` which ↵Timothee Cour2021-04-162-13/+45
| | | | | | | gave illegal code (#17455) * refs #17292 fix `repr` with (discard) * add tests * add more tests
* Fix buffer-overrun bug in net (#17728) [backport:1.0]shirleyquirk2021-04-162-4/+5
|
* std/hashes: hash(ref|ptr|pointer) + other improvements (#17731)Timothee Cour2021-04-165-29/+89
|
* start using import {.all.} (#17736)Timothee Cour2021-04-162-22/+19
|
* ic navigator tests (#17735)Andreas Rumpf2021-04-166-14/+54
| | | * IC navigator: first basic test
* `import foo {.all.}` reboot (#17706)Timothee Cour2021-04-1638-76/+584
|
* make the copy operation of Thread an error (#17734)flywind2021-04-161-0/+2
|
* followup #17700 put changelog in wrong file (#17729)shirleyquirk2021-04-152-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow use of colons inside fmt allowing colons inside fmt by replacing the format specifier delimiter lets arbitrary nim code be run within fmt expressions. * oops * Update strformat.nim * one space. * Update lib/pure/strformat.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/pure/strformat.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * changed parser to ignore ':' within parens * Update strformat.nim * Update lib/pure/strformat.nim Co-authored-by: flywind <xzsflywind@gmail.com> * formatting,documentation,backslash escapes Adding support for evaluating expressions by special-casing parentheses causes this regression: `&"""{ "(hello)" }"""` no longer parses. In addition, code such as &"""{(if open: '(' else: ')')}""" wouldn't work. To enable that, as well as the use of, e.g. Table constructors inside curlies, I've added backslash escapes. This also means that if/for/etc statements, unparenthesized, will work, if the colons are escaped, but i've left that under-documented. It's not exactly elegant having two types of escape, but I believe it's the least bad option. * not sure about how this works * changelog * changelog * added json strformat test * pulled my thumb out and wrote a parser * more escapes and string tests * ok, now i'm sure it's broken but cant get a failing test * found it * ok, that'll do * did i delete this? * spcng * spacing * messed up where changelogs are supposed to go * ocd Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* follow up #17518 (#17726)flywind2021-04-151-0/+8
|
* follow up #17536 (#17727)flywind2021-04-151-1/+1
|
* Fix array's high & low return type for empty arrays (#17705)Tanguy Cizain2021-04-153-0/+17
| | | | | | | | | * fix array.high/low return type * Add test for empty array low return type Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Fix getCustomPragmaVal for some multi arg pragmas (#17723)Clyybber2021-04-152-41/+54
| | | | | * Fix getCustomPragmaVal for some multi arg pragmas * Bootstrap fix
* rst indentation fixes (ref #17340) (#17715)Andrey Makarov2021-04-155-43/+272
|
* fix CI tests/errmsgs/tgcsafety.nim (#17721)Timothee Cour2021-04-141-1/+1
|
* IC: rodfiles: no floats (#17720)Andreas Rumpf2021-04-144-21/+18
|
* simplify asyncfutures, asyncmacro (#17633)Timothee Cour2021-04-145-94/+64
|
* getCustomPragma is split up in more usable chunks (#11526)Arne Döring2021-04-143-96/+193
| | | | | | | | | | | | | | | | | * getCustomPragma is split up in more usable chunks * changelog entry * fix for style checks * shitty typedesc special casing * Add since annotation and remove typedesc comments * Fix typo * Revert since annotation because it breaks bootstrapping * Export getCustomPragmaNode conditionally * Reduce code duplication * Update since * Update lib/core/macros.nim * Apply suggestions from code review Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* callback cannot be nil (#17718)flywind2021-04-141-0/+1
| | | | | | | `Task.callback` cannot be nil, we need to raise it at debug and release mode Situations: - if users create a Task object without using `toTask` and invoke the Task - if users already move the Task and invoke the Task
* Update channels.nim (#17717)flywind2021-04-141-4/+4
|
* IC: first steps towards 'nim check --def --ic:on' (#17714)Andreas Rumpf2021-04-1411-12/+211
| | | | | | | | | * IC: first steps towards 'nim check --def --ic:on' * IC navigator: deduplicate output lines * IC navigator: progress * IC navigator: use a different nimcache entry * IC navigator: special logic for templates/macros * IC navigator: proper error messages * IC navigator: prepare for testing code; document only what currently works somewhat
* Remove the use of usrToCell in gcMark [backport:1.2] (#17709)zah2021-04-142-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove the use of usrToCell in gcMark [backport:1.2] Recently, we've discovered a GC crash resulting from inlining of the memory allocation procs that allowed the compiler to avoid maintaining any references to the "user pointer" on the stack. Instead, a "cell pointer" appeared there and all field accesses were performed with adjusted offsets. This interfered with the ability of the GC to mark the correct cell in the conservative stack scans which lead to premature collection of objects. More details here: https://github.com/status-im/Nim/commit/af69b3ceae16281efd45cbee4ce1bedd14282304 This commit closes another theoretical loophole that may lead to the same problem. If a short proc is accessing both the object and its reference count in a short sequence of instructions, the compiler may be enticed to reduce the number of registers being used by storing only a single pointer to the object and using offsets when reading and writing fields. A perfectly good strategy would be to store only the cell pointer, so the reference count updates can be performed without applying offsets. Accessing the fields of the object requires offsets anyway, but these can be adjusted at compile-time without any loss. Following this strategy will lead to the same problem of marking a wrong cell during the conservative stack scan, leading to premature collection. The problem is avoided by not using `usrToCell` in `gcMark`. Since the cell discovery logic can already handle interior pointers, the user pointers don't need to be adjusted for the GC to function correctly.
* testament --verbose: prints commands; gitignore ic artifacts (#17716)Timothee Cour2021-04-142-5/+16
|