summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Allow `libffi` to work via `koch boot` (#22322)awr12023-08-034-15/+45
| | | | | | | | | | | | | | | | | | | * Divert libffi from nimble path, impl into koch * Typo in koch * Update options.nim comment * Fix CI Test * Update changelog * Clarify libffi nimble comment * Future pending changelog --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* Add experimental inferGenericTypes switch (#22317)SirOlaf2023-08-036-11/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Infer generic bindings * Simple test * Add t * Allow it to work for templates too * Fix some builds by putting bindings in a template * Fix builtins * Slightly more exotic seq test * Test value-based generics using array * Pass expectedType into buildBindings * Put buildBindings into a proc * Manual entry * Remove leftover ` * Improve language used in the manual * Experimental flag and fix basic constructors * Tiny commend cleanup * Move to experimental manual * Use 'kind' so tuples continue to fail like before * Explicitly disallow tuples * Table test and document tuples * Test type reduction * Disable inferGenericTypes check for CI tests * Remove tuple info in manual * Always reduce types. Testing CI * Fixes * Ignore tyGenericInst * Prevent binding already bound generic params * tyUncheckedArray * Few more types * Update manual and check for flag again * Update tests/generics/treturn_inference.nim * var candidate, remove flag check again for CI * Enable check once more --------- Co-authored-by: SirOlaf <> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Revert "fix #22173 `sink` paramers not moved into closure (refc) (#22… ↵Bung2023-08-032-29/+6
| | | | | | | (#22376) Revert "fix #22173 `sink` paramers not moved into closure (refc) (#22359)" This reverts commit b40da812f7aa590ed16df54a492684c228320549.
* fix #22173 `sink` paramers not moved into closure (refc) (#22359)Bung2023-08-022-6/+29
| | | | | * use genRefAssign when assign to sink string * add test case
* fixes #22362; Compiler crashes with staticBoundsCheck on (#22363)ringabout2023-08-023-0/+19
|
* fixes #22360; compare with the half of randMax (#22361)ringabout2023-08-022-4/+19
| | | | | * fixes #22360; compare with the half of randMax * add a test
* Fix the position of "Grey" in colors.nim (#22358)Michal Maršálek2023-08-011-2/+2
| | | Update the position of "Grey"
* bump the devel version to 211 (#22356)ringabout2023-08-011-3/+3
|
* fixes #22262; fixes `-d:useMalloc` broken with `--mm:none` and `--threads ↵ringabout2023-08-012-2/+3
| | | | | | | on` (#22355) * fixes #22262; -d:useMalloc broken with --mm:none and threads on * fixes
* Tomorrow is the release. I hope. (#22353)Andreas Rumpf2023-07-312-2/+2
|
* Revert "fixes #22246; generate `__builtin_unreachable` hints for case ↵ringabout2023-07-313-9/+5
| | | | | | | defaults" (#22351) Revert "fixes #22246; generate `__builtin_unreachable` hints for case defaults (#22350)" This reverts commit b56df5c07f7dc9ac9d718ca47c10b0683a9b916f.
* fixes #22246; generate `__builtin_unreachable` hints for case defaults (#22350)ringabout2023-07-313-5/+9
| | | | | | | | | * fixes #22246; generate `__builtin_unreachable` hints * use elif * indentation * fixes holy enums in sim
* fixes #22174; fixes destructor examples (#22349)ringabout2023-07-311-6/+6
| | | | | | | | | | | * fixes #22174; fixes destructor examples * Update doc/destructors.md Co-authored-by: Andreas Rumpf <rumpf_a@web.de> --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* remove thread duplicated code (#22348)Bung2023-07-311-5/+0
|
* add a changelog for `ensureMove` (#22347)ringabout2023-07-301-0/+1
| | | | | | | | | * add a changelog for `ensureMove` * Update changelogs/changelog_2_0_0_details.md --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add Valgrind (#22346)Juan Carlos2023-07-301-0/+3
| | | | | * . * Add Valgrind for Bisect bot in GitHub Actions
* fixes an issue where byref wasnt properly handled when using it in a generic ↵Juan M Gómez2023-07-292-3/+37
| | | | | | | param (#22337) * fixes an issue where byref wasnt properly handled when using it in a generic param * removes unreachable check
* implement `ensureMove` (#22339)ringabout2023-07-2914-4/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implement `ensureMove` * use an additional flag * improve some logics * progress: fixes discard ensureMove * forbids nested expressions * improve error messages * checkpoint * fixes cursor * ADD MORE TESTS * fixes cursorinference again * tiny cleanup * improve error messages * fixes docs * implement comments add more tests * fixes js
* Remove declared and not used variable in packedsets.bitincl (#22334)Eric N. Vander Weele2023-07-271-1/+0
| | | | When compiling code that uses PackedSet with warnings enabled, `var ret` in `bitincl` emits a "XDeclaredButNotUsed" warning.
* [JS] Fix bitwise ops & shifts (#22340)konsumlamm2023-07-272-31/+101
| | | | | * [JS] Fix bitwise ops & shifts * Test `int64` & `uint64` only with `jsbigint64`
* fixes docs (#22331)ringabout2023-07-261-1/+1
|
* [JS] Fix casting to ints (#22327)konsumlamm2023-07-252-19/+28
| | | | | * [JS] Fix casting to ints * Simplify `genCast` by using `asUintN`/`asIntN`
* fixes #22301; fixes #22324; rejects branch initialization with a runtime ↵ringabout2023-07-256-21/+64
| | | | | | | | | | | discriminator with defaults (#22303) * fixes #22301; rejects branch initialization with a runtime discriminator with defaults * undefault nimPreviewRangeDefault * fixes tests * use oldCheckDefault
* Fix grammar top rule (#22325)Khaled Hammouda2023-07-242-2/+2
| | | change stmt to complexOrSimpleStmt in the top grammar rule
* fixes #22321; fixes building DLL with --noMain still produces a DllMain (#22323)ringabout2023-07-242-2/+1
| | | | | * fixes #22321; Building DLL with --noMain produces an unexpected DllMain on devel branch * remove implicit nomain
* Expands codegenDecl to work in function params. fixes #22306 (#22307)Juan M Gómez2023-07-237-18/+47
| | | | | | | * Expands codegenDecl to work in function params. fixes #22306 * makes the test more concrete so T{lit} params dont match * adds sfCodegenDecl
* Testcase for #22008 (#22320)SirOlaf2023-07-231-0/+8
| | | | | Testcase Co-authored-by: SirOlaf <>
* implemented 'push quirky' switch for fine grained control over the ex… ↵Andreas Rumpf2023-07-2310-31/+102
| | | | | | | (#22318) * implemented 'push quirky' switch for fine grained control over the exception handling overhead * documentation
* Check try block for endsInNoReturn (#22314)SirOlaf2023-07-221-2/+3
| | | Co-authored-by: SirOlaf <>
* Update 2.0 changelog (#22311)konsumlamm2023-07-222-100/+110
|
* Document `cast` zeroing memory (#22313)konsumlamm2023-07-221-14/+17
|
* Add test for #22309 (#22316)konsumlamm2023-07-221-0/+11
|
* Fix doc comment rendering for concepts (#22312)konsumlamm2023-07-222-2/+2
|
* Open scope for defer (#22315)SirOlaf2023-07-221-0/+2
| | | Co-authored-by: SirOlaf <>
* fixes #22297; return in the finally in the closure iterators (#22300)ringabout2023-07-222-1/+14
| | | ref #22297; return in the finally in the closure iterators
* fixes CI; disable SSL tests on osx for now (#22304)ringabout2023-07-222-0/+2
| | | | | * test CI * disable osx
* fixes #22210; transform return future in try/finally properly (#22249)ringabout2023-07-213-9/+162
| | | | | | | | | | | * wip; fixes #22210; transform return future in try/finally properly * add a test case for #22210 * minor * inserts a needsCompletion flag * uses copyNimNode
* `infixArgument` fail in `renderer.nim` sometimes (#22264)Ryan McConnell2023-07-201-1/+5
| | | | | * fixing minor typo * Adding err msg
* fix `jsondoc` not getting `showNonExports` flag (#22267)Jake Leahy2023-07-202-8/+11
| | | Pass the config down so we can check if the `--showNonExports` flag is used
* minor code improvement (#22293)Andreas Rumpf2023-07-191-6/+7
|
* fixes #22254; fixes #22253; stricteffects bugs on recursive calls (#22294)ringabout2023-07-192-2/+14
|
* Adding info to manual (#22252)Ryan McConnell2023-07-191-3/+57
| | | | | | | | | | | * Adjustments * Moving example * typo * adding code example back and fix terms * Condensing
* fixes #22268; fixes `move` codegen (#22288)ringabout2023-07-194-34/+20
|
* fixes #6499; disallow built-in procs used as procvars (#22291)ringabout2023-07-193-4/+7
|
* Fix #22281 (#22289)Anna2023-07-181-1/+1
| | | Respect `--gcc.exe` and similar options when `--genScript:on` is used.
* extend the skipAddr for potential types for destructors (#22265)ringabout2023-07-181-2/+1
| | | extend the skipAddr for potential types
* Fix non-toplevel fields in objects not getting rendered (#22266)Jake Leahy2023-07-165-25/+106
| | | | | | | | | | | | | * Add example object into testproject The proc is there to check the case of an identDef being inside an identDef (We do want to render those even if they are not exported) * Add `inside` set to `TSrcGen` which allows us to see what context we are in This is done instead of adding another inXyz bool parameter We then use this to know if we are inside an object when rendering an nkIdentDefs (To know if we need to skip rendering it) * Update test files
* Fixes Naive virtual crash the compiler fixes #22269 (#22271)Juan M Gómez2023-07-162-1/+5
| | | | | * Fixes Naive virtual crash the compiler fixes #22269 * adds type specific test
* fixes idx properly (#22280)ringabout2023-07-142-10/+13
|
* Fix #22273 (#22275)Juan Carlos2023-07-141-1/+1
| | | * Fix #22273