summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* --hint:processing (+friends) is now supported and means ↵Timothee Cour2020-05-081-1/+1
| | | | `--hint:processing:on`, like all other bool flags (#14271)
* Merge pull request #14265 from alaviss/quickfixAndreas Rumpf2020-05-081-1/+1
|\ | | | | nativesockets: add missing inheritable pass-through
| * nativesockets: add missing inheritable pass-throughLeorize2020-05-071-1/+1
| |
* | Fix #14270 and add testcases (#14276)Clyybber2020-05-081-2/+6
|/
* net: remove more erroneous set constructions (#14252) [backport]alaviss2020-05-071-3/+8
| | | Refs #13764
* Fix runnable examples for bitops (#14247)awr12020-05-061-3/+3
|
* Added bitslice operations for bitops (#14016)awr12020-05-061-21/+206
| | | | | | | | | | | | | | | | | | | | * added bit operations based on bit slices, clarified documentation, made non-mutating versions of mask ops * Added since annotations, some runnable examples * Added mask()/masked() functions, changed internal workings of mask ops to use new bit* funcs * Changelog updated for new bitops improvements * Reorganization, added runnable examples * Documentation adjustments * Add incltrl for since annotation * Fix masked() impl * Fix mask() return type * Don't call toUnsigned on already unsigned types * Remove improper `var T` for flipMasked() * Fix return types for flipMasked() * Slight syntactic cleanup for *masked ops * Added tests for bitslice operations, new mask() operation, non-mutating mask ops * Fix setmasked() var T issue * More comprehensive tests * Fix runnable example for bitsliced() * Fix runnable example for mask()
* Make the fields of `times.DateTime` private (#14197)Oscar Nihlgård2020-05-061-76/+180
| | | | | * Make the fields of `times.DateTime` private * PR fixes
* fix js stacktraces, unify all file,line,col formatting into a single ↵Timothee Cour2020-05-054-11/+25
| | | | | function (#14230) * fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
* Clarify JS cstring len (#14184)hlaaftana2020-05-052-8/+9
|
* fix #14217 (#14218)cooldome2020-05-051-1/+1
| | | | | * fix #14217 Co-authored-by: cooldome <ariabushenko@bk.ru>
* fixes #14209 [backport:1.2] (#14213)Andreas Rumpf2020-05-051-1/+1
| | | | * fixes #14209 [backport:1.2] * improve stability
* Linux updates (#14170)wltsmrz2020-05-043-9/+17
| | | | | | | | | | | | | | * Add posix_memalign() * Add linux-specific open() flags O_TMPFILE: since Linux 3.11 O_PATH: since Linux 2.6.39 O_NOATIME: since Linux 2.6.8 O_DIRECT: since Linux 2.4.10 * Fix Stat type * Fix POSIX AF_INET* const generation
* Add procedures to read RSA keys from BIO format (#14223)PMunch2020-05-041-0/+4
|
* Fixes net.recvFrom to work correctly with IPv6 (#14131)rockcavera2020-05-041-10/+22
| | | | | | | * added high level sendTo and recvFrom to std/asyncnet; tests were also added. * add .since annotation, a changelog entry and fixed to standard library style guide. * fixes net.recvFrom to work correctly with IPv6 * raise if domain is not AF_INET or AF_INET6 * renamed template to adaptRecvFromToDomain()
* sequtils refactoring: prefer typeof over type (#14212)Andreas Rumpf2020-05-041-15/+15
|
* => supports pragmas & names (+ changed behavior) (#14200)hlaaftana2020-05-034-39/+65
| | | | | | | | | | * => supports pragmas & names (+ changed behavior) (x, y: int) is now parsed as (x: int, y: int) instead of (x: auto, y: int) inside => and ->. * fix pragma check * fixes, use since & LHS of -> supports pragmas
* fix #14203 (#14204)slangmgh2020-05-032-17/+18
|
* Fix #14151 (#14205) [backport]slangmgh2020-05-031-8/+2
|
* Fix #14201 (#14202)slangmgh2020-05-031-1/+1
|
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-0226-53/+54
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* Document that proc named fooTask is created for every foo task [backport] ↵Kaushal Modi2020-05-021-0/+15
| | | | | (#14187) Ref: https://irclogs.nim-lang.org/01-05-2020.html#15:18:03
* change 'iff' to 'if' to stop "corrections" once and for all (#14182)Miran2020-05-0112-37/+37
|
* discardable async procs are now an error (#14176)hlaaftana2020-05-011-8/+14
| | | | * add discard warning in manual
* fix sendTo and recvFrom in asyncnet (#14154)rockcavera2020-04-301-76/+40
| | | | | | | | | | | | | * added high level sendTo and recvFrom to std/asyncnet; tests were also added. * add .since annotation, a changelog entry and fixed to standard library style guide. * Improved asserts msgs and added notes for use with UDP sockets * pointers removed in parameters and fixes * added .since annotation * minor fixes
* fixes #13698 [backport:1.2] (#14175)Andreas Rumpf2020-04-301-2/+2
|
* fixes the regression #12860 caused; hotfixAraq2020-04-302-1/+4
|
* JS unittest stacktrace fix, cleanup js repr and inclrtl includes (#14168)hlaaftana2020-04-304-46/+21
|
* fixes #14054 [backport:1.2] (#14061)Andreas Rumpf2020-04-302-7/+4
| | | | | | | | | * fixes #14054 * make tests green again * more tests are green * maybe now
* fixes #14079 [backport:1.2] (#14163)Andreas Rumpf2020-04-291-1/+1
|
* many bugfixes for js (#14158)hlaaftana2020-04-292-23/+16
| | | | | | | | | | | | | * many bugfixes for js fixes #12672, fixes #14153, closes #14123, closes #11331, fixes #11783, fixes #13966, fixes #14087, fixes #14117, closes #12256. mostly fixes the fact that it was allowed to assign to newly created temp variables. additionally attempts to get rid of null initialized seqs/strings (though they might pop up here and there); this simplifies a lot of things and makes code size smaller. even if null seqs/strings pop up here and there it's still better than all those bugs existing. * formatting fixes * CI fixes * more CI fixes
* parseEnum_regression (#14150)cooldome2020-04-281-1/+1
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-2833-155/+178
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* StringStream & more stdlib modules support for JS/NimScript (#14095)hlaaftana2020-04-2810-291/+429
| | | | | * StringStream & more stdlib modules support for JS/NimScript * change back pegs test in line with #14134
* bug fix (#14149) [backport:1.2]cooldome2020-04-281-1/+4
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Add RSA key reading and encrypt/decrypt to openssl (#14137)PMunch2020-04-271-0/+23
| | | | This adds the procedures to read RSA keys and encrypt/decrypt messages with both public and private keys.
* Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860)Neelesh Chandola2020-04-272-9/+17
| | | | | | | * Remove `paramStr` and `paramCount` from implicitly imported nimscript.nim * Update changelog.md * Update stable nimble commit hash Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* `$` now works for unsigned intergers with `nim js` (#14122)Timothee Cour2020-04-272-4/+22
| | | | * $(unsigned) now works for js * move NimMajor+friends closer to NimVersion according as per reviewer feedback
* `$(a: float)` now works consistently in nim js, avoiding printing floats as ↵Timothee Cour2020-04-271-0/+15
| | | | | | | | | ints (#14134) * fix https://github.com/timotheecour/Nim/issues/133; $(a: float) works in nim js like in other backends * fix tests * fix test for windows that prints 1.1e17 differently than other OS
* Remove some deprecated procs from std/times (#14129)Oscar Nihlgård2020-04-271-143/+31
|
* new implementations for --gc:orc (#14121)Andreas Rumpf2020-04-276-19/+418
| | | | | | | | | * cycle collector: new implementation * cycle collector: make self-adaptive based on its previous effectiveness * cycle collector: added Lins's jump stack to improve traversal from 3*N to 2*N * cycle collector: make tests green * API extensions and bugfixes * code cleanup and use --gc:orc for tasyncawait
* add FileReader Web API to js dom (#14105)cooldome2020-04-271-9/+59
| | | | | * add FileReader to js dom * minor improvement Co-authored-by: cooldome <ariabushenko@bk.ru>
* since now takes an optional patch, eg: `since: (1, 3, 1)` (#14124)Timothee Cour2020-04-262-3/+19
| | | add tests for tinclrtl
* added high level sendTo and recvFrom to std/asyncnet (UDP functionality) ↵rockcavera2020-04-261-0/+127
| | | | | | | | | (#14109) * added high level sendTo and recvFrom to std/asyncnet; tests were also added. * add .since annotation, a changelog entry and fixed to standard library style guide. * Improved asserts msgs and added notes for use with UDP sockets
* small docs fix in typetraits (#14108)hlaaftana2020-04-251-1/+1
|
* Make await a template (#12085)Alexander Ivanov2020-04-251-132/+30
| | | | | * Make await a template * Generate await inside async/multisync
* Faster readStr() (#14099)Christopher Dunn2020-04-251-6/+22
| | | | | | | | | * Faster readStr() * https://github.com/nim-lang/Nim/issues/13857 * Add .since annotation and add to changelog * Private, un-sinced proc for csource bootstrapping
* Fixes #14110 (#14111)Jae Yang2020-04-251-1/+1
| | | Fixes jsffi usage example in doc
* Add critbits.commonPrefixLen (#14072)Phil Krylov2020-04-241-0/+16
| | | | | | | * Add critbits.commonPrefixLen * add inline and since annotations, as well as a changelog entry Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* changed type() to typeof() in docs and error messages (#14084)hlaaftana2020-04-243-5/+5
|