Question on Stream getPosition implementation

2022-11-20 Thread PMunch
If you want some inspiration you can have a look at my PCAP parser:

Pigeon 0.2

2022-11-20 Thread Araq
> As much as araq likes to claim a lack of understanding in type theory and > category theory through sheer pragmaticism and stubbornness has made the > language category theorists dream of. Thank you! But it's not that I "like" to claime it, it's just [true](https://github.com/nim-lang/RFCs/is

Pigeon 0.2

2022-11-20 Thread dizzyliam
Thanks @ajusa, great to see it in action on someone else's project! I think it's important to reduce that friction when using a pigeon server without the generated JS procs, because there's always going to be a mobile app, third-party client, or something else wanting to access the API. In the

How can nimqml being used with docker?

2022-11-20 Thread grd
I think the problem is that the DOtherSide needs to be compiled by hand, which takes a lot of time, but AFAIK this can be dealt with the Docker file. What are the other side effects of using Docker? Does anyone has a working example?

Pigeon 0.2

2022-11-20 Thread ajusa
I just updated my "simple-twitter" example code[1] to use pigeon and @treeform's taggy library. Maybe looking at it will give you ideas on how this could be made better :) Overall, I really do like the fact that the routes can be auto generated from the name of a proc. The only point of frictio

Are OpenArrays memory safe?

2022-11-20 Thread Araq
Everything what exelotl said is correct but I took the name "openArray" from Delphi. :-)

Identifying a column of a matrix in nimbleFunction

2022-11-20 Thread dlesnoff
It is sad that: 1. `Nim` often links to the `Dr. Nim` mathematical game. 2. `Nimble` is already a `R` package. The search engines still struggle to differentiate between Nim's language ecosystem and those other stuffs.

Are OpenArrays memory safe?

2022-11-20 Thread exelotl
They are just pointer,size but the semantics of the language are such that they're memory safe. * In Nim 1.x without the --experimental:views option, openArrays are only usable as parameters. You cannot hold onto an openArray, therefore it cannot outlive the array/sequence whose data it refer

Are OpenArrays memory safe?

2022-11-20 Thread RodSteward
Are OpenArrays just a pointer, size field or do they have a reference to the underlying resource in order to prevent that the resource prematurely freed. Also why call them OpenArrays and not just Slice or SubArray?

Pigeon 0.2

2022-11-20 Thread UxDnz0
This is really cool!! I love the arbitrary level of magic of writing Nim and how trivial it can be to alter the casting so to speak. ;-) Keeping easy things easy, and letting your cleverness go to systems design instead of composition of ambiguous primitives in the grammar like rust(And Nim's s

Identifying a column of a matrix in nimbleFunction

2022-11-20 Thread elcritch
Unfortunately I believe you're in the wrong place. It looks like you're after This forum is for Nim a programming language with a package manager called Nimble. :)