summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* fixed system.delete (#18507)Andreas Rumpf2021-07-183-12/+26
|
* deprecate strutils.delete and add an overload with saner semantics ↵Timothee Cour2021-07-183-9/+59
| | | | consistent with sequtils.delete; follows #18487 (#18510)
* add NIM_STATIC_ASSERT(CHAR_BIT == 8, "") to fail-fast where assumption is ↵Timothee Cour2021-07-181-0/+3
| | | | violated (#18512)
* Revert #17398 and #17402 (#18480)Miran2021-07-184-32/+19
| | | | | | | | | | | * Revert "followup #17398: `getTempDir`, `getConfigDir` now do not have trailing DirSep (#17402)" This reverts commit 2356d0603f70cad90f76fa57999054bf5c0a9157. * Revert "fix #17393 getHomeDir and expandTilde should not include trailing `/` (#17398)" This reverts commit bebf2ce24a43bef4cde5c90c4010631a1e4a7927. * fix test
* Make error message for empty new-styled concept more descriptive (#18506)konsumlamm2021-07-183-11/+11
| | | | | | | * Allow empty new-styled concept Slightly improve error messages * Make empty new-styled concepts an error
* fix nativeToUnixPath (#18501)Timothee Cour2021-07-172-3/+28
|
* make dragonbox opt-in via -d:nimFpRoundtrips (#18504)Andreas Rumpf2021-07-168-27/+35
| | | | | | | * make dragonbox opt-in via -d:nimFpRoundtrips * make tests green again * make tests green again
* deprecate cuchar, don't redefine it (#18505)Andreas Rumpf2021-07-1611-54/+55
|
* added Atlas helper tool (#18497)Andreas Rumpf2021-07-166-1/+751
| | | | | * added Atlas helper tool * further improvements
* Add changes required by Nimble lock file support (#12104)Ivan Bobev2021-07-155-55/+140
| | | | | | | | | | | | | | | | Implemented support for Nimble local cache with package directories with a checksum of the package at the end of their names. Now the compiler supports package paths in the form: * /path_to_nimble_cache_dir/pkgs/package_name-1.2.3- FEBADEAEA2345E777F0F6F8433F7F0A52EDD5D1B * /path_to_nimble_cache_dir/pkgs/package_name-#head- 042D4BE2B90ED0672E717D71850ABDB0A2D19CD2 * /path_to_nimble_cache_dir/pkgs/package_name-#branch-name- DBC1F902CB79946E990E38AF51F0BAD36ACFABD9 Related to nim-lang/nimble#127
* deprecate `sequtils.delete` and add an overload with saner semantics ↵Timothee Cour2021-07-153-47/+143
| | | | | | | | consistent with `system.delete` (#18487) * deprecate sequtils.delete and add an overload with saner semantics * AssertionDefect => IndexDefect * improve tsequtils * add tests; use splice in js for optimization
* Extended side effect error messages (#18418)quantimnot2021-07-153-17/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Extended side effect error messages * Applied feedback: - refactored `markSideEffect` - refactored string interpolations - single message - skip diagnostics in `system.compiles` context Other: - started a test of diagnostic messages [ci skip] Tests aren't updated yet because messaging isn't nailed down. * - Added hints of where for side effect call locations. - Tried to clarify the reasons. * fix tests * Applied PR review feedback: - moved collection of side effects from TSym to TContext - used pragma shorthand form `.sideEffect` and `.noSideEffect` in messages - added leading '>' to structured messages for readability - changed `sempass2.markSideEffect` to a proc - replaced `system.echo` in the test to make the test compatible with Windows * Applied NEP1 formatting suggestion Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
* added `nimAllocPagesViaMalloc` switch (#18490)Andreas Rumpf2021-07-155-7/+46
| | | | | * added switch * alloc.nim needs page aligned memory blocks
* Improve description of how =trace is used (#18491)GordonBGood2021-07-151-5/+22
| | | | | | | | | | | | | | | | | | | * [skip ci] thamming_orc test created/destroyed counts match The thamming_orc.nim code now counts all created objects being tested, not just the ones following the "first 20" test, and the position of the `destroyed += 1` counter has been adjusted so it counts all the calls that are as a result of `=trace` tracing and not just the original destruction calls. * Improve description of how `=trace` is used The following nuances weren't previously fully explained: 1. That `=trace` is only used by `--gc:orc`. 2. That `=trace` is almost certainly used along with `=destroy` when manual resource allocation has been used, but it is only required if there is a possibility of cyclic references in the wrapped types (ie. generic types). 3. That, currently, a forward definition is required for the second of the pair to avoid an auto compiler generation conflict. The pattern of the use of `=trace` has also been made more extensive, showing how both a custom `=destroy` and `=trace` are used for manual allocation of resources when there is any possibility of a cyclic reference in the resource-wrapped values. * Update doc/destructors.rst Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix https://github.com/dom96/choosenim/issues/256 WSL CRLF (#18452)Timothee Cour2021-07-141-0/+3
| | | | | * fix https://github.com/dom96/choosenim/issues/256 WSL CRLF * fixup
* fixes #17893 (#18485)Andreas Rumpf2021-07-132-6/+68
| | | * fixes #17893
* closes #18433 (#18484)Andreas Rumpf2021-07-133-6/+42
| | | | | * beneficial refactoring; use system.Endianness * closes #18433
* workaround #18481 (#18482)flywind2021-07-131-18/+20
|
* close #17986 add testcase (#18477)flywind2021-07-121-0/+12
|
* [source code filter]fix Nightlies bug (#18475)flywind2021-07-121-1/+1
| | | | | * workaround Nightlies bug * Update tools/niminst/makefile.nimf
* thamming_orc test created/destroyed counts match (#18471)GordonBGood2021-07-121-4/+4
| | | The thamming_orc.nim code now counts all created objects being tested, not just the ones following the "first 20" test, and the position of the `destroyed += 1` counter has been adjusted so it counts all the calls that are as a result of `=trace` tracing and not just the original destruction calls.
* fix comment (#18473)sivchari2021-07-111-6/+6
|
* more important packages (#18472)flywind2021-07-101-0/+6
|
* sync with the same template from locks module (#18414)Antonis Geralis2021-07-101-1/+1
|
* ORC: support for custom =trace procs (#18459)Andreas Rumpf2021-07-0913-11/+321
| | | | | | | | | | | * ORC: support custom =trace procs (WIP) * Update tests/arc/tcustomtrace.nim Co-authored-by: Clyybber <darkmine956@gmail.com> * =trace is now documented and seems to work * make test green Co-authored-by: Clyybber <darkmine956@gmail.com>
* runnableExamples now show originating location in stacktraces on failure ↵Timothee Cour2021-07-092-11/+25
| | | | | | | | | (#18457) * runnableExamples now show originating location in stacktraces on failure * PRTEMP * fix indentation inside multiline strings
* [docs] improve std/encodings (#18458)flywind2021-07-091-12/+41
| | | | | | | | | | | | | | | | | | | | * [docs] improve std/encodings * tiny * shrink * Apply suggestions from code review Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Apply suggestions from code review * Update lib/pure/encodings.nim Co-authored-by: Varriount <Varriount@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Varriount <Varriount@users.noreply.github.com>
* Fix a bug with starting of asynchronous processes (#18464)Ivan Bobev2021-07-081-1/+1
| | | | | | | The asynchronous process completion handler callback should be called only once. This is achieved by passing `WT_EXECUTEONLYONCE` flag to the `registerWaitForSingleObject` Windows API procedure. Related to cheatfate/asynctools#35
* rm redundant blank lines before literal blocks (#18465)Andrey Makarov2021-07-084-12/+23
|
* Revert "Make 'echo' raise IOErrors when appropriate (#16367)" (#18460)Miran2021-07-083-30/+8
| | | This reverts commit 23d23ecb081be6702d74024be8f96d92d9f88a59.
* improve `--declaredLocs` to help disambiguate types (generics, aliases etc) ↵Timothee Cour2021-07-088-14/+112
| | | | | | | | | (#18389) * improve --declaredlocs to help disambiguate types (generics, aliases etc) * avoid a cyclic deps * fix test after rebase
* followup #18252: show special flags -d:danger, -d:release when given (#18451)Timothee Cour2021-07-081-0/+4
|
* Rename test variable due to unfortunate connotations (#18453)Aditya Siram2021-07-081-4/+4
|
* improve rendering of newOSError.additionalInfo (#18443)Timothee Cour2021-07-072-3/+6
| | | | | * improve rendering of newOSError.additionalInfo * fixup
* ORC: use =destroy instead of =dispose (#18440)Andreas Rumpf2021-07-0710-81/+205
| | | | | | * ORC refactoring in preparation for further changes (=dispose must die) * ORC: embrace =destroy, avoid =dispose * ORC: no need for =dispose * closes #18421
* major improvements to `std/wrapnils`: optimal codegen, case objects, lvalue ↵Timothee Cour2021-07-073-125/+345
| | | | | | | semantics (#18435) * wrapnils now generates optimal code; also handles case objects * changelog * unsafeAddr => addr
* fix shebangs #! /xxx => #!/xxx (#18444)Timothee Cour2021-07-076-6/+6
|
* fix compilation on Debian 7 (no git -C) (#18427)Andrey Makarov2021-07-067-9/+20
| | | | | | | | | | | | | | | | | | | | | | * fix compilation on Debian 7 (no git -C) * address review * allow specify branch for testing unmerged csources * temporarily change csources checkout parameters for testing * Update tools/deps.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * fix failure * Update config/build_config.txt * set proper git branch/hash Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Make procedure mismatch more informative with pragma/call convention ↵Jason Beetham2021-07-064-32/+170
| | | | | | | | | | | | | | | | | | mismatches (#18384) * Added more concise calling convention/pragma mismatch messages * Now only adds callConvMsg/lock message when sensible * Fixed message formatting * Added tests, and fixed some bugs * Tests joined, and always indenting * More tests and more bug fixes * Fixed first test in tprocmismatch * Using var param for writting mismatches * Better logic for handling proc type rel and conv/pragma mismatch * Refactored getProcConvMismatch * Fixed callConv message formatting * Fixed test for proper message * Cleanup to address issues * getProcConvMismatch now returns tuple, and reformatted code
* Add entry (#18434)Antonis Geralis2021-07-061-2/+6
|
* Cleanup interval and timeout procs (#18431)Antonis Geralis2021-07-051-8/+10
| | | clear/setTimeout procs were using ref ref Timeout. Added more interval overloads. Corrections.
* deprecate std/mersenne (#18395)pyautogui2021-07-053-8/+7
| | | | | Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #18411 (#18432) [backport:1.4]Andreas Rumpf2021-07-051-3/+1
|
* std/net: show addr+port on address already in use error; code-block => ↵Timothee Cour2021-07-051-43/+37
| | | | | | | runnableExamples (#18428) * std/net: show addr+port on address already in use error; code-block => runnableExamples * var=>let
* Add lent annotation to avoid extra copies in sample (#18404)Antonis Geralis2021-07-021-1/+1
| | | | | | | * Add lent annotation to avoid extra copies in sample * Remove lent * Update random.nim
* [minor]remove unnecessary stringify (#18419)flywind2021-07-021-4/+4
|
* fixes #18030 (#18415)Andreas Rumpf2021-07-012-1/+31
|
* don't use `{.rtl.}` for generics, otherwise `-d:useNimRtl` gives `ambiguous ↵Timothee Cour2021-07-013-10/+13
| | | | identifier` nimrtl error (#18406)
* fixes #18130 (#18407)Andreas Rumpf2021-07-012-17/+72
|
* Removed hard coded ports from thttpclient_standalone.nim. (#18374)Mark Pointing2021-06-301-23/+26
| | | | | | Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> Co-authored-by: Mark Pointing <mark@futurepoint.com.au> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
'n207' href='#n207'>207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222