I Have Created a Kinda Logging Solution :)

2024-05-05 Thread pp
Just a note: I think it makes no sense in the except branch to try to write to the stream again. If it failed just use echo like you did.

FrameOS

2024-01-03 Thread pp
Just found on Hackernews FrameOS , an interesting project written in Nim! As I have not found any reference here in the forum I am posting the link (I am not involved in any way).

nlvm 1.6.16 - now with a REPL

2023-11-29 Thread pp
Probably I am saying something crazy... but... llvm based nim seems to provide a lot that C based nim struggles to obtain, why not invest more in it? Is this crazy?

Type mismatch when trying to add to custom seq

2023-08-25 Thread pp
Works using intermediate variables (and one var in proc definition):

Type mismatch when trying to add to custom seq

2023-08-25 Thread pp
This works for me trying to reconstruct missing parts:

Nim version 2.0.0 is here

2023-08-04 Thread pp
Normally this is antivirus-related stuff

Nim Sucession Plan

2023-06-30 Thread pp
Lol! My Latin teacher was saying "Omnia pura puris" that translated is "Everything is pure for pure people"

Nimble does not do anything.

2023-06-27 Thread pp
I confirm that I had issues with the antivirus. Nimble does not even respond to --help or similar. No output at all. I installed nim and nimble in a virtualbox virtual machine and connect through ssh with VSCode, with this approach is working nicely.

Teach you to write nim code comfortably use vim if you like vim you must try :)

2023-05-21 Thread pp
Nice! Recently I started using VS Code for the only reason that the only good Nim plugin was for it!

Nimforms - A simple GUI library for Windows

2023-04-12 Thread pp
Really nice!!! Thanks!!!

Object Arrays

2023-04-09 Thread pp
You can always make array of raw pointers to your data structures... a bit low level, but you can achieve what you want.

Nim in production #2: 100k+ WebSocket connections on one small VM, lots of CPU and RAM to spare

2023-04-06 Thread pp
About websocket does Nim have support for `socket.io` with `C` backend? Do you use some kind of library or plain websockets where you put your implementation on top?

Compile error “no socket”

2023-03-08 Thread pp
To better share the code you can also use `Try it online` button on `https://nim-lang.org/` and than you share a link with the `share` button on bottom left

Help with a simple gstreamer application

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

Help with a simple gstreamer application

2023-03-03 Thread pp
I have seen this, I think my issue is simpler: something related to the `{.header:"gst/gst.h"}` pragma, but I am not yet that skilled with nim to understand what I have done wrong.

Help with a simple gstreamer application

2023-03-03 Thread pp
Hi, i am trying to implement a simple gstreamer application with nim, but I need some help: This is the C code #include #include int main(int argc, char **argv) { const gchar *nano_str; guint major, minor, micro, nano; gst_init(&argc, &argv)

why use nim over c#?

2023-03-01 Thread pp
Mee too I ask myself what does it means `timeout`, seems weird that a lot of tests have this result. ^_^

Returning to Nim from Python and Rust

2023-02-18 Thread pp
I agree with bitstorm about the debugger... would be important to have it working right of the box.

Who wants to do a GSoC about FreeCAD? Program in Nim!

2023-02-13 Thread pp
I don't know why people use always acronyms for the most significant part of the message not ever using the word once. Nothing against `grd`... I have seen this everywhere...

Wanted libraries wishlist?

2023-02-11 Thread pp
I don't know if there is another thread about this topic. What library are you missing in Nim? I think could be useful to have a list of what would be desirable so, if anyone wants to contribute writing a new library, can have a clue of what is missing in the ecosystem. What do you think?

Is there a way to print the documents without printing the rest of the html?

2023-01-05 Thread pp
Please, could you specify better what you want to achieve?

A seasoned programmer's take on Nim's docs

2023-01-04 Thread pp
Hey guys... we are here for the same reason: we love Nim Make Love and not War. And about documentation we will expect pull requests from @jtv ! Keep going to improve further Nim during this year!

strictNotNil and bogus “cannot prove” errors

