Commit Graph

5981 Commits

Author SHA1 Message Date
Dominik Picheta
16a42f4ffa Merge branch 'feature/times_fixup' of https://github.com/survivorm/Nim into survivorm-feature/times_fixup 2018-05-31 15:03:54 +01:00
Michael Voronin
5da74d5979 [add] Add fraction of seconds to parse/format utils 2018-05-31 16:09:48 +03:00
Michael Voronin
8aeb24b4fd [add] add between function to calculate TI between two datetimes 2018-05-31 16:02:40 +03:00
Michael Voronin
11fcc83f8a [add] Add procs for TimeInterval stringify 2018-05-31 16:02:37 +03:00
Michael Voronin
a573577cdc [add+change] Added toDurationParts proc to convert Duration to array[FixedTimeUnit, int64] of it's human-readable parts, use it in $Duration 2018-05-31 16:01:58 +03:00
data-man
664b949d54 Better error messages in scanf. 2018-05-30 23:49:56 +03:00
data-man
1bbd83de3f Removed spaces in math module 2018-05-30 20:55:53 +03:00
Oscar Nihlgård
65070a6936 Use truncation division in mod for floats (#7118)
* Use truncation division in mod for floats

* Add changelog entry

* Add floorDiv/floorMod to math.nim

* Update changelog
2018-05-30 19:14:21 +03:00
Koki Fushimi
2107c81d6d Add inverse hyperbolic, and cot, sec and csc; and their hyperbolic, inverse, inverse hyperbolic, and change to use defined functions in C or JS for logs and hyperbolics. (#7893)
* Add secant, cosecant and cotangent.

* Add hyperbolic functions of cotangent, secant and cosecant.

* Add inverse hyperbolic functions.

* Change to use defined function of C and JS.

* Bug fix and refactoring.

* Add change to changelog.md
2018-05-30 15:29:34 +01:00
Dmitry Atamanov
a075a912cf Add algorithm.upperBound (#7851)
* Add algorithm.upperBound
* Docs updated
2018-05-29 07:28:15 +03:00
hlaaf
5866e64ebc fix #7881, control characters in json output (#7887)
* fix #7881, control characters in json output

* Add test for control characters in json
2018-05-28 19:15:37 -04:00
Andreas Rumpf
5db01f7abe Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-05-28 11:24:37 +02:00
Andreas Rumpf
3221ac0943 hotfix for --gc:regions 2018-05-28 11:24:29 +02:00
七秒不觉梦
b6b6382e0b Added: type name output when exception raised from unittest (#7869) 2018-05-28 05:24:04 +03:00
Federico Ceratto
21fb0db6e2 Update existsFile documentation (#7888) 2018-05-27 19:35:19 -04:00
WhiteDuke
b36c499907 Set domain to client 2018-05-27 21:08:37 +02:00
Andreas Rumpf
7e8eadb6ba SSL implementation: added nimNoAllocForSSL 2018-05-27 11:31:27 +02:00
Andreas Rumpf
88bc2d8df4 make memory regions robust; disable free lists for now 2018-05-27 11:15:45 +02:00
Koki Fushimi
09283bb939 Faster binary gcd algorithm (#7849)
* Faster binary gcd algorithm.

* Use built in countTrailingZeroBits to calculate gcd.

* Add definitions of gcd for integers and other types.

* Unified signed case and unsinged case in one proc by using when syntax.

* Change to faster one.
2018-05-26 08:31:45 +03:00
Araq
08637bc272 JS hotfix for the Internet Explorer up to version 11 2018-05-25 23:19:54 +02:00
data-man
856dc4c5c1 Fixes for parseUntil when until.len == 0 (or nil) 2018-05-25 18:52:04 +03:00
Andreas Rumpf
6536535470 add missing compilerProcs for memory regions 2018-05-25 16:23:21 +02:00
Andreas Rumpf
c0024fa587 fixes channels for --gc:regions 2018-05-25 16:21:33 +02:00
data-man
cc9e94cd96 Hide readAll from js for tests passing 2018-05-25 08:48:09 +03:00
data-man
8149c07458 Fixes streams bugs 2018-05-25 07:46:48 +03:00
data-man
3fd48b7622 Fixes #7877 2018-05-25 06:59:54 +03:00
data-man
605b65487f Fixes #7877 2018-05-25 06:58:07 +03:00
Dmitry Atamanov
e206a8d952 Use new binarySearch everywhere (#7876) 2018-05-25 00:04:30 +03:00
Dominik Picheta
85b7d8fcc4 Rstgen/xml tree fixes (#7823)
* Don't prefix lang names with "lang" in rstgen.

* Implements ability to render xmltree w/o \n. Fixes <> for `data-*` attrs.

* Various rstgen fixes.

* Fixes security vulnerabilities due to not escaping some code.
* Adds <video> support and improve `.. image:: ` directive.

* Adds comment as requested.
2018-05-23 16:28:53 +02:00
data-man
17b8bb8b47 Fixes binarySearch's bug 2018-05-23 12:58:26 +03:00
data-man
a093605ab0 binarySearch became even better 2018-05-23 12:40:55 +03:00
data-man
df37796d88 Fixes pegs bugs, continue 2018-05-23 10:23:19 +03:00
data-man
6acbe6fb01 Fixes pegs bugs 2018-05-23 09:45:51 +03:00
data-man
39a1ad650c Faster binarySearch 2018-05-23 08:42:22 +03:00
Tyler
799674168d Patch the PEG library to work with the JS backend (#7866)
* Added compiler check on transformFile
2018-05-23 05:27:28 +03:00
Andreas Rumpf
c6a9a9c30b hotfix: fixes SSL initialization for httpclient with --threads:on (#7863)
* hotfix: fixes SSL initialization for httpclient with --threads:on
2018-05-22 23:07:02 +02:00
Araq
5472574f72 json.nim: delete should raise KeyError, not IndexError, minor cleanup of the tests 2018-05-20 23:00:39 +02:00
Dmitry Atamanov
90afb1baa7 binarySearch improvements (#7850) 2018-05-20 20:11:25 +02:00
Dominik Picheta
f890f60736 Merge pull request #7843 from koranza/devel
os.findExe: check string lengths to avoid index out of bound
2018-05-20 12:58:50 +01:00
koranza
f9358e85ca remove unneeded check on length 2018-05-19 14:48:19 -05:00
Dmitry Atamanov
94c45136ea Fixes #6832 (#7813)
Fixes #6832
2018-05-19 18:32:18 +03:00
Andreas Rumpf
04ddd069a1 added experimental undokumented std/varints module 2018-05-19 11:17:22 +02:00
koranza
aefa6547c3 check string lengths to avoid index out of bound 2018-05-18 18:25:49 -05:00
Dmitry Atamanov
06bdf8392b Fixes CritBitTree.inc's bug (#7838)
* Fixes CritBitTree.inc's bug

* Update changelog
2018-05-18 21:13:29 +02:00
Araq
221b34ad83 move parsejson logic into its own standard lib module 2018-05-18 01:49:49 +02:00
Araq
4e63f0c267 keep unicode.nim warning free 2018-05-18 01:35:53 +02:00
Araq
4b3ad4f00c keep algorithm.nim warning free 2018-05-18 01:35:09 +02:00
data-man
173c92d374 Fixes factorial's bug 2018-05-17 19:54:41 +03:00
Araq
02f01470ab Merge branch 'devel' into araq-big-refactoring 2018-05-15 15:29:48 +02:00
Araq
f8e23daa20 fixes #7817 2018-05-14 23:27:44 +02:00