summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Added a couple of procs for RSA verification (#6942)Yuriy Glukhov2017-12-191-0/+8
|
* added asyncjs standard library module (#6841)Alexander Ivanov2017-12-191-0/+110
|
* Better times module (#6552)GULPF2017-12-1811-792/+862
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* added new stdlib module 'cstrutils' for easier cstring handlingAraq2017-12-181-0/+79
|
* strformat: fix the documentation examplesAraq2017-12-171-4/+4
|
* strformat: default for numbers is right alignmentAraq2017-12-171-10/+13
|
* strformat: support 'sign' as Python doesAraq2017-12-171-25/+36
|
* strformat: added '^' char for center alignment for Python compatAraq2017-12-171-4/+18
|
* Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2017-12-172-3/+3
|\
| * fix #6931 terminal.eraseline() gives OverflowError on Windows (#6933)skilchen2017-12-171-2/+2
| |
| * Name error in example (#6935)Strømberg2017-12-171-1/+1
| | | | | | Name error, example didn't compile .
* | added new stdlib module 'strformat'; refs #5600; refs #6507Araq2017-12-171-0/+590
|/
* Merge branch 'parsesql' of https://github.com/treeform/Nim into ↵Araq2017-12-151-187/+276
|\ | | | | | | treeform-parsesql
| * fixtreeform2017-12-143-12/+8
| |
| * Fix identifier in cursor* templates in terminalJon Caldwell2017-12-141-4/+4
| |
| * Fix onSignal exampleFederico Ceratto2017-12-141-4/+7
| |
| * Expand dbQuote to handle backslashesEuan T2017-12-141-0/+1
| |
| * fixtreeform2017-12-141-100/+85
| |
| * fixtreeform2017-12-141-17/+24
| |
| * fixtreeform2017-12-141-159/+256
| |
* | Merge branch 'issue-6805' of https://github.com/Veladus/Nim into ↵Araq2017-12-151-1/+1
|\ \ | | | | | | | | | Veladus-issue-6805
| * | Now analyzes over magics instead of symbol names; but dosn't compile for meVeladus2017-12-111-1/+1
| | |
* | | Fix counttable smallest loop start (#6917)GULPF2017-12-151-3/+3
| | | | | | | | | | | | | | | | | | * Fix counttable smallest * Fix counttable smallest loop start
* | | make JS tests green againAraq2017-12-151-1/+1
| | |
* | | many improvements to random.nim; fixes #4726Araq2017-12-141-26/+97
| | |
* | | fixes #6033Araq2017-12-141-195/+0
| |/ |/|
* | Improved collection-to-string behavior (#6825)Fabian Keller2017-12-147-36/+79
| |
* | Merge branch 'devel' of github.com:nim-lang/Nim into develAndreas Rumpf2017-12-144-15/+124
|\ \
| * | Genode: constrain `osTryAllocPages` to RAM quota (#6883)Emery Hemingway2017-12-142-11/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Small fix for js domkonqoro2017-12-131-2/+2
| | |
| * | Fix counttable smallest (#6912)GULPF2017-12-131-2/+7
| | |
* | | make hidden visibility the default for UnixAraq2017-12-131-0/+2
|/ /
* | Merge branch 'nosproc2' of https://github.com/cheatfate/Nim into ↵Araq2017-12-132-62/+108
|\ \ | | | | | | | | | cheatfate-nosproc3
| * | Fixcheatfate2017-12-131-1/+1
| | |
| * | execProcesses optimization.cheatfate2017-12-121-24/+29
| | |
| * | Windows: Fix invalid handle value for `execProcesses`.cheatfate2017-12-121-7/+11
| | | | | | | | | | | | Windows. Fix named pipes leak.
| * | Remove `-3` as marker of exited process.cheatfate2017-12-112-41/+78
| | | | | | | | | | | | | | | | | | | | | | | | Cache exiting process for Windows to omit unnecessary syscalls. Fix closing hThread for Windows. Fix for pause/resume on Windows. Fix process handle leak on Windows. Change behavior for waitForExit on Windows.
* | | improve the docs for tables.addAraq2017-12-122-0/+5
|/ /
* | fix #6264 and #6141 (#6884)skilchen2017-12-111-2/+6
| |
* | merged patch #6876 manually, taking care of poDemonAndreas Rumpf2017-12-111-17/+18
| |
* | allocator: minor fix for deallocOsPagesAndreas Rumpf2017-12-111-0/+1
| |
* | Use addCallback rather than callback= in asyncfutures.all() (#6850)Mathias Stearn2017-12-092-4/+5
| | | | | | | | | | | | | | | | | | | | * Use addCallback rather than callback= in asyncfutures.all() Addresses part of #6849 * Stop using do notation for #6849 * Update example style
* | Merge branch 'devel' into araq-new-mm2Araq2017-12-082-7/+8
|\ \
| * \ Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2017-12-082-7/+8
| |\ \
| | * | optimize setLen (#6816)Brent Pedersen2017-12-071-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | inline the call to setLengthSeq and avoid decref for types if ntfNoRefs closes #6721 and speeds setLen when newLen < len for non reference types.
| | * | fix documentation comments in sequtils.nimAndreas Rumpf2017-12-051-2/+2
| | |/
* | | parsesql: some bugfixesAndreas Rumpf2017-12-081-2/+3
| | |
* | | cleanup todo.txtAraq2017-12-071-1/+2
| | |
* | | make the new allocator workAraq2017-12-071-8/+15
| | |
* | | Threading: increase TLS size for new allocatorAraq2017-12-071-2/+2
| | |