2022-12-14 Thread pp
This is a hard but good critique :) with your help nim can only became better!

A question about random returns

2022-12-09 Thread pp
You can write your code into the playground at than pasting the link generated we can check your code

A question about random returns

2022-12-09 Thread pp
Sorry, reading better seems you did use `randomize` was at the beginning of the module?

A question about random returns

2022-12-09 Thread pp
I guess you missed to call `randomize` #from https://nim-lang.org/docs/random.html import std/random # Call randomize() once to initialize the default random number generator. # If this is not called, the same results will occur every time these # examples are run.

A new way for Nim to shine ? Faster than NodeJS interpreted Nim, taking advantage of declared types

2022-12-09 Thread pp
Personally, using python, my biggest concern is to have too much runtime exceptions due to absence of typing. Anyway what you ask could be covered by incremental compilation which as far as I know is already a priority and core developers are working hard on it.

Install issue from choosenim [Windows]

2022-11-18 Thread pp
Did you try to exit the shell and open another one? Environment variables could be old

new to nim install fail Ubuntu 22.04.1 LTS

2022-11-14 Thread pp
Hi, you should provide more info: what error messages you got?

Tips on how to avoid Nim pointer instability bugs?

2022-10-26 Thread pp
Why don't get rid of this for Nim 2.0? Is it overcomplicated?

Hello Javascript!

2022-10-16 Thread pp
I don't mind this particular question. I just want to see nim shine and rise in popularity. A lot of times questions could be focused on a particular which is really unimportant, this kind of questions come often by newbies that focus on premature optimization (before trying to fly start to stay

Hello Javascript!

2022-10-16 Thread pp
I understand that some questions could seem to you @araq a bit boring... But I am looking at the latest posts and each of your answer is not, let's say the politest of the worlds. So relax! Dedicate yourself to more difficult tasks, let newbies answer to newbie questions and don't take it as an

Cannot run nimble on windows

2022-09-09 Thread pp
Unfortunately I cannot disable antivirus due to company restrictions. But I have launched nimble inside a Visual Studio debugger to understand if I could have more clues about what was happening. The process terminates with: > Unhandled exception at 0x7FFE305ABDA8 (InProcessClient64.dll) in

Cannot run nimble on windows

2022-09-08 Thread pp
Unfortunately no luck...

Cannot run nimble on windows

2022-09-08 Thread pp
My System is **Windows 10 Pro** Currently I tried with 3 version of the compiler package, with both `cmd.exe` and `powershell` I get no output from `nimble.exe` or `nimble.exe --version` or any other test I did: Following version on nim which I tried to use nimble. As you can see nim works, th

Cannot run nimble on windows

2022-09-07 Thread pp
Hi guys! I cannot manage to run nimble on Windows... and that's annoying because I cannot install dependencies. Simply it does not show any output, it could be an antivirus related issue, but I guess I would receive some sort of notification (like I receive for `nimgrep` and other executables t

Info about gcc compiler options used by nim

2022-08-30 Thread pp
Also this is a nice way to understand what is inside... thanks!

Info about gcc compiler options used by nim

2022-08-30 Thread pp
Cool! Thanks. I see that also the `.json` file seems to contain all build and link instructions. This is really nice, gives a lot of insights.

Info about gcc compiler options used by nim

2022-08-30 Thread pp
Hi, I would like to have more info about performing the compiling process step from C to binary manually. Starting from the `~/nimcache/` folders where I have the source C files created by nim, what options are given to C compiler? What folders should be included that contain other C sources?

Nim cross-compiled in OpenEmbedded

2022-08-23 Thread pp
Cool man!

Nim without libc?

2022-08-22 Thread pp
Maybe there is some potential using , that can create executables that work on 6 OS with no change (Linux, Mac, Windows, NetBSD, FreeBSD, OpenBSD). I was asking myself if any Nim guy did play with this... and this post gives me the opportunity.

Need some direction on macros.

2022-08-19 Thread pp
If you know the js code only at runtime seems like you need to have/write an interpreter...