use of zip fails with 1.4

2020-10-26 Thread FabienPRI
ok found, already fall in this one

Is there any PWA (Progressive Web Apps) framework or package written in nim?

2020-10-26 Thread mitai
it is very simple actually:

Norm 2.0.0

2020-10-26 Thread moigagoo
I'm happy to announce that Norm 2.2.0 has just been released. This is quite a fat release, fixing a couple of nasty bugs: * JOINs have been reimplemented allowing to have fields with the same names in related models. That fixes the issue reported a few posts higher:

Testament & module

2020-10-26 Thread Araq
Use the "file: " property in the discard section.

Isolated [T]

2020-10-26 Thread mratsim
I didn't look that much into Go channels but you have a presentation there including the datastructures field: * * Source code: * talk:

use of zip fails with 1.4

2020-10-26 Thread FabienPRI
Hi, I moved a 1.0 project to 1.4. This project uses zip. When I compile it, I've got a set of errors: libzip_all.c.o:libzip_all.c:(.text+0x117): undefined reference to 'zError' libzip_all.c.o:libzip_all.c:(.text+0x2dc1): undefined reference to 'crc32' libzip_all.c.o:libzip_all.c:(.text+0x2e67)

Is there a way to see if a module exists at compile time?

2020-10-26 Thread Araq
Still the best option as far as I know, yes. The `do:` is a regular block. It is needed because the parser doesn't accept `compiles(import std/sha1)` as "import" is a statement and not valid in an expression context. You can avoid it via a helper template. See `tests/modules/tcanimport.nim` for

Is there a way to see if a module exists at compile time?

2020-10-26 Thread Stefan_Salewski
> when (compiles do: import std/sha1): Is that still the best option? And what is about the "do:"? Secret keyword or just a block? And why is block needed? See

Square brackets for generics

2020-10-26 Thread Yardanico
Solitude is right, but there is another problem with square brackets together with UFCS in Nim - a.b[T](https://forum.nim-lang.org/postActivity.xml) doesn't work, for that a new syntax extension was introduced - a.b[:T](https://forum.nim-lang.org/postActivity.xml) so it's not ambiguous.

Square brackets for generics

2020-10-26 Thread xigoi
Well, you can't determine that at parse time. Which leads me to believe that this is possible in Nim precisely because Nim's parser doesn't need to distinguish between types and values, unlike other languages.

What Nim projects are you working on?

2020-10-26 Thread dom96
> Can we do this as some kind of weekly thread, or should that be done on the > Reddit instead? I think monthly is more realistic. But yes, let's do it. Someone want to set up a bot that will auto-post every month? :)

Square brackets for generics

2020-10-26 Thread SolitudeSF
how is that ambiguous? one is collection, other is function.

Square brackets for generics

2020-10-26 Thread xigoi
On many programming subreddits, there are arguments about using square brackets[] for generics instead of the cumbersome angle<> brackets, particularly in Rust and Go. The most common point brought up is that expressions like `foo[x]()` would be ambiguous — is it a generic function call, or a u

Isolated [T]

2020-10-26 Thread elcritch
> It is only slightly slower than lock-free even when a high number of > allocations is demanded because the channels are recycled, only issue for > long-running application is that the memory of recycled channels is never > freed. Not sure precisely what you mean with allocations here, but mal

What Nim projects are you working on?

2020-10-26 Thread miran
> I don't think that it should be done on Reddit, this forum is fine :) ¿Why not both?

Testament & module

2020-10-26 Thread Clonk
Hi, I was wondering if there a way to do use testament to check errormsg coming from another module without having the test fail with `reFileDiffers` ? Example : local.nim when defined(work): echo "Ok" else: {.fatal: "KO".} Run tests/test.n

What Nim projects are you working on?

2020-10-26 Thread Yardanico
I don't think that it should be done on Reddit, this forum is fine :)

What Nim projects are you working on?

2020-10-26 Thread Hlaaftana
Can we do this as some kind of weekly thread, or should that be done on the Reddit instead?

Isolated [T]

2020-10-26 Thread Araq
"flow control" is it, yes, thanks. :-)

Isolated [T]

2020-10-26 Thread cblake
Were I to speculate, dealing so often with the word-flipped "control flow" in a compiiler might cause "flow control" to be peskily elusive. Lol.

Isolated [T]

2020-10-26 Thread cblake
Maybe more ["flow control"](https://en.wikipedia.org/wiki/Flow_control_\(data\)).

Isolated [T]

2020-10-26 Thread boia01
I think you're thinking about the term "back pressure".

What Nim projects are you working on?

2020-10-26 Thread torarinvik
I really liked it. I have a project that Im working on now, but once I get the time I will install and start learning some of the stuff.

Isolated [T]

2020-10-26 Thread Araq
I thought about a disruptor-inspired channel that doesn't hide the underlying fixed-size array structure so that you can request N items rather than a single item. The fixed array also acts as an automatic pacing mechanism, ensuring the producer doesn't get ahead of the consumers too much. (For

What Nim projects are you working on?

2020-10-26 Thread drkameleon
Well, Arturo certainly favors "normal" syntax (no, not COBOL-style normal for sure, but english-like and readable enough for sure). Btw, I've just published the first complete reference (language reference + full library reference, with tons of examples):

Isolated [T]

2020-10-26 Thread mratsim
Beyond my "lock-less" channels (no lock but not lock-free in the sense of the academic comprehension), there is also a lock-based fast channel that comes from the Michael & Scott paper