WTF ?! basic computations are faster in py3 than nim1.6 ?!

2021-10-28 Thread manatlan
@shirleyquirk ... Completely amazing ... Your work is astonishing Could it be the fastest in the world ?! I'm pretty sure it is ...

Trouble with or'ed type and var return type.

2021-10-28 Thread Araq
The `|` operator for types doesn't "lift" the properties of the or'ed types: If A and B are mutable, `A|B` still isn't. That said, array indexing for `ptr T` is just wrong anyway, it's indexing into `ptr UncheckedArray[T]` and type systems and compilers work better when you're precise.

Nim with curly brace and tab

2021-10-28 Thread Araq
We used to have this feature but couldn't maintain two separate parsers for an evolving language and these days I prefer editor-based solutions. Make your editor render the code as you please, this way it's much easier to get a consistent look and feel.

sequitls documentation outdated?

2021-10-28 Thread xigoi
`add` is in `system`, not `sequtils`.

Metaprogramming in Nim #1 Introduction

2021-10-28 Thread SunnyCorleone
I would never insult someones writing or speaking ability in a non native language - as long as the meaning is conveyed then it's a success as far as i'm concerned, and especially in this case given that Stefan's English is far superior to what my German will ever be. That said, I do find it ir

sequitls documentation outdated?

2021-10-28 Thread oden
Oh.. for some reason I thought sequtils was automatically imported.. since other functions are available without import like "add"...

Nim with curly brace and tab

2021-10-28 Thread nimnewbie1
A newbie, just a request and not a rant. Because Nim gave option to have case insensitive so that different people can choose their own style. Will Nim do the same for curly brace by adding curly brace too. So projects which like curly, they can use that and projects which like tab can use that.

sequitls documentation outdated?

2021-10-28 Thread ElegantBeef
You didnt import `std/sequtils` [it works fine](https://play.nim-lang.org/#ix=3DeK)

Trouble with or'ed type and var return type.

2021-10-28 Thread geekrelief
I'm wondering why the iterator `mitems` with an or'ed type doesn't compile. The error originates from line 32 when using an `UncheckedArray`: expression has no address. If you comment out the last `mitems` and uncomment the two above, it works fine. I'm try

sequitls documentation outdated?

2021-10-28 Thread oden
Hi so in the sequtils documentation the "insert" function does not work as described... here's the link to the function: trying to run the example code on nim playground does not work..

NIM IDE

2021-10-28 Thread Yardanico
I don't get your point - install count (or download count) almost never correlates with software quality, it rather shows software popularity, and kosz extension has 48k installs because it has been around for much longer. Nowadays it's not maintained while the saem extension is, so it actually

NIM IDE

2021-10-28 Thread SunnyCorleone
The typescript VS Code Nim plugin has 48k installs vs 3k for the saem Nim version. Are you recommending that people use the Nim version because its better, or because you hope it becomes better in the future with support?

Nim 2.0 -- thoughts

2021-10-28 Thread Arend
I'd like to see Zig's style handling of errors rather than try/catch blocks

Nim for Beginners video series discussion thread

2021-10-28 Thread Kiloneie
Okay i will get in touch with you most probably tomorrow. My settings have been mostly trial and error with some research(acoustics are not the problem, my room is just naturally built well). Thank you for your time btw :).

Nim for Beginners video series discussion thread

