Andreas Rumpf
e463a67c74
don't introduce 'dispose', use '=dispose', fixes #17003 [backport:1.4] ( #17062 )
2021-02-17 00:07:37 +01:00
Benoit Favre
81703d4ad4
Fix bug in removeDotSegments: added test ( #17050 )
...
* Fix bug in removeDotSegments when path ends with dot
* Add test for trailing period bug in uri
2021-02-16 20:20:37 +01:00
Timothee Cour
b187caeb87
document since ( #17048 )
...
* document `since`
* address comment
2021-02-16 20:20:01 +01:00
flywind
71feb96c63
[Minor] improve the docs of getTempDir ( #17058 )
...
* [Minor] improve the docs of getTempDir
* more clear
* Update lib/pure/os.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-02-16 20:17:40 +01:00
Artem Klevtsov
b7cba9ea08
postgres module fixes (followup #17030 ) ( #17053 )
...
* Fix pqSetSingleRowMode case. Add links to the docs
* Add missing PGContextVisibility enum
* Remove unused PGContextVisibility enum
2021-02-16 20:15:58 +01:00
konsumlamm
0a9a90d991
Improve documentation for bitops ( #16961 )
...
* Improve documentation for bitops
Use func
Use let in runnableExamples
* Remove unnecessary tests
Fix #7587
2021-02-15 21:17:45 +01:00
flywind
a03ec067da
better getTempDir ( #16914 )
...
* better getTempDir
* fix comments
* better
* address comments
* use uint32
2021-02-15 19:39:03 +01:00
Clyybber
70b9e9962f
Revert "ARC: Analysis in one pass v2 ( #17000 )" ( #17046 )
...
This reverts commit 216be4060a .
2021-02-15 18:31:15 +01:00
Dominik Picheta
00f86f5591
Better error message for rand(153 .. 102) ( #17031 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-02-15 08:56:17 -08:00
flywind
339ebe958d
JS: fix div uint64 no truncation ( #16899 )
2021-02-15 14:22:46 +01:00
n5m
55722fe04d
avoid doAssert on contents of osReleaseFile ( #16955 )
2021-02-15 14:21:41 +01:00
Andrey Makarov
35bd39a9d0
RST: implement footnotes and citations ( #16960 )
...
* RST: implement footnotes and citations
* manual fixup of nimdoc.out.css
* remove unused code
* shorter printing code
* Update lib/packages/docutils/rst.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-02-15 14:12:40 +01:00
konsumlamm
56f5010fa4
Improve the heapqueue module ( #17034 )
...
Improve documentation
Optimize toHeapQueue
Rename siftup and siftdown
Add tests for the heap property
2021-02-15 13:57:15 +01:00
Benoit Favre
8f54d3b792
Fix bug in removeDotSegments when path ends with dot ( #17038 ) [backport:1.2]
2021-02-15 11:33:26 +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
c8d9963150
fix the wrong examples ( #17035 )
2021-02-15 10:44:46 +01:00
konsumlamm
4886f8a02d
Small update for packedsets ( #17037 )
...
Rename PTrunk to Trunk
Use ord instead of cast[int]
2021-02-15 09:57:32 +01:00
Saem Ghani
260a5dacb7
fixed dot operator recursive loop & macro suggest ( #16922 )
...
* basic stability improvements; refs nimsuggest
* fixed dot operator recursive loop & macro suggest
* hacky fix for run away dot operator sem check
Committing this mostly to make the issue more clear. Perhaps get better
feedback.
* semExprWithType seems like a better place to check
* fixed error messages const case expressions
* Clean-up test
* stopped the dot operator madness
No longer get infinite recursion when seming broken code with a dot
operator macro like in jsffi.
Co-authored-by: Araq <rumpf_a@web.de >
2021-02-15 09:51:05 +01:00
Artem Klevtsov
b68ecc82cb
Add pqsetsinglerowmode to postgres module ( #17030 )
...
* Add pqsetsinglerowmode to postgres module
Very useful to reduce memory usage when fetch a large amount of data.
Documentation: https://www.postgresql.org/docs/current/libpq-single-row-mode.html
* Add missing enum to the ExecStatusType
* Revert entry
* Update ConnStatusType enum
2021-02-14 14:27:44 +00:00
Timothee Cour
fff5819ee7
fix #16978 unittest js foreign exception ( #16998 )
...
* fix #16978 unittest js foreign exception
2021-02-13 09:51:46 +01:00
Timothee Cour
21e60b9a97
followup #17001 : improve coverage for tests/openarray/topenarray.nim ( #17006 )
...
* followup #17001 : improve coverage for tests/openarray/topenarray.nim
2021-02-13 09:33:42 +01:00
Timothee Cour
190fe36eba
rst: single backticks now render correctly in both rst2html and github ( #17028 )
...
* rst: `` => `
* support default-role in rst2html
* update docstyle regarding single vs double backticks
2021-02-13 09:30:23 +01:00
flywind
eb8cc51bb8
tables module uses runnableExamples ( #16994 )
...
* tables module use runnableExamples
* disable the tests
2021-02-13 09:09:12 +01:00
hlaaftana
fad8439b8d
Make parseopt available on all backends ( #17009 )
...
* Make parseopt available on all backends
* fix spaces
* fix getopt and update prelude
* no crazy unnecessary version checks, use doAssert
2021-02-13 09:05:40 +01:00
Timothee Cour
4326f743d0
compilesettings: add libpath ( #16997 )
...
* compilesettings: add libpath
* add test
* changelog
* fixup
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-02-12 23:50:41 +01:00
konsumlamm
afa87f223c
Improve math module ( #17019 )
...
* Improve documentation for math
Support empty input for cumsummed
Use runnableExamples
Move some examples to tests
Add more tests
* Update tests/stdlib/tmath.nim
Move some tests to trandom.nim
Move tests into main template where possible
Add test for #17017
* Add more tests for gamma & lgamma
Remove gamma(-1.0) example
Small fixes/changes
* Move more tests into template main()
* Fix typos
* Add edge case examples for copySign
2021-02-12 17:13:39 +01:00
Timothee Cour
e40ff24c23
typeToString: type float => typedesc[float] ( #17011 )
...
* typeToString: type float => typedesc[float]
* fixup
* fix tests
2021-02-12 17:10:20 +01:00
konsumlamm
f57774e1e7
Improve documentation for random ( #17015 )
...
* Improve documentation for random
Use runnableExamples
Minor changes
* Apply suggestions
Remove echo
Use RNG in more places
* Fix skipRandomNumbers example
2021-02-12 15:10:12 +01:00
Andrey Makarov
8053ccde2f
parse RST headings when EOF follows them ( #17014 )
2021-02-12 15:08:09 +01:00
Danil Yarantsev
66bf9b18b0
Display user hints/warnings from foreign packages ( #17024 )
2021-02-12 14:03:42 +01:00
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