Clyybber
cccf219ceb
Allow strings for -- in config.nims ( #16934 )
2021-02-04 13:59:55 +01:00
flywind
777888fdea
add widestrs.newWideCString overload ( #16860 )
2021-02-01 20:16:50 +01:00
flywind
4e1e231e29
fix floats slice ( #16853 )
...
* see whether it breaks
* fix
* fix
* minor
* fix
* add enum
* use Ordinal types
* fix tests
* fix
* another style
* fix remainning cases
2021-01-29 12:26:36 +01:00
flywind
5f5a8aa5c6
remove unused warning ( #16809 )
2021-01-24 17:14:21 -08:00
Timothee Cour
18b983d7e3
addQuitProc => addExitProc ( #16765 )
2021-01-22 19:51:11 +01:00
Juan Carlos
78a99587a4
Deprecate TaintedString ( #15423 )
...
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-01-15 18:56:38 -08:00
Timothee Cour
52cf728001
followup for #16717 : minimized example + improved comment ( #16721 )
2021-01-15 01:09:58 +01:00
flywind
ef9027c290
fix #16706 ( #16717 ) [backport:1.4]
2021-01-14 16:52:00 +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
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
2f4d00fb98
fix #16502 ( #16512 )
2020-12-30 14:51:17 +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
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
ee7
297c8e403d
styleCheck: Fix some inconsistent identifiers ( #16177 )
2020-12-21 09:41:56 -08:00
Matt Haggard
23d23ecb08
Make 'echo' raise IOErrors when appropriate ( #16367 )
...
* Make 'echo' raise IOError when fwrite/fflush fail
* Fix fwrite return value comparison
* Add test for echo raising error and don't fail to release locks in echo
* Fix exitcode expectation
* Make 'echo' raise IOError on Windows if it fails
* Add nimLegacyEchoNoRaise for prior no-IOError echo behavior
* Use checkErrMaybe template
2020-12-18 10:06:13 +01:00
Andreas Rumpf
868c31e88a
fixes #16365 [backport] ( #16381 )
2020-12-17 23:21:55 +01:00
Elliot Waite
f3d57761ab
Fix broken links in docs ( #16336 )
...
* Fix broken links in docs
* Fix rand HSlice links
2020-12-14 20:13:12 +01:00
rockcavera
d15f63a0f2
Fix #14259 #15621 ( #16322 ) [backport:1.4]
...
* IPv6 text representation according to RFC 5952
* Revert IPv6 text representation according to RFC 5952
* fix #14259 #15621
fix #14259 #15621
* Update lib/system/io.nim
* reverted IoHandle removal
* adaptation of types for WinAPI
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-12-12 09:35:18 +01:00
Timothee Cour
bb1c962286
fix partially #13115 (now works for cpp; but still fails for js on openbsd) ( #16167 )
...
* fix partially #13115 properly (works for c,js,cpp,vm; still fails for js on openbsd)
* address comment: also test with -d:danger, -d:debug
2020-12-11 10:35:05 +01:00
flywind
9ce2f87a0a
clean up old codes ( #16284 )
...
* clean up old codes
* fix docs and links
* clean
2020-12-09 12:18:32 +01:00
flywind
1aaa67fc18
[docs minor] remove unicode in docs comments ( #16267 )
2020-12-06 05:51:29 +01:00
Andreas Rumpf
af7f7726fe
ORC: make the adaptive strategy the default in order to fight memory consumption ( #16250 )
...
* ORC: make the adaptive strategy the default in order to fight memory consumption
* added missing test case
2020-12-05 23:15:17 +01:00
Andreas Rumpf
edce5897a5
fixes #16214 [backport] ( #16252 )
2020-12-04 17:47:41 +01:00
flywind
e4e5a0c65a
cleanup docs and tests ( #16235 )
...
* js module also uses runnableExamples
* cleanup docs and tests
2020-12-03 22:59:17 +01:00
Alf-André Walla
545c406cbe
Add 32-bit RISC-V support ( #16231 )
2020-12-03 17:33:42 +01:00
flywind
b1554cfeb5
better setops docs ( #16236 )
...
* js module also uses runnableExamples
* better setops docs
* Update lib/system/setops.nim
* better
* Update lib/system/setops.nim
* Update lib/system/setops.nim
* better
* better
2020-12-03 14:47:44 +01:00
Clyybber
af984a3db9
Fix typo and improve grammar for clamps note
2020-12-02 17:18:51 +01:00
flywind
d2bf0fb43c
small style changes and clarify clamp ( #16228 )
...
* [docs minor]better comparisons docs
* switch from PRNG to random module
* apply suggestions
* not compile
* Revert "switch from PRNG to random module"
This reverts commit 83b4d8946d .
* small style changes and clarify clamp
2020-12-02 17:06:23 +01:00
flywind
e875f27ee6
[docs minor] better comparisons docs ( #16201 )
2020-12-02 09:34:34 +01:00
Andreas Rumpf
ae9fe2b2f9
ORC: API extensions ( #16126 )
...
* ORC: API extensions
* ORC: exploit a common special case
2020-12-01 22:34:52 +01:00
flywind
c65f95417a
better addInt ( #16160 )
...
* better addint
* Update lib/system/strmantle.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
2020-12-01 20:19:39 +01:00
flywind
c555525227
fix #13115 ( #15930 )
...
* fix #13115
* fix testament
2020-11-27 21:04:36 +01:00
flywind
19e224866b
add simple writeStackTrace for JS backend ( #16016 )
...
* add simple writeStackTrace for JS backend
* add testcase for writeStackTrace
* changelog
2020-11-24 19:45:06 +01:00
Timothee Cour
b3c3557c33
fix #16025 repr now consistent: does not insert trailing newline ( #16034 )
2020-11-19 12:12:51 -08:00
Andreas Rumpf
b9eb91cbb5
ORC: prepare for another patent-pending optimization ( #15996 )
...
* ORC: prepare for another patent-pending optimization
* bugfix
* '=copy' for refs can take a cyclic parameter for more ORC optimizations
* ORC: exploit the common 'it = it.next' pattern
* can't hurt to check for nil
* use an algorithm that is not obviously broken
* restore the test case
* final cleanups for --gc:orc
2020-11-18 22:31:06 +01:00
Timothee Cour
e5db5316c2
doAssertRaises improvements; nimscript supports except Exception as e ( #15765 )
...
* doAssertRaises now correctly handles foreign exceptions; now shows which exception is raised on mismatch
* nimscript now handles `Exception as e`
* remove catch-all doAssertRaises overload from this PR
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-11-12 09:25:41 +01:00
Miran
bbe49a14ae
Correct all eggs ( #15906 )
...
* "eg" is a misspelled "egg", "e.g." is "exempli gratia"
* Also, "ie" is "i.e.".
2020-11-10 21:53:25 +01:00
Andreas Rumpf
3aab6a409d
micro improvements ( #15849 )
2020-11-05 14:56:44 +01:00
flywind
8e1fa84b0d
fix #15663 ( #15839 ) [backport:1.4]
2020-11-05 14:00:49 +01:00
flywind
75dc69417a
fix deprecated messages regarding high ( #15832 )
2020-11-03 16:31:16 +01:00
Antonis Geralis
94e2b9e837
Make newObjUninit proc to adhere to its name ( #15764 )
...
Co-authored-by: b3liever <b3liever@yandex.com >
2020-10-28 17:54:42 +01:00
cooldome
0956a99537
ARC now capable of custom extra alignment. Ref, closure and seq support. ( #15697 )
2020-10-28 14:00:49 +01:00
Andreas Rumpf
226595515c
explicit ID generation for easier IC ( #15559 )
...
* refactoring: idents don't need inheritance
* refactoring: adding an IdGenerator (part 1)
* refactoring: adding an IdGenerator (part 2)
* refactoring: adding an IdGenerator (part 3)
* refactoring: adding an IdGenerator (part 4)
* refactoring: adding an IdGenerator (part 5)
* refactoring: adding an IdGenerator (part 5)
* IdGenerator must be a ref type; hello world works again
* make bootstrapping work again
* progress: add back the 'exactReplica' ideas
* added back the missing exactReplica hacks
* make tcompilerapi work again
* make important packages green
* attempt to fix the build for 32 bit machines (probably need a better solution here)
2020-10-25 08:50:47 +01:00
Dominik Picheta
675cf5760f
Fixes compilation for --os:any + --exception:setjmp ( #15626 )
2020-10-20 16:47:23 +02:00
Timothee Cour
3cbe8d2c53
$(uint|uint64) now works with nimscript ( #15644 )
...
* $(uint|uint64) now works with nimscript
* fixup
2020-10-20 14:26:37 +02:00
RecruitMain707
ed0f8a4973
Fix compilation error for regions and memory profiling ( #15641 ) ( #15656 )
...
Co-authored-by: Recruit_main707 <Recruit_main707@users.noreply.github.com >
2020-10-20 14:22:02 +02:00
cooldome
833035bacd
arc allocation method aligned ( #15588 )
...
* progress
* fix typo
2020-10-19 14:50:06 +02:00