Commit graph

3,508 commits

Author SHA1 Message Date
cheatfate
59d4530562 Remove -3 as marker of exited process.
Cache exiting process for Windows to omit unnecessary syscalls.
Fix closing hThread for Windows.
Fix for pause/resume on Windows.
Fix process handle leak on Windows.
Change behavior for waitForExit on Windows.
2017-12-11 21:12:07 +02:00
Andreas Rumpf
5e43e0d789
Merge branch 'devel' into async-improvements 2017-12-11 15:12:45 +01:00
skilchen
28e0bf9dcd fix #6264 and #6141 (#6884) 2017-12-11 14:43:59 +01:00
Andreas Rumpf
6e08ae5c26 merged patch #6876 manually, taking care of poDemon 2017-12-11 11:57:21 +01:00
Mathias Stearn
b87ef65532 Use addCallback rather than callback= in asyncfutures.all() (#6850)
* Use addCallback rather than callback= in asyncfutures.all()

Addresses part of #6849

* Stop using do notation for #6849

* Update example style
2017-12-09 00:55:04 +00:00
Araq
b0c682de4d Merge branch 'devel' into araq-new-mm2 2017-12-08 10:06:56 +01:00
Araq
4be45f5913 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-08 10:06:36 +01:00
Andreas Rumpf
3d5840d24f parsesql: some bugfixes 2017-12-08 00:00:31 +01:00
Andreas Rumpf
6ee08cf70c
fix documentation comments in sequtils.nim 2017-12-05 13:53:18 +01:00
Araq
9820c2c456 bitops: add 'hamming weight' to the doc index 2017-12-03 15:20:50 +01:00
Emery Hemingway
3181f3b04c favor 'select' over 'poll' on Genode (#6821)
The 'poll' of the Genode C runtime is a wrapper over 'select'.
2017-12-01 02:39:16 +01:00
Andreas Rumpf
6a101c5004 os.nim bugfix: system() returns bullshit on Posix-like systems in general 2017-12-01 02:31:47 +01:00
Andreas Rumpf
8646a56738 Merge branch 'nexecProcesses' of https://github.com/cheatfate/Nim into cheatfate-nexecProcesses 2017-12-01 02:06:51 +01:00
Dominik Picheta
578ab935cb Support all int, uint and float variants in json.to macro. 2017-11-30 21:34:30 +00:00
Dominik Picheta
2bb2e6975e Fix infinite recursion when using json.to on ref with cycle. 2017-11-30 21:34:30 +00:00
Dominik Picheta
8d61262372 Implement support for JsonNode in json.to. 2017-11-30 21:34:30 +00:00
Dominik Picheta
8187e83645 Implement Table/OrderedTable support for json.to macro. 2017-11-30 21:34:30 +00:00
Dominik Picheta
8ca41ce637 Implement support for Option[T] in json.to macro. Fixes #5848. 2017-11-30 21:34:30 +00:00
Dominik Picheta
d3c9b58c00 Fixes #6604. Rejects unnamed tuples with error. 2017-11-30 21:34:30 +00:00
Dominik Picheta
e0681715dc Fixes #6095. 2017-11-30 21:34:30 +00:00
Dominik Picheta
11fcae5705 Fixes #5856. Code based on @loloiccl's PR (#5879). 2017-11-30 21:34:30 +00:00
cheatfate
fbe0ae74fb Explicit array initialization removed. 2017-11-29 03:57:29 +02:00
Andreas Rumpf
5196cc3a54
Merge branch 'devel' into fixes-6223 2017-11-28 21:56:48 +01:00
Dominik Picheta
45821ea2ab Fixes #4377. 2017-11-28 21:55:29 +01:00
Araq
e2787c557c mimetypes improvement: make mimetypes easier to use by allowing the extension to start with a dot which is what splitFile().ext returns 2017-11-28 17:34:30 +01:00
Dominik Picheta
b74a5148a9 Fixes #6223. 2017-11-28 14:33:53 +00:00
Federico Ceratto
25831a83d7 Add unittest suite/test name filters
Support simple globbing
2017-11-28 13:12:23 +00:00
cheatfate
c4a57e711b Fix nimrtl troubles. 2017-11-28 14:40:33 +02:00
cheatfate
c6c0d28a4f Refactored version of execProcesses with test. 2017-11-28 14:03:09 +02:00
Araq
439b72b402 osproc improvement: check API consistency in order to prevent bug #6820 2017-11-28 02:19:39 +01:00
Yuriy Glukhov
c47ed6c537 Fixed ospaths compilation on js (#6826) 2017-11-28 01:52:49 +01:00
Araq
653dcb8027 cleaned up strutils.nim 2017-11-28 01:15:33 +01:00
Federico Ceratto
4100932a4b Add string-to-hex and back conversions
Add parseHexStr and toHex and tests.
2017-11-27 16:43:41 +00:00
Dominik Picheta
94fe5bd118 Fix asyncdispatch docgen 2017-11-26 18:14:30 +00:00
Dominik Picheta
a372363190 Don't catch-all in asynchttpserver. It hides bugs. 2017-11-26 16:40:24 +00:00
Araq
2a7cfe4043 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-11-26 03:25:21 +01:00
Araq
a720539f5e fixes system.runnableExamples; strutils makes use of runnableExamples 2017-11-26 03:24:59 +01:00
Veladus
27ea1750e5 Moved encodeUrl and decodeUrl from cgi to url 2017-11-25 16:55:10 +01:00
Dominik Picheta
073c2ddd4b
Merge pull request #6802 from FedericoCeratto/nodelay
Add TCP_NODELAY support #6795
2017-11-25 00:32:40 +00:00
Federico Ceratto
83de3a85e7 Add TCP_NODELAY support #6795 2017-11-24 23:01:18 +00:00
Dominik Picheta
a1e2ec8872 Fix typo in asyncfile. 2017-11-24 17:51:34 +00:00
Dominik Picheta
325e4520ec Implements `asyncdispatch.getIoHandler` and assert on nil futures. 2017-11-24 16:30:56 +00:00
Dominik Picheta
e5a27c96fb Implements nativesockets.accept. 2017-11-24 16:29:34 +00:00
Dominik Picheta
66d7091b79 setBlocking(false) is called on AsyncFD in newAsyncSocket proc. 2017-11-24 16:27:43 +00:00
Dominik Picheta
d6870f2e89 Multiple improvements to selectors.
* Added ``getFd`` procedure for retrieving the underlying
  selector's FD.
* Selectors module's procedures now accept an ``int`` as well as a
  ``SocketHandle``.
* ReadyKey now contains the error code for Event.Error events.
2017-11-24 16:25:03 +00:00
Dominik Picheta
3db460f504 The AsyncFD type now implies that the underlying FD is registered.
* `asyncdispatch.register` won't attempt to register an
  ``AsyncFD``, but instead assume that it is already registered.
2017-11-24 16:17:48 +00:00
andri lim
42666a5d6d fix ordered set equality (#6791) 2017-11-24 14:43:49 +01:00
Fredrik Høisæther Rasch
f6a8cba7b5 Move quoteShell to ospaths (#6794)
Enables quoteShell on nimscript
2017-11-24 14:42:59 +01:00
Dominik Picheta
d3394be555 Async upcoming (#6585)
* Merge upcoming async with current.
* Various improvements to selectors (mostly docs).

Two changes to highlight:

* Renamed ``setEvent`` to ``trigger``
* Reused setBlocking from nativesockets.
* Various changes/fixes to asyncdispatch after upcoming merge.
* Make some attempts to be compatible with older selectors.
* Reuse epoll module in ioselectors_epoll.
2017-11-22 15:43:10 +01:00
Fabian Keller
6abdd7cbf6 Added 'lenient ops' module (#6754)
* added 'lenient ops' module

* made lenient ops inline/noSideEffect; updated copyright

* moved tests into external module

* added warning for the '==' operator

* mentioned lenientops in the standard library overview

* removed test on nimout -- too fragile

* removed `==` and moved doc link to core section
2017-11-21 13:22:27 +01:00