imbed ace editor in nim Playground

2021-09-01 Thread Kalbhairab
Ace editor supports syntax highlighting as well as code completion.

Concepts, undeclared field.

2021-09-01 Thread jyapayne
Seems unrelated to the macro expansion and instead is probably a bug with concepts. This is a minimal example that reproduces your error. Please file an issue on Github. type Loopable*[T] = concept x x.len() is int x[int] is T x.items is T iter

Concepts, undeclared field.

2021-09-01 Thread xigoi
This is probably not the main issue, but shouldn't it be `x[0] is T` instead of `x[int] is T`?

How to make Nim more popular

2021-09-01 Thread xflywind
I guess it was removed wrongly. After Nim 1.6, you can easily see the dev docs from the stable docs page(it is not backported).

How to make Nim more popular

2021-09-01 Thread Stefan_Salewski
> dev docs So dev docs still exists. I was searching for them recently, and could not find it, so I had to build latest docs for strscans module locally myself. Some years ago regular docs had a link to latest dev docs, but that seems to be deleted?

This Month with Nim: August 2021

2021-09-01 Thread miran
After a summer break, we're back! Here is what our users did in August: If you want to include your project for the next month (it doesn't have to be a new project), follow the instructions [here](https://github.com/beef331/websit

How to make Nim more popular

2021-09-01 Thread miran
> lack of code examples in the official doc > > there is no example in the official doc, so I have to search somewhere else Can you give some concrete names of the stuff in the official docs without an example? We're trying to improve the situation, but we need to know _what_ (or _where_ ) to i

How to make Nim more popular

2021-09-01 Thread xflywind
It would be better if every module has a top level `runnableExamples`. And some issues labelled as documentation can be solved.

Concepts, undeclared field.

2021-09-01 Thread enthus1ast
i got a strange issue with Concepts and macros: if have an iterator like this: type Loopable*[T] = concept x {.explain.} x.len() is int x[int] is T x.items is T Elem = object baa*: string iterator loop*[T](a: Loopable[T]): tuple[lo

Any way to avoid the SQL bugs and execute raw strings?

2021-09-01 Thread xbello
What I request from you is to insert _from a minimal nim script_ and then check that the values in the DB were inserted escaped. Don't do anything fancy with the insertion, four lines are enough: import db_sqlite let db = open("test.db", "", "", "") db.exec(sql"CREATE T

Goodboy Galaxy - Kickstarter and demo now live!

2021-09-01 Thread Arrrrrx2
This looks really good and inspirational. Congratulations on your success (didn't know there was such a demand for GBA games). Hope you share more of your insights into how to make games on limited hardware in the future. Also, didn't know the exportc/importc trick.

Advice for handling circular dependencies (functions)

2021-09-01 Thread Arrrrrx2
You might be interested in this post

Any way to avoid the SQL bugs and execute raw strings?

2021-09-01 Thread JohnLuck
I took a look and I also don't see anything there that could cause this. When I run insert queries using the terminal this doesn't happen though. I thought nim was doing all sorts of magic but now I am not sure what it could be, maybe an encoding issue somewhere.

when to use 'ref object' vs plain 'object'

2021-09-01 Thread Araq
As a compromise, use `object` (and maybe more `system.move` in your codebase) and leave the language/compiler as it is.

Any way to avoid the SQL bugs and execute raw strings?

2021-09-01 Thread JohnLuck
I wanted to use fmt with {my_int:d} but I didn't want to complicate the explanation

How to make Nim more popular

2021-09-01 Thread FabienPRI
Hi, I do not have any answer better that what have been told. But I use nim for about 2 years at my job for small to mid size projects. I think it could be better to focuss on points that can bother any dev or slow the process of creating softwares with NIM (which I find a great language): *

Any way to avoid the SQL bugs and execute raw strings?

2021-09-01 Thread Araq
Unfortunately there are few ways to say "you're doing it wrong" without being "ad hominem". "You're doing it wrong" is still most helpful.