Commit Graph

18917 Commits

Author SHA1 Message Date
flywind
18c24eb4d0 add system random to stdlib: std/sysrand (#16459) 2021-02-11 16:00:01 -08:00
hlaaftana
81533a0014 [backport:1.4] JS cstring null fixes (#16979)
* [backport:1.4] JS cstring null fixes
* fix JS move string
* make it look cleaner
2021-02-11 17:04:32 +01:00
Andreas Rumpf
f3c39bf2d9 fixes a bug that keeps Nimbus from compiling with --gc:orc (#17005)
* fixes a bug that keeps Nimbus from compiling with --gc:orc

* better fix
2021-02-11 11:55:57 +01:00
Andreas Rumpf
8630ebbbfc koch.nim: documented the bootstrapping process (#17008) 2021-02-11 09:26:51 +01:00
Timothee Cour
b7dd8e7dff unbundle fusion (#16925)
* unbundle fusion
* changelog
* address comment: `./koch fusion` calls nimble install fusion (at a fixed hash)
2021-02-11 07:24:53 +01:00
konsumlamm
d4f7f1d8f3 Improve documentation for assertions (#16988)
* Improve documentation for assertions

* Apply suggestions

Fix tests/assert/tassert_c.nim

* Use runnableExamples

* Move runnableExamples to module scope
2021-02-11 07:21:27 +01:00
konsumlamm
b59a628c39 Improve documentation for cstrutils (#17004) 2021-02-10 20:38:18 +01:00
Timothee Cour
f3e4c4d6e1 std/wrapnils does not use experimental:dotOperators anymore (#16996) 2021-02-10 18:50:50 +01:00
flywind
9bd4f503f4 [JS] Ref #15952 make toOpenArray works better (#17001)
* ref 15952 toOpenArray works in JS

* fix
2021-02-10 18:49:44 +01:00
Clyybber
216be4060a ARC: Analysis in one pass v2 (#17000)
* Analyse last reads all at once

* Integrate firstWrite analysis

* Small cleanup

* Use sets instead of seqs

* Remove instrTargets

* Reap the benefits

* Implement error diagnostics

* Operate on DFA index for lastRead analysis

* Use mgetOrPut

* Cache alias results

This improves performance by a lot, since many
CFG locations map to a single PNode

* Improve performance

* Improve performance

* Cleanup
2021-02-10 15:03:57 +01:00
Timothee Cour
3189c0a2a9 fix warning nim nim doc posix (#16995) 2021-02-10 13:34:13 +01:00
Timothee Cour
897cb4b077 nep1: prefer a..b to a .. b except if b has an operator (eg: a .. -1) (#16992)
* nep1: prefer `a..b` to `a .. b` except if b has an operator

* address comments

* address comment
2021-02-10 12:13:28 +01:00
Timothee Cour
a1203cf848 improve ./koch docs (#16991)
* improve ./koch docs

* fixup

* fixup
2021-02-10 12:12:31 +01:00
konsumlamm
00551f972e Improve documentation for unidecode (#16986)
* Improve documentation for unidecode

Minor changes to gen.py

* Fix typo in gen.py
2021-02-09 22:47:07 +01:00
Andrey Makarov
635c0b6cb9 fix ./koch pdf command (#16989) 2021-02-09 22:46:51 +01:00
Miran
0d34345f29 [backport:1.2] update the nimble commit hash to the latest one (#16971) 2021-02-09 19:02:07 +01:00
Clyybber
9edf719e1e Revert "ARC Analysis in one pass (#16849)" (#16984)
This reverts commit ab740cb5b9.
2021-02-09 15:50:52 +01:00
konsumlamm
cee58ccf7f Improve documentation for std/sha1 (#16970) 2021-02-09 15:14:03 +01:00
Timothee Cour
630f867bd7 add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) (#16977)
* add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C)

* changelog
2021-02-09 14:25:38 +01:00
hlaaftana
49b64e8dc7 Remove declPragmas from lambdas [backport:1.0] (#16966)
* Remove declPragmas from lambdas [backport:1.0]

* add test for exportc

* fix test

* fix align, nodecl -> noinit
2021-02-09 14:23:06 +01:00
Clyybber
ab740cb5b9 ARC Analysis in one pass (#16849)
* Analyse last reads all at once

* Integrate firstWrite analysis

* Small cleanup

* Use sets instead of seqs

* Remove instrTargets

* Reap the benefits

* Implement error diagnostics

* Operate on DFA index for lastRead analysis

* Use mgetOrPut
2021-02-09 14:20:58 +01:00
Andreas Rumpf
74d6a4d7f4 final SSL changes [backport:1.2] (#16983) 2021-02-09 13:40:09 +01:00
flywind
ceab5e49f2 uri module uses runnableExamples (#16982) 2021-02-09 13:07:51 +01:00
hlaaftana
49ee2f7f3b fix #16967 [backport:1.2] (#16976)
* fix #16967 [backport:1.2]

* move test to tsugar
2021-02-09 13:04:36 +01:00
flywind
41d32c3ea3 fix lists docs regression (#16981) 2021-02-09 12:19:11 +01:00
hlaaftana
aac8f67573 tests and docs for call operator (#16980)
* tests and docs for call operator

* fix leftover

* add extra dot test
2021-02-09 12:18:16 +01:00
Héctor M. Monacci
d1210a3bb9 Another typo corrected (#16974)
From `fliter proc` to `filter proc`
2021-02-08 20:12:48 -08:00
Juan Carlos
68ef0c6c5b Deprecate any (#16920) 2021-02-08 19:21:17 -08:00
rockcavera
4576cf20af Refactoring bitops.rotateLeftBits() and bitops.rotateRightBits(); adding builtins and intrinsics. (#16622)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
2021-02-08 16:36:41 -08:00
Timothee Cour
ba64d0c8ab fix #16947: --app:staticlib -o:lib now first removes lib (#16948) 2021-02-08 22:26:09 +01:00
Peter Salvi
e211a2a9f6 std/lists: Various changes to lists (RFC #303) (#16536)
* Various changes to `lists` (RFC #303)

* Removing a non-element is no-op; better tests

* Remove preserves cycles; add appendMove alias; tests.

* Return value for (singly linked) `lists.remove`

* More test for lists.remove

* Moved `lists.append` to the end of the file to see all `add` definitions

* Disable testing js for now

* Use workaround for swap js bug

* Smaller diff

* Undo "silent" deprecation of append

* Correct typo in changelog

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Remove `appendMoved`

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Don't remove appendMoved

Co-authored-by: Clyybber <darkmine956@gmail.com>
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
2021-02-08 22:24:16 +01:00
Héctor M. Monacci
a9f44b7257 Correct typo (#16972)
From `fliter proc` to `filter proc`
2021-02-08 19:39:25 +01:00
hlaaftana
6a7baff97d rename case statement macro from match to case (#16923)
* rename case statement macro from match to `case`

* fix test
2021-02-08 19:35:06 +01:00
Andreas Rumpf
abac35e743 basic cleanups regarding SSL handling (#16940) [backport:1.0]
* basic cleanups regarding SSL handling
* enabled certificate checking on Windows
* updated the SSL test
* quoting helps
2021-02-08 13:54:03 +01:00
flywind
f140c92409 fix some warnings (#16952) 2021-02-08 13:50:15 +01:00
Timothee Cour
910720b0d4 document typeof (#16965) 2021-02-08 13:45:06 +01:00
flywind
0cf3ba159c close #15767 (#16959)
* fix some warnings

* close #15767

* Revert "fix some warnings"

This reverts commit 39f2f23b00.
2021-02-08 11:47:28 +01:00
Timothee Cour
6f6370367b fix #16949 --app:staticlib works on openbsd; --app:staticlib tested in CI (#16950) 2021-02-08 09:47:05 +01:00
flywind
d447c0fe3f use typeof instead type (#16962) 2021-02-08 09:46:07 +01:00
hlaaftana
4fac8af0c9 Add initRand() with seed based on time (#16953) 2021-02-07 21:15:51 -08:00
n5m
c548f97241 quote nim command on compile (#16954) 2021-02-07 00:31:58 +01:00
flywind
065264eae1 close #16921 (#16951) 2021-02-06 17:33:11 +01:00
flywind
39230422d0 make style consistent (#16944) 2021-02-05 19:58:26 +01:00
Timothee Cour
3eebbb234d fix of procs + runnableExamples (#16932) 2021-02-05 16:32:10 +01:00
Timothee Cour
6dc7ece36a document default (#16942) 2021-02-05 16:28:21 +01:00
Timothee Cour
ae9ba260f6 clarify docs for wrapnils (#16929)
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
2021-02-04 15:39:19 -08:00
Rummskartoffel
2a60974ede Correct typo in osseps.nim (#16939) 2021-02-04 15:36:28 -08:00
Antonis Geralis
9ded85e1b4 add createElementNS, will hopefully fix svgs for karax (#16938) 2021-02-05 00:33:27 +01:00
Roman Inflianskas
e9b360c5df stdlib/os: handle symlinks in copy/move functions (#16709)
* stdlib/os: handle symlinks in copy/move functions

- Added optional `options` argument to `copyFile`, `copyFileToDir`, and
  `copyFileWithPermissions`. By default, symlinks are followed (copy files
  symlinks point to).
- `copyDir` and `copyDirWithPermissions` copy symlinks as symlinks (instead of
  skipping them as it was before).
- `moveFile` and `moveDir` move symlinks as symlinks (instead of skipping them
  sometimes as it was before).
- Added optional `followSymlinks` argument to `setFilePermissions`.

See also: https://github.com/nim-lang/RFCs/issues/319

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Address comments in #16709

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Address comments in #16709 (second iteration)

Skip symlinks on Windows.

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
2021-02-04 18:57:41 +01:00
flywind
bb85bc7ebc remove a temporary variable in int128.nim (#16935) 2021-02-04 17:41:23 +01:00