How to make custom linear containers automatically converted to OpenArray, like SEQ or Array

2023-08-31 Thread hyu1996
Thank you very much for your advice, you convinced me.

Pure Nim FFT library

2023-08-31 Thread oyster
nice It could be more nice if a friendly license is supplied

Dash docsets now available

2023-08-31 Thread DMisener
Thanks for this **great** resource. My previous one was getting quite long in the tooth :-)

Dash docsets now available

2023-08-31 Thread elcritch
I tried Dash in the past, but it's really great with the Nim docs! It's just like the website but snappier. Thanks for making the docset.

nim documention

2023-08-31 Thread inv2004
I am on windows + WSL2. I use vscode + zeal + feed from the mentioned topic - works pretty good. I just press ctrl+H and

Dash docsets now available

2023-08-31 Thread inv2004
Is the last Zeal feed missed smth? Because if I search for `peekUint8` \- it shows nothing, but prev version worked fine. In both cases the function mentioned in streams module

nim documention

2023-08-31 Thread janAkali
Up-to-date docset for Dash/Zeal - [here](https://forum.nim-lang.org/t/5050).

Dash docsets now available

2023-08-31 Thread janAkali
[Nim-2.0.0.tgz](https://github.com/Archargelod/Dash-User-Contributions/blob/e3ea8dacc772b21587d1152e915163f73d9c318c/docsets/Nim/Nim.tgz) Zeal feed is the same: Generated with a script.

A few (perhaps naive) questions

2023-08-31 Thread elcritch
To be fair Nimble's lack of some of these basic commands annoys me as well. They really should be added, and some are being worked on. Note that I've been using Atlas more, which provides `atlas updateDeps`. It also takes a regex like arg. You can use Atlas with `atlas -g` to do a global packag

A few (perhaps naive) questions

2023-08-31 Thread alexeypetrushin
On the bright side, you will be able to add one more achievement to your list: 6. Dropped Nim Language because it's package manager didn't have `update all packages` command.

A few (perhaps naive) questions

2023-08-31 Thread didlybom
@Odysseus, I think there is some confusion here. As PMunch said, it is very easy to update a package using nimble. Simply install it again. If there is a newer version of the package nimble will install it for you. This is definitely not a reason to drop nim :-)

How to make custom linear containers automatically converted to OpenArray, like SEQ or Array

2023-08-31 Thread mratsim
`Slice` is a bad name, it's already used for ranges. Use `Span` or `View`

nim documention

2023-08-31 Thread mratsim
Use Dash/Zeal -

nim documention

2023-08-31 Thread juancarlospaco
Git works on Windows.

nim documention

2023-08-31 Thread maverk
but i am using windows

A few (perhaps naive) questions

2023-08-31 Thread PMunch
Well `nimble update ` is just the same as `nimble install `. If there is a new version it will be installed, if there isn't a new version Nimble still has to pull the repo to check if it has a newer version, so it can just as well reinstall it. `nimble update all` would be similar to what I des

How to make custom linear containers automatically converted to OpenArray, like SEQ or Array

2023-08-31 Thread hyu1996
issue:

Pure Nim FFT library

2023-08-31 Thread didlybom
> Yes, though it would be fun to add GPU as well and have it auto-select That would be pretty cool, let us know if you do it! :-) BTW, there is a small issue in your example. It is missing an import of std/sequtils (to be able to use mapIt). Also, do you plan to add this library to the nimble p

How to make custom linear containers automatically converted to OpenArray, like SEQ or Array

2023-08-31 Thread hyu1996
Sorry, this solution seems to have a strong side effect, it generates c code that calls autoToOpenArray twice. I can observe this phenomenon when I insert the echo statement in it. Reproducible example: type Slice*[T] = object firs

the tuple keyword is not working

2023-08-31 Thread maverk
var myTuple: tuple[int, string, float] = (42, "Nim", 3.14) echo myTuple[0] echo myTuple[1] echo myTuple[2] Run C:\Users\unknown\Documents\CODING\codes.nim(1, 38) Error: ':' or '=' expected, but got ']' Run

A few (perhaps naive) questions

2023-08-31 Thread SolitudeSF
Damn, i guess rust/go are done and finished because they dont allow you to do that either.

How to make custom linear containers automatically converted to OpenArray, like SEQ or Array

2023-08-31 Thread hyu1996
Turning on the views feature solves this problem. {.experimental: "views".} document:

Pure Nim FFT library

2023-08-31 Thread arnetheduck
> Do you have any performance measurements? They're in the readme along with similar benches for `fftw` > CPU only Yes, though it would be fun to add GPU as well and have it auto-select

Is this a Bug about enumerations?

2023-08-31 Thread Araq
Report it on github please, interesting bug.

Pure Nim FFT library

2023-08-31 Thread didlybom
This is awesome! Do you have any performance measurements? I assume it is CPU only?

How to make custom linear containers automatically converted to OpenArray, like SEQ or Array

2023-08-31 Thread hyu1996
I've tried using converter, but the compiler reports an error.

Pure Nim FFT library

2023-08-31 Thread arnetheduck
I recently had reason to revisit the FFT math and realized that I've never written an FFT library really, so here goes: let signal = (0..1023).mapIt( complex64(sin(TAU * 0.1 * float64(it # abs gets us back into real space # false for forward FFT,

Is this a Bug about enumerations?

2023-08-31 Thread callback
import std/macros type A = enum red B = enum red let a = @[red] let b = @[red] echo typeof a #seq[A] echo typeof b #seq[B] Run I don't understand why this is the case. Ho

A few (perhaps naive) questions

2023-08-31 Thread Odysseus
First, thank you for your reply! I think that this is a major drawback --there should be a neat way to update, like $ nimble update or $ nimble update all That is very bad (to my mind, at least) especially if one has installed many packages.