Question on Stream getPosition implementation

2022-11-19 Thread nero
I found that `getFilePos` is part of the `io` module, and is implicitly imported :)

Question on Stream getPosition implementation

2022-11-19 Thread nero
Hello all, First time posting on the forums. I come from primarily a Python background and Nim has been a dream to work in so far. However, I'm implementing a pcapng parser in pure Nim, and I was attempting to write my own little endian stream handler. Along this path, I went about reading the

Pigeon 0.2

2022-11-19 Thread giaco
Thanks for this!

Identifying a column of a matrix in nimbleFunction

2022-11-19 Thread Mohsin
Hi all, I am a new user of Nimble. Struggling to estimate a bivariate extreme value model writing nimble function. Can anyone please help me on the following issue. In the nimble function several variables, one of the variables x is defined as a matrix (nx2). I need to use each column of the m

A cost model for Nim v2

2022-11-19 Thread Araq
> he talks about typed exceptions, ie where static type analysis remains > applicable In the quoted paragraph he talks about how table based exceptions win performance-wise. Now your argument is that this is only true because Midori has precise exception typings but it's not clear that this inf

How do import my modules into my other modules?

2022-11-19 Thread Yrifl
How do I manage to import stuff from each other as a module? src/submodule/mymodule.nim proc HelloWorld*() = echo "Hello, World!" Run src/submodule/myothermodule.nim import submodule/mymodule Run

A cost model for Nim v2

2022-11-19 Thread arnetheduck
> Not necessarily: Indeed - he talks about typed exceptions, ie where static type analysis remains applicable - this is not the case for Nim and thus we have to pay the price. We can claw some of it back, but in many places we have to make conservative guesses which affect the happy path - on t

Pigeon 0.2

2022-11-19 Thread dizzyliam
I just released version 0.2 of _Pigeon_ , a wrapper around Prologue with a DSL for easily creating Remote Procedure Call functionality for web applications. You can find out more at [the repo](https://github.com/dizzyliam/pigeon), and try it out by installing from Nimble. Feedback would be grea

Small Nim js fib benchmark

2022-11-19 Thread dlesnoff
This JS trap could be actually mathematically correct, if we understand max and min like sup and inf: >> Math.max() > Math.min() false >> Math.min() Infinity >> Math.max() -Infinity Run See:

Why I enjoy using the Nim programming language at Reddit.

2022-11-19 Thread jasonfi
Thinking about this thread and previous feedback, I'd like to have Nexus 2's ORM feature: * The ability define models and other config with Nim objects, exportable to JSON/YAML. * The ability to define queries with Nim objects. * Backward compatibility with existing code as far as possible

Small Nim js fib benchmark

2022-11-19 Thread Araq
PRs that further reduce the JS output size or imply it can be minified better are accepted btw. Small code size is a value in itself.

Illustrated animation of handwritten letters Animation

2022-11-19 Thread Skhairul9
Behance Handwritten custom wordmark logo design with messy lettering Logo design by ananana14 Handwritten custom wordmark logo design with messy lettering Logo design by MATRAFOX 4. Morph Animations — Typically, designers pick a particular font and make sure to stay consistent across the entire

How to manually free/clear memory used by ref

2022-11-19 Thread Araq
Please try `--mm:orc`; maybe combined with `-d:useMalloc`.

Nim 2: "Memory can be shared effectively between threads without copying in Nim version 2"

2022-11-19 Thread Araq
> Should I re-root all refs of my tree after moving them? Exactly but there is no API for this yet. You can try `GC_runOrc`. :-)