Custom header values inside multi-part form ?

2022-09-03 Thread void09
Trying to implement a few IPFS API calls, specifically this one: Basically I need to implement the "nocopy" option of the above linked API call, which in curl looks like this: curl '' -F 'file

Should custom numeric literals be reworked?

2022-09-03 Thread Hlaaftana
If you add `{.compileTime.}` to the proc, the exception doesn't get tracked as it would be a compile error. from std/parseutils import parseUInt type flg = distinct uint8 proc `'flg`*(n: string): flg {.compileTime.} = var number: uint discard parseUInt(n

Should custom numeric literals be reworked?

2022-09-03 Thread bather
Hi, at the moment, initialization of user defined numeric literals raises ValueError through the use of parseInt, parseUint, which makes their unusable with the new effects system. For example: from std/parseutils import parseUInt type flg = distinct uint8 proc `'

NimConf 2022 - registrations

2022-09-03 Thread geekrelief
It'd be great to have a guided tour of the compiler internals! Reading the "Internals of the Nim Compiler" guide is helpful and you can dive into the source but having an expert hold your hand and tell you about the files and types that really matter or how to debug issues like a pro can help de

UI with WebView without JS?

2022-09-03 Thread alexeypetrushin
Thanks, yes, I guess there's no such frameworks. They say, Brendan Eich, creator of JavaScript, implemented JavaScript and attached it to InternetExplorer engine in something like 3 days or so, maybe a bit more. It's strange that since then, for 27 years, nobody was able to repeat that with oth

UI with WebView without JS?

2022-09-03 Thread bung
I think he means you can use karax compile to c and render to html string, I've use lot of web based framework, none of them provide feature as your description, as they are web based ui its benifite is write your logic in js , and handle events on js side, since the webview delegate the mouse a

Thread-Safe Container Type doubts

2022-09-03 Thread JeysonFlores
Thanks! It works without problem

Implement api rate limiting with jester

2022-09-03 Thread Cnerd
For anyone trying to implement rate limiting with jester, I just created a jester plugin library [clown_limiter](https://github.com/C-NERD/clown_limiter) which can be used to implement rate limiting. I have published the library to nimble just waiting for the pull request to be merged and the li

Mini-book on long-lived ABIs

2022-09-03 Thread templatedperson
This is pretty useful, thanks for writing it! You should also share this on other low-level language forums too. Anybody who is writing any kind of shared library should consider what to do about ABI stability.

Thread-Safe Container Type doubts

2022-09-03 Thread Araq
Instead of proc getValue[T](self: Foo[T]): T = var result: T withLock self.lock: result = self.value result Run use: proc getValue[T](self: Foo[T]): T = withLock self.lock: result = self.value Run

NimConf 2022 - registrations

2022-09-03 Thread Araq
Ping to make bring this thread to the top again.

Ideas for useful/cute little GUI programs?

2022-09-03 Thread alexeypetrushin
I believe old Nim profiler library, [nimprof](https://nim-lang.org/docs/nimprof.html) can provide some data. The "MVC" part in "TodoMVC" is just a historical postfix, it's not related to "MVC" it's a showcase for UI frameworks.