Karax problem using getVNodeById

2020-05-29 Thread wiltzutm
Nim and static type noob here. So the problem is when I compile my code and run it in browser, fill the name and description fields and click add thing button, my browser console gives following cryptic runtime errors: TypeError: c_225079 is null quicktest.js:579:16

Re: Walking trees without recursive iterators

2020-05-29 Thread sschwarzer
@cblake Thanks for your encouragement, it _did_ motivate me. :-) Unfortunately, I only found the time this week. So finally, here's a new take on the recursive tree iterator: [https://hg.sr.ht/~sschwarzer/lazytree](https://hg.sr.ht/~sschwarzer/lazytree) (clone with hg clone

Re: Nim Cheatsheet PDF (English+Spanish+Latex)

2020-05-29 Thread siloamx
Great idea! Thanks.

Re: Change Nim colour on GitHub

2020-05-29 Thread sschwarzer
Um, _what_ was the initial goal then? :-) Maybe we could add the question "Where do Nim's name and logo come from?" or something similar together with the answer to the FAQ (even if it's not strictly a _frequently_ asked question ;-) ).

Re: Output test statistics from `nimble test` (succeeded, failed, skipped, possibly runtime)

2020-05-29 Thread sschwarzer
I just saw this is mentioned as a possible enhancement in [https://github.com/nim-lang/Nim/issues/5114](https://github.com/nim-lang/Nim/issues/5114) .

Re: Nim Cheatsheet PDF (English+Spanish+Latex)

2020-05-29 Thread SolitudeSF
only on windows

Re: Output test statistics from `nimble test` (succeeded, failed, skipped, possibly runtime)

2020-05-29 Thread mratsim
Our test utilities expand unittest with timing information: [https://github.com/status-im/nim-beacon-chain/tree/a90b0dd1/tests](https://github.com/status-im/nim-beacon-chain/tree/a90b0dd1/tests) and reports

Re: VSCode debug: strings and booleans are ugly

2020-05-29 Thread jyapayne
> Unfortunately this won't work - GDB doesn't work on Mac since 10.14 Mojave GDB does work with Mac (I have it setup on 10.15). You just have to go through a complicated process to sign the binary:

Re: Idea: Nim Online Conference

2020-05-29 Thread miran
> submissions deadline: May 31st Just two more days to submit your talks!!

How do I revert a my fork back to nim devel?

2020-05-29 Thread solo989
I would like to make some more pull requests but I can't figure out to revert my local fork back to devel. I've tried the command: git pull --rebase --autostash as well as other commands. But it always claims it is up to date. How do I get my repository to rebase based on

Re: What is -> in Nim?

2020-05-29 Thread juancarlospaco
[https://nim-lang.github.io/Nim/sugar.html#-%3E.m%2Cuntyped%2Cuntyped](https://nim-lang.github.io/Nim/sugar.html#-%3E.m%2Cuntyped%2Cuntyped) Syntax sugar for a function, it is an arrow.

What is -> in Nim?

2020-05-29 Thread tmsa04
Example: proc cloneRepositories(config: Config, targets: seq[BaseTarget], update: (int, int) -> void): (List[CloneResult], seq[string]) = ... I guess it could be casting a proc parameter to void here but there is nothing quite like it in the Nim manual or tutorial, although there is some

Re: What is -> in Nim?

2020-05-29 Thread kaushalmodi
I have some notes on that "proc type" syntactic sugar `->` here: [https://scripter.co/notes/nim/#proc-type-sugar](https://scripter.co/notes/nim/#proc-type-sugar)

Re: Change Nim colour on GitHub

2020-05-29 Thread Lutins
Hi, I am a long time lurker but have joined to get in on this discussion. I propose #ff8b00 (hsl(33, 100%, 50%)) be Nim's new color. Not only is it a shade of Araq's favorite color, but it will also standout nicely from all of the dull/faded oranges represented by other languages here

Re: What is -> in Nim?

2020-05-29 Thread tmsa04
Thank you, that is very helpful.

Re: Change Nim colour on GitHub

2020-05-29 Thread Yardanico
It's not about the syntax highlighting, see [https://github.com/github/linguist/pull/4866#issuecomment-631527018](https://github.com/github/linguist/pull/4866#issuecomment-631527018)

Re: Nim Cheatsheet PDF (English+Spanish+Latex)

2020-05-29 Thread Yardanico
Jester uses HttpBeast unless you're on Windows or explicitly do `-d:useStdLib` [https://github.com/dom96/jester/blob/b68c1a88612b0dae319be03caaac430b18905adf/jester/private/utils.nim#L7](https://github.com/dom96/jester/blob/b68c1a88612b0dae319be03caaac430b18905adf/jester/private/utils.nim#L7)