The follow-up links are also broken, ex:
[https://nimble.directory/nimble.directory/pkg/eloverblik](https://nimble.directory/nimble.directory/pkg/eloverblik)
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
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.
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
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.
Brilliant. Thanks a lot.
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
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)
@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
**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
thanks guys :) As far as I understood std lib with is not in 1.06 nim version?
There's this
[https://github.com/nim-lang/Nim/issues/7370](https://github.com/nim-lang/Nim/issues/7370)
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
https://github.com/zevv/with
Std Lib `with`
[https://nim-lang.github.io/Nim/with.html](https://nim-lang.github.io/Nim/with.html)
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 :)
@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
*
[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)
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
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
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.
hello , But with the tool you work GUI Terminal CGI
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
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?
> 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
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.
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).
27 matches
Mail list logo