Have I written a silly program or is there a "controlled" memory leak?

2024-03-06 Thread thegraynode
Hi, I have written a small program called nginwho for my company that parses nginx logs and stores them in a database. Here is the link to the repo: The program is compiled using `-d:release --mm:orc --threads:off` flags and Nim version 2.0.2:

Have I written a silly program or is there a "controlled" memory leak?

2024-03-06 Thread thegraynode
It always goes to `107MB` and back to `1MB`. No one restarts the program. There is no manual intervention at all. Each loop takes a few milliseconds so this memory usage does not make sense. I have added the memory report log to the repository under the name of `memreport.log`

Have I written a silly program or is there a "controlled" memory leak?

2024-03-06 Thread thegraynode
Hi Araq, I have added the nginx log, the executable and memory report log to the same repository.

Have I written a silly program or is there a "controlled" memory leak?

2024-03-06 Thread thegraynode
I have not tried with `-d:useMalloc` since I did not know about it. However, I have added the memory log report file, one of our nginx logs and the executable to the same repository.

Have I written a silly program or is there a "controlled" memory leak?

2024-03-07 Thread thegraynode
This did the trick! Thanks.

Have I written a silly program or is there a "controlled" memory leak?

2024-03-09 Thread thegraynode
Thank you everyone for your input, leading to solve the issue. Although, it still remains a mystery for me that why the memory utilization never exceeded `107MB` and somehow we always "reset" back to `1MB`.

Nim for Beginners video series discussion thread

2024-03-10 Thread thegraynode
Thank you for doing this. We need people like you to make Nim more popular.

Introducing nginwho - An nginx log parser, Cloudflare IP restorer, and untrusted traffic blocker

2024-04-27 Thread thegraynode
Hi all, I've been admiring Nim and have written some programs in it. Recently, we had to tackle a problem at work and decided to go with Nim. That is how **nginwho** came to life and we are gladly opensourcing it. **nginwho** is a lightweight, efficient and extremely fast program offering thre

Nim covered by Stephen Blum, CTO of PubNub

2024-05-07 Thread thegraynode
Hi folks, Stephen Blum is the founder and CTO of PubNub, a realtime communication infrastructure servicing billions of devices over the internet. At PubNub, they mainly use C, Rust and a bit of Python. Today, I saw he is covering Nim and that he had a very positive opinion about the language.

Upcoming "Nim for Pythonistas" talk at PyCon Italy

2024-05-26 Thread thegraynode
Great talk

Tooling update

2024-07-24 Thread thegraynode
Thanks for the hard work!

What can the community do to get Nim support on some influential platforms?

2024-08-06 Thread thegraynode
Great, thanks for sharing. Nim is also my favorite programming language and I am the most productive when using it. I also have written a few applications at work using it and the experience has been great. I am just hoping for the language to be better known in the public and skyrocket

What can the community do to get Nim support on some influential platforms?

2024-08-06 Thread thegraynode
I meant something geared more towards the real-world requirements and not the basics of the language per se. Say, creating or working with APIs, network services, JSON, CSV and Excel files, etc.