summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* make goto based exceptions available for 'nim cpp' (#13244)Andreas Rumpf2020-01-2511-18/+29
| | | | | * make goto based exceptions available for 'nim cpp' * optimize seq.add to be comparable to C++'s emplace_back
* Cleaned up mmdisp.nim, moved implementations into lib/system/mm/ (#13254)Ico Doornekamp2020-01-255-392/+416
|
* testament/azure: major rewrite (#13246)alaviss2020-01-252-77/+125
| | | | | | | | | | | This commit features a major rewrite of Azure Pipelines integration, turning the spaghetti it originally was into something maintainable. Key changes: - No longer requires a ton of hooks into testament. - Results are now cached then bulk-uploaded to prevent throttling from Azure Pipelines, avoiding costly timeouts. - A low timeout is also employed to avoid inflated test time. - The integration is now documented.
* contributing docs: symbols need package prefix; changed allocStats to ↵Timothee Cour2020-01-2510-9/+23
| | | | nimAllocStats (#13247)
* nim dump: add libpath (#13249)Timothee Cour2020-01-241-0/+1
|
* Add "origin" to window.location (#13251)Jairo2020-01-241-0/+1
| | | Add "origin" to window location: https://www.w3schools.com/jsref/prop_loc_origin.asp
* Fix typo for literal `[` (#13243)Euan2020-01-241-1/+1
| | | The literal value for the `tkBracketLe` token was incorrectly set to `]` rather than `[`. I've had a quick glance at the code and it doesn't look like this change will affect anything at all, but I haven't tested yet - let's see if the CI explodes...
* Fixes asyncftpclient multiline reading, fixes #4684 (#13242)hlaaftana2020-01-241-5/+6
| | | | | Previously, the 4th character of `result` was checked for `'-'` every time, instead of each new line. Also made it work for taint mode.
* Remove name attribute from docutils.nimble (#13239)hlaaftana2020-01-231-1/+0
|
* Updated 'nim for embedded systems' section to use --os:any and --gc:arc (#13237)Ico Doornekamp2020-01-231-15/+33
| | | | | | * Updated 'nim for embedded systems' section to use --os:any and --gc:arc * Added section about size optimization to embedded systems
* [backport] Make all parseutils examples auto-checking (#13238)Kaushal Modi2020-01-231-32/+25
| | | - Also fix one example's output (ikString -> ikStr, ikVar instead of ikExpr)
* [backport] documentation: Add channels examples (#13202) [ci skip]chr v1.x2020-01-231-0/+114
|
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses ↵Ico Doornekamp2020-01-2321-311/+274
| | | | | | | | | | | | | | | | | | | | | | | | | allocShared0. (#13190) * Cleanup, remove lib/system/allocators.nim. seqs_v2 and strs_v2 now use allocShared0 by default. * Fixed -d:useMalloc allocShared / reallocShared / deallocShared. These now use the alloc/dealloc/realloc implementation that also takes care of zeroing memory at realloc. * Removed debug printfs * Removed unpairedEnvAllocs() from tests/destructor/tnewruntime_misc * More mmdisp cleanups. The shared allocators do not need to zero memory or throw since the regular ones already do that * Introduced realloc0 and reallocShared0, these procs are now used by strs_v2 and seqs_v2. This also allowed the -d:useMalloc allocator to drop the extra header with allocation length. * Moved strs_v2/seqs_v2 'allocated' flag into 'cap' field * Added 'getAllocStats()' to get low level alloc/dealloc counters. Enable with -d:allocStats * *allocShared implementations for boehm and go allocators now depend on the proper *allocImpl procs
* Unexport even more symbols (#13214)alaviss2020-01-237-22/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * system/gc: don't export markStackAndRegisters * compiler/cgen: unexport internal symbols As these functions are Nim-specific walkaround against C's optimization schemes, they don't serve any purpose being exported. * compiler/cgen: don't export global var unless marked * compiler/ccgthreadvars: don't export threadvar unless marked * tests/dll/visibility: also check for exports This ensure that these changes don't break manual exports. * compiler/cgen: hide all variables created for constants * compiler/ccgtypes: don't export RTTI variables * compiler/ccgexprs: make all complex const static * nimbase.h: fix export for windows * compiler/cgen, ccgthreadvars: export variables correctly For C/C++ variables, `extern` means that the variable is defined in an another unit. Added a new N_LIB_EXPORT_VAR to correctly export variables.
* fix lots of bugs with parentDir, refs #8734 (#13236)Timothee Cour2020-01-232-19/+28
|
* kochdocs: use a glob instead of hardcoded list; generate docs for compiler/; ↵Timothee Cour2020-01-233-148/+141
| | | | | | | bugfixes (#13221) * kochdocs: use a glob instead of hardcoded list; generate docs for compiler/; bugfixes * fixup after #13212 isRelativeTo got merged
* VM: allow overriding MaxLoopIterations without rebuilding nim (#13233)Timothee Cour2020-01-236-10/+13
|
* [backport] fix #11440, add docs to isNil for seq types needing nilseq ↵D-Nice2020-01-231-0/+12
| | | | (#13234) [ci skip]
* [backport] Fix typo and improve in code-block of 'lib/pure/parseutils.nim' ↵Mera2020-01-231-2/+3
| | | | (#13231) [ci skip]
* new os.isRelativeTo (#13212)Timothee Cour2020-01-233-0/+26
|
* [backport] times/getClockStr(): fix mistake in doc (#13229) [ci skip]Milan2020-01-221-1/+1
|
* [backport] Documentation Fix #12251 (#13226) [ci skip]Juan Carlos2020-01-221-0/+8
|
* added note to re constructor regarding performance (#13224)whiterock2020-01-221-1/+5
| | | 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 :)
* httpclient, maxredirects to Natural, newHttpClient/newAsyncHttpClient add ↵Juan Carlos2020-01-212-5/+12
| | | | headers argument instead of hardcoded empty (#13207)
* fixes a critical times.nim bug reported on IRC [backport] (#13216)Andreas Rumpf2020-01-212-2/+6
|
* fix #13211 relativePath("foo", ".") (#13213)Timothee Cour2020-01-212-0/+6
|
* Idxmin & idxmax, continuation (#13208)Miran2020-01-202-7/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* fix range[enum] type conversion (#13204) [backport]Jasper Jenkins2020-01-202-2/+36
|
* compiler/ccgtypes: hide exportc proc unless it has dynlib (#13199)alaviss2020-01-203-1/+24
| | | | | 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).
* fixes #13195 (#13198)cooldome2020-01-203-4/+30
| | | | | | | | * fixes #13195 * extra fix * fix typo
* fixes #13110 (#13197)Andreas Rumpf2020-01-193-3/+15
|
* Revert "fixes #13195"Andrii Riabushenko2020-01-193-29/+4
| | | | This reverts commit cd7904f2b29e623998a1d32ee726d000f56fc5ce.
* Merge branch 'devel' of https://github.com/nim-lang/Nim into develAndrii Riabushenko2020-01-190-0/+0
|\
| * fixes #13195Andrii Riabushenko2020-01-193-4/+29
| |
* | revert last commitAndrii Riabushenko2020-01-193-4/+29
|/
* Fixes #13186 (#13188)slangmgh2020-01-191-2/+4
|
* Add link to packaging.html (#13194)Federico Ceratto2020-01-191-0/+2
|
* more on arc codegen (#13178)cooldome2020-01-194-26/+81
| | | | | | | | | | | | * arc codegen for union type * add more tests * fix offsetof * fix tsizeof test * fix style
* fix docs + API for fieldPairs, fields (#13189)Timothee Cour2020-01-181-26/+40
|
* maybe: allows optional chaining of field access and indexing when LHS i snil ↵Timothee Cour2020-01-184-0/+196
| | | | | | | | | (#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
* times: toUnixFloat, fromUnixFloat (#13044)Timothee Cour2020-01-183-10/+31
|
* fixes #13144 (#13145)Timothee Cour2020-01-181-9/+4
| | | | * fixup: genscript now does not copy nimbase.h but uses -I$nim/lib
* refs #13054 correctly handle {.exportc,dynlib.} and {.exportcpp,dynlib.} ↵Timothee Cour2020-01-181-11/+7
| | | | | | | (#13136) * refs #13054 correctly handle {.exportc,dynlib.} and {.exportcpp,dynlib.} * put back NIM_EXTERNC for N_LIB_EXPORT; causes issues with compilerproc
* fixes #13157Araq2020-01-171-3/+6
|
* followup on #10435 : should be diff, not show (#13162)Timothee Cour2020-01-171-1/+1
|
* Fix docs for subdirs too (#13180)Clyybber2020-01-173-13/+17
| | | | | * Fix doc subdirs * Extract to helper proc, and fix on windows
* make sink operator optional (#13068)cooldome2020-01-176-62/+56
| | | | | | | | | | | | | | | | * make sink operator optional * bug fix, add changelog entry * Trigger build * fix one regression * fix test * Trigger build * fix typos
* ARC works for async on Windows (#13179)Andreas Rumpf2020-01-175-40/+110
|
* make case-object transitions explicit, make unknownLineInfo a const, replace ↵Jasper Jenkins2020-01-1735-204/+183
| | | | a few magic numbers with consts (#13170)
* fixes #13095 (#13181)cooldome2020-01-172-0/+23
| | | | | | * fixes #13095 * fix typo