konsumlamm
9997b42c35
Use importjs ( #17422 )
2021-03-19 14:22:48 -07:00
flywind
e332c20ba7
follow up #17276 ( #17355 )
...
* improve test coverage for isolation
* a bit better
* rename channels to channels_builtin
* follow up #17276
* fix
* Update lib/std/private/jsutils.nim
2021-03-19 16:54:10 +01:00
flywind
60fc7e986b
fix a typo ( #17417 )
...
* Revert "make system random work in VM"
* fix #17380
* attempt to fix bug
* fix
* better
* fix
* a bit
* fix the leaks
* revert
* fix
* better
* follow up #17391
* fix
* Update tchannels.nim
* Update tests/stdlib/tchannels.nim
* Update tchannels.nim
* fix a typo
2021-03-19 21:44:13 +08:00
flywind
e9b5543bd5
[std/channels]fix recv leaks(Part One) ( #17394 )
2021-03-17 10:08:54 +01:00
Timothee Cour
895a40d1ac
fix #17383 : json.%,to and jsonutils.formJson,toJson now works with uint|uint64 ( #17389 ) [backport:1.2]
...
* fix #17383 : json.%,to and jsonutils.formJson,toJson now works with uint|uint64
* fixup
* fix for js
2021-03-16 21:44:54 +01:00
flywind
d5eb658034
fix #17380 ( #17391 )
2021-03-16 07:14:56 +01:00
flywind
51a04a3674
make std/sysrand better ( #17360 )
2021-03-15 14:07:27 +01:00
flywind
686bf3bfc6
clarify the behavior of newChan
...
follow up the advice of `timothee`
2021-03-12 22:18:10 +08:00
flywind
a0b8a3d920
New channels implementation for ORC ( #17305 )
...
* Update lib/std/channels.nim
* Rename tchannel_pthread.nim to tchannels_pthread.nim
* Rename tchannel_simple.nim to tchannels_simple.nim
Co-authored-by: Mamy Ratsimbazafy <mamy_github@numforge.co >
2021-03-12 13:33:47 +01:00
flywind
5dff66b35a
fix wrong examples ( #17350 )
...
* fix wrong examples
* Update lib/std/compilesettings.nim
* Update lib/std/compilesettings.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-12 07:33:13 +01:00
flywind
d8b5879c7d
clarify the docs of isolation ( #17335 )
...
* improve test coverage for isolation
* a bit better
* clarify the docs of isolation
2021-03-11 14:04:08 +01:00
konsumlamm
9819fb21d8
Use .. warning:: ( #17320 )
2021-03-10 10:39:23 -08:00
Timothee Cour
eb07a5a75b
add typetraits.OrdinalEnum, enumutils.symbolName ( #17281 )
2021-03-10 08:08:24 -08:00
flywind
cc37fee0ab
fix #17275 ( #17276 )
2021-03-09 12:22:26 +01:00
Timothee Cour
93cb5d6896
add setutils.[]= ( #17272 )
...
* add setutils.[]=
* address comments
* proc => func (for other symbols too)
2021-03-08 10:39:39 +01:00
Juan Carlos
b8c04bdb92
Add module jsfetch ( #12531 )
...
* Add module jsfetch for fetch support for JavaScript target https://developer.mozilla.org/docs/Web/API/Fetch_API
* Update lib/std/jsheaders.nim
* Update lib/std/jsformdata.nim
* Update lib/std/jsfetch.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-03-06 20:57:16 -08:00
flywind
e045c28da5
add warnings to std/isolation ( #17270 )
...
* remove unnecessary when statement
* remove outdated codes
* reuse jsffi
* move js json coverage
* add warnings to std/isolation
2021-03-05 17:14:26 +01:00
flywind
19be5eb1eb
Add unsafeIsolate and extract to std/isolation [backport:1.4] ( #17263 )
2021-03-05 16:21:33 +01:00
flywind
171b03c386
fix #17264 [backport:1.4] ( #17266 )
...
* fix #17264
* fix vm
* fix js and add tests
2021-03-05 14:39:46 +01:00
flywind
cda443ee68
follow up #17165 ( #17262 )
2021-03-04 22:41:20 -08:00
Juan Carlos
2e3d324cc6
Improve Bigint ( #17252 )
...
* https://github.com/timotheecour/Nim/issues/566#issue-799927295
* Update lib/std/jsbigints.nim
Co-authored-by: flywind <xzsflywind@gmail.com >
* Update lib/std/jsbigints.nim
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-03-04 14:02:36 +01:00
flywind
a04c9d1f62
rename prepareStrMutation to prepareMutation ( #17235 )
...
* remove unnecessary when statement
* remove outdated codes
* rename prepareStrMutation to prepareMutation
2021-03-03 08:08:52 +08:00
Andreas Rumpf
bb0c19f42c
fixes #17173 ( #17213 )
...
* fixes #17173
* add testcase (#17214 )
* Apply suggestions from code review
* fix for newruntime
* Apply suggestions from code review
* Update lib/system.nim
* Update lib/system.nim
* Update lib/system.nim
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
2021-03-01 20:58:12 +01:00
Timothee Cour
0cb02fbbee
add overload add(a: var string, b: openArray[char]) ( #15951 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-03-01 07:51:12 -08:00
Danil Yarantsev
56461c280f
Change stdlib imports to use std prefix in most examples ( #17202 )
2021-02-28 13:17:19 -08:00
flywind
60ec3e2417
add warnings to std/sysrand ( #17191 )
...
* remove unnecessary when statement
* remove outdated codes
* add warnings to std/sysrand
* Update lib/std/sysrand.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-02-26 20:06:20 +01:00
flywind
dcd3f26876
clean up wrapnils
2021-02-25 17:52:58 +08:00
Timothee Cour
bea037f856
refs #17114 : workaround for arm64 which should segfault but does not ( #17178 )
...
* refs #17114 : workaround for arm64 which should segfault but does not
* fixup
* Update lib/std/wrapnils.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-02-25 08:40:43 +01:00
Timothee Cour
8942586fa6
wrapnils: add ??. which returns an Option ( #16931 )
...
* wrapnils: add option-like API with ??., isSome, get
* fix test after rebase
* cleanups
* fix changelog
* address comments regarding get vs unsafeGet
2021-02-24 14:02:32 +01:00
flywind
3f38f8fbb7
add strbasics.strip ( #16280 )
2021-02-24 10:22:47 +01:00
Timothee Cour
c274e67198
add enumutils.items for sparse enums, typetraits.SomeSparseEnum ( #17080 )
...
* add enumutils.items for enum with holes
* changelog
* ref in lib.rst
* use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept
* address comment: rename back to enum with holes
2021-02-23 20:25:35 +01:00
Timothee Cour
ce7caec4b3
add io.readChars overload (simpler, less error prone) ( #16044 )
...
* add simpler to use readChars overload
* use new readChars overload
* Update lib/wrappers/openssl.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-02-22 20:13:08 +01:00
flywind
f07a072691
[JS + docs] improve std/monotimes module ( #17103 )
2021-02-22 11:09:25 +01:00
flywind
4556901572
use single backtick ( #17141 )
2021-02-21 19:53:28 -08:00
Timothee Cour
6b3bdd798d
enable bsd for tsetutils; improve setutils API ( #17098 )
2021-02-20 18:02:57 +01:00
Jason Beetham
35ded02074
Add setutils.complement, setutils.fullSet ( #17066 )
2021-02-18 17:33:28 -08:00
Timothee Cour
f455e03028
fix #17078 csources generation ( #17079 )
...
* fix #17078 csources generation
* fixup
2021-02-18 07:00:51 +01:00
Timothee Cour
31bb67a309
add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes ( #16764 )
2021-02-17 19:30:09 +01:00
flywind
4f118721be
make system random work in VM ( #17059 )
...
* make system random work in VM
2021-02-17 11:52:46 +01:00
Timothee Cour
b187caeb87
document since ( #17048 )
...
* document `since`
* address comment
2021-02-16 20:20:01 +01:00
flywind
240879bf3d
array literals uses typed arrays; fix a jsgen bug ( #16850 )
...
* array litterals uses typed arrays
* Update compiler/jsgen.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-02-15 11:28:11 +01:00
konsumlamm
4886f8a02d
Small update for packedsets ( #17037 )
...
Rename PTrunk to Trunk
Use ord instead of cast[int]
2021-02-15 09:57:32 +01:00
Timothee Cour
4326f743d0
compilesettings: add libpath ( #16997 )
...
* compilesettings: add libpath
* add test
* changelog
* fixup
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-02-12 23:50:41 +01:00
flywind
18c24eb4d0
add system random to stdlib: std/sysrand ( #16459 )
2021-02-11 16:00:01 -08:00
Timothee Cour
f3e4c4d6e1
std/wrapnils does not use experimental:dotOperators anymore ( #16996 )
2021-02-10 18:50:50 +01:00
konsumlamm
cee58ccf7f
Improve documentation for std/sha1 ( #16970 )
2021-02-09 15:14:03 +01:00
flywind
d447c0fe3f
use typeof instead type ( #16962 )
2021-02-08 09:46:07 +01:00
Timothee Cour
ae9ba260f6
clarify docs for wrapnils ( #16929 )
...
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-02-04 15:39:19 -08:00
n5m
f87b9866af
link compile-time options together in docs ( #16879 )
...
* link similar compiler option proc together
* fixup links
* fix formatting and links
* example formatting
* drop declared
* link to compilesettings
* only link define pragmas once
* drop another declared
* backlink to compileOptions from compilesettings
* remove newline
2021-02-02 09:44:21 +01:00
flywind
a2855b66ae
JS: make hash float support IE/Safari ( #16872 )
2021-02-01 13:19:25 +01:00