Commit Graph

5820 Commits

Author SHA1 Message Date
Andreas Rumpf
c08efb4c51 implements first version of for-loop macros 2018-04-15 01:07:28 +02:00
Andreas Rumpf
7c879d9b0f explicit effects for existsOrCreateDir 2018-04-14 13:57:27 +02:00
RSDuck
3d1d163eff fixes #7451 (#7575) 2018-04-14 08:33:36 +02:00
Andreas Rumpf
116e984a6b remove deprecated timeToTimeInfo; fixes #3678 2018-04-14 00:59:32 +02:00
Andreas Rumpf
6ae9341d48 make JS tests green again 2018-04-14 00:54:15 +02:00
Andreas Rumpf
50d4224d41 fixes #6205 2018-04-14 00:40:24 +02:00
skilchen
34c1ca1dd0 make nativesockets.Hostent.addrlist readable for ipv4 af_inet addresses (see issue #7314) (#7327) 2018-04-13 23:49:23 +02:00
zah
e3037a2f33 Support code hot reloading for JavaScript projects (#7362)
* Support code hot reloading for JavaScript projects

* Add some missing JavaScript symbols and APIs

* fix the Travis build

* (review changes) remove the js type from the standard library as it doesn't follow NEP-1

* more additions to the DOM module

* Follow NEP-1 in jsffi; spell 'hot code reloading' correctly

* introduce a jscore module

* Document jscore module.

* readded js type

* Remove the '$' operator that doesn't behave
2018-04-13 19:08:43 +02:00
Andreas Rumpf
1d1d6f39a3 make tests green again 2018-04-13 17:45:58 +02:00
Andreas Rumpf
47335aab41 introduce nkTupleConstr AST node for unary tuple construction; breaking change 2018-04-13 17:45:58 +02:00
zah
ab426faa22 Merge pull request #7599 from nim-lang/fix-typedesc-in-async
Fix some usages of typedesc in async procs
2018-04-13 17:33:05 +03:00
Arne Döring
55fe3d87a7 added comment to macros (#7598)
* added comment to macros

* Update macros.nim
2018-04-13 14:05:07 +02:00
Zahary Karadjov
10142e4a80 Fix some usages of typedesc in async procs
This also fixes a compilation error in modules, based only on the
new async module (i.e. not importing the full asyncdispatch)
2018-04-13 13:31:55 +03:00
Oscar Nihlgård
f6df2d9956 Sub second time resolution (#6978)
* Add deprecation warnings to recently deprecated procs

* Fix bad usage of the times module

* Introduce sub second resolution

* Fix usage of C's time()

* Switch to nanosecond resolution

* Make Time & Duration opaque again and fix some errors

* Change back to TimeInterval for shorthands

* Fix JS test

* Fix build error for windows

* Undeprecate epochTime

* Documentation and minor changes

* Lots of bugfixes and doc comments

* Attempt to make travis & appveyor green

* Fix edge cases for dealing with the local timezone

* Workaround JS backend overflow/underflow bug

* Use better workaround for not knowing the size of time_t

* Use all available timezones for tests

* Fix indentation

* Add procs for accessing the fractional part of a duration

* Order time units from smallest to largest since it makes more sense

* Include months and years in `TimeUnit`

* Review fix
2018-04-13 07:36:30 +02:00
Andreas Rumpf
19a1cc914f deprecate macros.callsite; fixes #7369 2018-04-12 20:09:44 +02:00
PMunch
4f1725ad61 Add column number to instantiation info (#7376)
* Add column number to instantiation info

Instantiation info left out column number for no good reason. This adds
it in as the third element of the tuple.

* Fix test that failed and added change to changelog

An assertion test failed because it was declaring a type that was
expected to be populated by instantiationInfo with the old signature.

Also added the changes to the changelog as it is a breaking change.
2018-04-12 20:02:04 +02:00
Xiao-Yong
f543388959 unittest: default no color if stdout is not a tty (#7424)
We accept a new environment variable, NIMTEST_COLOR,
which override the effect of NIMTEST_NO_COLOR.
The environment variable, NIMTEST_COLOR, can be 'never'
or 'always', which set the color output to false or true,
respectively.
2018-04-12 17:57:34 +02:00
treeform
f3db632b1d Added count(*) support to sql parser. Fixed warnings in sql parser. (#7490) 2018-04-12 17:49:24 +02:00
aguspiza
63160855aa Move RLimit and getrlimit to posix.nim and add setrlimit to easily limit FD allocation (#7564) 2018-04-12 17:42:33 +02:00
genotrance
c3cc52087f Added a few useful os calls to VM (#7440) 2018-04-12 13:59:14 +02:00
Arne Döring
84982e5e17 fix deprecation warnings in asyncmacro and htmlgen (#7573)
* fix deprecation warnings in asyncmacro and htmlgen

* removed todo
2018-04-12 13:54:49 +02:00
Arne Döring
e7edc7ec7f option optimization (#6253) 2018-04-11 16:50:27 +02:00
Arne Döring
6baca58693 Get symbol kind (#7491) 2018-04-11 16:48:01 +02:00
genotrance
f6c8f97fe8 Add a few useful os calls to nimscript (#7442) 2018-04-10 18:50:23 +02:00
cooldome
16c1a90857 Cpp codegen: handling of imported exceptions. Fixes #3571 (#7360) 2018-04-10 12:14:59 +02:00
Dominik Picheta
992300b300 Call requestAux not request in httpclient. 2018-04-07 18:16:08 +01:00
Federico Ceratto
56dc7c6f77 Allow searching for "rename file" in documentation 2018-04-07 12:56:16 +01:00
Federico Ceratto
673f5f3534 Add RISC-V (riscv64) support (#7417) 2018-04-07 00:40:39 +02:00
Araq
2d68674338 fixes #7252 2018-04-06 22:25:25 +02:00
Araq
0872e7a27e renamed future.nim to sugar.nim 2018-04-06 11:59:49 +02:00
Araq
5a5ee93784 make parseopt2 use the new better deprecated error message 2018-04-06 11:59:49 +02:00
skilchen
9bacdd64c1 fix issues #6986 and #7501 (#7513) 2018-04-06 10:24:58 +02:00
Dmitry Atamanov
cf6d41b51d Fixes #5281 (#7489) 2018-04-06 10:09:05 +02:00
Jacek Sieka
4d6456d029 __NR_gettid as const on amd64 (#7460) 2018-04-06 10:07:36 +02:00
Dominik Picheta
1bd4560986 Merge pull request #7471 from yglukhov/fixed-times-cpp-windows-32
Fixed compilation of times.nim with mingw 4.9.2 C++ 32bit
2018-04-05 23:06:38 +01:00
Dominik Picheta
06a4505305 Merge pull request #7483 from GULPF/cookies-timezones
Don't assume UTC in cookies.setCookie
2018-04-04 22:37:37 +01:00
Dominik Picheta
58dc8a399e Merge pull request #7450 from cabhishek/devel
Fixes #6902
2018-04-04 22:36:18 +01:00
Arne Döring
5d46e1eaa2 Fixes #7473 (#7475)
* removed code duplication
* changelog entry, adopt tests for changes
2018-04-04 15:37:07 +02:00
Dominik Picheta
7ef0cfebb5 Merge pull request #7495 from GULPF/fix-fill-bug
Fix algorithm.fill for empty input
2018-04-04 13:54:40 +01:00
Oscar Nihlgård
34df046d37 Fix algorithm.fill for empty input 2018-04-04 13:02:14 +02:00
Oscar Nihlgård
da077eea7c Move algorithm tests away from koch 2018-04-04 13:00:51 +02:00
Yuriy Glukhov
bc724a0a81 Fixed compilation of times.nim with mingw 4.9.2 C++ 32bit 2018-04-03 19:05:36 +03:00
Oscar Nihlgård
97565826ef Don't assume UTC in cookies.setCookie 2018-04-03 12:15:01 +02:00
Roman Ovseitsev
17d0e29d40 Fix documentation link for set type (#7465) 2018-04-03 10:39:17 +02:00
Andreas Rumpf
8b0ea4b501 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-04-03 10:25:26 +02:00
Andreas Rumpf
d837362216 C codegen: preparations for different seq and string implementations 2018-04-03 10:25:20 +02:00
Eugene Kabanov
0b99e8e8cb Fix compiler stuck on waiting C/CPP backends. (#7472) 2018-04-02 21:54:27 +02:00
Andreas Rumpf
b25044286b sysstr.nim: fix minor typos 2018-04-02 17:01:40 +02:00
Dominik Picheta
755570bcfb Merge pull request #7459 from arnetheduck/posix-rlimit-nofile
RLIMIT_NOFILE as posix const
2018-04-02 14:35:04 +01:00
Dominik Picheta
39c71d6211 Merge pull request #7336 from yglukhov/ipaddr-sockaddr-conversions
Conversion procs for (IpAddress, Port) <-> (SockAddr, Socklen)
2018-04-02 14:31:05 +01:00