NimForUE

2023-03-06 Thread Araq
> Virtual functions implemented Sweet. (Un)fortunately you got it to work without a Nim compiler codegen patch. ;-) How did you do it?

Cannot get library demos running due to linker errors

2023-03-06 Thread Phase2
Yes, I am using `uing`. I wasn't (still am) not sure whether the libraries are not properly configured, or it's a configuration issue on my side. It happened for two libraries, so I'm thinking that my setup is somehow broken. It's just so odd, because the library config files do specify the link

Overflow Checks

2023-03-06 Thread Hlaaftana
> I am also reticent to use Natural types, since you can not convert back and > forth with integers and most functions are written for integers in libraries. Not true? let a: int = 1 let b: Natural = a let c: int = b echo (a, b, c) Run The problem might be

NimForUE

2023-03-06 Thread jmgomez
yes, we are close to be "feature complete" hopefully in the future it may attract people into the Nim

Overflow Checks

2023-03-06 Thread Araq
> To me, this additional type add «color» to the functions just like > async/await construct does in Javascript Every type distinction introduces these "colors". So it doesn't actually mean anything to complain about "colored" functions.

Nim enters top 50 programming languages list on TIOBE Index!

2023-03-06 Thread dlesnoff
This is probably linked to exercism.io proposing a challenge: learn a subset of these mechanical languages challenge with Nim being in there. People are doing a lot of Google queries to learn the language, thus making our position in the TIOBE index climb. When we know Nim, it is unuseful to lo

Overflow Checks

2023-03-06 Thread dlesnoff
>From a computer algebra point of view, I still find `uint` more interesting >than `Natural` types. There are some algorithms for reduction modulo p, where >you actually want the overflow to happen. You can sometimes detect it >mathematically speaking and correct the overflow for higher performa

My Nim Development Weekly Report (3/5)

2023-03-06 Thread ringabout
Nope, I don't know the deadline for 2.0.

Overflow Checks

2023-03-06 Thread moigagoo
To add to the previous comments, if by unsigned you really mean positive, use Positive or Natural types. Then you'll have your checks, both for positivity and overflow.

Help with a simple gstreamer application

2023-03-06 Thread pp
Thanks! Was exactly this! Now works!

Overflow Checks

2023-03-06 Thread MichalMarsalek
Nim's unsigned ints do not model integers. They model integers modulo 2^width. As such, the results are accurate.