summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9922 from c-blake/develAndreas Rumpf2018-12-121-0/+29
|\ | | | | Let handles be seen outside of `memfiles` module so that "updating"
| * For now just implement `resize` per https://github.com/nim-lang/Nim/pull/9922Charles Blake2018-12-111-15/+29
| | | | | | | | | | discussion (with special mremap usage on Linux, but ordinary munmap, mmap on other POSIX). Someone needs to do the when windows branch.
| * Address dom96/Araq opinions in https://github.com/nim-lang/Nim/pull/9922Charles Blake2018-12-111-4/+19
| | | | | | | | | | | | Updating accessors are also provided since the idea of this change is to allow "updating" operations external to the module which are by their very nature closely tied to module internals (as well as to OS interface details).
| * Let handles be seen outside of `memfiles` module so that "updating"Charles Blake2018-12-101-4/+4
| | | | | | | | | | | | | | | | operations (like eg., resizing a file and re-mapping) do not need to worry about race conditions of re-opened paths, renamed parent directories and that sort of thing. Operating directly on already open handles is both safer and more efficient than relying upon the stability of filesystem paths.
* | Rework nil/option for nre in light of ""==nilFlaviu Tamas2018-12-112-69/+82
| | | | | | | | Fixes #9243
* | Revert 7f49364fd0 for nreFlaviu Tamas2018-12-112-7/+11
| |
* | cleanup of excpt.nimAndreas Rumpf2018-12-111-1/+4
| |
* | Merge pull request #9805 from pacien/181126-list-appendAndreas Rumpf2018-12-111-0/+15
|\ \ | | | | | | add SinglyLinkedList.append procs
| * | add SinglyLinkedList.append procspacien2018-11-271-0/+15
| | |
* | | Merge pull request #9923 from stefantalpalaru/calldepthAndreas Rumpf2018-12-111-3/+5
|\ \ \ | | | | | | | | replace misleading "stack overflow" message when reaching Nim's call depth limit
| * | | replace misleading "stack overflow" message on call depth limitȘtefan Talpalaru2018-12-101-3/+5
| | |/ | |/| | | | | | | | | | | | | | | | The new error message looks like this: "Error: call depth limit reached in a debug build (2000 function calls). You can change it with -d:nimCallDepthLimit=<int> or switch to a release build with -d:release."
* | | Merge pull request #9881 from timotheecour/pr_ref_9880Andreas Rumpf2018-12-114-5/+19
|\ \ \ | | | | | | | | refs #9880 show index and bound in lots of `index out of bounds` errors
| * | | refs #9880 show index and bound in lots of `index out of bounds` errorsTimothee Cour2018-12-094-5/+19
| | | |
* | | | Testament: refactoring; makes the test joiner greenAraq2018-12-111-0/+11
| | | |
* | | | test can fail because of invalid specArne Döring2018-12-111-11/+0
| | | |
* | | | Merge pull request #9910 from nc-x/fix-semicolonAndreas Rumpf2018-12-111-1/+2
|\ \ \ \ | |_|/ / |/| | | Fixes #9907
| * | | Address CommentsNeelesh Chandola2018-12-111-0/+1
| | | |
| * | | Fixes #9907Neelesh Chandola2018-12-091-1/+1
| |/ /
* | | Merge pull request #9890 from nim-lang/remove-asynccommonAndreas Rumpf2018-12-092-213/+211
|\ \ \ | |/ / |/| | Merge async common into asyncdispatch.
| * | Merge async common into asyncdispatch.Dominik Picheta2018-12-072-213/+211
| | |
* | | Make options.UnpackError inherit from system.DefectOscar Nihlgård2018-12-081-19/+15
| | |
* | | Merge pull request #9803 from GULPF/walkdirrec-relativeAndreas Rumpf2018-12-061-7/+12
|\ \ \ | | | | | | | | Add `relative` parameter to walkDirRec
| * | | Add `relative` parameter to walkDirRecOscar Nihlgård2018-11-261-7/+12
| | | |
* | | | Update parseutils.nimTimothee Cour2018-12-051-2/+2
| | | |
* | | | hotfix: discriminants can be of size 8 bytes [backport]Araq2018-12-052-0/+2
| | | |
* | | | Merge pull request #9846 from timotheecour/pr_getpidAndreas Rumpf2018-12-052-1/+11
|\ \ \ \ | | | | | | | | | | add os.getCurrentProcessId()
| * | | | address commentsTimothee Cour2018-12-042-2/+2
| | | | |
| * | | | fixupTimothee Cour2018-12-041-1/+1
| | | | |
| * | | | fixupTimothee Cour2018-12-031-1/+1
| | | | |
| * | | | address commentsTimothee Cour2018-12-032-12/+11
| | | | |
| * | | | fixupTimothee Cour2018-12-031-1/+1
| | | | |
| * | | | fixupTimothee Cour2018-12-031-1/+2
| | | | |
| * | | | add osproc.processID()Timothee Cour2018-12-031-0/+10
| | |/ / | |/| |
* | | | Merge pull request #9862 from zevv/posix-cmsgAndreas Rumpf2018-12-051-0/+6
|\ \ \ \ | | | | | | | | | | Added CMSG_SPACE and CMSG_LEN macros to posix.nim
| * | | | Added CMSG_SPACE and CMSG_LEN macros to posix.nimIco Doornekamp2018-12-041-0/+6
| | | | |
* | | | | times.nim: Minor formatting change in the example codeAraq2018-12-041-1/+1
| | | | |
* | | | | Fix fat pointers, object copying, magic double evals on JS (#9411) [backport]rec2018-12-043-8/+14
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a test for issue #9389 * Fixes #9389. * Make object contructors copy objects properly by checking whether the expressions passed to them don't need to be copied. * Make mArrToSeq implementation actually check if a copy needs to be made. * Avoid unnecessary copy in mChr impl * Assume set constructor elements need no copy * Add a test for issue #9410 * Add a test * fix passing fat pointers (#9410) * Enhance tests * More tests and fixes * Add more (failing) tests [ci skip] * Added equality operator for fat pointers, more tests and fixes * Fix printing uninitialized strings * Fix mInc, mDec double eval, add more tests * Tests * Refactored, fixed multiple evals, revamped the tests, added missing ops * Fix ups * Fix #9643 and #9644 * add pointer normalization
* | | | gc:destructors: more progressAndreas Rumpf2018-11-292-19/+15
| | | |
* | | | gc:destructors further progressAndreas Rumpf2018-11-292-2/+15
| | | |
* | | | add: proc deepCopy*[T](y: T): T (#9740)Timothee Cour2018-11-281-0/+4
| | | |
* | | | some progress on --gc:destructorsAndreas Rumpf2018-11-271-17/+18
| | | |
* | | | new minor language feature: .noSideEffect blocks like .gcsafe blocksAndreas Rumpf2018-11-271-3/+4
| | | |
* | | | fixes #9800 (#9804) [backport]pgkos2018-11-261-2/+5
| | | | | | | | | | | | | | | | | | | | * fixes #9800 * add tests for #9800
* | | | times: use clock_gettime for cpuTime with POSIX (#9793)Emery Hemingway2018-11-261-3/+13
| |_|/ |/| | | | | | | | | | | | | | The POSIX 'clock()' procedure returns process CPU time in an implementation specific unit, which for historical reasons can be as large as ~7ms in the case of FreeBSD. Use 'clock_gettime' for higher accuracy.
* | | fixes #9675Andreas Rumpf2018-11-261-1/+1
| | |
* | | Add workingDir parameter to execProcess and test (#9549)Tomohiro2018-11-261-1/+3
| | | | | | | | | | | | | | | | | | * Add workingDir parameter to execProcess * Fix tests/stdlib/tosproc.nim compile error * Suppress output from tosproc.nim
* | | Remove dead code (#9777)Jacek Sieka2018-11-265-147/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | * gc/gc2: remove unused ref counting stuff * also removes some false threading support - hasSharedHeap is always false in gc/gc2 * gc: remove some threading cruft * remove asgnRefNoCycle * compiler: remove TLoc.dup (unused)
* | | Fixes 9716 [backport] (#9790)Yuriy Glukhov2018-11-241-1/+1
| | | | | | | | | | | | | | | | | | * reuse temporary variable * fixes #9716 [backport] * Declare local vars in safer place
* | | Merge pull request #9548 from tonygparsehub/put-deleteDominik Picheta2018-11-231-42/+78
|\ \ \ | | | | | | | | fix #8777 add missing http methods in httpClient
| * | | fix #8777 add missing http methods in httpClientTony G2018-10-301-42/+78
| | | |