Andreas Rumpf
daaa40973c
added float32 schubfach algorithm; wip ( #18155 )
...
* added float32 schubfach algorithm; wip
* fixes #18418
2021-06-03 12:09:40 +02:00
flywind
06960bb9cb
Ref #17697 improve withValue docs ( #18154 )
...
* Ref #17697 improve withValue docs
* address comments
2021-06-03 07:35:24 +02:00
flywind
bbce3d2da9
[std/tables] remove unnecessary do: ( #18160 )
2021-06-02 21:09:04 -07:00
flywind
f27f3f65df
[std/hashcommon]improve docs a bit ( #18153 )
...
* reduce duplicated deprecated messages
2021-06-02 22:59:06 -04:00
Timothee Cour
0de3d4292f
fix #16993 , #18054 , #17835 runnableExamples now works with templates and nested templates ( #18082 )
2021-06-02 09:02:14 -07:00
n5m
4ee6eddad4
add string-string tests for find and rfind ( #18137 )
...
* add string-string tests for find and rfind
* remove duplicate test cases
* remove more redundant test cases
2021-06-02 16:19:30 +02:00
Andreas Rumpf
6768f507fb
refactoring: removed empty withBracketExpr template ( #18152 )
2021-06-02 13:14:10 +02:00
Andreas Rumpf
f10eef29b5
fixes #18059 ( #18140 )
...
* fixes #18059
2021-06-02 13:13:23 +02:00
Andreas Rumpf
63db2b19bf
use dragonbox algorithm; alternative to #18008 ( #18139 )
...
* use dragonbox algorithm; alternative to #18008
* removed unsafe code
2021-06-01 22:29:53 +02:00
Andrey Makarov
ba3ec7b049
docs: Latex generation improvements ( #18141 )
...
* docs: improve Latex generation
* make it work on Windows + fix ] escaping
* minor fixes with escapes and style
2021-06-01 20:47:23 +02:00
flywind
c2e3dc0ed1
close #18129 Add setCurrentException for JS backend ( #18145 )
...
* [std/re] make interface consistent
* tiny
* revert
* close #18129 add setCurrentException
* changelog entry
2021-06-01 18:16:25 +02:00
flywind
c0e8199acc
[std/re] fix findBounds and find procs ( #18028 )
...
* [std/re] make interface consistent
* tiny
* revert
2021-05-31 23:28:22 +02:00
Dylan Modesitt
06d50bfd4c
Fixes #5034 illformed AST from getImpl with proc returning value ( #17976 )
...
* Fixes 5034
* address comments
2021-05-31 22:51:32 +02:00
Timothee Cour
369a7d1246
jsonutils.toJson now serializes JsonNode as is by default ( #18097 )
...
* jsonutils.toJson now serializes JsonNode as is (without deep copy nor treating it as a regular ref object)
* JsonNodeMode
2021-05-31 22:17:52 +02:00
Timothee Cour
9559350e34
add os.getCacheDir ( #18126 )
...
* add `os.getCacheDir`
* fixup
* address comments
2021-05-31 22:16:33 +02:00
Timothee Cour
60cbdbf37a
close #18092 document elif in case statements ( #18105 )
...
* close #18092 [skip ci] document elif in case statements
* fixup
* clarify spec; mention special rule for string in case statements
* address comments
2021-05-31 22:14:50 +02:00
Timothee Cour
a36efb59b5
fix #16256 : nimout: <empty> should give error (vacuously true); improve a few tests ( #18089 )
...
* fix #16256 : nimout: <empty> should give error (vacuously true); improve some tests
* renamed: tests/stdlib/t9710.nim -> tests/misc/t9710.nim
* improve tests
* fix non-DRY tests
* improve $nim_prs_D/tests/stdlib/t9091.nim
* renamed: tests/stdlib/t9091.nim -> tests/misc/t9091.nim
* fixup
* address comment: doAssert => result.parseErrors
2021-05-31 13:39:19 +02:00
Saem Ghani
b7ad29e692
fix #18113 ( #18124 )
2021-05-31 13:27:44 +02:00
n5m
064fe18de6
improve fast returns of find and rfind ( #18127 )
2021-05-31 11:20:15 +02:00
Timothee Cour
18b4774311
document macros.unpackVarargs ( #18106 )
...
* deprecate macros.unpackVarargs
* un-deprecate unpackVarargs and add docs+runnableExamples
* update examples + tests with varargs[typed]
2021-05-31 10:51:20 +02:00
Timothee Cour
98ea61f09b
dont silence hints in system.nim ( #18034 )
2021-05-30 23:57:25 +02:00
Miran
50e98e6efa
hashes for refs should be an opt-in feature ( #18098 )
2021-05-30 23:55:51 +02:00
Timothee Cour
e2ab08603d
fix warnings/hints in nimdoc/tester.nim ( #18083 )
...
* fix warnings/hints in nimdoc/tester.nim
* improve err msg for nimdoc/tester.nim and change flag from fixup to nimTestsNimdocFixup
* address comment: put back quit instead of doAssert
2021-05-30 22:40:42 +02:00
Timothee Cour
4274e6e4d7
upgrade ubuntu 16.04 (not supported starting dec 2021) => 18.04; revive Linux_i386 ( #18107 )
2021-05-30 22:39:17 +02:00
Yuriy Glukhov
a6bd6c7ed8
Fixes #17849 ( #18055 ) [backport:1.2]
...
* Fixes #17849
* Update compiler/closureiters.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-05-30 22:38:33 +02:00
Timothee Cour
4a7f2c386c
close #16569 : deprecated reversed(a, start, last) overload, use toOpenArray instead ( #18047 )
...
* close #16569 : deprecated reversed overload, use toOpenArray instead
* [skip ci] change wording in changelog per review
* fixup
2021-05-30 22:37:21 +02:00
vabresto
cfe19247e8
Disable tasynchttpserver_transferencoding on FreeBSD ( #18122 )
2021-05-29 12:44:39 -07:00
quantimnot
c792154b03
Minor doc fixes; follow up to 17258 and 17259 ( #18123 )
...
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
2021-05-29 12:39:46 -07:00
vabresto
9eae6b4fe3
fix #17456 flaky test tasynchttpserver_transferencoding ( #18052 )
2021-05-28 15:17:37 -07:00
Timothee Cour
d62a298a28
fix typo in ci/funs.sh ( #18115 )
2021-05-27 09:04:10 -07:00
Timothee Cour
1e0165186b
testament: remove deadcode related to realtimeGC, testC, callCCompiler ( #18087 )
2021-05-26 11:49:01 -07:00
Timothee Cour
3b1aabdcff
change --hint[X] => --hint:X in nim repo (avoids shell quoting issues) ( #18085 )
2021-05-26 09:51:48 +02:00
Timothee Cour
0b2bbcaa23
fix #18077 testament now parses cmd properly ( #18086 )
2021-05-26 09:46:53 +02:00
Timothee Cour
8df55d0ad7
close #3482 no more cgen error with typed templates ( #18094 )
2021-05-26 09:44:00 +02:00
Timothee Cour
c495628255
refactor common code in CI pipelines ( #18035 )
...
* refactor CI with nimInternalInstallDepsWindows
* refactor CI with nimInternalBuildKochAndRunCI
* fixup
2021-05-26 09:43:30 +02:00
Timothee Cour
b59dc3b255
remove some custom logic in testament around flags, testExec ( #18090 )
...
* remove some custom logic in testament around flags, testExec
* remove testExec, custom logic around flags from testament
* fixup
2021-05-26 09:41:50 +02:00
xioren
478f717377
Move async example to asynchronous version of proc ( #18078 )
...
* improve runnableExamples in std/httpclient
* Add synchronous example.
* Update lib/pure/httpclient.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-05-24 20:56:31 -07:00
Timothee Cour
d217888e56
close #18009 parseJson JInt vs JFloat; preserve -0.0 as JFloat to distinguish from 0.0 ( #18067 )
2021-05-23 23:06:14 +02:00
Timothee Cour
1421a3bf26
pkg/pixie: use latest ( #18069 )
2021-05-23 12:28:26 -07:00
Euan
61630c6aee
Use gmake for NetBSD as well as FreeBSD/OpenBSD ( #18064 )
2021-05-23 09:23:20 -07:00
Timothee Cour
1636c05d13
close #5540 generic object with generic field evaluated too early ( #18062 )
2021-05-23 01:02:04 -07:00
Juan Carlos
e12597589f
Error message minor ( #18021 )
...
* Update compiler/semtypes.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-05-22 13:12:30 +02:00
Andrey Makarov
9f7e2e3057
docs: make inline markup more compatible with Markdown ( #18053 )
...
fixes https://github.com/timotheecour/Nim/issues/739
2021-05-21 06:54:20 +02:00
Juan Carlos
6a5973882b
jsgen improve spacing ( #18048 )
...
* Fix inconsistent spacings in generated JS of jsgen
2021-05-20 15:48:46 +02:00
Andreas Rumpf
df429fa287
config system: special case -d:release and -d:danger [backport:1.4] ( #18051 )
2021-05-20 11:52:46 +02:00
Ștefan Talpalaru
a1c82c39af
asyncdispatch+stackTraceOverride: fix premature collection ( #18039 ) [backport:1.2]
...
Copying StackTraceEntry instances when nimStackTraceOverride is defined
breaks the link between a cstring field that's supposed to point at
another string field in the same object.
Sometimes, the original object is garbage collected, that memory region
reused for storing other strings, so when the StackTraceEntry copy tries
to use its cstring pointer to construct a traceback message, it accesses
unrelated strings.
This only happens for async tracebacks and this patch prevents that by
making sure we only use the string fields when nimStackTraceOverride is
defined.
Async tracebacks also beautified slightly by getting rid of an extra line
that was supposed to be commented out, along with the corresponding debugging output.
There's also a micro-optimisation to avoid concatenating two strings just
to get their combined length.
2021-05-19 19:19:11 +02:00
Andreas Rumpf
7052503ca8
make strformat part of the prelude ( #18046 )
2021-05-19 19:18:16 +02:00
Andreas Rumpf
558644725d
fixes #17943 ( #18045 )
...
* fixes #17943
* IC: test 'nim check --ic:on' for the full Nim compiler
* Update testament/testament.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-05-19 16:00:14 +02:00
Andreas Rumpf
53935b8b27
ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] ( #18040 )
...
* ARC: fixes memory leaks with newSeq used in a loop [backport:1.4]
* Update tests/arc/tnewseq_legacy.nim
2021-05-18 21:45:37 +02:00
Timothee Cour
31143c68fc
disable pkg/fidget refs https://github.com/treeform/fidget/issues/155 ( #18043 )
2021-05-18 10:48:13 -07:00