2021-10-28 Thread Zoom
This doesn't look right, but it depends on your hardware. 1\. Make sure you're on the latest build of OBS. The strength parameter for the RNNoise is about to be merged in ([#3299](https://github.com/obsproject/obs-studio/pull/3299)) and it can do harm without it. I advice moving it later in the

Basic nimterop usage for simple c++ struct?

2021-10-28 Thread Araq
Try this: git clone https://github.com/nim-lang/c2nim cd c2nim nim c c2nim cp c2nim somewhere_in_your_$PATH Run c2nim has no dependencies anyway, no need to bother Nimble with it.

Basic nimterop usage for simple c++ struct?

2021-10-28 Thread ggibson
@ynfle Yes, but I didn't write that. This is the problem. @Araq, ah okay, I'll use c2nim. Thank you for the direction. So far I'm struggling even installing c2nim. I wonder if c2nim does not work yet with `v1.6`? I'll poke at it some more. > nimble update ... › nimble insta

Basic nimterop usage for simple c++ struct?

2021-10-28 Thread Araq
I don't know if nimterop supports C++. c2nim does support C++.

Basic nimterop usage for simple c++ struct?

2021-10-28 Thread ynfle
You have a field in your nim type object that is of type `rewards`. You haven't declared such a type. I'm pretty sure you can just use `importc` and let it do the rest, you don't have to declare the fields etc.

Basic nimterop usage for simple c++ struct?

2021-10-28 Thread ggibson
* I'm wrapping some simple c++ code * I have manual wrapping experience, but am trying to learn nimterop so I can scale to wrapping larger codebases * I'm reading the nimterop docs and API for `cimport` * nimterop seems to break for a simple struct with a vector Questions: * What's t

Nim for Beginners video series discussion thread

2021-10-28 Thread Kiloneie
Thanks for link and all. **Currently my OBS settings are the following:** * Mic sensitivity in OBS at -45 dB with the following filters in this order: * Noise Suppression: RNNoise * Expander: * Ratio: 12.50:1 * Treshold: -34 dB * Attack: 2 ms * Release 120ms * Detec

NIM IDE

2021-10-28 Thread DIzer
If you so like PyCharm perhaps you will stick with the Nim plugin for it (from Intelli JDEA creators)

Nim for Beginners video series discussion thread

2021-10-28 Thread ThomasTJdev
@Kiloneie \- keep them coming. Yes, there's something with the sound - but after 1 year of COVID-online-meetings I have been sitting through much worse sound ;). I like they way that you telling the name of procedures e.g. while typing them. As @giaco mentioned the videos are good for sharing; s

Metaprogramming in Nim #1 Introduction

2021-10-28 Thread giaco
I've read both books and I liked them both, even from someone who was programmer before starting. There's no need to point out that the target is different, it's quite obvious no matter the previous experience. I think that there's no need to discourage the author putting personal views into th

AI in Nim

2021-10-28 Thread oyster
but it uses/depends on python

AI in Nim

2021-10-28 Thread juancarlospaco
Maybe useful too

Nim for Beginners video series discussion thread

2021-10-28 Thread Zoom
> Your feedback is great, but there is no need for this part. Absolutely no _need_. However, we're not in a meeting and aren't reviewing technical writing. You managed to remove the only personal and informal sentence from my reply. You cite me omitting the smiley so it looks passive-aggressive

Metaprogramming in Nim #1 Introduction

2021-10-28 Thread dom96
> Yes of course, that should be obvious, at least after all our discussions, or > after having a short look at the book. It might be obvious to some, but not all. Words matter, don't assume people will just be able to guess what you mean. > @carterza Your video critics are very precise hitting

Nim for Beginners video series discussion thread

2021-10-28 Thread Araq
> And you'd like it to sound professional now, being sponsored for you work and > all that, wouldn't you? Your feedback is great, but there is no need for this part.

Nim for Beginners video series discussion thread

2021-10-28 Thread Zoom
The audio quality is indeed lacking. The main issue of earlier videos was an overwhelming level of ambience, but it seems you dealt with it. However, clipping distortion is much worse! Most probably, the gain of mic preamp is set too high. In this case you need to lower it and compensate the lev

AI in Nim

2021-10-28 Thread Vindaar
Thanks for cleaning up the code and making it work on current Nim! Feel free to open a PR. @archnim: Aside from the things that were already mentioned, we're currently also building a PyTorch wrapper (technically a libtorch wrapper, the C++ backend of PyTorch):

Metaprogramming in Nim #1 Introduction

2021-10-28 Thread Araq
> Now that we know that Araq has reviewed the videos and even paid Mr. > Kiloneie, I really wonder why he did not tell him how to improve them. I didn't review all of them nor did we pay for all of them, only the more recent ones. And I keep telling him to change the format and what to watch for

Metaprogramming in Nim #1 Introduction

2021-10-28 Thread Stefan_Salewski
Sorry, I really tried stop writing more in this thread -- I have really hijacked the thread :-( @dom96 >So what @Stefan_Salewski really wanted to say was "Nim in Action has a different target audience, I wanted a book that targets those who have never touched programming before?" Yes of course