Math library for renderers and GUIs

2022-09-14 Thread Obstinate1234
> It's very similar to quaternion based rotations but there is a whole > conceptual framework behind it that explains why all of the parts work t > should be technically usable

Show Nim: New Pixie 5.0 release with significant performance improvements

2022-09-14 Thread Butler_to_Cats
My apologies for adding cruft that probably belongs on a separate thread. Hey @oyster I suspect float values are used because **Pixie** is, at heart, a vector graphics library. That it also happens to handle pixel-based images is (somewhat tongue-in-cheek) almost incidental. A slightly differen

Nim for embedded sytems documentation is unclear

2022-09-14 Thread elcritch
They’re just like other compiler settings. You can pass them as arguments in when you run the compiler. They should be prefixed with the “defines” like `nim c -d:nimPage256 …` for example. Generally it’s better to put them in a config.nims file.

Nim for embedded sytems documentation is unclear

2022-09-14 Thread Wys
The [Nim for embedded systems](https://nim-lang.org/docs/nimc.html#nim-for-embedded-systems) section of the compiler user guide is unclear. Settings such as nimPage256 and nimMemAlignTiny are mentioned, but it does not say how or where to set these. Is it done with command line switches, in th

Slow compilation time in a big project. What branch contains Incremental Compilation?

2022-09-14 Thread jmgomez
We thought about it too, there are limitations around them so I decided to do a test where we persist it back to C++, with a similar code of what we are doing with the engine and for 1.7M LoC it goes from ~33seconds to ~5 seconds. So that maybe good enough. The idea is to then precompile that C+

Custom macro for if-let statement

2022-09-14 Thread PMunch
By the way, you don't need to capitalize it. Remember Nim is case and underscore insensitive, so `avar` is the same as `aVar` and `aVAR`.

Dr. Chaos released!

2022-09-14 Thread planetis
v0.1.9 Fixes an oversight when choosing mutations and as a result improves both efficiency and performance significantly. If you haven't already tried it now it's the time. And share your results!

One screen, quick and ugly kv store. Advices needed

2022-09-14 Thread lillo
Thanks guys, the following apparently works. Is this design ok? Any obvious pitfalls? **Contents of file kvstore.nim** import lmdb type Con* = LMDBEnv proc newCon*(file: string): Con = return newLMDBEnv(file) proc closeCon*(con: LMDBEnv) =

Show Nim: New Pixie 5.0 release with significant performance improvements

2022-09-14 Thread oyster
Is there any document on pasting a small Image onto another big Image? For example, paste the small one on the big one at (x=10, y=20) After reading some exampes, I have coined the following one but without success var img = readImage("big.png") let paint = newPaint(ImagePa