Timothee Cour
31bb67a309
add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes ( #16764 )
2021-02-17 19:30:09 +01:00
Timothee Cour
b187caeb87
document since ( #17048 )
...
* document `since`
* address comment
2021-02-16 20:20:01 +01:00
flywind
240879bf3d
array literals uses typed arrays; fix a jsgen bug ( #16850 )
...
* array litterals uses typed arrays
* Update compiler/jsgen.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-02-15 11:28:11 +01:00
flywind
18c24eb4d0
add system random to stdlib: std/sysrand ( #16459 )
2021-02-11 16:00:01 -08:00
flywind
a2855b66ae
JS: make hash float support IE/Safari ( #16872 )
2021-02-01 13:19:25 +01:00
flywind
111092e8aa
refactor hash in JS backend ( #16863 )
2021-01-30 14:14:38 +01:00
Timothee Cour
478d15f7f4
improve code in categories.nim; add std/private/gitutils; fix flakyness in nim CI (cloneDependency in deps.nim) ( #16856 )
...
* improve code in categories.nim; gitutils; fix flakyness in deps.nim
* cleanups
2021-01-29 07:51:12 +01:00
flywind
8d3e0c7b9b
make oids module better ( #16704 )
...
* make oids modules better
* Update lib/pure/oids.nim
* fix
2021-01-25 07:39:25 +01:00
flywind
a0fddfecd4
perpare for more compact bit operations in JS ( #16728 )
2021-01-19 14:57:16 +01:00
flywind
b727217229
refactor cmpNimIdentifier ( #16611 )
...
* refactor cmpNimIdentifier
* Apply suggestions from code review
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-01-13 12:29:30 +01:00
flywind
c04f305bf7
make cstrutils work in VM ( #16590 )
...
* make cstrutils work in VM
* more
2021-01-05 17:52:26 +01:00
flywind
5fb56a3b2c
refactor cmpIgnoreStyle and cmpIgnoreCase ( #16399 )
...
* init
* support strutils
* more
* better
* Call len once per string/cstring
* Change var to let
* Compare ternary on first char
* More appropriate param name
* fix
* better
* one test
* impl
* more efficient
* minor
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-12-31 11:54:40 +01:00
flywind
95f599ca2d
move asciitables to std/private/ ( #16498 )
...
* move asciitables
* minor
2020-12-29 16:20:47 +01:00
flywind
e1e069dd6c
use hexchar in stdlib ( #16290 )
2020-12-17 13:41:05 +01:00
ee7
629b22e3d5
styleCheck: Fix error for sugar and std/with ( #16176 )
...
With this commit, we no longer see an error if we pass
`--styleCheck:error` when compiling a file that contains `import sugar`
or `import std/with`.
The problem was that those modules (and only those modules) import
`std/private/underscored_calls`, which contained a styleCheck issue:
its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in
`macros.nim`.
This commit fixes the issue by renaming `nnkArgList` to `nnkArglist`
repo-wide. The other way around would be a breaking change for code that
used `nnkArglist` and `--styleCheck:error`.
Fixes : #16174
2020-12-02 20:48:16 +01:00
flywind
139075e965
move decode_helpers to std/private ( #16209 )
2020-12-02 10:30:55 -08:00
slangmgh
ba042af9cc
std/with support field assign ( #14484 )
...
* std/with support filed assign
* add changelog
* add support x.dup.with
* add example
* revert support x.dup.with; add example
* update changelog; fix assignment in parameter
* Update changelog.md
* add example for assignment in parameter
* Remove colon style assign
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-08-15 01:33:21 +02:00
Clyybber
302e3b7f44
CI: Install the pkg we cloned ( #14770 )
2020-06-24 17:27:46 +02:00
Timothee Cour
621384b8ef
fix https://github.com/timotheecour/Nim/issues/266 retry on failure to avoid common 503 github errors ( #14547 )
2020-06-02 10:47:19 +02:00
Timothee Cour
3cf88c2b49
walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + various other fixes ( #14501 )
...
* update doc CI filter to include the files mostly likely to require doc rebuild
* remove code duplication in ./config/nimdoc.cfg; show link to compiler docs, various fixes
* walkDirRecFilter, factor nativeToUnixPath workaround
* glob for getRst2html
* docslocal: 40s to build all docs
* revert code dedup in github actions which did not work alas...
* fixups
2020-06-01 19:21:41 +02:00
Timothee Cour
c28a057a6b
fix js stacktraces, unify all file,line,col formatting into a single function ( #14230 )
...
* fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
2020-05-05 14:56:15 +02:00
hlaaftana
fbc97e712a
move since from inclrtl to std/private/since ( #14188 )
...
* move since from inclrtl to std/private/since
* move since import in system below for HCR
2020-05-02 23:51:59 +02:00
Araq
b737bb4be0
fixes a bug for 'dup' and 'with'; they can now handle nested statement lists that can result from macros
2020-03-17 18:00:11 +01:00
Andreas Rumpf
d55bbefdcc
added operateOn to sugar.nim to give Nim the chaining mechanism it de… ( #13092 )
...
* implemented the with stdlib module as specified in https://github.com/nim-lang/RFCs/issues/193
* change sugar.outplace to sugar.dup according to https://github.com/nim-lang/RFCs/issues/193
* changelog update
2020-02-26 20:36:06 +01:00