Timothee Cour
67afe72e9c
contributing docs: add instructions for economically restarting failed CI jobs, debugging failed CI ( #15576 )
...
* contributing docs: add instructions for economically restarting failed CI jobs, debugging failed CI
* fixup
2020-10-19 14:49:06 +02:00
Timothee Cour
7526472a6e
add a section on naming new stdlib module names ( #15590 )
2020-10-19 14:14:43 +02:00
n5m
b16b2eb06f
document that Nim executable must be included ( #15611 )
2020-10-17 20:30:12 +02:00
n5m
b50a0ee95c
fix option formatting ( #15591 )
2020-10-15 16:43:20 -07:00
Andreas Rumpf
da4aa2e1fb
renamed '=' to '=copy' [backport:1.2] ( #15585 )
...
* Assign hook name changed to `=copy`
* Adapt destructors.rst
* [nobackport] Duplicate tests for =copy hook
* Fix tests
* added a changelog entry
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-10-15 12:52:30 +02:00
Andreas Rumpf
51e3e0c7c4
implements https://github.com/nim-lang/RFCs/issues/260 ( #15505 )
...
* implements https://github.com/nim-lang/RFCs/issues/260
* added a test case
2020-10-07 00:09:28 +02:00
Andreas Rumpf
92163fa330
implements https://github.com/nim-lang/RFCs/issues/258 ( #15503 )
...
* implements https://github.com/nim-lang/RFCs/issues/258
* don't be too strict with custom pragma blocks
* cast pragmas: documentation
* added most missing inference query procs to effecttraits.nim
2020-10-06 16:47:15 +02:00
David Krause
f25ca0d304
added testament documentation link to tools.rst ( #15481 )
2020-10-05 17:04:47 +02:00
Miran
112b11c154
group procs of the same name in TOC ( #15487 )
...
* group procs of the same name in TOC
* correctly show `sink` parameters in TOC
* no need to reinvent the wheel - `mgetorPut` exists
* better setting of text color [ci skip]
* fix CSS for better alignment
2020-10-05 17:03:14 +02:00
Clyybber
37e0d6f32d
Fix typo
2020-10-01 19:58:53 +02:00
Clyybber
800d6204cd
Fix "arraq" typo :)
2020-10-01 19:58:08 +02:00
cooldome
531ed2dc36
fix #15405 . deepcopy arc ( #15410 )
...
* fix #15405
* fix tests
* deepcopy for ARC has to be enabled via --deepcopy:on
Co-authored-by: Araq <rumpf_a@web.de >
2020-10-01 17:39:48 +02:00
Andreas Rumpf
ab405c936e
views: yet another bugfix ( #15447 )
...
* views: yet another bugfix
* views: extended the spec
* views: take into account potential hidden mutations via proc calls
2020-10-01 15:04:36 +02:00
Andreas Rumpf
4058801607
spec for view types ( #15424 )
...
* spec for view types
* spec additions
* refactoring; there are two different kinds of views
* refactorings and spec additions
* enforce that view types are initialized
* enforce borrowing from the first formal parameter
* enforce lifetimes for borrowing of locals
* typo in the manual
* clarify in the implementation what a borrow operation really is
2020-09-29 23:42:38 +02:00
Andreas Rumpf
50b6f6996a
.noalias annotation; frontend support ( #15419 )
...
* .noalias annotation; frontend support
* added .noalias support to Nim; implements https://github.com/nim-lang/RFCs/issues/204
2020-09-28 13:51:39 +02:00
hlaaftana
0ea559611d
Fix proc generic params ident defs, missing empty ( #15412 )
2020-09-27 19:47:58 +02:00
Miran
2de6e18774
fix #11537 , correct parse inline code without surrounding spaces ( #15399 )
2020-09-25 09:25:47 +02:00
Miran
fe3211fbcf
fix the indentation in --help and --fullhelp ( #15387 )
...
* fix the indentation in `--help` and `--fullhelp`
* a better way to fix it
2020-09-23 12:44:41 +02:00
Miran
11c377c114
add enumerate macro ( #15297 )
...
* add `enumerate` macro
* address the comments
* put `enumerate` in its own module
2020-09-22 13:08:36 +02:00
Juan Carlos
db9ab2a4c0
Documentation prelude ( #15377 )
2020-09-21 12:37:14 +02:00
Miran
cbd78ec1f6
close #6071 , remove the mentions of deprecated docSeeSrcUrl ( #15350 )
2020-09-17 19:55:18 +02:00
Juan Carlos
913ffbb92d
Add documentation for Testament ( #15344 )
2020-09-16 21:31:35 +02:00
flywind
0aaf4e2dfa
Methods docs improvement ( #15338 )
...
* docs improvement
* minor
2020-09-16 14:51:01 +02:00
Juan Carlos
073bea6606
Remove Deprecated {.this:self.} from Documentation so people dont use it anymore ( #15328 )
2020-09-15 11:59:33 +02:00
narimiran
8a2cd7b24b
[ci skip] fix typo in the manual
2020-09-09 12:59:14 +02:00
Andreas Rumpf
10988d4840
borrow checking ( #15282 )
...
* refactoring: move procs to typeallowed.nim
* frontend preparations for first class openArray support
* prepare the code generator for first class openArray
* code generation for first class openArray; WIP
* code generation for open arrays, progress
* added isViewType proc
* preparations for borrow checking
* added borrow checking to the front end
2020-09-09 07:32:03 +02:00
Miran
c49b88163c
"for-loop macros" are no longer an experimental feature ( #15288 )
2020-09-08 14:25:25 +02:00
Clyybber
fb58066b61
Fix #5691 ( #15158 )
...
* Fix #5691
* Cleanup and thoughts
* Use scope approach
* Seperate defined/declared/declaredInScope magics
* Fix declaredInScope
* Update spec accordingly
2020-08-27 15:50:59 +02:00
alaviss
575697e1f4
doc/nimdoc.css: align field names to the right ( #15217 )
2020-08-23 09:48:37 +02:00
Ico Doornekamp
2260ede247
Added array type definition to manual ( #15173 )
...
Co-authored-by: Ico Doornekamp <git@zevv.nl >
2020-08-10 14:01:47 +02:00
Andreas Rumpf
86c9b78339
disable sink inference, only enable it for the stdlib. Reason: better source code compatibility ( #15105 )
2020-07-28 19:18:46 +02:00
Andreas Rumpf
be78b35bb8
cleanup ARC documentation ( #15100 )
2020-07-28 11:34:44 +02:00
Andreas Rumpf
2aca748ddd
strict func: much better error messages ( #15068 )
...
* strict func: much better error messages
* documented the 'strict funcs' mode
2020-07-25 19:36:53 +02:00
genotrance
450a3e3179
Fix #2408 - add -d:globalSymbols ( #14904 )
2020-07-21 19:14:36 +02:00
Bung
ba5604b96d
fix #13621 , the nim-livereload is mentioned as proposal in #8927 ( #14998 )
2020-07-16 11:18:59 +02:00
Andreas Rumpf
c5358b0d4b
An optimizer for ARC ( #14962 )
...
* WIP: an optimizer for ARC
* do not optimize away destructors in 'finally' if unstructured control flow is involved
* optimized the optimizer
* minor code cleanup
* first steps to .cursor inference
* cursor inference: big steps to a working solution
* baby steps
* better .cursor inference
* new feature: expandArc for easy inspection of the AST after ARC transformations
* added topt_cursor test
* adapt tests
* cleanups, make tests green
* optimize common traversal patterns
* moved test case
* fixes .cursor inference so that npeg compiles once again
* cursor inference: more bugfixes
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-07-15 23:00:06 +02:00
Juan Carlos
6d10baa339
https://github.com/nim-lang/Nim/pull/14948#issuecomment-656498426 ( #14958 )
2020-07-11 06:21:59 -04:00
Clyybber
bf51cee431
Update docs and changelog
2020-07-10 13:36:02 +02:00
Ico Doornekamp
d7ccd82eac
VM profiler ( #14833 )
...
* Crude VM profiler
* Added --profileVM flag, refactoring
* fixed FileLine hash
* Use TLineInfo instead of own FileLine, updated formatting
* Refactoring, moved PStackFrame to vmdefs for cleaner data structure
* Moved vmprofiler to separate file
* Simplified TLineInfo hash, use toFileLineCol for output
* Hash
* Moved profile data into Config, dump only once at end of run
* Changed profile output header to show '#instr' instead of 'count'
* Do not accumulate instrcount for non-top frames
Co-authored-by: Ico Doornekamp <git@zevv.nl >
2020-07-09 19:18:35 +02:00
awr1
37253d660f
Minor improvements to typecast section of manual ( #14896 )
...
* Minor improvements to typecast section of manual
* Clarification to casting w/ concrete types
* Added less ambiguous language
2020-07-07 10:22:55 +02:00
Andreas Rumpf
1854d29781
scoped memory management ( #14790 )
...
* fixes the regressions
* closes #13936
* scope based memory management implemented
* enabled tcontrolflow.nim test case
* final cleanups
2020-07-04 07:37:24 +02:00
Timothee Cour
dc5a40f3f3
{.deprecated: [existsFile: fileExists].} ( #14735 )
...
* {.deprecated: [existsFile: fileExists].}
* s/existsFile/fileExists/ except under deps
* workaround pending #14819
* fix test
2020-07-02 16:19:13 +02:00
Juan Carlos
74d1f25010
Clean out oldast ( #14837 )
...
* Clean out old Deprecated CLI switch
* Update to remove --oldast CLI option
2020-06-30 10:01:25 +02:00
Danil Yarantsev
7936768560
Fix some typos ( #14843 )
2020-06-28 19:17:18 +02:00
Clyybber
4f70180a58
Fix typo
2020-06-28 18:03:39 +02:00
Manuel Bojato
22f1b5120e
Fix nimdoc invalid css on theme switch class ( #14834 )
2020-06-27 23:36:31 +02:00
Sizhe Zhao
ad00d616e8
Warn about calling wrappers at compile time until #14049 is fixed. ( #14828 )
2020-06-27 16:51:48 +02:00
Sizhe Zhao
70b07edf42
Fix missing comma ( #14829 )
2020-06-27 12:11:29 +02:00
Timothee Cour
4dfb062f4d
update contributing.rst and docstyle.rst: refer to a bug via bug #1234 + other guidelines ( #14796 )
...
* add a testing convention in nep1
* misc updates to contributing.rst and docstyle.rst
* address comments
2020-06-26 10:40:34 +02:00
Juan Carlos
28510a9da9
Deprecated laxStrings for mutating the internal zero terminator on strings and its Deprecated code cleaned out ( #14766 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-06-23 13:20:53 +02:00