How to iterate over a SharedTable?

2021-04-10 Thread b3liever
I have a slightly different version with the writer threads doing `table[threadId] = currentIter` and readers just echoing the table. Most of the trouble was to make the compiler stop complaining, so be sure to compile with `--threadAnalysis:off` and annotate the procs with `.thread` pragma.

nimview and websocket ---> webwsi

2021-04-10 Thread JPLRouge
hello Mixing webview and websocket allows you to do some interesting interactive things. of course it's webview seen as a browser and WS websocket seen as an "apache". or: the screen part detach from the data processing program for example . all in one program [Exemple Nim](https://github

How to iterate over a SharedTable?

2021-04-10 Thread mrhdias
Thanks @ElegantBeef. Ok, the error is gone, but it doesn't do what I want. I just want to delete the record with the "b" key Result after compile and run: a x b y c z a x b y c z a b a x Run Expected Result: a x

How to iterate over a SharedTable?

2021-04-10 Thread ElegantBeef
Using `withValue` seems to do it safely so the follow seems to work. Though I do think there should be a `items` `pairs` and so forth for the shared table which locks then iterates. import sharedtables import sharedlist import os var table: SharedTable[string, stri

RegexFlag

2021-04-10 Thread sflennik
The re module has a RegexFlag type that controls how the regular expression engine works. How do you use it, I don't see it referenced in the module?

RegexFlag

2021-04-10 Thread ynfle
You pass a set of `RegexFlag``s to the ``re` and `rex` procs

Release candidates for 1.4.6 and 1.2.12

2021-04-10 Thread exelotl
That... makes a lot more sense 😅 it's just the darn unescaped hash that tripped me up...

I want to use gecko driver headless.

2021-04-10 Thread jyapayne
As an example for halonium with headless, here's how to do it with chrome: import options, os import halonium proc main() = let session = createSession(Chrome, browserOptions=chromeOptions(args=["--headless"])) session.navigate("https://google.com";)

How to iterate over a SharedTable?

2021-04-10 Thread mrhdias
I need to know the keys and values that are being inserted in a sahred table. The table is populated by a multi threaded application. import sharedtables var table: SharedTable[string, string] init(table) table["a"] = "x" table["b"] = "y" table["c"] = "z

Multi-threaded features needed for Server

2021-04-10 Thread hankas
Sorry for the late reply. My version of smart pointers is at . It probably has some quirks and needs more thorough testing. Looking forward to collaborate and join effort as well.

Multi-threaded features needed for Server

2021-04-10 Thread b3liever
If you don't know the number of channels in compile-time it's not possible to generate their declarations with a macro, but you can have probably workaround it with a fixed number of channels. I think it calls for a different solution.

I want to use gecko driver headless.

2021-04-10 Thread b3liever
there is also [halonium](https://github.com/halonium/halonium), worth considering.

I want to use gecko driver headless.

2021-04-10 Thread nnahito
Thank you for your code. I immediately downloaded the WebDriver code locally and rewrote it with your code. However, I couldn't get the text of the element, probably because findElement or some other process was failing. When I commented out --headless and ran it, I got the browser screen and

Search engine for free assets

2021-04-10 Thread Martinka
It's a great idea for sure. I will see what I can get out of your search engine.

Release candidates for 1.4.6 and 1.2.12

2021-04-10 Thread gemath
`choosenim #version-1-4` should work, too.

Multi-threaded features needed for Server

2021-04-10 Thread Araq
> Maybe we can peer review the code since I am also new to Nim. > > The source is here but is a bit messy, with some leftover debugging > instrumentation. Oh yes, please. There is also: