Re: Is RSS URLs of nimble directory broken?

2020-03-24 Thread ksandvik
The follow-up links are also broken, ex: [https://nimble.directory/nimble.directory/pkg/eloverblik](https://nimble.directory/nimble.directory/pkg/eloverblik)

Is RSS URLs of nimble directory broken?

2020-03-24 Thread jiro4989
I'm watching the RSS of nimble directory. I think that URLs of RSS feed is breaking. [This RSS feed URL](https://nimble.directory/packages.xml) returns below. http://www.w3.org/2005/Atom";> Nim packages New and updated Nim packages https:/nimble.d

Re: "If you need an embedded C compiler" - from the latest zig blog includes an suggestion for Nim

2020-03-24 Thread LeFF
As far as I know it doesn't really cross compile to Mac OSX, but yes, Linux and Windows targets seems to be well supported. One could also try musl.cc cross compilers, if cross compilation to different Windows and Linux targets needed.

"If you need an embedded C compiler" - from the latest zig blog includes an suggestion for Nim

2020-03-24 Thread cumulonimbus
Quoting from [https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html](https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html) : > For example, maybe you have a programming language that compiles to C. Zig is > an obvious choice for what C compil

Re: Nimble raiseOSError: cannot install a package

2020-03-24 Thread cumulonimbus
Great. Probably a good idea to add [solved] to the title of your original post, makes it easier for others facing the same problem to discover.

Re: Template - how to prefix a function's name

2020-03-24 Thread mantielero
Brilliant. Thanks a lot.

Template - how to prefix a function's name

2020-03-24 Thread mantielero
How can I create a new function with a template so that the created function has its function name prefixed? Something like: template mytempl(prefix) = proc $prefix & World() = echo "hello world" Run So that: mytempl(hello) Run creates a funct

Re: Template - how to prefix a function's name

2020-03-24 Thread Vindaar
You do it like this: template mytempl(prefix) = proc `prefix World`() = echo "hello world" Run See here: [https://nim-lang.github.io/Nim/manual.html#templates-identifier-construction](https://nim-lang.github.io/Nim/manual.html#templates-identifier-construction)

Re: ggplotnim - pretty native plots for us

2020-03-24 Thread Vindaar
@spip I'll answer your question below aswell. > Is this compatible with other libraries, such as arraymancer, etc? I think > that one of the biggest strengths of the python numerical ecosystem is the > good inter-operability of most plotting libraries with numpy. So if that is > not already the

Re: Nimble raiseOSError: cannot install a package

2020-03-24 Thread JazzPlayer
**SOLVED!** I use [cmder](https://cmder.net/) as my prompt of choice, but nimble calls the standard Windows cmd, and the prompt didn't know what git was because it was not in the PATH variables (unlike the cmder that has a script that automatically loads environment variables) . SOLUTION: simp

Re: {.this: self.} pragma

2020-03-24 Thread Pixeye
thanks guys :) As far as I understood std lib with is not in 1.06 nim version?

Re: Will void be unified with empty tuple?

2020-03-24 Thread andrea
There's this [https://github.com/nim-lang/Nim/issues/7370](https://github.com/nim-lang/Nim/issues/7370)

Re: {.this: self.} pragma

2020-03-24 Thread Stefan_Salewski
There is the with and the cascade package, maybe that is useful for you: $ nimble search with cascade: url: https://github.com/citycide/cascade (git) tags:macro, cascade, operator, dart, with description: Method & assignment cascades for Nim, insp

Re: {.this: self.} pragma

2020-03-24 Thread SolitudeSF
https://github.com/zevv/with

Re: {.this: self.} pragma

2020-03-24 Thread juancarlospaco
Std Lib `with` [https://nim-lang.github.io/Nim/with.html](https://nim-lang.github.io/Nim/with.html)

{.this: self.} pragma

2020-03-24 Thread Pixeye
Why it was deprecated? Normally if something is deprecated there is a better alternative or at least a reason. + It's in the manual. It quickly becomes cumbersome to write type names everywhere if the proc is a complex one. I'm not a lazy man but it hurts my eyes :)

Re: ggplotnim - pretty native plots for us

2020-03-24 Thread spip
@Vindaar ggplotnim is a very nice library! > Is this compatible with other libraries, such as arraymancer, etc? I think > that one of the biggest strengths of the python numerical ecosystem is the > good inter-operability of most plotting libraries with numpy. So if that is > not already the ca

Nim Bugs

2020-03-24 Thread juancarlospaco
* [https://github.com/juancarlospaco/nimbug#nimbug](https://github.com/juancarlospaco/nimbug#nimbug) * `nimble install nimbug` Real life use case: * [https://github.com/nim-lang/Nim/issues/13722#issue-585682299](https://github.com/nim-lang/Nim/issues/13722#issue-585682299)

Will void be unified with empty tuple?

2020-03-24 Thread Hlaaftana
Void being `()` or `Unit` as some other languages call it allows for some nice things. Scala in particular has erased values and whatnot that take advantage of this. Some use cases in Nim would be like so: Nim currently has a feature where `let _ = foo` corresponds to `discard foo`. This is bec

Re: Control mouse in Windows

2020-03-24 Thread mashingan
Most viable option is using [winim](https://github.com/khchen/winim/) and just searching on internet how to work with Win32 API. Another way is using available example in rosetta code [simulating keyboard](https://rosettacode.org/wiki/Simulate_input/Keyboard#Nim) and add/change some codes to

Re: Control mouse in Windows

2020-03-24 Thread Tim_H
Maybe not the most compact solution, but you could call [pyautogui's](https://pyautogui.readthedocs.io/en/latest/) functions with [nimpy](https://github.com/yglukhov/nimpy) . This requires the installation of python + pyautogui.

Re: Control mouse in Windows

2020-03-24 Thread JPLRouge
hello , But with the tool you work GUI Terminal CGI

Re: ggplotnim - pretty native plots for us

2020-03-24 Thread didlybom
This is awesome! I have not really used nim for signal processing or data science work yet, but I think it would work very well with the right libraries, and this is one of the libraries that could make that happen. Is this compatible with other libraries, such as arraymancer, etc? I think that

Control mouse in Windows

2020-03-24 Thread desdeux
Hello, I need to write a simple script to move mouse cursor, can someone share some example to how to do it in Windows in nim?

Re: Gtk apps in Nim

2020-03-24 Thread Stefan_Salewski
> Why is that ? I am not looking into it as a cross platform framework. Well, when it is fine for you that there is no Android support, then you can use GTK. Linux is fine generally, Windows is fine also, but some users will not be able to install GTK libs on their box, or just refuse to conside

Re: CGI request body is JSON not multipart.

2020-03-24 Thread enthus1ast
Can you share a code example? I've never done multipart with cgi in nim, but you maybe can just send a multipart msg from the browser and in one part you send json.

Re: Blog tools - Nim

2020-03-24 Thread ThomasTJdev
There's also [https://github.com/ThomasTJdev/nim_websitecreator](https://github.com/ThomasTJdev/nim_websitecreator). You have to manually include use Prism or similar to format Nim-code, [example blogpost](https://ttj.dk/blog/2019/01/20/setup-a-website-with-nim#mainContainer).