I envy your productivity and inventiveness.
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
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.
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],
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.
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()
@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,
@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!
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
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.
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
11 matches
Mail list logo