Commit Graph

5540 Commits

Author SHA1 Message Date
Konstantin Molchanov
c36d7ffc7c Tables: make toCountTable actually count the elements of the input openArray. 2017-12-27 13:30:32 +04: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
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
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
Dmitry Atamanov
63403b31ad Modified behavior of walkDirRec (#6952) 2017-12-21 11:15:19 +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
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
Araq
2775cda6e1 added new stdlib module 'cstrutils' for easier cstring handling 2017-12-18 13:16:29 +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
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
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
8caa3df1c3 Merge branch 'parsesql' of https://github.com/treeform/Nim into treeform-parsesql 2017-12-15 16:49:59 +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
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
8decf0f5ce make JS tests green again 2017-12-15 11:34:17 +01:00
Araq
196977f623 many improvements to random.nim; fixes #4726 2017-12-14 21:37:53 +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
Andreas Rumpf
bc1123536e Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-14 10:55:12 +01:00
Emery Hemingway
9e87531f04 Genode: constrain osTryAllocPages to RAM quota (#6883)
Genode software components all start with an explicit RAM resource quota
which may or may not be upgraded during runtime by the parent process.
With this patch `osTryAllocPages` will fail if allocation exceeds quotas
set by the parent and the `osAllocPages` procedure will trigger a
blocking request to the parent to increase quotas. The previous behavior
could potentially block both procedures indefinitely for a quota upgrade
rather than fail and trigger garbage collection.

This patch also adds tracking of Genode dataspace mappings into the
component address space so they can be detached and freed.
2017-12-14 10:23:47 +01:00
konqoro
422c117a77 Small fix for js dom 2017-12-13 16:14:01 +02:00
Araq
c35788b97c make hidden visibility the default for Unix 2017-12-13 14:37:19 +01:00
GULPF
542d45f882 Fix counttable smallest (#6912) 2017-12-13 02:52:35 +01:00