Re: How to start NIM on Linux ?

2016-12-10 Thread komerdoor
I already answered that question above. Knoppix is Debian based. Try `sudo apt-get install nim` from a terminal. Also no need to start and end with a greeting everytime ;)

Re: How to start NIM on Linux ?

2016-12-10 Thread Mennohexo
I have the KNOPPIX LINUX Computer online. I am online with LINUX now. How can i find the package NIM ? Regards Menno hexo

Re: Newyear is coming , is 2017 the year for nim?

2016-12-10 Thread Libman
An optimistic but reasonable growth goal for Nim's takeoff is a threefold popularity increase per year for the next few years. If that was so, it would roughly mean this a year from now: * 10,000 [github stars](https://github.com/showcases/programming-languages). * 10,000 [+"nim

Re: GUI programming

2016-12-10 Thread Mennohexo
Hi , Agent means to be a flexible tool between in some programming strategies. For example : Application needs a external program with features that are not so easy to program in the main Apps language that is used. or a interface app etc. As i can see from your kindly answers in this

Re: Newyear is coming , is 2017 the year for nim?

2016-12-10 Thread flyx
I have heard that 2017 will already be the year of Linux on the desktop, so Nim might have to wait one more year.

Re: How to start NIM on Linux ?

2016-12-10 Thread Mennohexo
I see that i have i386 System

Re: Newyear is coming , is 2017 the year for nim?

2016-12-10 Thread bpr
Wicked sense of gallows humor, @Ar! > When we gonna have a stable api for 1.0 ? Over under bet: Nim 1.0 or "Winds Of Winter"? @Ar's O/U: Nim 1.0 or "A Dream Of Spring"

Re: GUI programming

