whiterock
ef9fb39cdf
added note to re constructor regarding performance ( #13224 )
...
Since I was new to regex I did not know that there is a compilation going on with ``re"[abc]"`` constructor and so I followed the other examples in the docs blindly, that is I just put the constructor directly in the arguments of match, find, etc., which was inside a loop and then wondered why my performance was so bad. Of course putting it outside the loop made it vastly more performant. People like me would benefit from the small note I added I would think :)
2020-01-22 16:02:16 +01:00
Juan Carlos
2fad7f134f
httpclient, maxredirects to Natural, newHttpClient/newAsyncHttpClient add headers argument instead of hardcoded empty ( #13207 )
2020-01-21 19:34:47 +01:00
Andreas Rumpf
bdb7c82c6a
fixes a critical times.nim bug reported on IRC [backport] ( #13216 )
2020-01-21 16:49:59 +01:00
Timothee Cour
b355ef2a72
fix #13211 relativePath("foo", ".") ( #13213 )
2020-01-21 15:48:19 +01:00
Miran
bf96d6d316
Idxmin & idxmax, continuation ( #13208 )
...
* Add idxmin() which returns the index of the minimum value
* Add idxmax() which returns the index of the maximum value
* Add tests for idxmin()
* Add tests for idxmax()
* Remove initialization of result = 0
* Adds overloading for arrays (no enums indexed arrays yet)
* Add support for enum index arrays
* Fix tests with enum
* Fix tests for idxmax
* Change names of the procedures to minIndex and maxIndex
* address Araq's comments:
- remove 'array' versions
- add .since pragma
- return 'int' instead of 'Natural'
- add changelog entry
Co-authored-by: Federico A. Corazza <20555025+Imperator26@users.noreply.github.com >
2020-01-20 16:57:34 +01:00
Jasper Jenkins
0606b6a44e
fix range[enum] type conversion ( #13204 ) [backport]
2020-01-20 16:56:59 +01:00
alaviss
470faa97c6
compiler/ccgtypes: hide exportc proc unless it has dynlib ( #13199 )
...
This hides most of stdlib's internal functions from resulting
binaries/libraries, where they aren't needed on *nix. Static libraries
are not affected by this change (visibility doesn't apply to them).
2020-01-20 10:51:21 +01:00
cooldome
da1bddb084
fixes #13195 ( #13198 )
...
* fixes #13195
* extra fix
* fix typo
2020-01-20 10:41:12 +01:00
Andreas Rumpf
41555ca86f
fixes #13110 ( #13197 )
2020-01-19 23:30:45 +01:00
Andrii Riabushenko
6f3476d39c
Revert "fixes #13195 "
...
This reverts commit cd7904f2b2 .
2020-01-19 20:33:23 +00:00
Andrii Riabushenko
e349f7ad21
Merge branch 'devel' of https://github.com/nim-lang/Nim into devel
2020-01-19 20:22:06 +00:00
Andrii Riabushenko
7576387dfe
revert last commit
2020-01-19 20:21:26 +00:00
Andrii Riabushenko
cd7904f2b2
fixes #13195
2020-01-19 20:18:04 +00:00
slangmgh
13ddbc46fc
Fixes #13186 ( #13188 )
2020-01-19 14:16:50 +01:00
Federico Ceratto
8d64550b1e
Add link to packaging.html ( #13194 )
2020-01-19 14:15:59 +01:00
cooldome
416b4c3612
more on arc codegen ( #13178 )
...
* arc codegen for union type
* add more tests
* fix offsetof
* fix tsizeof test
* fix style
2020-01-19 14:14:26 +01:00
Timothee Cour
bc14453f69
fix docs + API for fieldPairs, fields ( #13189 )
2020-01-18 13:33:30 +01:00
Timothee Cour
f6ba4e81b0
maybe: allows optional chaining of field access and indexing when LHS i snil ( #13023 )
...
* maybe: allows optional chaining
* fix tools/kochdocs.nim
* improve semantics to distinguish valid from invalid values
* for now, wrapnil, isValid, unwrap are not exported
2020-01-18 12:24:56 +01:00
Timothee Cour
e11ecc8266
times: toUnixFloat, fromUnixFloat ( #13044 )
2020-01-18 01:24:44 +01:00
Timothee Cour
5010bc1af5
fixes #13144 ( #13145 )
...
* fixup: genscript now does not copy nimbase.h but uses -I$nim/lib
2020-01-18 01:21:13 +01:00
Timothee Cour
c56612ff96
refs #13054 correctly handle {.exportc,dynlib.} and {.exportcpp,dynlib.} ( #13136 )
...
* refs #13054 correctly handle {.exportc,dynlib.} and {.exportcpp,dynlib.}
* put back NIM_EXTERNC for N_LIB_EXPORT; causes issues with compilerproc
2020-01-18 01:19:20 +01:00
Araq
107352f9d7
fixes #13157
2020-01-17 17:52:06 +01:00
Timothee Cour
6c2214b7de
followup on #10435 : should be diff, not show ( #13162 )
2020-01-17 16:56:21 +01:00
Clyybber
451c47634c
Fix docs for subdirs too ( #13180 )
...
* Fix doc subdirs
* Extract to helper proc, and fix on windows
2020-01-17 16:49:37 +01:00
cooldome
f51613e262
make sink operator optional ( #13068 )
...
* make sink operator optional
* bug fix, add changelog entry
* Trigger build
* fix one regression
* fix test
* Trigger build
* fix typos
2020-01-17 11:44:06 +00:00
Andreas Rumpf
7626907401
ARC works for async on Windows ( #13179 )
2020-01-17 11:14:17 +01:00
Jasper Jenkins
796aafe7e0
make case-object transitions explicit, make unknownLineInfo a const, replace a few magic numbers with consts ( #13170 )
2020-01-17 10:34:31 +01:00
cooldome
2bf337abae
fixes #13095 ( #13181 )
...
* fixes #13095
* fix typo
2020-01-17 09:17:18 +01:00
Clyybber
41cf609fc7
Fix docs ( #13176 )
2020-01-16 22:22:17 +01:00
Clyybber
e3acb2d12c
Cleanup DFA ( #13173 )
2020-01-16 20:15:50 +01:00
Jasper Jenkins
d245d4cf09
fix tsizeof3 for aarch64 ( #13169 )
2020-01-16 14:21:12 +01:00
Timothee Cour
1b54be7779
fixes #12998 nim doc regression ( #13117 )
2020-01-16 14:19:58 +01:00
cooldome
5ef0494677
Working towards arc codegen ( #13153 )
...
fixes #13029
2020-01-16 14:16:17 +01:00
Miran
352232e62d
style fix: change 'JS' to 'js' to make it consistent ( #13168 )
2020-01-16 14:14:03 +01:00
Ico Doornekamp
54bfd69a27
Remove obsolete code from osalloc ( #13158 )
2020-01-16 09:11:05 +01:00
Timothee Cour
d5f011d9e6
CI fix timeout error ( #13134 )
2020-01-15 22:54:04 +01:00
Andreas Rumpf
a5e67071d2
ARC: misc bugfixes ( #13156 )
...
* fixes #13102
* closes #13149
* ARC: fixes a move optimizer bug (there are more left regarding array and tuple indexing)
* proper fix; fixes #12957
* fixes yet another case object '=' code generation problem
2020-01-15 22:13:31 +01:00
Timothee Cour
d88b52c0bc
successX now correctly shows html output for nim doc, nim jsondoc; fix #13121 ( #13116 )
...
* successX now correctly shows html output for nim doc
* fixes #13121
* fixup hintSuccessX to be less weird
2020-01-15 15:18:37 +01:00
Timothee Cour
51c072bd37
export normalizePathEnd ( #13152 )
2020-01-15 15:03:06 +01:00
Miran
e708d5de75
System cleanup, part 2 ( #13155 )
...
* create basic_types, arithmetics, exceptions, comparisons
* create setops.nim
* create memalloc.nim
* create gc_interface.nim
* create iterators_1.nim
2020-01-15 14:42:49 +01:00
Ico Doornekamp
79a326759a
Added 'ansic' os support for minimal (embedded) targets ( #13088 )
...
* os:any implementation
* os:asny: omit flock/funlock calls in echoBinSafe
* Disabled default "unhandled expection" reporting for `--os:any` to reduce
code size. Added unhandledExceptionHook instead which can be used to get
a notification from Nim and handle it from the application.
2020-01-15 11:06:41 +01:00
Tomohiro
d31e32743f
Fix typo in doc/destructors.rst ( #13148 )
2020-01-14 19:51:58 +01:00
Andreas Rumpf
675ca997fb
fixes #9674 [backport] ( #13143 )
2020-01-14 16:20:48 +01:00
Andreas Rumpf
8b00586488
fixes #13104 [backport] ( #13142 )
2020-01-14 15:16:36 +01:00
cooldome
b4545f03de
pass platform argument only if vccexe is used ( #13078 )
...
* pass platform only if vccexe is used
* fixes #12297
2020-01-14 15:02:10 +01:00
Andreas Rumpf
fadbd8f70d
fixes #10665 ( #13141 ) [backport]
2020-01-14 13:51:28 +01:00
Andreas Rumpf
9fc04a555c
fixes #13105 ( #13138 )
2020-01-14 12:57:20 +01:00
Andreas Rumpf
d56848878c
fixes #13119 ( #13128 )
...
* fixes #13119
* fixes a regression
2020-01-14 09:56:08 +01:00
Timothee Cour
49d1822c8f
fixes #13100 nim doc now treats export localSymbol correctly ( #13123 ) [backport]
...
* fix #13100 nim doc now treats `export localSymbol` correctly
* use owner instead
2020-01-13 22:05:38 +01:00
treeform
d9640ed075
Expose more openSSL methods. ( #13131 )
2020-01-13 22:04:43 +01:00