Commit Graph

18917 Commits

Author SHA1 Message Date
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
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
ae1f6895fa active.nim: fixes the import path so that compilation with --noNimblePath works 2018-05-29 00:55:31 +02:00
Andreas Rumpf
b92fcacb99 more compiler API cleanups 2018-05-28 23:48:25 +02:00
Clyybber
66780c1f4f Small grammar/spelling fix for changelog (#7896)
* Small grammar/spelling fix.

* Tiny grammar fix
2018-05-28 14:17:21 -04:00
Andreas Rumpf
83834be938 cleanup examples/readme.txt 2018-05-28 19:49:20 +02:00
Andreas Rumpf
cd1b0aa87e cleanup old allany.nim example 2018-05-28 19:45:12 +02:00
Andreas Rumpf
5ad1acc60c remove the last global variables in the C code generator 2018-05-28 18:18:43 +02:00
Andreas Rumpf
e5281f9356 rename 'nimrodVM' to 'nimVM' 2018-05-28 18:01:56 +02:00
Andreas Rumpf
382bc34f93 vm now free of global variables 2018-05-28 14:41:49 +02:00
Andreas Rumpf
5d45e630c5 vm.nim: evalMacroCounter is not a global variable anymore 2018-05-28 13:57:16 +02:00
Andreas Rumpf
db4bcd80e5 jsgen refactoring: use graph.backend field instead of a global variable 2018-05-28 12:24:18 +02:00
Andreas Rumpf
afdd77363e Merge branch 'devel' into araq-big-refactoring 2018-05-28 12:13:50 +02: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
Dominik Picheta
f2f7896c2b Merge pull request #7892 from Wh1teDuke/patch-5
acceptAddr: Set domain to client socket
2018-05-28 00:31:01 +01:00
Andreas Rumpf
006ee79a91 make dependency analyser free of global variables 2018-05-28 00:04:55 +02:00
Andreas Rumpf
73799903ee removed global variable from rstgen.nim 2018-05-27 23:38:49 +02:00
Andreas Rumpf
c640bd2d1b cleanup compiler/prettybase to not use redudant global variables 2018-05-27 22:52:10 +02:00
Andreas Rumpf
545b1582cd refactoring: make projectMainIdx typesafe 2018-05-27 22:30:36 +02:00
Andreas Rumpf
40ec7be45c refactoring: remove idents.legacy global variable and pass the IdentCache around explicitly 2018-05-27 22:09:15 +02:00
WhiteDuke
b36c499907 Set domain to client 2018-05-27 21:08:37 +02:00
Andreas Rumpf
a325692fb2 refactoring: fewer global variables 2018-05-27 19:19:12 +02:00
Daniil Yarancev
c0ea647c37 Remove #
I don't even know how it got there.
2018-05-27 18:48:24 +03:00
Andreas Rumpf
18a3833d60 more refactoring 2018-05-27 15:22:17 +02:00
Andreas Rumpf
dd8a6ef3a2 implements --hint[globalvar]:on switch for quickly finding global variables 2018-05-27 14:00:44 +02:00
Andreas Rumpf
9849808720 Merge branch 'devel' into araq-big-refactoring 2018-05-27 13:38:09 +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
Andreas Rumpf
669a564492 remove more global variables in the Nim compiler 2018-05-27 11:10:56 +02:00
Zahary Karadjov
1c478db375 fix #7883; fix #7829 2018-05-26 20:46:22 +03:00
Andreas Rumpf
12bd1c494c fixes merge conflict 2018-05-26 19:09:02 +02:00