| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* New/better macro pragmas, make some experimental
fix #15920, close #18212, close #14781, close #6696,
close https://github.com/nim-lang/RFCs/issues/220
Variable macro pragmas have been changed to
only take a unary section node.
They can now also be applied in sections with multiple variables,
as well as `const` sections. They also accept arguments.
Templates now support macro pragmas, mirroring other routine types.
Type and variable macro pragmas have been made experimental.
Symbols without parentheses instatiating nullary macros or templates
has also been documented in the experimental manual.
A check for a redefinition error based on the left hand side of variable
definitions when using variable macro pragmas was disabled.
This nerfs `byaddr` specifically, however this has been documented as
a consequence of the experimental features `byaddr` uses.
Given how simple these changes are I'm worried if I'm missing something.
* accomodate compiler boot
* allow weird pragmas
* add test for #10994
* remove some control flow, try remove some logic
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* deprecate unsafeAddr; extend addr
addr is now available for all addressable locations, unsafeAddr is deprecated and become an alias for addr
* follow @Vindaar's advice
* change the signature of addr
* unsafeAddr => addr (stdlib)
* Update changelog.md
* unsafeAddr => addr (tests)
* Revert "unsafeAddr => addr (stdlib)"
This reverts commit ab83c99c507048a8396e636bf22d55fdd84d7d1c.
* doc changes; thanks to @konsumlamm
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
|
|
|
| |
ref #19173; because deepcopy is not fit for ORC/ARC which was used for spawn and spawn will be removed from compiler
|
|
|
|
|
|
|
| |
Mention the `import foo {.all.}` syntax in the manual,
with a caveat about private imports.
Also link to the experimental importutils module.
Co-authored-by: adigitoleo <adigitoleo@dissimulo.com>
|
| |
|
| |
|
|
|
|
|
|
|
| |
* allow full commands and blocks in type sections
* update grammar
* fix changelog [skip ci]
* more tests
* even more tests
|
| |
|
| |
|
| |
|
|
|
|
| |
#19266 (#19267)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* nimRawSetjmp: support Windows
Using `_setjmp()` directly is required to avoid some rare (but very
annoying) exception-related stack corruption leading to segfaults on
Windows, with Mingw-w64 and SEH.
More details: https://github.com/status-im/nimbus-eth2/issues/3121
Also add "nimBuiltinSetjmp" - mostly for benchmarking.
* fix for Apple's Clang++
|
|
|
| |
In addition to an issue number, the title of a PR should contain a brief description; then users can follow the progress more easily from the title.
|
|
|
| |
fixes #19188
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Improve documentation around func and method
* Update doc/tut1.rst
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
* Update doc/tut1.rst
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com>
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com>
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com>
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com>
* Rewrite of Zooms suggestion
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com>
|
| |
|
|
|
|
| |
* renamed 'gc' switch to 'mm'; [backport:1.6]
* better docs
|
|
|
|
|
|
|
|
|
|
|
| |
* `caseStmtMacros` no longer experimental, experimental manual refactor
* Update doc/manual.rst
* apply review suggestions
* apply review
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
| |
* implement RST & Markdown quote blocks
* compile with nim 1.0
* Fix indentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* pthreads setup for zephyr
- enable tweak stack size
- update lib/system/threads.nim
- Fix int/uint in casting pointer.
* add documentation and tweak flag names
* add documentation and tweak flag names
* fix configuration flag names
* fix configuration flag names
* cleanup
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Enable customizing PageSize (via PageShift).
This enables adjusting PageSize for embedded targets without abusing
cpu16.
* copy nimPageXYZ settings for mmpaptest
* add docs for Nim manual
* add docs for Nim manual
* docs tweaks
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Call {.cursor.} a pragma.
Its hard to find .curser annotation while googling because all other things like it are called pragmas. See https://nim-lang.org/docs/manual.html#pragmas
Also the . in front of the name makes it hard to find and search for.
Can we just call it cursor pragma?
* Small fix for comment.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* manual: Document that comma propagates the default values of parameters
Fixes https://github.com/nim-lang/Nim/issues/15949.
* Use the "bug #NNNN" comment syntax for consistency
Ref:
https://nim-lang.github.io/Nim/contributing.html#writing-tests-stdlib
> Always refer to a GitHub issue using the following exact syntax: bug
for tooling.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* manual: Document the use of `static` as a proc call
Also adds tests.
Fixes https://github.com/nim-lang/Nim/issues/16987 .
* Update doc/manual.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Use the "bug #NNNN" comment syntax for consistency
Ref:
https://nim-lang.github.io/Nim/contributing.html#writing-tests-stdlib
> Always refer to a GitHub issue using the following exact syntax: bug
for tooling.
* manual: Undocument usage of foo.static
foo.static and foo.static() are not expected to work.
Ref: https://github.com/nim-lang/Nim/pull/19084/files#r741203578
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
|
| |
|
| |
|
|
|
|
| |
(#19065)
|
| |
|
|
|
| |
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
| |
* feat: copy to clipboard
* fix: CI failure related issue
* fix: CI failure issue
* fix: copy to clipboard button bug
* feat: copy pragmadots value to clipboard
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Make compiler build more reproducible
Removed the compile time from the version output.
Added Git commit's author's datetime in UTC timezone.
Fixes #18508
See https://reproducible-builds.org/docs/timestamps/
See https://reproducible-builds.org/docs/source-date-epoch/
* Revert "Make compiler build more reproducible"
This reverts commit 2f9359ae89622c2d95ef243d13251a310e94a199.
Documented how to use compile reproducible builds with the
`SOURCE_DATE_EPOCH` environment variable.
* Corrected `readme.md` formatting
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
|
| |
|
| |
|
|
|
|
|
|
|
| |
(#18895)
* fix wrong module name
* rephrase more word
|
|
|
|
|
|
|
|
|
| |
* [backport] change some examples in tut1.rst
* Update doc/tut1.rst
* Update doc/tut1.rst
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* documented overload disambiguation [backport]
* Update doc/manual.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* documented overload disambiguation [backport]
* documented overload disambiguation [backport]
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
|
|
|
|
|
| |
* cleaned up destructors documentation [backport]
* Spec updates [backport:1.0]
|
| |
|
|
|
|
|
| |
* remove channels
* test
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* implemented Unicode operators; refs https://github.com/nim-lang/RFCs/issues/388
* bugfix
* better test
* arguably more elegant implementation
* Update changelog.md
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fixes #17369
* megatest is green for --cpu:arm64
* docgen output includes more tags/raises
* implemented 'effectsOf'
* algorithm.nim: uses new effectsOf annotation
* closes #18376
* closes #17475
* closes #13905
* allow effectsOf: [a, b]
* added a test case
* parameters that are not ours cannot be declared as .effectsOf
* documentation
* manual: added the 'sort' example
* bootstrap with the new better options
|