My Nim Development Weekly Report (3/5)

2023-03-05 Thread didlybom
This is awesome thank you! Do you have an idea of how far we are from the official Nim 2.0 release?

My Nim Development Weekly Report (3/5)

2023-03-05 Thread ringabout
Here are my todos =>

Overflow Checks

2023-03-05 Thread ElegantBeef
Nim prescribes to the ideology that "unsigned integers are not to be used normally, and when used you likely want wrapping" as such they're unchecked. It only makes the result inaccurate if you disregard the suggestion of using the signed variation.

Overflow Checks

2023-03-05 Thread sls1005
Why are overflow checks not performed on unsigned integers? Doesn't it probably make the result inaccurate? For example echo uint.high + 1 Run outputs `0`, even if the overflow can be detected at the compile-time. Also, the checks seem to always be performed on signe

My Nim Development Weekly Report (3/5)

2023-03-05 Thread ringabout
## Progress ### chores [remove nosinks hacks from compiler](https://github.com/nim-lang/Nim/pull/21469). [test DLL generation with ORC](https://github.com/nim-lang/Nim/pull/21445). [fixes sinkinference documentation, which has been disabled](https://github.com/nim-lang/Nim/pull/21470). ### i

ROS2 Library port (Robotics)

2023-03-05 Thread elcritch
Hey guys, it's been a while but I've started making progress on this again. Instead of making a pure Nim implementation I've start wrapping the ROS2 libraries. They're all auto-generated using a new tool for automating c2nim. So far I've created wrappers for: * RCUTILS:

Cannot get library demos running due to linker errors

2023-03-05 Thread neroist
For the libui errors, were you using `uing`? If so, can you submit an issue on GitHub? Linking errors are often caused by the library. In addition, a pastebin with _all_ of the errors would be nice.

iterators composition

2023-03-05 Thread ElegantBeef
My package Slicerator contains a `ForloopStmt` macro which gives a relatively ergonomic API to filter, map, and unpack(I need to figure out a pluggable way of making operations). const data = "1000\n2000\n3000\n4000\n5000\n6000" for x in chain data.splitLines.map(parseint(x) * 2

iterators composition

2023-03-05 Thread Hlaaftana
Came up with this on the forum a while ago:

iterators composition

2023-03-05 Thread shirleyquirk
zero_functional all the way

Debugging Memory Usage in Nim

2023-03-05 Thread noah
+1 for valgrind, dead simple usage. All my tests were passing until I added valgrind and it caught bunches of mem leaks

iterators composition

2023-03-05 Thread noah
[sugar collect](https://nim-lang.org/docs/sugar.html#collect.m%2Cuntyped%2Cuntyped) may help

NimForUE

2023-03-05 Thread noah
ive seen this project on a few gaming channels on youtube, the reception has been very positive

iterators composition

2023-03-05 Thread mantielero
How should I perform iterators composition? Should I use [zero-functional](https://github.com/zero-functional/zero-functional)? maybe [itertools](https://github.com/narimiran/itertools)? or are there other recommendations? I want to do something like: for item in thisIsMyIterator

nimqt - bindings to Qt

2023-03-05 Thread grd
Yes, you are completely right.

nimqt - bindings to Qt

2023-03-05 Thread jerous
I haven't looked much into QML, and at the moment not planning to neither. There is , though, which seems to be usable? Why should I try to integrate it into nimqt? :)

RST in nim.

2023-03-05 Thread Nlits
In my case that is sub-optimal, how would I change that? Also, I found your example works, by my simple `print("Hello World")` does not, is there a reason for this? Run

Nim enters top 50 programming languages list on TIOBE Index!

2023-03-05 Thread noah
> Looking for a "niche" for Nim to make it "big" the `niche` for me was simply `competitively create anything, for everything` an appdev's dream language in IMO it has held up to that high bar relatively well in the short time i've been using nim

Nim enters top 50 programming languages list on TIOBE Index!

2023-03-05 Thread ingo
The youngster do, they suddenly have to learn COBOL '58 and get grey hair early. The old gits have gone home long time ago.

Nim enters top 50 programming languages list on TIOBE Index!

2023-03-05 Thread RodSteward
> In the corporate and governmental world there is an enormous amount of old > software. Stuff running flawless for 45 years or more. Why change? Why > rewrite? Just maintain and extend a bit. You're probably right. However, Tiobe seems to be based much on search engine queries. If you have a S

Nim enters top 50 programming languages list on TIOBE Index!

2023-03-05 Thread ingo
In the corporate and governmental world there is an enormous amount of old software. Stuff running flawless for 45 years or more. Why change? Why rewrite? Just maintain and extend a bit.

Nim enters top 50 programming languages list on TIOBE Index!

2023-03-05 Thread RodSteward
Tiobe is weird, first "Classic Visual Basic" is on position 15. Is there such a large installed base with Visual Basic? Assembly language is on position 11 but is assembly language really a language? Fortran is on place 17, which was old even before I started programming. There is a lot of weir

RST in nim.

2023-03-05 Thread Araq
> When I use it somehow turns into The === thing === is turned into the document's title, iirc.

RST in nim.

2023-03-05 Thread Araq
Test: if True: print "hi" Run Works for me.

Cannot get library demos running due to linker errors

2023-03-05 Thread Phase2
Hello everyone, I am very new to Nim: I accidentally stumbled upon it across Reddit, and it intrigued me. I want to give it a try! Forgive me if I'm forgetting something important, but I have not been able to get a demo for two different libraries up and running: both give me linker errors, in