Search SSH library

2021-03-25 Thread rgv151
Need SCP, SFTP client too? check it out:

using expressions in default values for procedure's parameters

2021-03-25 Thread halloleo
Cool feature indeed. - Not sure how often I will have a use for it though

Chrome Extensions with Nim, who would have thought?

2021-03-25 Thread Niminem
How much do I like programming in Javascript you asked? Every time I have to write curly braces I get heart palpitations if that gives you a clue lol I've automated a lot of my workflow with Nim so far, and built some really cool stuff. To date, it's all been desktop applications. Unfortunately

`sleep_async` behaves as if it's blocking, strange

2021-03-25 Thread alexeypetrushin
True. I tested it in Chrome and it seems like it delayed the second request. Tried it with Safari and `curl` and it works as expected. Issue resolved, thanks.

`sleep_async` behaves as if it's blocking, strange

2021-03-25 Thread aEverr
im getting the expected output with the same code and parameters, more data would be needed to determine what is wrong

`sleep_async` behaves as if it's blocking, strange

2021-03-25 Thread PMunch
You don't need `--threads:on` for Jester, in fact it doesn't do anything. And these won't be executed in parallel, but they will be executed concurrently. I have also ran your snippet and do in fact get the "start, start, finish, finish" result that is expected, without the `--threads:on` flag.

`sleep_async` behaves as if it's blocking, strange

2021-03-25 Thread alexeypetrushin
Not sure if I'm doing something wrong, as far as I understand the `sleep_async` should not block the async server. So in the example below the requests should be executed in parallel, but they are executed sequentially. I created a simple server, and opened two browser tabs, expecting that it wo

Can't set wild-pattern matching any route in Jester

2021-03-25 Thread alexeypetrushin
Thanks, that's what I wanted :)

using expressions in default values for procedure's parameters

2021-03-25 Thread Yardanico
It's mentioned in :)

using expressions in default values for procedure's parameters

2021-03-25 Thread Hlaaftana
It was probably not documented because there was no guarantee of this being a stable feature. If it's considered to be a reliable and working feature, then it could be added to the manual, otherwise I believe the [experimental manual](https://nim-lang.org/docs/manual_experimental.html) would be

Can't set wild-pattern matching any route in Jester

2021-03-25 Thread Yardanico
It does though -

Can't set wild-pattern matching any route in Jester

2021-03-25 Thread alexeypetrushin
Indeed it works! Thanks! :) import jester from re as nim_re import nil proc run = routes: let re = nim_re.re get re".*": resp "hi" run() Run

using expressions in default values for procedure's parameters

2021-03-25 Thread pietroppeter
I know that nim can use expressions for default values in procedures (saw it somewhere in stdlib), but until today I never realized that I could also make use of other parameters in the expression. [Example](https://play.nim-lang.org/#ix=2U26): proc ape(a: string, b: string = ("no"

Should we use British or American English in the documentation?

2021-03-25 Thread ClaireChurchilly
I think it depends on the audience mostly. It doesn't really make a difference if you think about it.

Can't set wild-pattern matching any route in Jester

2021-03-25 Thread shirleyquirk
it looks like its choking on the `x.y` syntax, not that it's renamed. if you've got another `re`, can you just use that? or maybe alias `x.y` with a template

Can't set wild-pattern matching any route in Jester

2021-03-25 Thread alexeypetrushin
Jester requires usage of `std/re` to set a set a wild-pattern matching any route. The problem is that I'm using custom `re` and thus can't import `std/re` as `re`. But when I import it with different name Jester won't work. import jester from re as nim_re import nil ro

Wildpattern, handle any request in Jester?

2021-03-25 Thread alexeypetrushin
I'm trying to register any route in Jester. The problem is that it requires `std/re` and I use custom RegularExpression module with the same name `re`, and thus can't import `std/re` as `re`. But when I import `std/re` with different name I can't use it in Jester. import jester

NimScript tasks with parameters?

2021-03-25 Thread ynfle
You could set global variables