summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fixes #10978Araq2019-05-061-1/+4
|
* low/high for float ranges (#11177)Oscar Nihlgård2019-05-061-4/+4
|
* fixes macros.quote documentation; doubling of the escape operator never worked!Araq2019-05-051-3/+1
|
* iterators: several small fixes (#11162)Miran2019-05-041-24/+51
| | | | | | * fix pairs, mpairs, mitems for cstring for JS backend * add mutation check for pairs and mpairs for strings and seqs * change the assertion message - modifying (changing elements) is not a problem, changing the length is
* tables: check for mutation when iterating (#11160)Miran2019-05-041-42/+127
|
* Fix ..< iterator (#11103)Arne Döring2019-05-031-0/+14
| | | | | | * add iterator overloads * add test
* introduce temporary <//> for 'owned' to get this compile with 0.19 (#11145)Andreas Rumpf2019-05-025-23/+33
| | | | | | | | * introduce temporary <//> for 'owned' to get this compile with 0.19 * make newTable[string, owned Node]() compile (but it crashes) * make sink/owned parameters consistent * make actiontable test compile again * VM: support sytem.move; makes tests green
* Fix ospaths import error (#11150)genotrance2019-05-012-2/+2
|
* Fix unexpected result of rand on a range, fixes #11015 (#11035)Jasper Jenkins2019-04-301-8/+14
|
* added system.unown to make 'owned' sane to use in practice; later on we ↵Araq2019-04-291-1/+6
| | | | might change the type inference rules to make it more convenient
* streams: Update documentation, refs #10330 (#11059)jiro2019-04-291-81/+832
|
* Initialized collections (#11094)Miran2019-04-296-424/+650
| | | | | | | | | | | | * tables: initialized by default * sets: initialized by default * DRY: extract shared functionality * add a changelog entry * fix errors * don't test include files * make it work for sharedtables * fix discovered bugs * add exhaustive tests
* reimplement_pr_10974 (#11130)cooldome2019-04-271-0/+16
|
* add progmas to params of macros.newProc (#11025)Lolo Iccl2019-04-271-3/+7
| | | Merging
* newruntime: make 'discard new RootObj' workAraq2019-04-261-1/+1
|
* make seq.add more effective for --newruntimeAraq2019-04-252-12/+15
|
* Fix: remove pragma inline from parseBin|Oct|Hex (#11105)Alvydas Vitkauskas2019-04-241-3/+3
|
* Make parseutils.parseBin|Oct|Hex generic (#11067)Alvydas Vitkauskas2019-04-241-69/+114
| | | | | | * make parsutils.parseBin generic and improve runnableExamples * reimplement parseBin/Oct/Hex and improve runnableExamples * update changelog.md file with parseBin/Oct/Hex and fix a typo
* Add missing `deprecated` pragma (#11100) [ci skip]Oscar Nihlgård2019-04-241-1/+1
|
* newruntime: fix for -d:useMallocAndreas Rumpf2019-04-231-1/+2
|
* fixes #1192Araq2019-04-231-0/+7
|
* deprecate programResult, avoid exposing in standalone mode (#11075)Jacek Sieka2019-04-231-6/+4
|
* fixes #11089Araq2019-04-231-1/+7
|
* strformat: minor style changesAraq2019-04-231-4/+4
|
* tables: fix link (#11090) [ci skip]Jjp1372019-04-231-1/+1
|
* Fix header inconsistencies in documentation (#11071)Zed2019-04-2317-98/+95
|
* fixes #11065Araq2019-04-221-7/+20
|
* system.nim: copyMem and friends do not raise any exceptionAraq2019-04-221-4/+6
|
* Documentation import fixes (#11070)Zed2019-04-212-29/+23
| | | | | | * Move asyncdispatch imports below introduction * Move nre imports below documentation
* make -d:nimQuirky work with develAndreas Rumpf2019-04-202-1/+3
|
* hotfix: nimParseBiggestFloat needs to be patched for the newer string ↵Andreas Rumpf2019-04-201-20/+20
| | | | implementations; refs #11062
* Improve tables docs for del/take (#11030)Christopher Dunn2019-04-171-1/+5
| | | | * Continuation of b40a637f * https://forum.nim-lang.org/t/4789
* faster CountTable sort(), optional SortOrder (#11010)Andy Davidoff2019-04-161-27/+30
| | | | | | | | | * use existing sort for CountTable, and add SortOrder options to CountTable, OrderedTable sort(s) * add some tests, runnables, etc. * fix runnable imports
* Add len check for newIfStmt to avoid segfault (#11032)Jasper Jenkins2019-04-151-0/+2
|
* fixes another regression; the behaviour of 'array' formatting was changedAraq2019-04-151-8/+0
|
* fixes #11012Araq2019-04-151-28/+10
|
* added system.disarm (experimental)Araq2019-04-121-0/+7
|
* fixes #11005Araq2019-04-121-3/+3
|
* Compiler plugin for implementing incremental computation in user space (#10819)cooldome2019-04-113-1/+29
| | | | | | | | | | This plugin provides essential building block for implementing incremental computations in your programs. The idea behind incremental computations is that if you do the same calculation multiple times but with slightly different inputs you don't have to recompute everything from scratch. Also you don't want to adopt special algorithms either, you would like to write your code in standard from scratch manner and get incrementality for free when it is possible. The plugin computes the digest of the proc bodies, recursively hashing all called procs as well . Such digest with the digest of the argument values gives a good "name" for the result. Terminology loosely follows paper "Incremental Computation with Names" link below. It works well if you have no side effects in your computations. If you have global state in your computations then you will need problem specific workarounds to represent global state in set of "names" . SideEffect tracking in Nim also useful in this topic. Classical examples: Dashboard with ticking data. New data arrives non stop and you would like to update the dashboard recomputing only changed outputs. Excel spreadsheet where user changes one cell and you would like to recompute all cells that are affected by the change, but do not want to recompute every cell in the spreadsheet.
* fixes #10765 (#10993) [backport]cooldome2019-04-111-4/+21
|
* random: works for slices and enums, fixes #7698 (#10998)Miran2019-04-111-3/+3
|
* Make `secureHash` accept any `openArray[char]`, not only `string`. (#10988)c-blake2019-04-101-1/+1
| | | | | | * Make `secureHash` accept any `openArray[char]`, not only `string`. * Put in a changelog entry as per Araq request.
* rst: parse brackets individually, fixes #10475 (#10997)Miran2019-04-101-6/+17
|
* json: add '\v' support, fixes #10541 (#10987)Miran2019-04-102-0/+4
|
* enable most tnewruntime_strutils testsAraq2019-04-101-1/+1
|
* strutils.nim: fixes the indentation of formatEngAraq2019-04-101-5/+5
|
* newruntime: fixes another bugAraq2019-04-102-3/+2
|
* newruntime: fixes memory leakAraq2019-04-091-3/+4
|
* strs.nim: fixed a silly typoAraq2019-04-091-1/+1
|
* make tests green againAraq2019-04-091-2/+6
|