Skip to content

Instantly share code, notes, and snippets.

@Araq
Created November 1, 2018 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Araq/43e399f22ad5b8742a6d5f62810806b6 to your computer and use it in GitHub Desktop.
Save Araq/43e399f22ad5b8742a6d5f62810806b6 to your computer and use it in GitHub Desktop.
commit 33d38c072f164745f7adfd2a97dea8a550c1c02c
Author: PMunch <peterme@peterme.net>
Date: Wed Oct 31 22:14:29 2018 +0100
Quote do now works with result in block (#7343)
* Fix result not being able to use in quote do
This fixes the annoying issue of not be able to use result inside a
quote do block. It works by a simple trick. The quote do mechanic is
based on dynamically creating a template and immediately calling it with
the arguments found within the quote do block. Since this is called in
the scope of the macro the result variable is shadowed. This trick works
by changing all occurences of result (which shouldn't cause any issues
as result isn't used for anything else for the same reason) to another
name and then passing in an IdentNode with result as a named parameter
with that name.
Note that currently this just replaces it with a fixed named variable
"res" which should be changed to a non-colliding, dynamically created
name.
* Fix hard coded parameter "res" to anonymous symbol
This fixes the hard coded parameter "res" to be an anonymous symbol
instead so it won't collide with other parts of the argument list.
* Add test case for result in quote do block
A simple test case based on GitHub issue #7323 on how you can't put
result in a quote do block. This test verifies that it actually works
correctly now.
* Add test for explicit capturing of result
* Rebased against devel
commit 3fb34a49fbb7d28f1d0fdf086b9f3f87d54a7939
Author: B3liever <b3lievem@yandex.com>
Date: Wed Oct 31 14:09:39 2018 +0200
Fix #9585 hypot in js
commit 96a7ac34ee15a4206801eb363ca7a66f074b2804
Author: Araq <rumpf_a@web.de>
Date: Tue Oct 30 16:06:44 2018 +0100
make more tests green for C++; refs #7870
commit e42086045464a44be265d7e823f1fcb307656627
Author: Ahmed T. Youssef <xmonader@gmail.com>
Date: Tue Oct 30 08:36:31 2018 +0200
write logs to stderr instead of stdout; fixes #9547 (#9554)
commit 157dffc1773c733081a169a2a150ea776de3c837
Author: rec <44084068+recloser@users.noreply.github.com>
Date: Tue Oct 30 06:58:39 2018 +0100
Add parsing empty attribs to htmlparser (#9559)
commit 509604dd1e6e406890a49d25e25e6e4aa047eaf8
Author: rec <44084068+recloser@users.noreply.github.com>
Date: Mon Oct 29 11:10:00 2018 +0100
Make htmlparser parse unquoted attrib values (#9537)
Fixes #6154
commit c6e249d9030116d6e6ac2f074db6870f6b360f58
Author: Araq <rumpf_a@web.de>
Date: Sun Oct 28 14:26:35 2018 +0100
fixes #9540
commit 28ff0fbc8e8b685c57b2bf550a3d36086947fdf3
Author: Utwo <mihai.legat@gmail.com>
Date: Sun Oct 28 14:36:52 2018 +0200
Remove install.txt and readme.txt (#9521)
* Remove install.txt and readme.txt
* Refactor tests that use readme.txt
* Tests open own source code
commit c795ba5036cf3b606d0b4b04af6914067db32572
Author: zah <zahary@gmail.com>
Date: Sun Oct 28 14:34:57 2018 +0200
Parse the usage of the SQL in operator properly (#9527)
Also adds a `treeRepr` renderer for the SQL nodes.
commit 433df9701e2a82c26cec6623300288cf1980d59b
Author: David Krause <enthus1ast@users.noreply.github.com>
Date: Sat Oct 27 22:54:45 2018 +0200
fixes #7842 if no uri.scheme specified raise ValueError with hint (#7846)
* fixes #7842 if no uri.scheme specified on request rais ValueError with hint
Signed-off-by: enthus1ast <david@code0.xyz>
* Update httpclient.nim
commit 4ef35aaa3018197bb60cd87b9c63ebf9feeb01bf
Author: Kaushal Modi <kaushal.modi@gmail.com>
Date: Sat Oct 27 09:10:05 2018 -0400
Improve dumpLisp macro (#9515)
* Improve dumpLisp macro
- Remove commas from the lisp representation of the AST.
- Make the dumpLisp output "pretty" and indented.
- Improve docs of `dumpTree` and `dumpLisp` macros.
With:
dumpLisp:
echo "Hello, World!"
Output before this commit:
StmtList(Command(Ident("echo"), StrLit("Hello, World!")))
Output after this commit:
(StmtList
(Command
(Ident "echo")
(StrLit "Hello, World!")))
* Re-use the traverse proc inside treeRepr for lispRepr too
- Add module-local `treeTraverse` proc.
- Also fix treeRepr/dumpTree not printing nnkCommentStmt node contents.
* More doc string updates
* Allow unindented lispRepr output for tests
* Update a test affected by the lispRepr change
* Fix dumpTree
* Add note about lispRepr and dumpLisp to changelog [ci skip]
commit 094cef2dc334b7b30b2105260f38155b10ff1b99
Author: cooldome <cdome@bk.ru>
Date: Fri Oct 19 10:45:59 2018 +0100
merge #9430
commit 89188bbc4dca1a7e68dbf7bd3a7dcb3aeba8a140
Author: Arne Döring <arne.doering@gmx.net>
Date: Thu Oct 18 16:07:15 2018 +0200
changelog entry
commit d9ef226e599334957ff1a43e295294f96614d0ec
Author: Arne Döring <arne.doering@gmx.net>
Date: Thu Oct 18 15:40:50 2018 +0200
fix typo
commit d6871d70771f5cfdee9f3b881e01fe76431db8ac
Author: Arne Döring <arne.doering@gmx.net>
Date: Sun Jul 22 19:56:48 2018 +0200
fixed comment
commit c9b57558451466309f4b047075301c877b249d61
Author: Arne Döring <arne.doering@gmx.net>
Date: Thu Jul 19 22:42:48 2018 +0200
added test case for `or` operator
commit b852af5f682a4be53ba57d877c43f8690a7f2edb
Author: Arne Döring <arne.doering@gmx.net>
Date: Thu Jul 19 16:26:07 2018 +0200
or on NimNode
commit ecc1bfd9ca8e4200a5e43e51b574ca4e24e9089a
Author: Araq <rumpf_a@web.de>
Date: Thu Oct 18 12:12:04 2018 +0200
testament: use NIM_COMPILE_TO_CPP environment variable
commit 2822ff96e0eb264f177043521a4ccf77800ff995
Author: Araq <rumpf_a@web.de>
Date: Thu Oct 18 10:58:28 2018 +0200
koch: bootstrap with C++ for NIM_COMPILE_TO_CPP env var
commit e015209ba695e9459b3a34a7c377e527ee532419
Author: Araq <rumpf_a@web.de>
Date: Thu Oct 18 10:06:50 2018 +0200
travis: use explicit build matrix; prepare for extensive C++ testing
commit 8928f83963715af15de59be06342706c5d493b38
Author: LemonBoy <LemonBoy@users.noreply.github.com>
Date: Tue Oct 16 14:27:42 2018 +0200
Fix repr() for UncheckedArray (#9385)
commit 52fdd8d2a723a072c52c98a1afaa4abf04feeab7
Author: skilchen <skilchen@users.noreply.github.com>
Date: Tue Oct 16 09:19:53 2018 +0200
math.round is not needed in strutils (#9383)
commit 3d4cf822511e4c740e2f2bbafcd81740ce583751
Author: Araq <rumpf_a@web.de>
Date: Mon Oct 15 10:54:20 2018 +0200
system.nim deprecate 'getRefcount'; refs #2839, refs #3713
commit fa002c37910e245771731a3a47bbed6c4a568d3d
Author: Andreas Rumpf <rumpf_a@web.de>
Date: Sun Oct 14 11:19:45 2018 +0200
fixes #9306 properly, fixes #9306
commit cdc54ad80b45cd9029853360277d82f4d2995079
Author: Federico Ceratto <federico.ceratto@gmail.com>
Date: Sun Oct 14 10:05:28 2018 +0100
Add strip() example (#8002)
commit 248c456d42f12b32eba4bb4f1afaaf9482e1eef3
Author: Andreas Rumpf <rumpf_a@web.de>
Date: Sun Oct 14 10:26:45 2018 +0200
added new editdistance stdlib module, deprecated strutils.editDistance, refs #6301
commit 83c28ad0fcec07985c2d03b4a4d9a6646cc18f37
Author: Andreas Rumpf <rumpf_a@web.de>
Date: Sun Oct 14 09:48:54 2018 +0200
strutils/unicode: deprecate isLower and friends operating on complete strings; fixes #7963 properly
commit 21c02e751160cbe0afbbb919fd9ecdaa5d9e52f7
Author: Timothee Cour <timothee.cour2@gmail.com>
Date: Sat Oct 13 15:17:10 2018 -0700
correctly render AST in doAssert/assert condition: fixes #8518; refs #9301 (#9332)
* fixes #8518; refs #9301; correctly render AST in doAssert condition
commit 58290822f8143feac8dac6faff1a9266e0f1203b
Author: Timothee Cour <timothee.cour2@gmail.com>
Date: Sat Oct 13 05:59:56 2018 -0700
add strutils.stripLineEnd (#9346)
commit 209e0c6a9f05b0d32d68ba10b53390ad6f1c1f1b
Author: Timothee Cour <timothee.cour2@gmail.com>
Date: Sat Oct 13 00:23:33 2018 -0700
deprecate accumulateResult => sequtils.toSeq (#8666)
commit 839c6854f32a3241d00f3c2f1220a0043d3b1a16
Author: Vindaar <basti90@gmail.com>
Date: Sat Oct 13 08:47:58 2018 +0200
fixes #8916 by fixing typeinfo and marshal. (#9341)
* fixes #8916 by removing `tyString`, `tySeq`, mod. marshal, typeinfo
Need to check in `typeinfo` for nil of the underlying pointer.
In marshal don't have to check for nil of seq anymore.
* remove reference to string, sequence in `isNil` doc string
commit 99ded735ddbd86a57482e27b0d64acfff78eefb6
Author: Oscar Nihlgård <oscarnihlgard@gmail.com>
Date: Sat Oct 13 08:44:39 2018 +0200
Build codeowners.rst (#9337)
commit 9e217828b92796e567ea1cb47a89b0abbcc07149
Author: cooldome <cdome@bk.ru>
Date: Fri Oct 12 07:49:33 2018 +0100
Align to the actual experience (#9324)
* Align to the actual experience
* add exception handling
commit 800c6434431f139cd8f06b1e831c447cfff16986
Author: Araq <rumpf_a@web.de>
Date: Thu Oct 11 13:52:44 2018 +0200
codeowners: try to make github's RST parser happy
commit b855dcfa59bf3eb4a352d25aac515793e7fb1e76
Author: Araq <rumpf_a@web.de>
Date: Thu Oct 11 13:45:37 2018 +0200
update contributing.rst and added codeowners.rst
commit 340fddc127a5ddbab9717d8cf8e250a4409752db
Author: Timothee Cour <timothee.cour2@gmail.com>
Date: Wed Oct 10 23:55:16 2018 -0700
make contributing.rst more up to date; reference it in readme.md to make it more discoverable (#9302)
commit ec62c6a1658e84cfb3002fa0e316c52bd55f23a2
Author: LemonBoy <LemonBoy@users.noreply.github.com>
Date: Tue Oct 9 23:24:54 2018 +0200
Fix macro expansion in expandMacros (#8998)
* Fix macro expansion in expandMacros
Running a semanticized node trough the semantic pass was a bad idea.
Fixes #7723
* Simpler smaller implementation
commit d811e80e88aa4b1b2c9a75a2057c803cdacd0ba7
Author: Arne Döring <arne.doering@gmx.net>
Date: Tue Oct 9 19:37:53 2018 +0200
fix for #9082 (#9089)
commit 97c93753422a65723d27404bb4afdb7b8836db6f
Author: LemonBoy <LemonBoy@users.noreply.github.com>
Date: Tue Oct 9 14:58:40 2018 +0200
nim doc can run code blocks (#9228)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment