Commit Graph

5256 Commits

Author SHA1 Message Date
Zahary Karadjov
765c682c92 fix #204; 2014-02-18 01:19:31 +02:00
Dominik Picheta
5cd9b035b4 Merge branch 'newasync' into devel 2014-02-16 20:03:58 +00:00
Dominik Picheta
17ef758cc3 Fix processing of 'await' with a nnkCall.
Specifically, ``discard readMessages(disp, await disp.accept(server))``
works now, i.e. using 'await' as one of the params to a proc call.
2014-02-16 19:56:17 +00:00
Dominik Picheta
7d2ed73a62 Fixes issues with 'discard' in async macro. 2014-02-16 13:55:06 +00:00
Andreas Rumpf
6f9b0fe712 Merge pull request #921 from gradha/pr_improves_times_format
Improves times.format parsing, fixes #740
2014-02-16 11:56:51 +01:00
Dominik Picheta
fb7598d25a Async readLine now works. Fixes recv issues.
When using MSG_PEEK and data is retrieved ``lpNumberOfBytesRecvd`` will
not be set to the number of bytes read by WSARecv. The buffer must
therefore be checked to ensure it's empty when determining whether
``recv`` shall return "" to signal disconnection as we want to read as
much data as has been received by the system.
2014-02-15 21:13:23 +00:00
Grzegorz Adam Hankiewicz
c2b50c0e38 Adds posix.timegm(), brother of posix.mktime(). 2014-02-15 17:50:40 +01:00
Dominik Picheta
de8d473301 Fixed problems with IOCP procs finishing immediately, added await macro. 2014-02-15 14:15:18 +00:00
Michał Zieliński
4c09fc110f osproc: make failed execv an exception (when using fork or clone)
startProcessAuxFork creates a pipe, which is used by a child to pass
an error code if execv fails.
2014-02-15 15:09:06 +01:00
Grzegorz Adam Hankiewicz
293f356420 Supports parsing format times without separators. Refs #740. 2014-02-15 11:20:00 +01:00
Grzegorz Adam Hankiewicz
bd9e9acdaa Splits token parsing case into separate proc. Refs #740. 2014-02-15 11:02:13 +01:00
Dominik Picheta
66b0582a0b Merge branch 'devel' into newasync 2014-02-14 23:57:10 +00:00
Araq
cf544f6a85 fixes #811 2014-02-14 22:37:36 +01:00
Araq
f95a8df243 fixes #811 2014-02-14 22:19:40 +01:00
Michał Zieliński
cd2bd7fa7b osproc: use clone with CLONE_VM on Linux for faster process spawning 2014-02-14 15:50:28 +01:00
Araq
09c8a51348 bugfix: 'system' on windows is sane 2014-02-14 15:46:30 +01:00
Araq
5d4c048705 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-02-13 21:30:11 +01:00
Dominik Picheta
2fa22078b8 Merge branch 'devel' into newasync 2014-02-12 21:29:56 +00:00
Dominik Picheta
6a65d1c515 newProc can now be used to construct iterator defs. 2014-02-12 21:28:17 +00:00
Dominik Picheta
7e7f5a6927 Rename PFutureVoid to PFutureBase. 2014-02-12 21:27:00 +00:00
Dominik Picheta
b3a0906619 Merge branch 'devel' into newasync 2014-02-11 23:50:58 +00:00
Simon Hafner
33fcd11236 add a trailing zero to $float 2014-02-11 17:46:34 -06:00
Simon Hafner
4b09baa0a0 use .f instead of .16e for floats
It doesn't write a trailing zero, but it's better than floats being all
over your screen.
2014-02-11 15:06:24 -06:00
Simon Hafner
565031f0cd removed $ for openarray, was commented out 2014-02-11 14:21:20 -06:00
Simon Hafner
b6e4a5229d explicit firstElement for $ in collections 2014-02-11 14:20:55 -06:00
Simon Hafner
f6e8da4332 Added $ for seq 2014-02-11 14:16:12 -06:00
Araq
232af9de6c fixes #612 2014-02-11 16:32:02 +01:00
Simon Hafner
e8c87d070a fixed a bug in map for sets 2014-02-10 13:02:47 -06:00
Simon Hafner
0b5c14962e added map to sets 2014-02-10 12:44:44 -06:00
Araq
007d17ce3f more things case consistent 2014-02-10 17:12:25 +01:00
Miguel
51d2384e1a Fix for db_mysql.Open. 'Connection' argument in 'Open' was not used, so MySQL host and port were always default ones. Now 'Connection' is treated as 'host:port'. 2014-02-10 18:41:39 +04:00
Michał Zieliński
87abc22cc3 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-02-10 14:40:18 +01:00
Micky Latowicki
9ce775f468 dynlib: optionally pass RTLD_GLOBAL to dlopen 2014-02-10 09:30:21 +02:00
Miguel
eb9964fbbb Merge branch 'devel' of git://github.com/Araq/Nimrod 2014-02-10 01:20:42 +04:00
Dominik Picheta
728be67afb Resolved conflict. 2014-02-09 21:05:02 +00:00
Araq
e478374e0d capturing of an iterator works better 2014-02-09 21:47:46 +01:00
Michał Zieliński
820fdd6348 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-02-09 15:34:18 +01:00
Araq
f51a4ece6a Merge branch 'newasync' of https://github.com/Araq/Nimrod into devel 2014-02-09 09:37:24 +01:00
Araq
ac3bce79d1 compiles on sparc again 2014-02-09 01:34:17 +01:00
Dominik Picheta
76e8efe36e Added a generic-lacking version of PFuture. 2014-02-08 22:59:40 +00:00
Dominik Picheta
eedf51e9d1 Added new sockets modules: asyncio2, net, and sockets2. 2014-02-08 16:08:03 +00:00
Dominik Picheta
a3f3efa1ba Merge branch 'devel' into newasync 2014-02-08 15:59:42 +00:00
Andreas Rumpf
a70235daaa Merge pull request #877 from EXetoC/times-symbol-export
Export procs that are useful elsewhere.
2014-02-07 19:10:29 +01:00
Simon Hafner
5498415f3b indexBy, which indexes a collection into a hashtable 2014-02-06 16:11:55 -06:00
EXetoC
38e4dfc164 Export procs that are useful elsewhere. 2014-02-06 14:18:44 +01:00
Andreas Rumpf
afb7bc0e63 Merge pull request #875 from EXetoC/mongo
A first attempt at fixing the MongoDB modules.
2014-02-06 02:46:19 +01:00
Araq
550b5d9aea stdlib compiles mostly without warnings again 2014-02-06 00:27:01 +01:00
Araq
8215a32edd case consistency for -d:useWinAnsi 2014-02-05 23:46:55 +01:00
Araq
a2fce822dc Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-02-03 19:00:17 +01:00
Araq
99352c1e4c macro tests almost green 2014-02-03 17:35:03 +01:00