Re: Nim playground

2019-09-20 Thread treeform
That looks great. How does the isolation work?

Re: distinct types

2019-09-20 Thread avandy
Thanks for the reply. But no, it's a subtype. I need a distinct type, so I couldn't mix it up with the usual trivial float and double

Re: distinct types

2019-09-20 Thread Araq
My Ada is rusty but I think `type DAC = range[0.0 .. 1.0]` does what you need.

Nim playground

2019-09-20 Thread vishr
Folks, I wanted to shared [https://code.labstack.com/nim](https://code.labstack.com/nim), an online Nim programming playground. I hope you will find it useful. Thanks.

Re: --proxy switch for nim/nimble?

2019-09-20 Thread dom96
See [https://github.com/nim-lang/nimble#configuration](https://github.com/nim-lang/nimble#configuration) (search for proxy) You can also set the standard HTTP_PROXY environment vars IIRC.

--proxy switch for nim/nimble?

2019-09-20 Thread peterino
Hi there i've been enjoying nim a bit for personal projects but want to do something at work with it, but i need to get around a corporate firewall, is there an equivalent to pip's --proxy switch for nim/nimble?

Re: How to get Nim running on iOS and Android using GLFM.

2019-09-20 Thread treeform
@lxdong thanks! @akavel your project is super cool. I did not think that getting rid of Android Studio is possible. I was hoping to generate Android Studio project files + gradle files + cmake files and just run Android Studio via command line. My other though was that someone would want to use

Re: Auto-generate Nim API client for REST APIs

2019-09-20 Thread treeform
This looks really cool. Do you have a list of APIs that have been generated?

Re: How to get Nim running on iOS and Android using GLFM.

2019-09-20 Thread akavel
@treeform You may find my [dali](https://forum.nim-lang.org/t/4840) project potentially interesting — though it's super early stage as of now (alpha/PoC). I managed to assemble a simple hello-world.apk purely from Nim, absolutely no JDK or Android Studio - though it required the Android NDK (i.e

Re: nim cannot reference libraries installed with nimble.

2019-09-20 Thread ffred60
on Windows you have to add two paths to your system setting; Nim install path and nimble storage path. for me it's : C:\Programs\nim-0.20.0_x64\bin D:\Users\ffred\\.nimble\bin I set those paths before using "nimble install.." command. don't know where it goes if you don't set the path b

distinct types

2019-09-20 Thread avandy
Hi all. Playing with nim. I can not understand whether it is possible to specify both a distinct type and subrange? How can it be done beautifully? I do so type float_range = range[0.0 .. 1.0] type DAC = distinct float_range proc print(x: varargs[DAC]) = for i in

Re: nim cannot reference libraries installed with nimble.

2019-09-20 Thread hugogranstrom
I think moigagoo meant choosenim [https://github.com/dom96/choosenim](https://github.com/dom96/choosenim)

Re: Nim on MIPS

2019-09-20 Thread federico3
FYI: Nim is building and passing its tests on mipsel and mips64el: [https://buildd.debian.org/status/package.php?p=nim](https://buildd.debian.org/status/package.php?p=nim)

Re: nim cannot reference libraries installed with nimble.

2019-09-20 Thread nnahito
And I added the path of nimble's package folder "System environment variables" to "Path" of "D: nimble pkgs". The same error occurred.

Re: nim cannot reference libraries installed with nimble.

2019-09-20 Thread moigagoo
You probably haven't added nimble packages dir to your PATH. Also, you should install Nim with choose I'm. Scoop is awesome, but choosenim is the way to go these days.

Re: nim cannot reference libraries installed with nimble.

2019-09-20 Thread nnahito
Thank you for your reply, moigagoo. You said, "Select I'm" What is "I'm"?

nim cannot reference libraries installed with nimble.

2019-09-20 Thread nnahito
I use Windows 10. The version of nim is 0.2. 2. I would like to use jester. So I ran "nimble install jester" at the command prompt. The installation was successful and no errors occurred. However, an error occurs in "import jester". import jester routes: get "/":

Re: Nim on MIPS

2019-09-20 Thread Araq
I stand corrected.

Re: Nim on MIPS

2019-09-20 Thread ffred60
I don't really see it dying. there are still many OpenWRT products and SBC (Small Board Computer) with MIPS processors and they open sourced a part of their architecture, so still more uses to come. why wouldn't we use Nim on MIPS platform, that doesn't seem to be a problem for Go...

Re: Nim on MIPS

2019-09-20 Thread dponyatov
PATH=/home/dpon/ICBLINK/openwrt-18.06.4/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin:/home/dpon/Android/Sdk/platform-tools/:/home/dpon/Android/Sdk/build-tools/29.0.2/:/home/dpon/Android/Sdk/cmake/3.10.2.4988404/bin:/home/dpon/.nimble/bin:/home/dpon/Java/jdk1.8.0_162/bin:/home/dpon/Jav

Re: Nim on MIPS

2019-09-20 Thread dponyatov
All SOHO routers around me are built on RT5350, but it does not matter as OpenWrt is the same system both for MIPS and modern ARM-based devices. The only single little article is needed on how to integrate Nim with cross-compiler toolchain, or just a single hello project on GitHub.

Re: "error" block of Jester does not work when using custom routers

2019-09-20 Thread Hideki
I opened an issue in the GitHub repo as it was reproduced at #head. [https://github.com/dom96/jester/issues/211](https://github.com/dom96/jester/issues/211) The above code is a minimal one to demonstrate the problem. I'm coding API generator for Jester, and I need to define some routers in separ

Re: Nim on MIPS

2019-09-20 Thread Araq
Maybe it's because MIPS is almost dead. ;-)