[newbie] go to definition is not working on vscodium on EndeavourOS(Arch based distro)

2023-09-27 Thread Levlan
I switched using choosenim to nim 2.0.0 and it works. :-( Weird. Maybe because I installed before that nim 2.0.0 using a package manager instead of choosenim? case closed.

[newbie] go to definition is not working on vscodium on EndeavourOS(Arch based distro)

2023-09-26 Thread Levlan
Is it because of nim on vscodium (vscode)? or something related to EndeavourOS?

Just installed nim 2.0 and vscodium can't run a nim program

2023-09-19 Thread Levlan
Thank you for your reply. I reported that and the reply is that the updated package in the unstable channel and soon will be available I guess. :-) <https://forum.manjaro.org/t/bug-report-new-package-nim-2-0-using-new-package-management-rules/148311/2?u=levlan>

Just installed nim 2.0 and vscodium can't run a nim program

2023-09-19 Thread Levlan
I use Manjaro linux distribution and updated nim through Manjaro's package manager (pamac). When I try to run a program, I get error: Error: cannot open '/usr/lib/nim/lib/system.nim I checked and 'system.nim' is on '/usr/lib/nim/system.nim' path, not as where vscodium is searching.

Solving cubic equations

2022-06-07 Thread Levlan
Thank you :-)

Solving cubic equations

2022-06-06 Thread Levlan
i hoped there is a library i can import and avoid writing the code by myself.

Solving cubic equations

2022-06-06 Thread Levlan
how can I solve cubic equation in nim or by using a library from another language? looking for the most simple solution.

[noob] Help with sets

2020-09-29 Thread Levlan
ok. thanks.

[noob] Help with sets

2020-09-29 Thread Levlan
I know that int alone is int64 cause int is defined to be as the size of a pointer and int64 is not allowed as written in the tutorial. So it seems i need to write the first number's type in the set explicitly to define the sets type.

[noob] Help with sets

2020-09-29 Thread Levlan
Hello I'm trying to create a set using this line: var s: set[int16] = {2, 7, 8, 9, 10} Run and i get error saying: Error: type mismatch: got but expected 'set[uint16]' Run I tried to read the explanation in the tutorial but i can't get to

Beginner - Is there a Nim's similar to a Python dictionary?

2020-07-16 Thread Levlan
Ok. Thank you.

Beginner - Is there a Nim's similar to a Python dictionary?

2020-07-16 Thread Levlan
I know there is a table in Nim which is almost similar to a dictionary in Python. But if i'm not wrong, a table can hold only same type of key:value pairs while in Python a dictionary can hold all kinds of key:value pairs inside it.

What are Nim programmers called?

2020-07-16 Thread Levlan
We are the Knights Who Say "Ni(m)". [https://www.youtube.com/watch?v=zIV4poUZAQo](https://www.youtube.com/watch?v=zIV4poUZAQo)

(Nimpy) code compiles with no nimpy pragma but doesn't with the pragma

2020-07-15 Thread Levlan
I'll give that a try. I'm still new to Nim.

(Nimpy) code compiles with no nimpy pragma but doesn't with the pragma

2020-07-15 Thread Levlan
This is the code example. if i omit the pragma "{.exportpy.}", the code compiles. but for nimpy i need to add that pragma and then the code doesn't compile. The compile error i get is : **Error: invalid type: 'var seq[Table[system.int, system.int]]' for var** import nimpy impor