Re: State of Nimble packages

2019-08-12 Thread Araq
> I plan 2-3 weeks to complete the evaluation of the remaining packages. I'll > get better stats at the end of the job. Do you think it's worth it? Do you > have better ideas on how to measure packages quality/maturity? Yes, it is definitely worth it and the idea to somehow formalize these ideas

Re: Regarding array

2019-08-12 Thread bevo009
[https://narimiran.github.io/nim-basics/#_sequences](https://narimiran.github.io/nim-basics/#_sequences) [https://nim-by-example.github.io/seqs](https://nim-by-example.github.io/seqs)/ [https://nim-lang.org/docs/tut1.html#advanced-types-sequences](https://nim-lang.org/docs/tut1.html#advanced-type

Re: Official "Web Playground" + ASM inspector

2019-08-12 Thread bevo009
There's this one also that has a vim mode and run keyboard shortcut, but no syntax colouring: [https://nim.ide.judge0.com](https://nim.ide.judge0.com)/ Repl.it included Nim but their included version is old now, 0.17.2. Kind of a waste of time IMO: [https://repl.it/languages/nim](https://repl.i

Re: State of Nimble packages

2019-08-12 Thread juancarlospaco
I already made this automatically, been some years trying to get this merged: [https://github.com/nim-lang/packages/pull/916#issue-227422899](https://github.com/nim-lang/packages/pull/916#issue-227422899) But manual one-by-one package checking is also nice to have, I dunno if that can scale tho.

State of Nimble packages

2019-08-12 Thread spip
In order to add advanced search feature to Nimble, I've been curating the repository of packages for the last two weeks. I've rated the package in a scale from 1 (dead code) to 4 (high-quality package) ([https://docs.google.com/spreadsheets/d/1HWy2YumMMcgEDHk34ACauuWR5TYDJTRUVQ6B-LuRXCs/edit?usp

Is there a way to check if binding one NimNode will lead to binding another unexpected NimNode?

2019-08-12 Thread solo989
It's incredibly easy to accidentally forget to copy a NimNode inside a macro. In this example: macro doStuffTo1to5(a : untyped, body : untyped) : untyped = result = newStmtList() for i in 1..5: let i = newLit(i) let blockStmtList = nnk

Re: Regarding array

2019-08-12 Thread juancarlospaco
seq is what you are looking for. Check Arraymancer package for matrix/tensor (?).

Regarding array

2019-08-12 Thread Santanu
While exploring nim, I came to know that you cannot create an array during dynamically. The size of the array must be known at compile time. There are a few work around as i have found in the previous thread i ask or one can use static[int] while using array within a function or object. Why was

nimongo and MongoDb.Atlas connection

2019-08-12 Thread JohnAD
I've been using the pure nim nimongo library for a while and it has been very useful. I am attempting to get a project into full production and am wanting to move to a live database and am having trouble with that. Specifically, I have an account at mongodb.com (MongoDb Inc.'s Atlas) But I'm h

Re: Official "Web Playground" + ASM inspector

2019-08-12 Thread rayman22201
I'm the guy who started doing Godbolt support. I don't have anything published yet, but, I got very basic support working, but unfortunately I have stalled on progress. Not because of Nim, but because godbolt has some "quirks"... It's more javascript hacking than Nim hacking... I do hope to get

Re: How to add a symbol to represent the infinity (∞)

2019-08-12 Thread mrhdias
Typing these unicode symbols from the keyboard is not a big problem >From the [wikipedia](https://en.wikipedia.org/wiki/Unicode_input): "For >example, GTK+ is an ISO/IEC 14755-conformant system[citation needed]. The >beginning sequence is Ctrl+⇧ Shift+U and the ending sequence is ↵ Enter or >Sp

Re: Official "Web Playground" + ASM inspector

2019-08-12 Thread juancarlospaco
[https://github.com/kaushalmodi/nim_config#list-available-tasks](https://github.com/kaushalmodi/nim_config#list-available-tasks) js2asm Build JS, print Assembly from that JS (performance debug) c2asmBuild C, print Assembly from that C (performance de

Re: Official "Web Playground" + ASM inspector

2019-08-12 Thread Stefan_Salewski
See for Playground [https://nim-lang.org/learn.html](https://nim-lang.org/learn.html) which advertises [https://play.nim-lang.org](https://play.nim-lang.org)/ For Godbolt support, I heard that someone smart was working on it, but it is not really easy and may take still some time i guess. The

Re: wNim - Nim's Windows GUI Framework

2019-08-12 Thread Araq
How much work would it be to port wNim to other operating systems?

Official "Web Playground" + ASM inspector

2019-08-12 Thread adnan
Hi Is there any plan to include an official web playground to try/share nim programs online? For example, Rust has Rust Playground, Go and D have something similar too. Also, is there any way to check/compare the generated assembly instructions like in the Rust Playground? Godbolt has recently

Re: Reading a file line by line at compile time

2019-08-12 Thread cdome
Line by lines is not support at compile time. One more option: readLines("input",3) reads first 3 lines of file, works at compile time. Useful if you need to parse a header in the beginning of the file.

Ten Ways to Improve Your Quality of Life

2019-08-12 Thread richardstephens
Think daily. Meditate. ... Get in the zone. ... 3\. Make it a point to do something bold every day. ... Learn something new. ... Debate something. ... Spend time with a child. ... Go outside. ... Recognize what makes you happy.