Re: Connection-Pooling Compile-Time ORM

2020-06-30 Thread ZadaZorg
I envy your productivity and inventiveness.

Re: threads:on + gc:orc = C(!) compiler errors in unit tests

2020-06-30 Thread ZadaZorg
Running your example gives me nice working results: [OK] foo Run But I also have strange suggestion like you: Hint: passing 'n[i].key' to a sink parameter introduces an implicit copy; if possible, rearrange your program's control flow to prevent it

Re: getFileSize async and sync

2020-06-30 Thread ZadaZorg
OK, but in "async" version, there is nothing async at all (as I can understand). So that asyncfile can use proc from io module for example.

getFileSize async and sync

2020-06-30 Thread ZadaZorg
Hi, working with async stuff decided to look at what async way of getting file size and compare it to sync way. Got no difference in principle, but there is 2 different implementations: The "sync" version in io.nim: proc getFileSize*(f: File): int64 {.tags: [ReadIOEffect],

Re: nimsuggest and --threads:on

2020-06-29 Thread ZadaZorg
I have to say, that I'm shocked (in a positive sense) about all of these design decisions and how all of this organized together. I'm almost crying.

nimsuggest and --threads:on

2020-06-29 Thread ZadaZorg
Using VS Code with Nim or Nim Alt extension, which internally uses nimsuggest may lead into issues when you start to write code related to threads. Simple listing for example ( **aaa.nim** ): proc main() = echo $getThreadId() when isMainModule: main()

Re: On my first 'greet.nim' I get a C compiler error on RHEL 7

2020-06-21 Thread ZadaZorg
@halloleo you need to verify your installation. Kind of issue you have there and problems with building 1.2.2 you mention there and in other thread suggest, that something wrong with installation. I'm suggest completely remove nim installed, verify there there no any artifacts left, ensure,

Re: Unclear (for Python people) import behavior. And how to deal with it

2020-06-18 Thread ZadaZorg
@juancarlospaco thanks, I read links you provide before. Maybe I'm skipped, but there were no explanations of such catch. @Yardanico oh, thanks a lot. I think that is it!

Unclear (for Python people) import behavior. And how to deal with it

2020-06-18 Thread ZadaZorg
During my learning of nim, I'm trying to implement some kind of code common for Python OOP. I'm spent a lot of time reading articles, book, forum and feels like I'm more or less OK with basics. But today I meet strange bug (as I initially think), which is explained in 3 listings below... File

Re: Visual Studio Code plugin

2020-06-18 Thread ZadaZorg
I just choose to use Nim-alt, and did not meet with any problems. Everything I expect is work, but I'm not a very powerful user of Nim yet.

What is ?

2020-06-16 Thread ZadaZorg
Last time in several places I meet this combination of symbols. For example there [https://github.com/nim-lang/fusion/blob/master/src/fusion/btreetables.nim#L872](https://github.com/nim-lang/fusion/blob/master/src/fusion/btreetables.nim#L872) It is not Google friendly combination, so that both