clarification on nim v2 removal of parallel & spawn

2023-05-18 Thread Araq
> Is it referring to std/threadpool module or just parallel and spawn > procedures? To all of it. > Also, will the core team provide which external packages are the > recommended/better solutions? I'm aware of: * Weave * Constantine * malebogia * thready

clarification on nim v2 removal of parallel & spawn

2023-05-18 Thread noah
according to the [docs](https://nim-lang.github.io/Nim/manual_experimental.html#parallel-amp-spawn) > This feature is likely to be removed in the future as external packages can > have better solutions. Is it referring to `std/threadpool` module or to just spawn procedure?

Get cursor position in terminal

2023-05-18 Thread kobi
You can repaint the whole screen, and keep track of the text just in memory, a state object. (I think this is the solution you're looking for, but it's not very efficient on its own)

Get cursor position in terminal

2023-05-18 Thread jojocoding
I am working on a project in which I use a while true: getch() loop to handle user input. I have some code to handle backspace, but currently it is very buggy when you try to backspace onto the previous line. Is there any way to get the position of the cursor in the terminal (only the X pos is n

A memory management idea

2023-05-18 Thread qinhanhan
I just don't know if there's any problem with that. so right now it's just a demo If it has a big flaw, then it doesn't need to take more effort

A memory management idea

2023-05-18 Thread qinhanhan
yes, I have done so.just need 1 bit. and You can choose which way to use it by compiling conditions. const FLAG_BIT = (sizeof(int) * 8) - 1 # high bit 1 own const OWN: int = -1 shl FLAG_BIT const UN_OWN: int = not OWN const HighBit{.booldefine.}: bool = false # true: just