Please who can help me with nim filter

2023-12-27 Thread ITwrx
It's considered a good practice to post the solution, even if you figure it out on your own, so that people finding this post later, can see how you solved it.

The secret of Nim

2023-12-27 Thread ITwrx
Yeah, that's what i sent in too. I don't understand how the winning answer is a "crown" that doesn't even match the logo and requires flipping the image upside down, while there is already an actual crown in the image that almost perfectly matches the logo. I was prepared to not be chosen in the

Nimstrict: A case sensitivity linter for Nim

2023-12-27 Thread RegularAlias
It’s not only terrible, it’s also extremely slow. I am very interested in learning how to parse/lex, I will become good at it. Your recommended reading is very appreciated Araq, I promise I will read every line! Also Juan, its pleasant to see you here, I happened to be looking through your pack

Nimstrict: A case sensitivity linter for Nim

2023-12-27 Thread juancarlospaco
Maybe `--styleCheck:usages --styleCheck:warning` can become default in the future? 🤔

Nimstrict: A case sensitivity linter for Nim

2023-12-27 Thread Araq
`--styleCheck:usages --styleCheck:error` does the same and is built into the compiler. Also, your parser is terrible, please read

Nimstrict: A case sensitivity linter for Nim

2023-12-27 Thread RegularAlias
I've been messing around with nim for about a week or so now; one of the first tutorials I was going through mentioned the case insensitivity of Nim which struck me as a bit odd, though after reading some discussions about it online I think its a really great idea to be able to import external l

Please who can help me with nim filter

2023-12-27 Thread isaiah
>: Thanks.i wiil surely go through it.

Please who can help me with nim filter

2023-12-27 Thread isaiah
>: Thanks. i will go through it.

missing topN/partial_sort in stdlib :-(

2023-12-27 Thread cblake
FWIW, if you're going out to the nimbleverse already, it's already in [adix/lptabz](https://github.com/c-blake/adix/blob/4f4e502125d75874a56de0a7a60298de7d1d5a53/adix/lptabz.nim#L1084) and for small key spaces (like char or short-indexable) in [adix/ditab](https://github.com/c-blake/adix/blob/4f

missing topN/partial_sort in stdlib :-(

2023-12-27 Thread AmjadBHD
Why not in `std/algorithm` ?

missing topN/partial_sort in stdlib :-(

2023-12-27 Thread Araq
Nah, feel free to write one and submit a Nimble package. Translating standard textbook algorithms to Nim is not hard and probably can also be done by AI.

missing topN/partial_sort in stdlib :-(

2023-12-27 Thread AmjadBHD
Any news about this ?

`nph` opinonated formatter v0.2

2023-12-27 Thread lscrd
Sorry, I should have taken a better look at the previous posts 🙁. For me, it looks like a bug in the parser. As you said, it seems that the parser has swallowed the semicolon when processing the inner proc. Using a modified example with only standard types, I found two workarounds: either add a

Is there any working tutorial for setting up debugging in VS Code?

2023-12-27 Thread YesDrX
cool. Also Snap is pretty bad though, you may consider using choosenim () to install nim on Ubuntu.

`nph` opinonated formatter v0.2

2023-12-27 Thread arnetheduck
docs are up:

`nph` opinonated formatter v0.2

2023-12-27 Thread arnetheduck
> Am I missing something? Is there any problem with the AST in this case? Read (and test) the post above with the proc in it. > only fair to respect the choice of those who have adopted it. Happy comma users, happy semicolon users, opinionated formatter - pick any 2. Semi-colons are indeed a le

Enhancing Nim vtable implementation vs subtype checking

2023-12-27 Thread JiyaHana
Thank you all of you for your help I got answer from .

Enhancing Nim vtable implementation vs subtype checking

2023-12-27 Thread JiyaHana
Thank you for your response.

Ptr byte to cstring?

2023-12-27 Thread PMunch
Oh, almost forgot, but let's have a look at `ptr UncheckedArray[byte]` as Araq suggested. In C there really isn't any difference between a pointer to a single element, and a pointer to a series of elements. If you use square brackets on a pointer it is simply a shortcut for doing pointer arithme

`nph` opinonated formatter v0.2

2023-12-27 Thread lscrd
Sorry, I don’t understand why using `;` is not possible for identifiers with defaults. The following example is perfectly valid and I don’t see any parsing problem: proc p(a: int; b: char; c, d = 3; e = 4) = discard Run Am I missing something? Is there any problem wit

Elon Musk Keto Gummies Reviews: Is it a Scam or Legit? Must See Shocking 30 Days Results Before Buy!

2023-12-27 Thread kunivian
Official Website@Official Website Elon Musk Keto Gummies:- We are talking about Elon Musk Keto Gummies 525MG that have nutritional composition and may improve your overall health. Now, we'll talk about everything you need to know abou

`nph` opinonated formatter v0.2

2023-12-27 Thread arnetheduck
So, diving into the identifier lists, the situation is the following: * Using `,` is ambiguous if the identifier does not have a type or a default, because it then gets parsed as an extra name for the same identifier group - `;` is used to break groups * Using `;` is not possible for identif

Is there any working tutorial for setting up debugging in VS Code?

2023-12-27 Thread Clonk
FYI this extension has been forked and the recommended one to use is :