Commit Graph

11758 Commits

Author SHA1 Message Date
Konstantin Molchanov
a8b0a8a92d Changelog: Document toCountTable behaviour change. 2017-12-27 17:29:39 +04:00
Konstantin Molchanov
b592f069bb Tables: toCountTable: Update docs. 2017-12-27 13:44:47 +04:00
Konstantin Molchanov
c36d7ffc7c Tables: make toCountTable actually count the elements of the input openArray. 2017-12-27 13:30:32 +04:00
cooldome
53cf0b2c24 Allow noreturn procs with void type (#6973) 2017-12-27 10:09:24 +01:00
cooldome
2b3ec0a7c6 Implement language feature #6885 (#6954) 2017-12-24 22:22:03 +01:00
Mathias Stearn
6bd3a2826f cmp(x, y: string) now uses memcmp rather than strcmp (#6869) (#6968) 2017-12-24 15:23:17 +01:00
Dominik Picheta
ca9f3b47d4 Add link to #6934 in changelog.md 2017-12-23 14:08:47 +00:00
Dominik Picheta
7937e38423 Merge pull request #6394 from FedericoCeratto/code-block-check
Add check for broken code-block in docs
2017-12-22 18:47:33 +00:00
Dominik Picheta
89b6f0318b Merge pull request #6957 from cheatfate/fix6906
Fix #6906
2017-12-22 15:33:22 +00:00
Dominik Picheta
8d992c4176 Merge pull request #6725 from FedericoCeratto/unittest-5114
Add unittest suite/test name filters
2017-12-22 15:26:45 +00:00
Andreas Rumpf
c2d91771bc DFA works for simple examples 2017-12-21 19:05:23 +01:00
Andreas Rumpf
6b321d0650 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-21 17:16:31 +01:00
Andreas Rumpf
b96213d559 Merge branch 'pyokagan-compile-deps' into devel 2017-12-21 17:15:59 +01:00
Andreas Rumpf
da90657317 make the new --genDeps feature optional since it makes compilations slower 2017-12-21 17:14:31 +01:00
Andreas Rumpf
5516fee1a7 Merge branch 'compile-deps' of https://github.com/pyokagan/Nim into pyokagan-compile-deps 2017-12-21 17:00:54 +01:00
skilchen
a89b81eb96 fixes #6353 (#6951) 2017-12-21 16:32:26 +01:00
cheatfate
b22d9e4339 Fix #6906 2017-12-21 16:45:42 +02:00
Dominik Picheta
8c0e73479e Merge pull request #6944 from alehander42/fix-discardable
Make asyncjs Future[void] play nicely with last line discardable calls & forward declaration
2017-12-21 12:25:29 +00:00
Araq
e0e1241a54 move securehash back into the stdlib 2017-12-21 12:34:38 +01:00
Araq
0181253eea fixes #6949 2017-12-21 12:34:38 +01:00
konqoro
3495c0a46d Fix json generation logic (#6909) 2017-12-21 11:26:02 +01:00
Dmitry Atamanov
63403b31ad Modified behavior of walkDirRec (#6952) 2017-12-21 11:15:19 +01:00
Zahary Karadjov
2ceee884fe fix #6462 2017-12-21 11:08:45 +01:00
Zahary Karadjov
057d5789ba fix #6277 2017-12-21 11:06:36 +01:00
Zahary Karadjov
70380882c5 fix #6108 2017-12-21 11:04:05 +01:00
Araq
765116d547 testament html generation improvements; merged #6667 manually 2017-12-21 10:49:09 +01:00
Araq
18508cdcc3 testament: use splitWhitespace instead of split 2017-12-21 10:23:21 +01:00
Araq
77d56aaff6 cleanup times.nim 2017-12-21 10:11:45 +01:00
Araq
218679fc95 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-21 10:03:56 +01:00
Araq
ee67a67ac4 first steps in adding template/macro calls to stack traces 2017-12-21 10:03:33 +01:00
Mathias Stearn
af1404c85d Minor fixes to strformat docs (#6953) 2017-12-21 09:58:24 +01:00
skilchen
47d00eb397 add missing math.trunc for js backend (#6950) 2017-12-20 22:26:22 +01:00
Alexander Ivanov
eba544996d Fix docs! 2017-12-20 14:11:22 +02:00
Alexander Ivanov
7b495e23d4 Fix the forward test 2017-12-20 14:09:02 +02:00
Alexander Ivanov
b3dfc93bee Fix forward 2017-12-19 20:50:37 +02:00
Alexander Ivanov
7f6afa9e9b Make asyncjs Future[void] play nicely with last line discardable calls 2017-12-19 13:57:37 +02:00
Andreas Rumpf
85ac3130aa make asyncdispatch.poll completing all opterations that can be comple… (#6911)
introduce asyncdispatch.drain that completes all operations that can be completed immediately; implements #6523
2017-12-19 12:39:50 +01:00
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