Commit Graph

19850 Commits

Author SHA1 Message Date
Oscar Nihlgård
05b447374b Use higher time resolution when available in os.nim (#7709) 2018-06-04 14:56:56 +02:00
Oscar Nihlgård
440212a154 Fix for newStringOfCap in VM (#7901) 2018-06-04 13:38:26 +02:00
WhiteDuke
59ba1e77af Wait until the end to print hint Conf (#7931) 2018-06-04 13:31:22 +02:00
Andreas Rumpf
582786d068 db_mysql.nim: Work around string nil comparison logic 2018-06-04 12:20:56 +02:00
Andreas Rumpf
2e9d486378 wip 2018-06-04 11:59:02 +02:00
Yuriy Glukhov
395b7506cf Expose GC_setStackBottom (#7885) 2018-06-04 11:12:18 +02:00
Koki Fushimi
abf8ee049a Broaden the argument types 2018-06-04 16:48:11 +09:00
Koki Fushimi
f849db1c5c Generalize and add test 2018-06-04 15:09:17 +09:00
Koki Fushimi
d7913419d7 Add log proc for base b of x 2018-06-04 15:03:08 +09:00
Andreas Rumpf
268260953c completed VM support for incremental compilations 2018-06-04 01:01:08 +02:00
Dominik Picheta
4a88c245d3 Merge pull request #7949 from nim-lang/sqlite-use-empty-strings
Update sqlite example to use empty strings.
2018-06-03 19:38:26 +01:00
Varriount
381acc09e9 Update sqlite example to use empty strings.
Update sqlite example to use empty strings to use empty strings instead of nil.
2018-06-03 14:37:41 -04:00
Andreas Rumpf
b5194f592c WIP: an API for VM replay global state support 2018-06-03 20:18:43 +02:00
Andreas Rumpf
9ab92824f6 AST change: keep nkStaticStmt in the AST for incremental compilation support 2018-06-03 20:16:29 +02:00
Andreas Rumpf
1ed7751dac added btrees.contains 2018-06-03 20:15:37 +02:00
Andreas Rumpf
6d19d1eeb2 macros.nim: remove deprecated symbols 2018-06-03 20:15:12 +02:00
Andreas Rumpf
9d27079606 support iteration over BTrees for the compilation cache 2018-06-03 12:37:03 +02:00
Oscar Nihlgård
fd28236368 Multi byte characters should not be treated as part of an operator 2018-06-03 09:05:50 +02:00
Andreas Rumpf
826c1e2d78 incremental compilation: implemented basic replay logic 2018-06-02 09:41:27 +02:00
skilchen
91765e583d fix handling of default precision in formatBiggestFloat for the js backend (#7928) 2018-06-01 22:24:32 -04:00
skilchen
07ff9940f4 fix strformat zeropadding for floats (#7934) 2018-06-01 22:23:50 -04:00
Andreas Rumpf
cae1973856 document how the incremental compilation scheme could work 2018-06-01 22:11:32 +02:00
data-man
b4626a220b Added $ for openarrays. Fixes #7940. 2018-06-01 21:28:23 +03:00
Federico Ceratto
cb87bba82f Update example (#7788) 2018-06-01 11:28:20 -04:00
Chris McIntyre
8557a2e1a5 Fixed operator precedence in example (#7912)
The order of operations was incorrect for the right-hand side of the `assert` statement on line 3199, based on the operator precedence for line 3197.
2018-06-01 11:24:49 -04:00
Koki Fushimi
3acedd4cd9 Add imaginary unit. (#7922) 2018-06-01 11:20:28 -04:00
Koki Fushimi
3027ca292c Support div, mod, floorDiv and floorMod for Rationals (#7918)
* Support `div`, `mod`, floorDiv and floorMod for Ratinoals.

* Bug fix and add tests.

* Update changelog
2018-06-01 11:19:25 -04:00
Dominik Picheta
829f89d649 Merge pull request #7938 from Torro/devel
Add note to import "std/sha1" to sha1.nim (doc)
2018-06-01 15:46:05 +01:00
Torro
637ee7a151 Add note to import "std/sha1" to sha1.nim (doc) 2018-06-01 16:20:30 +02:00
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
Oscar Nihlgård
eb8f15d97c Support multi byte characters in module names (#7916) 2018-05-31 10:38:43 +03:00
data-man
a55f49a7b4 Years were updated. 2018-05-31 01:37:34 +03:00
data-man
60d437427b Added Telegram channel to readme. 2018-05-31 01:26:11 +03:00
Andreas Rumpf
61fb83ecbb baby steps for incremental compilation 2018-05-30 23:50:34 +02:00
data-man
664b949d54 Better error messages in scanf. 2018-05-30 23:49:56 +03:00
Andreas Rumpf
a36c779f39 incremental compilation subsystem compiles again 2018-05-30 20:27:41 +02: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
Andreas Rumpf
31d9df9e75 runnableExamples: use the self exe to test the examples 2018-05-30 11:34:03 +02:00
Andreas Rumpf
ddc6cec69e refactoring: move DB model to incremental.nim 2018-05-30 10:15:41 +02:00
andri lim
25a41d5d90 fixes #7818, correct internal representation of generic objects array construction (#7824)
* defer skiptypes
* defer skiptypes for tyRef & tyPtr
* remove unneeded skipTypes
2018-05-29 09:38:52 +02:00
Andreas Rumpf
688c54d8f1 compiler API: final cleanups; improve security by diabling 'gorge' and friends 2018-05-29 09:07:24 +02:00
Andreas Rumpf
a5701d6b71 ensure compiler API doesn't import the RST engine 2018-05-29 08:22:09 +02:00
Dmitry Atamanov
a075a912cf Add algorithm.upperBound (#7851)
* Add algorithm.upperBound
* Docs updated
2018-05-29 07:28:15 +03:00
Andreas Rumpf
06122ff711 rewrote nimeval.nim; added tcompilerapi example to show how the compiler can be used as an API 2018-05-29 01:18:50 +02:00