Commit Graph

18753 Commits

Author SHA1 Message Date
Saem Ghani
2aba116bbc when statements branches exit early (#17143)
When statement branches exit early outside of nimvm. In nimvm it seems that all
sides of the branches must be evaluated as the code gen happens at a later
stage, this remains intact.
2021-02-22 12:27:23 +01:00
konsumlamm
05711d95e0 Add example for pattern matching on options (#17120)
* Add example for pattern matching on options

* Use code-block

* Apply suggestions

* Use block comments

* Fix example
2021-02-22 11:16:15 +01:00
Timothee Cour
ef5303114c fix prelude regression refs #16238: include prelude doesn't interfere with nim doc (#17111)
* fix bug1 from #16238 nim doc now works with include prelude

* fix for windows

* fixup
2021-02-22 11:10:34 +01:00
flywind
f07a072691 [JS + docs] improve std/monotimes module (#17103) 2021-02-22 11:09:25 +01:00
Timothee Cour
55a33e1664 testament: support disabled:osx as alias to disabled:macosx (#17124) 2021-02-22 11:01:15 +01:00
Andrey Makarov
fab1618eb4 make rst.nim use object variant (#17138)
* make rst.nim use object variant

* add workaround

* fix mistake
2021-02-22 11:00:31 +01:00
flywind
f26c25737c remove outdated codes (#17140)
* remove unnecessary when statement

* remove outdated codes
2021-02-22 09:40:11 +01:00
flywind
32bf10126c fix #17118 (#17119) [backport:1.2]
* fix js unsigned integer
* Use `std` prefix for standard library modules
* fix #17118
2021-02-22 09:14:18 +01:00
Timothee Cour
cde950e1bc make copySign for js consistent with other backends (#16609)
* make copySign work more robustly in js
* improve tests
* improve tests/vm/tcastint.nim
2021-02-22 08:47:00 +01:00
Timothee Cour
04b1120334 important_packages: document that packages tested should ideally have recent release tags (#17134) 2021-02-22 11:55:20 +08:00
flywind
4556901572 use single backtick (#17141) 2021-02-21 19:53:28 -08:00
Timothee Cour
4f10dde64a followup #17077: also use assert instead of doAssert for code-block rst blocks intended to be used as runnableExamples (#17122) 2021-02-21 23:44:32 +08:00
Clyybber
6b7a6f8c54 Split last read and first write analysis (#17137)
* Split last read and first write analysis

This improves performance by 10% for some
cases.

* Remove outdated comments
2021-02-21 16:20:05 +01:00
flywind
146beb2797 remove unnecessary when statement (#17135) 2021-02-21 11:17:25 +01:00
flywind
70ec17eede use single backtick (#17133) 2021-02-21 00:27:39 -08:00
flywind
69a78c9183 promote std prefix in docs (#17128) 2021-02-20 22:38:29 -08:00
flywind
778f124af0 disable chronos (#17131) 2021-02-20 22:25:36 -08:00
Timothee Cour
ac82be07d8 refs #17107 use 2 instead of 3 parallel jobs for openbsd (#17108) 2021-02-20 18:08:53 +01:00
Timothee Cour
e94a3e5fcd move prelude so that include std/prelude also works (#17110)
* move prelude so that `include std/prelude` also works

* add test
2021-02-20 18:08:13 +01:00
konsumlamm
bd199a8d31 Improve the strformat module (#17106)
* Improve the strformat module

Improve documentation
Use runnableExamples

* Fix overflow error for low(int64)

Add test

* Use assert in runnableExamples

* Improve tstrformat

Put tests in proc & test VM
Put tests in blocks
Add c, js targets

* Use doAssert in tests

* Disable JS & VM tests
2021-02-20 18:06:29 +01:00
Timothee Cour
6b3bdd798d enable bsd for tsetutils; improve setutils API (#17098) 2021-02-20 18:02:57 +01:00
Timothee Cour
cbbb6ca4d7 important_packages: add fusion (#17094) 2021-02-20 18:02:10 +01:00
Andrey Makarov
d1fec552d0 stricter checks for RST headlines (#17089) 2021-02-20 18:01:45 +01:00
Timothee Cour
0fcf1af765 uri: document removeDotSegments, add tests, show failure modes (#17064)
* uri: document removeDotSegments, add tests, show failure modes
* address comments
2021-02-20 17:58:54 +01:00
flywind
a1a18cfe66 use single backtick (#17115) 2021-02-20 03:20:29 -08:00
flywind
1efaef52a2 [nep1] Use std prefix for standard library modules (#17105) 2021-02-19 15:47:03 -08:00
Miran
da52e81327 [backport:1.2] update nimble commit hash (#17109) 2021-02-19 20:33:01 +01:00
Timothee Cour
1018f51fce workaround #17091: manual.rst now renders as RST in github (#17092) 2021-02-19 15:35:34 +01:00
flywind
69611ee487 Ref #12700 add testcase (#17096)
* fix js unsigned integer

* better

* ref #12700 add testcase
2021-02-19 14:09:12 +01:00
Andreas Rumpf
4395a26764 fixes #17085 [backport:1.2] (#17101) 2021-02-19 12:30:39 +01:00
flywind
c1a06bd56e close #13859; add testcase (#17099)
* fix js unsigned integer

* better

* close #13859; add testcase
2021-02-19 11:36:35 +01:00
alaviss
ccc0667c29 system/excpt: let the OS handle termination on signal (#16712) 2021-02-19 00:29:21 -08:00
dawidkotlin
95664e1524 add example of hashing an object by all of its fields with fields (#16643)
* add example of hashing an object by all of its fields with `fields`

* Update lib/pure/hashes.nim

* Update lib/pure/hashes.nim

* Update lib/pure/hashes.nim

Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
2021-02-19 07:59:33 +01:00
flywind
9450bf6c08 use single backtick (#17100) 2021-02-18 22:47:21 -08:00
Jason Beetham
35ded02074 Add setutils.complement, setutils.fullSet (#17066) 2021-02-18 17:33:28 -08:00
Timothee Cour
148e5ba2a5 contributing: prefer assert to doAssert in runnableExamples (#17077) 2021-02-18 13:19:38 -08:00
Timothee Cour
bbaa05dc82 followup #17065 (#17090) 2021-02-18 11:24:21 -08:00
Timothee Cour
8162c47b0f nep1: triple quote literals should start with newline (#17065) 2021-02-18 20:14:10 +01:00
flywind
cd274a5ac9 fix stringify unsigned integer in JS and JS VM (#17086)
* fix js unsigned integer

* better
2021-02-18 20:13:52 +01:00
Andreas Rumpf
8fd1ed6dfe fixes #17060 (#17083) 2021-02-18 12:15:21 +01:00
konsumlamm
f400b5c26b Improve documentation for options (#17036) 2021-02-18 02:10:50 -08:00
Andreas Rumpf
ed0a4e7311 fixes #16585 (#17074) 2021-02-18 10:02:51 +01:00
flywind
301d784256 [nodejs backend] paramStr, paramCount (#17082) 2021-02-18 08:26:50 +01:00
Timothee Cour
f455e03028 fix #17078 csources generation (#17079)
* fix #17078 csources generation

* fixup
2021-02-18 07:00:51 +01:00
flywind
8873ec6084 fix #17076 (#17081) 2021-02-18 06:59:58 +01:00
Timothee Cour
4c568734f4 system: more runnableExamples + doc improvements (#17075) 2021-02-17 14:33:02 -08:00
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
flywind
35e14998ec fix math.frexp function signature (#16725) 2021-02-17 19:27:48 +01:00
flywind
8d63f7b483 clean up old codes (#17071) 2021-02-17 19:26:08 +01:00
flywind
98102605d9 fix the unused warnings on windows (#17073) 2021-02-17 19:24:27 +01:00