2016-12-10 Thread Stefan_Salewski
Well, maybe start here, they have a lot of starting GUI tutorials -- not one for Nim currently: [http://zetcode.com](http://forum.nim-lang.org///zetcode.com)/

Re: GUI programming

2016-12-10 Thread Mennohexo
Thanks. Yes i am new in LINUX. Not new in programming but i have made the programming strategy ready in the last 2 years. So i am interested in a flexible language as a agent language. For example : type C Code and insert that code but use another GUI library as GTK. I dont like GTK and

Re: How to start NIM on Linux ?

2016-12-10 Thread komerdoor
Yes, at (you may also try the unstable one): [https://packages.debian.org/stretch/amd64/nim/download](https://packages.debian.org/stretch/amd64/nim/download) You may also find other packages there. Just search for them. Sometimes you have to download all the dependencies you are missing as

Re: GUI programming

2016-12-10 Thread komerdoor
Just try them all (not only libui) and see what you like best. Create a simple _hello word_ button. You will also learn that most GUI libraries are not that different from each other. May be only some features. The same counts for different programming languages as well. New paradigms are more

Re: GUI programming

2016-12-10 Thread Mennohexo
Libui Access Granted

Re: GUI programming

2016-12-10 Thread Stefan_Salewski
> Do i have to learn a new GUI language for that programming ? When you have experience in GTK3 programming in C already, you can just start with GTK3 and Nim, it is very similar. You can even convert C GTK3 code to Nim with the tool c2nim, do some modifications, and are done. But to be

Re: GUI programming

2016-12-10 Thread komerdoor
Yes. But for most of them you are actually using and learning the same interface as the one you would use when using C, Python etc. I am not sure if you are new to programming. In modern programming it is best to be flexible about learning new libraries. The way all the different GUI libraries

Re: How to start NIM on Linux ?

2016-12-10 Thread Mennohexo
HI again , i have a windows computer that is online. Is it possible to get there a .deb package with NIM ? WBR Menno hexo

Re: GUI programming

2016-12-10 Thread Stefan_Salewski
And of course nimx and QML. And note that latest GTK 3.20 wrapper is at [https://github.com/ngtk3](https://github.com/ngtk3), I will delete the old 3.15 wrapper in the next days...

Re: Newyear is coming , is 2017 the year for nim?

2016-12-10 Thread komerdoor
`lim v -> 1` or buffer overflow / out of memory :D

Re: GUI programming

2016-12-10 Thread komerdoor
You can also use `libui`. A simple cross platform UI library. I found a Nim wrapper at (by Araq): [https://github.com/nim-lang/ui](https://github.com/nim-lang/ui) If you need a UI for use in a game or very interactive application you may try out a Immediate Mode Graphical User Interface. Have

Re: GUI programming

2016-12-10 Thread Krux02
depending on what you want, there are wrappers for [GTK2](https://github.com/nim-lang/gtk2) [GTK3](https://github.com/StefanSalewski/nim-gtk3) , and [AntTweakBar](https://github.com/krux02/nimAntTweakBar). The last one is just meant to be used as an overlay for game development and therefore

Re: How to start NIM on Linux ?

2016-12-10 Thread komerdoor
I updated my comment above. If the computer is offline. Download the packages from a computer with an internet connection and store them on a USB drive. In Debian and Ubuntu you can use `apt-get download nim`. Store the downloaded files on a USB drive. On the offline computer, after mounting

Re: How to start NIM on Linux ?

2016-12-10 Thread komerdoor
Hello Menno, To add a directory inside the path you can do `export ${PATH}:/some/directory`. Modify `/some/directory` to the directory where the `nim` binary (executable) resides. You can also add this line inside the hidden files (every file or dir that has a dot . in front) named `.profile`

Re: How to start NIM on Linux ?

2016-12-10 Thread Mennohexo
Thank you. You mean it is better to make a normal install with the command apt-get install nim ? My Linux computer is a offline computer. Have to make it online in the next weeks. I try further the offline installation a while. Then swiitsch to the official Online installation procedure.

How to start NIM on Linux ?

2016-12-10 Thread Mennohexo
Hi , i am new in Linux and have installed the NIM package with sh bulid.sh in a folder Now i want to start the command line compiler. Dont know how. When i type nim -v in the terminal it is not shown. Seems i have to set the PATH to the system. export etc. How can i set the path correct ?

Re: Using concepts for generic structures

2016-12-10 Thread komerdoor
Tnx. I read the document `generics.txt` before I started using the `concept` keyword. Somehow I was under the impression concepts could be parameterized for me to refer to the contained value. Of course a container type may not even have `value` (it could be a function type or have a pair of

Re: Newyear is coming , is 2017 the year for nim?

2016-12-10 Thread Arrrrrrrrr
Hmmm var v = ".9" while true: echo "Before v0", v, " we need v0", v, ".9" add v, ".9"

Re: App compiling option

2016-12-10 Thread Arrrrrrrrr
Either you are missing some dlls or for some reason ld can't find them: C:/Nim/nim152/dist/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86 _64-w64-mingw32/bin/ld.exe: "cannot find -lgdi32"

Re: texts on nim's language design

2016-12-10 Thread aja
Elaborating on ambiguity. import libfoo import libbar open() # open is coming from foo. Later down the road libbar decided to add proc open(). Second developer (Not the original author of above code) needed to use the latest version of libbar , in some other part

Re: Document Challenge #1

2016-12-10 Thread Krux02
I already used the edit button once. I really do like it.

Newyear is coming , is 2017 the year for nim?

2016-12-10 Thread v3ss0n
When we gonna have a stable api for 1.0 ?

Re: texts on nim's language design

2016-12-10 Thread Krux02
Can you tell me what you think the problem might be? What do you think might become troubling with implicit imports?

texts on nim's language design

2016-12-10 Thread aja
I am a lurker with general interest in programming languages. I would sincerely appreciate if any veterans here or @Araq could provide links (forum or outside) that discusses the reasoning behind the design decisions on the nim language grammer or code conventions. Taking import for example

Re: Document Challenge #1

2016-12-10 Thread Araq
I spend some time on this 'edit' button for the documentation. Would be nice if it were used for minor edits. It's fine to start reddit discussions about major topics (like "how to classify macro usage?") but minor improvements can be done directly. The 'edit' button produces pull requests so

Re: Document Challenge #2

2016-12-10 Thread jlp765
How do you **"classify"** templates/macros? * lifting existing procs to handle new data types * reducing repetition of code * lazy evaluation ([eliminate evaluation](http://forum.nim-lang.org///nim-lang.org/docs/tut2.html#templates) when not required) * DSL handling *

Re: Document Challenge #1

2016-12-10 Thread jlp765
@Araq (et. al.) Congratulations on [tutorial#1](http://forum.nim-lang.org///nim-lang.org/docs/tut1.html). There has been minimal feedback received on [reddit.com /r/nim](https://www.reddit.com/r/nim/comments/52jeoe/tutorial1_collaborative_improvement/) on improving the tutorial. If anyone

Re: Thin C wrappers.

2016-12-10 Thread jlp765
Look at [manual.html#foreign-function-interface](http://forum.nim-lang.org///nim-lang.org/docs/manual.html#foreign-function-interface) as it describes the `.union` pragma