Atlas -- the package cloner

2022-12-25 Thread Araq
> Can Mercurial support be added to Atlas too? Definitely. PRs are welcome.

Atlas -- the package cloner

2022-12-25 Thread EyeCon
Nimble has Mercurial support. Can Mercurial support be added to Atlas too? I think it needs these things: * Not only checking for `.git` but also for `.hg` directories when going up to find the workspace directory * Cloning from Mercurial repositories * Finding out the revision hash from M

How to further speed up the build of your Nim's projects (using ccache)

2022-12-25 Thread thindil
It depends on the file system. ZFS caches, others usually not. ccache speed up recompilation of a project even if you do clean recompilation or recompile it after restart/reboot the machine. Generally, ccache is a nice thing for large projects. Sometimes it can boost recompilation even by 90%.

non-echoing input? (password input)

2022-12-25 Thread SaeedB
**EDIT:** Discovered my `getPass()` adds backspace characters too; here's one workaround for that: proc getPassword(prompt = "Secret: "): string = stdout.write(prompt) const backspace_character = char(127) # ASCII code while result == "" or result[^1] notin

Return value for joinThread?

2022-12-25 Thread sls1005
> ... to add a getReturnValue function. Why don't just take the return value, compareing it with zero (or any other code that indicates error occurence) and raise a `ValueError` on error? The only bad about not checking the return code is unable to know if the joining succeeds.

How to further speed up the build of your Nim's projects (using ccache)

2022-12-25 Thread jasonfi
Compared to without ccache? I agree with auxym, the FS should cache anything that's needed.

How to further speed up the build of your Nim's projects (using ccache)

2022-12-25 Thread rockcavera
This tip was really good! I did the test here on Windows 10, with gcc 12.2.0, Built by MinGW-W64 project. `koch boot -d:release` on the first build took 00:01:38.10 (98.10s total). On the second build it only took 00:00:28.67 (28.67s total). The initial nim.exe is from csources_v2 for both and

How to further speed up the build of your Nim's projects (using ccache)

2022-12-25 Thread auxym
Doesn't Linux cache files in unused ram already?

question about memory management

2022-12-25 Thread mantielero
That's great. Thanks a lot. I will take a look.

How to further speed up the build of your Nim's projects (using ccache)

2022-12-25 Thread juancarlospaco
If you want to investigate these kind of things, I also ran ptrace in nim itself, in a few random compilations of nim and see it reading the stdlib files from disk, very very frequently, I have enough ram to fit the stdlib files on RAM, maybe something like tmpfs can be used automatically when f

How to further speed up the build of your Nim's projects (using ccache)

2022-12-25 Thread bung
so it share file cache across projects, does it also speed up same project ? as nim already have file based cache, and my use case is debuging compiler, so I modify the compiler and boot it run against test case again and again, that's a slow compilation time for me when I work on a mini PC.

How to further speed up the build of your Nim's projects (using ccache)

2022-12-25 Thread CraneDancingShape
This is a question as a category, but it's actually a report of what I've done. (If there are any mistakes, I would be very happy if you could specify them.) There are a few stories on github/Nim issues and forums about using ccache, but this will be a report of how much it specifically improves

Uncatchable JsonParsingError when encountered in a macro

2022-12-25 Thread wilsonywx2
Re: "who wants the compilation to continue after illformed JSon that you try to eval at compile time?" What I was trying to do is use staticExec to run some other process, then parse the output string. The compilation definitely should fail when the parse fails, but I thought it would be nice t

question about memory management

2022-12-25 Thread Stefan_Salewski
> I am wrapping a little bit of poppler just aiming to extract some images from > PDF's. Unfortunately Google was not able to find your valid email or postal address. I have added poppler to gintro. You may test with nimble uninstall gintro nimble install gintro@#head

question about memory management

2022-12-25 Thread Stefan_Salewski
> As @shirleyquick pointed out you used a license that explicitly allows this. > This is afterall what free software allows, actual ownership of code. Yes, I have to agree. GitHub seems to allow forking for all public projects, independently which license the project actually is using. I think t