flywind
e5475768ba
feature_request should be labelled automatically ( #19215 )
2021-12-05 07:17:52 +01:00
hlaaftana
1ef945668d
treat do with pragmas but no parens as proc ( #19191 )
...
fixes #19188
2021-12-05 06:44:22 +01:00
PMunch
c658de24b0
Improve documentation around func and method ( #19207 )
...
* Improve documentation around func and method
* Update doc/tut1.rst
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update doc/tut1.rst
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Rewrite of Zooms suggestion
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
2021-12-04 07:54:11 +01:00
Andreas Rumpf
1cbdc1573a
fixes #19159 [backport:1.6] ( #19210 )
2021-12-04 07:44:26 +01:00
Andreas Rumpf
f90620fb32
fixes #19198 [backport:1.6] ( #19209 )
...
* fixes #19198 [backport:1.6]
* added a test case
2021-12-04 07:43:20 +01:00
Andreas Rumpf
d584dd5b99
fixes #19015 [backport:1.6] ( #19204 )
2021-12-04 07:42:58 +01:00
Andreas Rumpf
23c117a950
misc bugfixes [backport:1.2] ( #19203 )
2021-12-04 07:42:34 +01:00
Iced Quinn
373c909300
feat: TLS-ALPN wrappers for OpenSSL ( #19202 )
...
Co-authored-by: Iced Quinn <icedquinn@iceworks.cc >
2021-12-04 07:42:03 +01:00
Jaremy Creechley
0d0c249074
swap port to correct port order ( #19177 )
...
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com >
2021-11-24 17:37:14 +01:00
hlaaftana
f91867aa31
accept object type node from macros ( #19179 )
2021-11-24 16:34:42 +01:00
Andrey Makarov
a59ad20062
fix inline syntax highlighting in system.nim ( #19184 )
2021-11-24 16:16:20 +01:00
Andreas Rumpf
a0073d2d4c
renamed 'gc' switch to 'mm'; [backport:1.6] ( #19187 )
...
* renamed 'gc' switch to 'mm'; [backport:1.6]
* better docs
2021-11-24 15:49:32 +01:00
hlaaftana
c7c6b13a32
parseExpr/parseStmt accept filename, fixes #13540 ( #19182 )
2021-11-24 12:22:40 +01:00
hlaaftana
ff39f6e260
make JS trunc polyfill opt-in, closes #16144 ( #19183 )
2021-11-24 08:20:15 +01:00
hlaaftana
2859069dbe
fix #12274 ( #19180 )
2021-11-24 07:08:07 +01:00
hlaaftana
5933aece9b
caseStmtMacros no longer experimental, experimental manual refactor (#19173 )
...
* `caseStmtMacros` no longer experimental, experimental manual refactor
* Update doc/manual.rst
* apply review suggestions
* apply review
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-11-23 16:30:17 +01:00
Andrey Makarov
040d23e799
implement RST & Markdown quote blocks ( #19147 )
...
* implement RST & Markdown quote blocks
* compile with nim 1.0
* Fix indentation
2021-11-23 13:02:03 +01:00
Jaremy Creechley
7772ca303c
Implement threads on Zephyr ( #19156 )
...
* pthreads setup for zephyr
- enable tweak stack size
- update lib/system/threads.nim
- Fix int/uint in casting pointer.
* add documentation and tweak flag names
* add documentation and tweak flag names
* fix configuration flag names
* fix configuration flag names
* cleanup
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com >
2021-11-23 09:13:03 +01:00
hlaaftana
1b143f5e79
Accept nnkTypeSection from typedef macro pragmas ( #19168 )
2021-11-22 10:41:35 +01:00
quantimnot
eb5358dcdb
Testament now checks OS, CPU, endianess, bitsizes 8-64 in discard statements ( #19137 )
...
* Testament checks host/cpu in compiler/platform for discard spec statement
* Remove duplicated value checks, add comments, add all cpu bit sizes and endianesses
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
2021-11-19 08:19:01 +01:00
OxFred
a8611c665f
Update dependency ( #19151 )
2021-11-17 13:16:12 +01:00
flywind
fe46c8b5f1
fix marshal bugs in VM ( #19161 ) [backport:1.6]
2021-11-17 10:15:54 +01:00
Jaremy Creechley
92d6fb86c6
Enable customizing PageShift to set PageSize for embedded targets ( #19129 )
...
* Enable customizing PageSize (via PageShift).
This enables adjusting PageSize for embedded targets without abusing
cpu16.
* copy nimPageXYZ settings for mmpaptest
* add docs for Nim manual
* add docs for Nim manual
* docs tweaks
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com >
2021-11-16 20:30:07 +01:00
Andreas Rumpf
309ec7167e
fixes .raises inference for newSeq builtin under --gc:orc [backport] ( #19158 )
2021-11-16 15:49:04 +01:00
Jaremy Creechley
6976d18519
Implement zephyr urandom and monotime ( #19142 )
...
* implement urandom for Zephyr
* add monotime on zephyr
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com >
2021-11-14 12:49:30 +01:00
flywind
bec4900165
wrong spaces (3 => 2) ( #19145 )
2021-11-14 12:46:21 +01:00
Anuken
270a5a372d
Fix undeclared 'SYS_getrandom' on emscripten ( #19144 )
2021-11-13 19:09:15 -05:00
Christoph Krybus
ade85ee91f
Fix punycode.decode function ( #19136 )
...
* Refactor: rename proc to func
* Fix punycode.decode function
This function could only properly decode punycodes containing a single
encoded unicode character. As soon as there was more than one punycode
character group to decode it produced invalid output - the number of
characters was correct, but their position was not.
* Update tpunycode.nim
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2021-11-12 22:51:58 -05:00
Clay Sweetser
0a1049881e
Merge file size fields correctly on Windows ( #19141 )
...
* Merge file size fields correctly on Windows
Merge file size fields correctly on Windows
- Merge the two 32-bit file size fields from `BY_HANDLE_FILE_INFORMATION` correctly in `rawToFormalFileInfo`.
- Fixes #19135
* Update os.nim
2021-11-12 22:51:43 -05:00
Andreas Rumpf
c6fc3b2eae
fixes #19051 [backport:1.6] ( #19133 )
2021-11-12 11:19:24 +01:00
Jake Leahy
f8b71f7075
Fix type mismatch with future logging ( #19131 )
2021-11-12 08:00:19 +01:00
flywind
3aaa12dbe5
update manual ( #19130 ) [backport]
2021-11-12 07:59:48 +01:00
orthoplex
528ef6c218
fixed colorNames sorting mistake ( #19125 ) [backport]
2021-11-11 20:01:51 +01:00
Andreas Rumpf
cde83d90aa
refactoring: orc can use getThreadId() ( #19123 )
...
* refactoring: orc can use getThreadId()
* progress
2021-11-11 19:07:08 +01:00
flywind
7313b70a6a
correct cookie docs ( #19122 )
2021-11-11 08:53:27 +01:00
Federico Ceratto
036d894e6a
Add security tip for setCookie ( #19117 )
...
* Add security tip for setCookie
* Update lib/pure/cookies.nim
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
* Update lib/pure/cookies.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-11-11 08:41:21 +01:00
Ryan Oldenburg
77b696c2c9
Remove tlsEmulation enabled from Windows + GCC config ( #19119 ) [backport:1.6]
...
This flag has a very significant performance impact on programs compiled with --threads:on. It is also apparently not needed anymore for standard circumstances. Can we remove the config? See https://github.com/nim-lang/Nim/issues/18146#issuecomment-876802676 for discussion and perf impact. [backport:1.6]
2021-11-11 06:48:22 +01:00
treeform
a78ee8ae84
Call {.cursor.} a pragma. ( #19116 )
...
* Call {.cursor.} a pragma.
Its hard to find .curser annotation while googling because all other things like it are called pragmas. See https://nim-lang.org/docs/manual.html#pragmas
Also the . in front of the name makes it hard to find and search for.
Can we just call it cursor pragma?
* Small fix for comment.
2021-11-10 08:52:34 +01:00
Andreas Rumpf
15157d06c3
fixes #14470 [backport:1.2] ( #19115 )
2021-11-09 22:48:04 +01:00
Andrey Makarov
997ccc5889
fix nimindexterm in rst2tex/doc2tex [backport] ( #19106 )
...
* fix nimindexterm (rst2tex/doc2tex) [backport]
* Add support for indexing in rst
2021-11-09 19:01:47 +01:00
konsumlamm
46fb855425
Deprecate std/sharedlist and std/sharedtables ( #19112 )
2021-11-09 19:00:43 +01:00
konsumlamm
b0f4a9b845
Add deprecation pragmas in lib/deprecated/pure ( #19113 )
2021-11-09 19:00:33 +01:00
Andreas Rumpf
6ff61766da
fixes #19011 [backport:1.6] ( #19114 )
2021-11-09 18:59:59 +01:00
Andreas Rumpf
b7c66ce860
fixes #19013 [backport:1.6] ( #19111 )
...
* fixes #19013 [backport:1.6]
* added test case
2021-11-09 12:43:16 +01:00
Zoom
83a9c3ba31
Update readme.md: matrix links ( #19109 )
...
Added links to the main #nim-lang room on Matrix and to the Nim matrix space.
Added Matrix badge.
2021-11-08 18:47:20 +00:00
Andrey Makarov
b21eb1ed36
change os.nim doc links to new style ( #19102 )
2021-11-08 13:10:01 +01:00
Dominik Picheta
b423ab138f
Remove invalid statements about try in async docs. ( #19108 )
2021-11-08 08:21:15 +01:00
Andreas Rumpf
fce89cb60a
fixes another effect inference bug [backport:1.6] ( #19100 )
...
* fixes another effect inference bug [backport:1.6]
2021-11-07 16:38:02 +01:00
Don-Duong Quach
f2f15e9726
fix for #19020 , credit to @ElegantBeef ( #19021 )
2021-11-03 16:47:31 +01:00
Constantine Molchanov
b2edc3468c
Use testament to check Norm test pass ( #19018 )
...
* Use testament to check Norm test pass
This is what I actually use to test Norm, so it's better to use it.
This should not currently pass. This is expected because this is exactly the problem I want to highlight with this PR. My tests do indeed not pass at the moment.
* Remove clearNimblePath from testament command.
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-11-03 09:16:24 +01:00