Commit Graph

11716 Commits

Author SHA1 Message Date
Yuriy Glukhov
3de81af44d Added a couple of procs for RSA verification (#6942) 2017-12-19 11:04:42 +01:00
Alexander Ivanov
a9ba02e8c9 added asyncjs standard library module (#6841) 2017-12-19 00:34:54 +01:00
GULPF
a879973081 Better times module (#6552)
* First work on better timezones

* Update tests to new api.
Removed tests for checking that `isDst` was included when formatting, since `isDst` no longer affects utc offset (the entire utc offset is stored directly in `utcOffset` instead).

* Deprecate getLocaltime & getGmTime
* Add `now()` as a shorthand for GetTIme().inZone(Local)
* Add FedericoCeratto's timezone tests (#6548)
* Run more tests in all timezones

* Make month enum start at 1 instead of 0
* Deprecate getDayOfWeekJulian
* Fix issues with gc safety
* Rename TimeInfo => DateTime
* Fixes #6465
* Improve isLeapYear
* FIx handling negative adjTime

* Cleanup:
- deprecated toSeconds and fromSeconds, added fromUnix and toUnix instead (that returns int64 instead of float)
- added missing doc comments
- removed some unnecessary JS specific implementations

* Fix misstake in JS `-` for Time

* Update usage of TimeEffect
* Removed unecessary use of `difftime`
* JS fix for local tz
* Fix subtraction of months
* Fix `days` field in `toTimeInterval`
* Style and docs
* Fix getDayOfYear for real this time...
* Fix handling of adding/subtracting time across dst transitions
* Fix some bad usage of the times module in the stdlib
* Revert to use proper time resoultion for seeding in random.nim
* Move deprecated procs to bottom of file
* Always use `epochTime` in `randomize`
* Remove TimeInterval normalization
* Fixes #6905

* Fix getDayOfWeek for year < 1
* Export toEpochDay/fromEpochDay and change year/month/monthday order
* Add asserts for checking that the monthday is valid
* Fix some remaining ambiguous references to `Time`
* Fix ambiguous reference to Time
2017-12-18 23:11:28 +01:00
Mathias Stearn
07fe1aa655 Use escape sequences rather than hex in string/char literals (#6941)
This should makes documentation easier to read for people who haven't
committed the ascii table to memory.
2017-12-18 17:49:49 +01:00
Araq
2775cda6e1 added new stdlib module 'cstrutils' for easier cstring handling 2017-12-18 13:16:29 +01:00
Araq
ed616664f7 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-18 13:13:10 +01:00
Araq
2502f86d2f next steps in giving Nim a decent DFA infrastructure 2017-12-18 13:12:10 +01:00
Mathias Stearn
90345526ba Prep for tester parallel: private nimcache for each test (#6937)
* Compile tester with --opt:speed

This makes "tester html" substantially faster

* Use a private nimcache for each test

This allows reusing the cache between test runs. It is also prep for parallel
testing within a single category (#6913)
2017-12-18 10:10:52 +01:00
cooldome
3659fec725 Alternative fix for #4910 that covers #6892; fixes #6892 (#6938) 2017-12-17 23:56:21 +01:00
Araq
69aeb86f49 strformat: fix the documentation examples 2017-12-17 20:40:43 +01:00
Araq
3fc7082887 strformat: default for numbers is right alignment 2017-12-17 20:34:32 +01:00
Araq
2e61e6edf9 strformat: support 'sign' as Python does 2017-12-17 17:58:04 +01:00
Araq
5c7493f833 strformat: added '^' char for center alignment for Python compat 2017-12-17 17:21:43 +01:00
Araq
d244508b8a fixes #6932 2017-12-17 14:23:57 +01:00
Araq
7ab3743d84 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-17 13:58:51 +01:00
Araq
26198e4ee7 added new stdlib module 'strformat'; refs #5600; refs #6507 2017-12-17 13:58:40 +01:00
Araq
eab46c5b7e runnableExamples feature: allow import statements and move them to the top level 2017-12-17 13:42:56 +01:00
Araq
e06d76669a renderer.nim: fixes a long standing bug that kept triple string literals from being rendered properly 2017-12-17 13:15:19 +01:00
skilchen
822da4b213 fix #6931 terminal.eraseline() gives OverflowError on Windows (#6933) 2017-12-17 10:57:45 +01:00
Strømberg
01649e3eb5 Name error in example (#6935)
Name error, example didn't compile .
2017-12-17 10:57:05 +01:00
Araq
35133d97ef make niminst compile again 2017-12-16 01:56:38 +01:00
Araq
190f706a10 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-16 01:48:09 +01:00
Dmitry Atamanov
1de3938008 Added test duration output (#6619) 2017-12-15 19:13:57 +01:00
Araq
7a711cc8e1 cleanup of the Intel compiler handling; refs #6488 2017-12-15 19:12:39 +01:00
Eduardo Bart
7c3e00d469 Fix icc compiler on linux (#6488) 2017-12-15 17:01:23 +01:00
Araq
2654a77a60 Merge branch 'treeform-parsesql' into devel 2017-12-15 17:00:32 +01:00
Araq
8caa3df1c3 Merge branch 'parsesql' of https://github.com/treeform/Nim into treeform-parsesql 2017-12-15 16:49:59 +01:00
Araq
0ab28d5e8e Merge branch 'Veladus-issue-6805' into devel 2017-12-15 16:46:45 +01:00
Araq
0d744cccc2 make boostrapping work 2017-12-15 16:46:27 +01:00
Araq
d68be11fea Merge branch 'issue-6805' of https://github.com/Veladus/Nim into Veladus-issue-6805 2017-12-15 16:44:01 +01:00
Araq
b73bb911a9 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-15 15:34:00 +01:00
Araq
e0591d4941 fixes #6626 2017-12-15 15:33:43 +01:00
GULPF
cf9bee1702 Fix counttable smallest loop start (#6917)
* Fix counttable smallest

* Fix counttable smallest loop start
2017-12-15 13:59:32 +01:00
Araq
be87fe9176 make tests green again 2017-12-15 13:24:47 +01:00
Araq
8db5b32ff7 make type vs proc ambiguous handling more consistent; fixes #6726; fixes #6693 2017-12-15 12:16:03 +01:00
Araq
950dadbc71 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-15 11:34:51 +01:00
Araq
8decf0f5ce make JS tests green again 2017-12-15 11:34:17 +01:00
Araq
a5e4d2f7a3 fixes #668 2017-12-15 11:21:49 +01:00
Andreas Rumpf
e92883466a Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-15 00:36:41 +01:00
Araq
196977f623 many improvements to random.nim; fixes #4726 2017-12-14 21:37:53 +01:00
Araq
1bb086e7a8 fixes #5999 2017-12-14 20:55:02 +01:00
Araq
da2f689e09 fixes #6033 2017-12-14 20:49:08 +01:00
treeform
55fdac46e3 fix 2017-12-14 18:40:20 +00:00
Jon Caldwell
54ee368358 Fix identifier in cursor* templates in terminal 2017-12-14 18:36:18 +00:00
Federico Ceratto
21a9fce414 Fix onSignal example 2017-12-14 18:36:18 +00:00
Euan T
c678ac3f33 Expand dbQuote to handle backslashes 2017-12-14 18:36:18 +00:00
treeform
ee5a76fd9d fix 2017-12-14 18:36:18 +00:00
treeform
08d7b5d031 fix 2017-12-14 18:36:17 +00:00
treeform
c6b33de127 fix 2017-12-14 18:36:17 +00:00
Fabian Keller
6df6ec27ec Improved collection-to-string behavior (#6825) 2017-12-14 14:02:13 +01:00