konsumlamm
2c2baa9fad
Link the <fenv.h> header ( #16597 )
2021-01-05 20:51:51 +01:00
flywind
c04f305bf7
make cstrutils work in VM ( #16590 )
...
* make cstrutils work in VM
* more
2021-01-05 17:52:26 +01:00
konsumlamm
0c4bd65e8d
Improve documentation for complex ( #16588 )
...
* Improve documentation for complex
Add missing doc comments
* Add runnableExample
Add links for principal values
Optimize `-`
Change var to let
* Use std prefix for imports
2021-01-05 17:50:15 +01:00
flywind
df9e74b510
fix #9125 ( #16582 )
...
* fix #9125
* Update tests/stdlib/tmath.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* back
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-01-05 17:47:10 +01:00
Timothee Cour
3b2f94810e
remove duplication in asynchttpserver examples ( #16586 )
...
* remove duplication in asynchttpserver examples
* fixup
* add comment showing how to run snippet locally
2021-01-05 17:21:06 +01:00
Miran
d2f4f25b56
fix #16506 by changing the example ( #16580 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-01-04 12:46:36 -08:00
flywind
fe20492f05
clean up the docs of some modules under lib/js ( #16579 )
2021-01-04 19:54:33 +01:00
Andreas Rumpf
6317e4004d
make --gc:arc --exceptions:quirky work again [backport:1.4] ( #16583 )
...
* make --gc:arc --exceptions:quirky work again [backport:1.4]
* fixes #16404 [backport:1.4]
2021-01-04 19:44:50 +01:00
flywind
9531afac48
fix #16499 ( #16514 )
2021-01-04 18:27:58 +01:00
Neelesh Chandola
0d67ad0bf3
Add backwards index overload for [] for JsonNode ( #16501 )
...
* Add backwards index overload for `[]` for JsonNode
* Add since
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
* Add docs, example, and changelog
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
2021-01-04 17:46:39 +01:00
Juan Carlos
349574d574
Add posix_utils.osReleaseFile ( #16452 )
...
* Add posix_utils.osReleaseFile
* Update lib/posix/posix_utils.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
* Update lib/posix/posix_utils.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
* Add a basic sanity test
* Add a basic sanity test
* Add a basic sanity test
* Add a basic sanity test
* https://github.com/nim-lang/Nim/pull/16452#issuecomment-753364096
* Update lib/posix/posix_utils.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Update lib/posix/posix_utils.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Update changelog.md
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-01-04 15:21:36 +01:00
konsumlamm
435f829348
Improve sequtils documentation ( #16559 )
...
* Improve sequtils documentation
Uncomment assertions in tests
* Use present tense
2021-01-04 11:04:30 +01:00
flywind
c80261bc00
fix #12311 ( #16578 )
2021-01-04 10:24:52 +01:00
konsumlamm
763fef59fa
Improve documentation for critbits ( #16568 )
2021-01-03 22:25:05 -08:00
Roman Inflianskas
c82c67dc69
fix #12958 ( #16565 )
...
Sync between Linux kernel code (header:
https://github.com/torvalds/linux/blob/master/tools/include/uapi/linux/sched.h )
and the linux module in lib.
`CLONE_STOPPED` was marked as deprecated, as it was removed in the
Linux kernel upstream.
Fixes #12958 .
2021-01-03 14:00:22 +01:00
flywind
76f92265d9
fix #8412 ( #16563 )
...
* Revert "Make config processing order test more robust"
This reverts commit cf714c129f .
* enable tmath tests
* fix #8412
* Revert "enable tmath tests"
This reverts commit 293b63f57e .
* add tests
* fix
2021-01-03 11:05:59 +01:00
hlaaftana
2aed418698
Fix #16554 ( #16564 )
2021-01-03 08:02:12 +01:00
konsumlamm
2eccef7ad6
Algorithm improvements ( #16529 )
...
* Improve documentation for algorithm
Remove unused import in algorithm tests
Improve formatting
* Reapply fix for reverse on empty openArray
* Use 3rd person singular
Add more explanations.
2021-01-02 20:28:59 +01:00
flywind
e869767aa7
fix #16061 ( #16551 )
2021-01-02 17:13:01 +01:00
flywind
d8b1ffc857
fix #16542 ( #16549 )
...
* fix #16542
2021-01-02 14:32:37 +01:00
Juan Carlos
1d2e2b5a5b
Add mimetypes.mimesLongest ( #16480 )
...
* Allow single alloc mimetypes ops
* Allow single alloc mimetypes ops
* Update lib/pure/mimetypes.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
* https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190
* https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190
* https://github.com/nim-lang/Nim/pull/16480#issuecomment-753349661
* update changelog
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
2021-01-02 08:10:38 +01:00
Andreas Rumpf
73a8b950cb
big steps torwards an efficient, simple IC implementation ( #16543 )
...
* reworked ID handling
* the packed AST now has its own ID mechanism
* basic serialization code works
* extract rodfiles to its own module
* rodfiles: store and compare configs
* rodfiles: store dependencies
* store config at the end
* precise dependency tracking
* dependency tracking for rodfiles
* completed loading of PSym, PType, etc
* removed dead code
* bugfix: do not realloc seqs when taking addr into an element
* make IC opt-in for now
* makes tcompilerapi green again
* final cleanups
Co-authored-by: Andy Davidoff <github@andy.disruptek.com >
2021-01-02 07:30:39 +01:00
Juan Carlos
505d04389a
Documentation only Testament unittest ( #16532 )
...
* Link Testament from unittest doc
* Update lib/pure/unittest.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
2021-01-01 19:44:06 +01:00
n5m
b254d91cd0
reuse const ( #16422 )
2021-01-01 19:41:49 +01:00
flywind
d069c08d2b
follow up #16399 clean up docs ( #16539 )
...
* follow up #16399 clean up docs
* more
2021-01-01 19:39:05 +01:00
n5m
5953fbd834
link to POSIX sendSignal from osproc.kill docs ( #16475 )
...
and from osproc.terminate docs
2021-01-01 19:01:45 +01:00
flywind
9d4a1f9554
fix #16494 ( #16513 )
...
* fix #16494
* fix
* fix
* fix
* fix
* fix
* fix performance
* add comments
* improve performance
* Update lib/system.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update lib/system.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update tests/stdlib/tmath_misc.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update tests/stdlib/tmath_misc.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-01-01 10:59:19 +01:00
flywind
5fb56a3b2c
refactor cmpIgnoreStyle and cmpIgnoreCase ( #16399 )
...
* init
* support strutils
* more
* better
* Call len once per string/cstring
* Change var to let
* Compare ternary on first char
* More appropriate param name
* fix
* better
* one test
* impl
* more efficient
* minor
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-12-31 11:54:40 +01:00
Andrey Makarov
5984f7a7dd
RST: improve line blocks ( #16518 )
2020-12-31 11:20:04 +01:00
rockcavera
876fa3e62e
adding missing commas in std/bitops ( #16520 )
...
adding missing commas between the importc and header pragmas of some procs.
2020-12-30 16:41:25 -08:00
flywind
b42e7c0ef9
make the docs of arithmetics better ( #16510 )
...
* fix
* Update lib/system/arithmetics.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Apply suggestions from code review
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Apply suggestions from code review
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2020-12-30 17:30:43 +01:00
flywind
805917768d
use runnableExamples in options ( #16503 )
2020-12-30 16:26:49 +01:00
Juan Carlos
b8658a3e24
Add assertions for jsconsole ( #16460 )
2020-12-30 15:10:50 +01:00
flywind
515cd45420
Add math.copySign ( #16406 )
...
* add math.copySign
* fix + tests
2020-12-30 15:09:30 +01:00
flywind
2f4d00fb98
fix #16502 ( #16512 )
2020-12-30 14:51:17 +01:00
flywind
95f599ca2d
move asciitables to std/private/ ( #16498 )
...
* move asciitables
* minor
2020-12-29 16:20:47 +01:00
flywind
89a2390f8b
fix printing negative zero in JS backend ( #16505 )
2020-12-29 15:50:22 +01:00
Antonis Geralis
d5a3c2c2da
Added cmpMem export ( #16484 )
...
* added cmpMem export
* updates
* fix test
* Tiny changelog change
* Add a dot.
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-12-29 13:27:08 +01:00
Andrey Makarov
e70ac0f34c
RST: fix directive with fields ( #16490 ) ( #16493 )
...
* RST: fix directive with fields (#16490 )
* Update tests/stdlib/trstgen.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-12-29 03:32:11 +01:00
flywind
e718a4a058
follow #15860 clean cgi module ( #16487 )
...
* follow #15860 clean cgi module
* follow #15860 clean cgi module
2020-12-27 19:46:21 +01:00
Juan Carlos
0c8ce2dccf
Save some alloc on base64 using encodeSize ( #16465 )
2020-12-27 12:02:10 +01:00
flywind
689504081f
follow #15357 and move decodeQuery ( #15860 )
...
* follow #15357 and move decodeQuery
* solve problem one
* minor
* deprecate decodeData
* add changelog and since
* add testcase for decodeQuery
2020-12-27 11:59:32 +01:00
Andrey Makarov
2bdc479622
RST: implement admonitions ( #16438 )
2020-12-27 11:16:12 +01:00
flywind
3f9a2ebea5
fix nim js cmp fails at CT ( #16473 )
2020-12-27 10:13:57 +01:00
Jonah Snider
fa1a04188f
Avoid creating a holey array in makeNimstrLit for JS target ( #16461 )
...
* Avoid creating a holey array in makeNimstrLit
* Use array index instead of push
2020-12-27 09:33:51 +01:00
flywind
1d615dfda7
fix #16474 unittest.check type1 is type2 gives CT error ( #16476 )
...
* fix #16474
* more tests
2020-12-27 09:16:53 +01:00
Juan Carlos
a29bbeee41
Add missing HTTP codes ( #16454 )
2020-12-23 12:26:37 -08:00
flywind
b1c3dab208
add euclDiv and euclMod to math ( #16414 )
...
* add `euclDiv` and `euclMod` to `math`
* use abs
* Update lib/pure/math.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-12-23 12:04:38 +01:00
flywind
417c2509c4
strip minor improvement ( #16444 )
...
* strip minor improvement
* add more tests
* Update tests/stdlib/tstrutils.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2020-12-23 11:57:48 +01:00
shadowninja55
6e2c2d11db
add sequtils to prelude ( #16431 )
...
* add sequtils to prelude
i would argue that sequtils is used just as often as the other imports in prelude, and it'd be nice for it to be included.
* updated doc comment to add sequtils
* added sequtils import to changelog
2020-12-23 10:23:45 +08:00