summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* store full definition AST for consts, fix noRewrite (#20115)metagn2022-09-2826-65/+176
| | | | | | | | | | | | | | | | | | | | | | | * continue #9582 for consts, close #9331, fix #20114 also move extractPragma to ast to pave the way for things like {.strdefine: "abc".} etc * changelog correctly * fix jsgen * update tgetimpl * fix sighashes * fix #19766, add comment about postfix * fix noRewrite LOL refs #16620 * fix changelog * fix destructors
* fixes #19986; mutable view from immutable location (#20134)ringabout2022-09-282-15/+66
| | | | | * fixes #19986; mutable view from immutable location * fixes the tests
* Update message for checking `cast` (#20145)konsumlamm2022-09-283-7/+7
| | | | | * Update message for checking `cast` * Update error messages in tests
* fixes #20141; dereferencing pointer to incomplete type error with cast (#20147)ringabout2022-09-282-0/+32
| | | Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* fixes #19457 seqs are not properly updated in loop with ARC/ORC (#19922)ringabout2022-09-283-15/+48
| | | | | | | | | * test CI * fixes #19457 * add comments Co-authored-by: sandytypical <43030857+xflywind@users.noreply.github.com>
* remove deprecated and broken nimweb tools (#20442)ringabout2022-09-285-842/+2
| | | | | * remove deprecated and broken nimweb tools * readme
* follow up #19408; bump devel version and deprecated unsafeAddr (#20432)ringabout2022-09-281-2/+3
| | | bump devel version and deprecated unsafeAddr
* Refactor initOptParser (#19656)Nan Xiao2022-09-271-22/+5
| | | Co-authored-by: flywind <xzsflywind@gmail.com>
* fixes #19401; fixes #19402; rework Forward declaration and finalizer for ORC ↵ringabout2022-09-273-24/+112
| | | | | | | | | | | | | | | | | (#20295) * fixes #19401; fixes #19402; rework Forward declaration and finalizer for ORC * add more tests * give it a name * make more tests * fixes tests * hidden addr for cpp * move code to a function
* make more standard libraries work with `nimPreviewSlimSystem` (#20343)ringabout2022-09-27194-54/+299
| | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
* allow more simple expressions in js (#20270)Amjad Ben Hedhili2022-09-271-1/+3
| | | | | | | | * make it match ccgexprs.nim `isSimpleExpr` * x in {1, 2} * r[].x and r.x when r is ref type * float(x) Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* Compute small nim string lit at CT (#20439)Amjad Ben Hedhili2022-09-271-3/+18
| | | | | * Reduces runtime overhead for small strings. * Avoids including `makeNimstrLit` in the output when all strings are small enough.
* no ropes WIP (#20433)Andreas Rumpf2022-09-2724-1003/+1059
| | | | | | | | | | | | | * refactorings in preparation for ropes elimination of the C code generator; mostly the usual ': Rope' -> 'result: var Rope' rewrite * rewrote ccgcalls.nim * refactored ccgexprs.nim * ccgliterals: refactoring * refactoring: code dealing with name mangling * refactoring: getRecordFieldsAux * ropes are strings (insert obscene joke here) * optimize JS code gen * optimizations and code improvements * more optimizations * final cleanups
* Fix issue with fields trying to use wrong name (#12655)Peter Munch-Ellingsen2022-09-262-5/+5
| | | | | | | | | | * Fix issue with fields trying to use wrong name * Fix similar issue in winlean * Revert accidental csize change Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* use almostEqual in tstats.nim (#20431)n5m2022-09-261-8/+9
| | | prefer math.almostEqual
* fixes #20426; remove `maincommand` and `m` options since they are a no op ↵ringabout2022-09-262-1/+3
| | | | | | | | | | | | | | | | | since 2014 (#20429) * bump macOS image on Azure CI to macos-11 ##[warning]The macOS-10.15 environment is deprecated, consider switching to macos-11(macos-latest), macos-12 instead. For more details see https://github.com/actions/virtual-environments/issues/5583 * fix CI error * fixes #20426; remove `maincommand` and `m` options since they are a noop since 2014 and causes confusion fixes #20426 https://github.com/nim-lang/Nim/commit/7f7b13a45f73c6d9dcca3ce8388833189d77426c#diff-d949f8c356fd2dc9ceedc6f3dbbd01e2c806269dd0a8ad6516facf589fa2c99a makes it a no op, but it causes a regression because it should add `expectArg(switch, arg, pass, info)` before the discard statement. It causes https://github.com/nim-lang/Nim/issues/20426 to happen. Without `expectArg(switch, arg, pass, info)`, `-mm:orc` is wrongly interpreted as `-m` and compiler, which doesn't make sense. It should either abort compilation or prints `argument for command line option expected: '-m'` message. Since they are a no op since 2014, let's remove it to clear the confusion. Let's wait and see whether it breaks something. * add a changelog
* fix #18128 rfind on empty needle returns rightmost index (#20430)n5m2022-09-262-14/+19
| | | rfind on empty needle returns haystack len
* add a changelog and update the document for ORC (#20415)ringabout2022-09-263-11/+12
| | | | | | | | | | | | | | | | | | | | * add a changelog and update the document for ORC * hone * back * Apply suggestions from code review Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update doc/mm.md Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update doc/mm.md Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Represent more types as JS `TypedArray`s (#20411)Amjad Ben Hedhili2022-09-261-2/+8
| | | | | | | * Represent `array[N, char]` as JS `UInt8Array(N)` * Add support distinct and range types * Add support for bools and enums
* fix #2614 improve error message when array of proc calling convention… ↵Bung2022-09-264-31/+69
| | | | | (#20379) fix #2614 improve error message when array of proc calling convention mismatch
* Optimize `base64.encodeMime` (#20409)Amjad Ben Hedhili2022-09-251-6/+20
| | | | | | | | | * Optimize `base64.encodeMime` * 5x faster for common scenarios, 13x faster if `lineLen` <= encoded string's length or `newLine` is empty. * Changed `lineLen`'s type to `Positive` to disallow `0`. * Fix
* continue booting the compiler with refc (#20421)ringabout2022-09-243-2/+3
| | | | | | | * continue boot the compiler with refc * koch * use `gc:refc`
* close #15955; add a test case (#20414)ringabout2022-09-243-0/+37
|
* defaults to ORC (#19972)ringabout2022-09-2381-154/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * defaults to Orc * bootstrap using refc * use gc * init orc defines * unregister orc * fix gc * fix commands * add prepareMutation for orc * enable deepcopy for orc * prepareMutation * more fixes * some cases * bug #20081 * partial fixes * partial fixes * fixes command line * more fixes * build Nim with refc * use gc * more fixes * rstore * orc doesn't support threadpool * more shallowCopy * more fixes * fixes unsafeNew * workarounds * small * more fixes * fixes some megatest * tcodegenbugs1 refc * fxies megatest * build nimble with refc * workaround tensordsl tests * replace shallowCopy with move * fixes action * workaround * add todo * fixes important packages * unpublic unregisterArcOrc * fixes cpp * enable windows Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* fix #17351; switch to c++17 and remove hacks (#20407)ringabout2022-09-233-5/+14
| | | | | * fix #17351; switch to c++17 * remove workaround
* Fixes #20348; only respect the recursion limit if the symbol's generic type ↵Aditya Siram2022-09-224-12/+145
| | | | | has been generated by the compiler (#20377) Fixes #20348
* fixes #20285; prevent oid time overflow at year 2038 (#20338)ringabout2022-09-223-26/+26
| | | | | | | | | | | | | | | * Revert "fixes #20285; prevent oid time overflow at year 2038" This reverts commit dfcdb6ec2ab6a5fa53b6a99294a84fd122be8f8d. * increase time to 64 bits and clean up * add testcase * inline consts * add a changelog * fixes #20285; prevent oid time overflow at year 2038
* Extract markdown/rst doc into separate file (#20404)Andrey Makarov2022-09-223-247/+271
| | | | | | | | | | | * Extract Markdown & Rst doc into separate file This documentation should be extracted into separate file as it's user's documentation, which can be used as a separate utility for compiling `.md/.rst` files. * Restructure: move markup info into markdown_rst.md +Markdown link migration
* Improve error message when instantiating generics with object constructor ↵Bung2022-09-212-2/+11
| | | | | | | | | | | | | | | (#20358) * Improve error message when instantiating generics with object constructor * follow suggestion * Update compiler/semobjconstr.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update tests/errmsgs/t19882_2.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* contentLength default to -1 if not present (#19835)Bung2022-09-212-2/+3
| | | | | * contentLength default to -1 if not present * `httpclient.contentLength` changelog
* fixes #20397; fixes stylecheck regression (#20398)ringabout2022-09-214-0/+20
| | | | | * fixes #20397; fixes stylecheck * add testcase
* Update manual.md (#20394)Judd2022-09-211-17/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | * Update manual.md update outdated information on `ObservableStores`. * Update manual.md add `base` pragma to fix the warning. * Update doc/manual.md accept. Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update manual.md update example code. * Update manual.md 1. more updates to help keeping readers on track. 1. fix typos. Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* RFC-460 implemented (#19771)Juan Carlos2022-09-213-0/+33
| | | | | | | | | * RFC-460 implemented * RFC-460 implemented * RFC-460 implemented * Fix dumb GitHub autoupdate on changelog
* fixes #20391; make of operator work with generics for ORC (#20395)ringabout2022-09-212-1/+9
|
* follow up #19968; add more tests (#20396)ringabout2022-09-201-0/+60
|
* turn nimIncrSeqV3 into deadcode (#20388)ringabout2022-09-204-93/+51
|
* clarify distinct pointer type `nil` change (#20376)metagn2022-09-201-1/+9
| | | | | | | | | | | * clarify distinct pointer type `nil` change * Update changelog.md [skip ci] Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * remove extra quote [skip ci] Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* report expression has no type other than has to be used (or discarded… ↵Bung2022-09-202-0/+9
| | | | | (#20392) report expression has no type other than has to be used (or discarded) when typ is tyNone in discardCheck
* fix #19882 Improve error message when instantiating generics that lac… ↵Bung2022-09-192-1/+12
| | | | | | | | | (#20356) * fix #19882 Improve error message when instantiating generics that lack a type * Update tests/errmsgs/t19882.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* Markdown link migration part 2 (#20371)Andrey Makarov2022-09-1918-284/+288
|
* Add missing proc to dom (#20378)Juan Carlos2022-09-192-1/+62
| | | | | | | | | * Add missing proc from dom * Add missing proc from dom * Add missing proc from dom Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* Add missing symbols to regex (#20383)Juan Carlos2022-09-192-3/+5
| | | | | * Add missing attribute to jsre * Add missing attribute to jsre
* Recommend `mapIt` in some cases (#20347)Amjad Ben Hedhili2022-09-191-6/+4
| | | | | * Recommend `mapIt` in some cases * Remove runnableExample
* Shorten JS block code (#20370)Amjad Ben Hedhili2022-09-191-4/+4
|
* fixes #19713; Revert "Remove tlsEmulation enabled from Windows + GCC config" ↵ringabout2022-09-194-2/+12
| | | | | | | | | | | | | | | (#19119) (#20327) * Revert "Remove tlsEmulation enabled from Windows + GCC config (#19119) [backport:1.6]" This reverts commit 77b696c2c92b5f478526290c5e184a4c41060f7b. * increase nimTlsSize to 48000 * enable for windows * fixes tests * fixes tlsEmulation:on
* fixes Thread initializer for ARC/ORC on Macos (#20368)ringabout2022-09-162-2/+2
| | | | | | | | | * fixes Thread initializer for ARC/ORC * another try * fix * use int
* Allow custom pragma on iterators [backport] (#20344)Tanguy2022-09-172-1/+8
| | | Allow custom pragma on iterators
* add docs to copyNimNode and copyNimTree (#20357)ringabout2022-09-161-2/+25
| | | | | | | | | * add docs to copyNimNode and copyNimTree * Apply suggestions from code review Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* don't run azure on other branches either (#20365)metagn2022-09-161-1/+2
| | | | | | | | | | | | | | | * don't run azure on other branches either refs #20184 Azure is more prone to clogging & it's especially bad with the timeouts (some PRs haven't rebased). * allow all version- branches Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * add closing quote Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* more minor updates to manual.md (#20360)Judd2022-09-151-5/+5
| | | | | | | | | | * fix typos in manual.md 1. remove redundant `(` 1. 'System module' -> 'system module'. * Update manual.md "However" is not easy to understand. Suggest changing to the word into "In this version" to make the comparison explicite.