| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ORC: prepare for another patent-pending optimization
* bugfix
* '=copy' for refs can take a cyclic parameter for more ORC optimizations
* ORC: exploit the common 'it = it.next' pattern
* can't hurt to check for nil
* use an algorithm that is not obviously broken
* restore the test case
* final cleanups for --gc:orc
|
|
|
|
|
|
|
|
|
| |
* bring back the semfold of nil
* remove space
* fix test
* proc type can't be dereferenced
|
|
|
|
|
| |
* fix #6497
* add testcase for #16027
|
|
|
|
|
|
|
|
| |
* fix #15623
* add testcase for #15623
* add testcase
* combine #16009
* support casting nil to NilableTypes in VM
|
|
|
|
|
|
|
| |
* fix #15972
* add testcase
* more
|
|
|
|
| |
This reverts commit fec19c980e36e62747eb119f0740cb785e858ac3.
|
|
|
|
| |
This reverts commit 0f7f159a35bc10a43ff15bcb6c20eefdc574138e.
|
|
|
|
|
|
|
|
|
| |
* fix #15623
* add testcase for #15623
* fix
* add testcase
|
|
|
|
|
| |
* follow #16009 VM supports cast nil to ptr
* more testcase
|
|
|
|
|
|
|
| |
* fix #15910
* produce op of op is nil
* Trigger build
|
|\
| |
| |
| | |
* make workaround for #15934 and #15620
* add testcase for #9754
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
* asynchttpserver cleanups [backport:1.0]
|
| | |
|
| | |
|
| |
| |
| |
| | |
cpp (#15960)
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* attempt to make asynchttpserver better; fixes #15925; [backport:1.0]
* better documentation
* fixes 'nim doc'
* makes test green again
* ported to FreeRTOS
* fixes the doc rendering
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Make IntSet an ordinal set OrdSet[A: Ordinal]
Backward compatibility with IntSet is maintained.
IntSet is an alias for OrdSet[int]
* move ordsets to new file, intsets exports it
* ordset, move to lib/std folder
* Fix `$` for ordsets and test cleanup
* Fix ordsets compilation in doc example
* Rename ordsets to packedsets
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
[backport]
* Fix #8404 JS backend doesn't handle float->int type conversion
* handle conv to uint as cast, discard other cases
* limit to int32, times use int64
* toInt including tyInt64 break times timezones lib, ignore for now
* also affect to vm
* move to tests/misc/t8404.nim
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| | |
* fix #15941
* add testcase
* update
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
`existsEnv` (v2) (#15826)
* js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, `existsEnv`
* refactor to osenv
* fix for js (without -d:nodejs) + VM
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
| |
| |
| |
| |
| |
| |
| |
| | |
* make var string return var char w/ BackwardsIndex
fixes #14497
* work around VM bug
* properly workaround again
|
| |
| |
| |
| |
| |
| |
| | |
* fix #15916
* add testcase for #15916
* add comments
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* doAssertRaises now correctly handles foreign exceptions; now shows which exception is raised on mismatch
* nimscript now handles `Exception as e`
* remove catch-all doAssertRaises overload from this PR
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fix #14157
* Update compiler/jsgen.nim
* add changelog
* Update compiler/jsgen.nim
* Update tests/js/tmodify_cstring.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
| |
| |
| |
| |
| | |
* fix #12726 Cannot take the compile-time sizeof Atomic types
* fix for arch 32
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fix #14127 from int to int casting
* add test for #14127
* use template for test, also test uint2int
* move to tests/types/t14127_cast_number.nim targets:c cpp js
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* close #4318(add testcase for #4318)
* Update tests/objects/t4318.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
|
| |
| |
| |
| | |
* "eg" is a misspelled "egg", "e.g." is "exempli gratia"
* Also, "ie" is "i.e.".
|
| |
| |
| |
| |
| |
| |
| | |
* rst: add support for markdown tables
* change template into proc
* don't create unnecessary `seq[string]`
|
| | |
|
| |
| |
| |
| |
| | |
* fix #15825
* better fix
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fix #15858
* fix space
* fix #15629
* Revert "fix space"
* Revert "fix #15858"
|
| |
| |
| |
| |
| |
| | |
* fix #15858
* fix space
* fix #15629
* Revert "fix #15629"
|
| | |
|
| |
| |
| |
| | |
* fix #12558
* Update compiler/pragmas.nim
|
| |
| |
| |
| |
| |
| |
| | |
Add a macro `enumLen` which is used to determine the number of items in
an enumeration type to the `typetraits.nim` module. Also, add unit tests
for it in the `ttypetraits.nim` module.
Related to nimlang/Nim#15824
|
| |
| |
| |
| |
| | |
* close #11637(add testcase for #11637)
* Update tests/vm/t11637.nim
|
| |
| |
| |
| |
| | |
* fix #15706 Underflow not detected when using dec on distinct ranges
* fix #15846 first, jsgen even doesn't care of range in this op
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Make `requiresInit` pragma to work for distinct types in addition to
objects. Tagging of distinct types with `requiresInit` pragma was
already supported, but its impact wasn't applied. Now its behavior when
applied on distinct types is as follows.
Given the following distinct type definitions:
```nim
type
DistinctObject {.requiresInit, borrow: `.`.} = distinct MyObject
DistinctString {.requiresInit.} = distinct string
```
The following code blocks will fail to compile:
```nim
var foo: DistinctFoo
foo.x = "test"
doAssert foo.x == "test"
```
```nim
var s: DistinctString
s = "test"
doAssert s == "test"
```
But these ones will compile successfully:
```nim
let foo = DistinctFoo(Foo(x: "test"))
doAssert foo.x == "test"
```
```nim
let s = "test"
doAssert s == "test"
```
|
| | |
|