summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* `$` now works for unsigned intergers with `nim js` (#14122)Timothee Cour2020-04-274-4/+96
| | | | * $(unsigned) now works for js * move NimMajor+friends closer to NimVersion according as per reviewer feedback
* Fix #14066 issue with stringifying incomplete types (#14135)PMunch2020-04-271-13/+27
|
* `$(a: float)` now works consistently in nim js, avoiding printing floats as ↵Timothee Cour2020-04-274-11/+90
| | | | | | | | | 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-272-144/+32
|
* fix #14132 dsymutil should not be called on static libraries (#14133) ↵Timothee Cour2020-04-271-6/+6
| | | | [backport:1.2]
* new implementations for --gc:orc (#14121)Andreas Rumpf2020-04-2713-21/+428
| | | | | | | | | * 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-263-3/+51
| | | add tests for tinclrtl
* added high level sendTo and recvFrom to std/asyncnet (UDP functionality) ↵rockcavera2020-04-263-0/+228
| | | | | | | | | (#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
* fixes #14112, tests for #12892, #12671, #11697 (#14125)hlaaftana2020-04-266-1/+27
|
* small docs fix in typetraits (#14108)hlaaftana2020-04-251-1/+1
|
* Make await a template (#12085)Alexander Ivanov2020-04-255-134/+69
| | | | | * Make await a template * Generate await inside async/multisync
* Faster readStr() (#14099)Christopher Dunn2020-04-252-6/+25
| | | | | | | | | * Faster readStr() * https://github.com/nim-lang/Nim/issues/13857 * Add .since annotation and add to changelog * Private, un-sinced proc for csource bootstrapping
* HCR: properly handling complex const objects in the codegen - fixes #13915 ↵Viktor Kirilov2020-04-254-6/+32
| | | | (#14115)
* Fixes #14110 (#14111)Jae Yang2020-04-251-1/+1
| | | Fixes jsffi usage example in doc
* implement (#14114)cooldome2020-04-252-8/+9
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Fix #14088 and #14089 on NetBSD (#14104)Euan2020-04-242-1/+2
| | | | | * Set path to libSDL for NetBSD. * Disable SFML test on NetBSD
* add CI badges for CI github actions ssl+docsTimothee Cour2020-04-241-1/+8
|
* fix nim CI; fix local testament (#14102)Timothee Cour2020-04-243-7/+12
|
* Add critbits.commonPrefixLen (#14072)Phil Krylov2020-04-242-0/+17
| | | | | | | * 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-249-13/+13
|
* testament: don't try to test nimgrep if it's not there [backport:1.2] (#14085)alaviss2020-04-241-3/+4
| | | One more compiler source-specific tackled
* Make JS not mangle to snake_case (#14086)hlaaftana2020-04-241-5/+1
|
* Fix #14091 and #14093 - test failures on NetBSD (#14096)Euan2020-04-243-1/+4
|
* [ci skip] changelog conflicts are a thing of the past (#14098)Timothee Cour2020-04-241-0/+6
|
* add CI badges for azure-pipelines for devel, 1.0, 1.2 branches (#14101)Timothee Cour2020-04-241-1/+3
|
* Add tests for #8481, #6490 and #4061 (#14083)Clyybber2020-04-233-0/+45
|
* CT sizeof(+friends) for {.importc, completeStruct.} types, enable ABI static ↵Timothee Cour2020-04-2314-39/+221
| | | | | | | | | | | checks (#13926) * -d:checkabi obsolete (ABI check now enforced); add `addTypeHeader` helper * cleanups * import sizeof at CT for {.completeType.} * address comments; revert default enabling of -d:checkAbi for now * mimportc_size_check.nim => msizeof5.nim; merge mabi_check.nim into msizeof5.nim; refactor * all pragmas in errmsgs should be written: '.importc' (un-ambiguous and less verbose than {.importc.})
* new cmd: `nim r main [args...]` to compile & run, saving binary under ↵Timothee Cour2020-04-235-16/+39
| | | | | | $nimcache/main (#13382) * implement `nim r main` to compile and run, saving binary to $nimcache * remove outFileAbs for now
* testament: don't rely on Nim source structure [backport:1.2] (#14077)alaviss2020-04-231-1/+1
| | | | It's also just faster to get the current file name instead of scanning the PATH.
* Ref #14075 - enable two tests which seem to now be passing locally on ↵Euan2020-04-222-2/+0
| | | | FreeBSD. (#14076)
* Add LTO support for most compilers and do some VCC fixes (#14013)Keithcat12020-04-222-6/+37
| | | | | | | | | * Added LTO in nim.cfg, added /link in extccomp.nim and other fixes * Fix line endings * Fix line endings, for real this time. Almost certainly. Like, 95% certain. * Removed /MD from extccom.nim VCC comiler
* Set O_NONBLOCK flag atomically (#13934)Hiroki Noda2020-04-221-8/+4
| | | | These flags were added in Linux 2.6.27, I'm not sure Nim's minimal support Linux version.
* fix #14064 xmltree should allow create text node with raw text(non-es… ↵Bung2020-04-223-3/+12
| | | | | | | | | | | | | (#14070) * fix #14064 xmltree should allow create text node with raw text(non-escaped) eg. html style element's text * change xnRawText to VerbatimText,newRawText to newVerbatimText ,add since anotation * change changelog_1_2_0.md latest date * move change log Co-authored-by: bung87 <crc32@qq.com>
* Make debugSend/debugRecv procs public. Fixes #12189 (#12190)Chris Heller2020-04-221-3/+37
| | | | | | | * Make debugSend/debugRecv procs public. Fixes #12189 * Make checkReply proc public. Part of #12189 * Add doc comments for debugSend,debugRecv and checkReply
* Add the ability to pass title case headers to an HTTP server (#13968)wonderix2020-04-221-12/+38
| | | | | | | | | * Add the ability to pass title case headers to an HTTP server * Remove unnecessary type spec of titleCase * Replace convert member proc by isTitleCase Co-authored-by: wonderix <wonderix@googlemail.com>
* cycle collector (#14071)Andreas Rumpf2020-04-226-110/+262
| | | | * figured out the wrong cycle trace proc problem * cycle collector/break refactorings and minor improvements
* change some Exceptions to CatchableError or Defect, fixes #10288 (#14069)hlaaftana2020-04-224-5/+5
|
* use newer nodejs on Azure Pipelines (#14065)Miran2020-04-221-2/+2
|
* base `parseEnum` on a case statement, fixes #14030 (#14046)Vindaar2020-04-223-11/+171
| | | | | | | | | | | | | | | | | | | | * base `parseEnum` on a case statement, fixes #14030 * apply simplifactions / clean up, remove `norm` node, use strVal * export `normalize` in json.nim * cmp using nimIdentNormalize, error at CT if ambiguous enum found `nimIdentNormalize` provided by @cooldome. We track all names of the branches we have created so far and error if a duplicate is found. Dummy change to make github react... * fix docstring of `nimIdentNormalize` * make `typ` arg `typedesc`, add lineinfo, call norm. only once
* Treat zig like clang/gcc wrt integer arithmetic. (#13957)Hessam Mehr2020-04-221-1/+1
|
* tools/finish: don't quote path with space (#14058) [backport]alaviss2020-04-221-3/+2
| | | | | | | | | | Path with spaces should be added as is, quoting them makes utilities treat the quotes as part of the path. This makes `nim` unable to be used from the command line even if it appears to be added to user's Path environment variable. Even more confusing, Windows 10's PATH editor shows the path without any quotes, you only see them when you use "Edit text". Took me a good 15 minutes to figure out why couldn't I run `nim` despite it being in Path.
* fix globalOptions (#14059)Timothee Cour2020-04-220-0/+0
|
* Fix OS detection in a docker container (#13172)Arnaud Moura2020-04-222-32/+67
| | | | | | | * Support detection in docker container. * Get only ID information in os-release. * Add test to distros module. * Fix Linux OS detection in Windows. * Fix OS detection for FreeBSD and OpenBSD.
* fix typo (#14063)Andy Davidoff2020-04-211-1/+1
|
* fix #13222: make relativePath more robust and flexible (#13451)Timothee Cour2020-04-214-68/+113
| | | | | | | | | * * relativePath(foo) now works * relativePath(rel, abs) and relativePath(abs, rel) now work (fixes #13222) * relativePath, absolutePath, getCurrentDir now available in more targets (eg: vm, nodejs etc) * fix bug: isAbsolutePath now works with -d:js; add tests * workaround https://github.com/nim-lang/Nim/issues/13469 * remove `relativePath(path)` overload for now * add back changelog after rebase
* cleanup PR #14048Araq2020-04-212-5/+5
|
* fixes #14052 [backport:1.2] (#14055)Andreas Rumpf2020-04-211-1/+2
|
* Add deques.peekFirst/Last(var Deque[T]) -> var T (#13542)hlaaftana2020-04-212-0/+42
| | | | | | | * Add deques.peekFirst/Last(var Deque[T]) -> var T * Add changelog entry for deques.peekFirst/Last var T overloads * Add since annotation to peekFirst/peekLast Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add package install command for FreeBSD and OpenBSD. (#14051)Arnaud Moura2020-04-211-1/+3
|