why online compass is popular?

2023-07-18 Thread tedfred
>From travelers exploring foreign lands to hikers seeking adventure in remote >wilderness, people have embraced online compass as valuable navigation aids. >This article delves into the reasons behind the soaring popularity of online >compasses and how they have become an integral part of modern

Passing closures as C callbacks with cleanup functions

2023-07-18 Thread thisismyusername
Ah thanks! I didn't know about `GC_ref` and `GC_unref`

Please help me with httpclient on Nim

2023-07-18 Thread amadan
If you have already parsed the URL using [parseUri](https://nim-lang.org/docs/uri.html#parseUri%2Cstring) then you can also use the [?](https://nim-lang.org/docs/uri.html#%3F%2CUri%2CopenArray%5B%5D) operator on it like let client = newHttpClient() let route = "https://httpbin

Please help me with httpclient on Nim

2023-07-18 Thread miran
> there's no need to create a new thread for it What I think it happened: They are a new user, and (until this morning) haven't been confirmed as a non-spammer, so they made a post, and then it was not shown, so they made another one, etc.

Passing closures as C callbacks with cleanup functions

2023-07-18 Thread sls1005
I think you can pass it with a `ref` then apply `GC_ref`, so that it's not freed until `GC_unref` is called. proc callCFunc(... args ..., cb: ref proc()) = GC_ref(cb) let arg = cb[].rawEnv() fp = cb[].rawProc() doTheThing(.. args .., arg, fp,

Please help me with httpclient on Nim

2023-07-18 Thread Yardanico
For your future threads: you can press the edit button next to the post in the thread to edit it, there's no need to create a new thread for it :)

Please help me with httpclient on Nim

2023-07-18 Thread moigagoo
Highly recommend using Phind for questions like this one that have to do with stdlib:

Wrapping Tkinter GUI in Nim?

2023-07-18 Thread thindil
> Quite the contrary, actually: there's a lot I could learn from your code! Glad to read that, I hope good things too. :D About asking, feel free to ask me, I will try to help you as much as I can. It is always a good opportunity to test my own knowledge and to expand it. Especially that I have

Wrapping Tkinter GUI in Nim?

2023-07-18 Thread xanim
With respect @SpotlightKid, I am inclined to defer. I've seen some beautiful GUIs done with Tkinter; I'd quote from [Bryan Oakley, the resident SO guy for it](https://www.blog.pythonlibrary.org/2015/03/02/pydev-of-the-week-bryan-oakley/): > I think Tkinter is an absolutely fantastic GUI library