AVR Support?

2021-01-04 Thread zevv
This works fine for me for nim-arduino [1], and allows most of the stdlib to be used as well: --cpu:avr --os:any --gc:arc --exceptions:goto -d:noSignalHandler -d:danger -d:useMalloc Run 1\.

How should I get libiup.so on my laptop?

2021-01-04 Thread matkuki
Sources: / If I remember correctly, it's a slight pain to compile though. Hope it helps

How should I get libiup.so on my laptop?

2021-01-04 Thread Privacy_Dragon
Hi people, I've much problems with getting libiup.so on my laptop. I can nowhere find how to get it, and _if_ I find it, it is still not clear. I use Linux OpenSuse Leap 15.1 Can anyone please help me?

Why include doesn't work?

2021-01-04 Thread Araq
The problem is that we need to detect `import system except ...` as a special case inside the compiler and so there are additional restrictions like "you cannot put this line into an include file".

Is anyone using duckdb with Nim?

2021-01-04 Thread sdmcallister
Thanks, I really appreciate this help getting this started. I'll run, or waddle maybe, with this. (Sorry I had to).

Why include doesn't work?

2021-01-04 Thread Stefan_Salewski
> Is such code The related thread was (you started it): In the past we were told "we should never import module system directly." But from the post of Mr Blake it may work now.

Why include doesn't work?

2021-01-04 Thread alexeypetrushin
Yes, and I was using the advice from that tread since. I asked it again because of this answer > Dont import system I was not sure why I shouldn't use it if it's works. If it's against coding conventions and may break some random library (which is ok for me), or if it's not supported and someh

Why include doesn't work?

2021-01-04 Thread alexeypetrushin
Is such code `import system except find` \- not supported, or is it against the coding conventions? P.S. I'm not using Nim's standard library and coding conventions, using different ones. Because in my case Nim is used along with TypeScript and Kotlin - and all 3 languages are using customise

Is anyone using duckdb with Nim?

2021-01-04 Thread Clonk
> This sounds to noob ears like mine that it might be possible to use the > existing nim sqlite libraries? Possibly. The issues with doing this, is that you're going to create conflict with code that include sqlite. > I have no real exp in C and C++ The API used is still a C-API that you will

Stdlib and fusion evolution

2021-01-04 Thread Araq
Maybe my thoughs about how to evolve Nim's stdlib and Fusion are not good enough for an RFC yet, but here is it anyway, Feedback appreciated, but please comment and vote on github and not here.

AVR Support?

2021-01-04 Thread btol
Thanks for the quick response. I tried --exceptions:quirky, with no changes to the behavior (i.e., it gives the same error message). I'll keep an eye on that issue and the other ones with the "cross-compilation" label. If adding this as a github issue would be helpful, please let me know and I'l

Why include doesn't work?

2021-01-04 Thread alexeypetrushin
As far as I understand the `include` statement includes the **content of the file**. But the example below doesn't work that way, there's the difference if the content of the `base.nim` \- typed manually (script works) or included via `include` statement (doesn't work). Why? [playground](http

Why include doesn't work?

2021-01-04 Thread juancarlospaco
Dont import system

AVR Support?

2021-01-04 Thread federico3
We are seeing a bunch of regression when compiling for AVR or other microcontrollers, making it tricky to find a working combination of --gc / --os / noSignalHandler / useMalloc

Is anyone using duckdb with Nim?

2021-01-04 Thread sdmcallister
I noticed the site mentions that, ' We also provide a SQLite API wrapper which means that if your applications is programmed against the SQLite C API, you can re-link to DuckDB and it should continue working. See the sqlite_api_wrapper folder in our source repository for more information.'

Nim Community Survey 2020

2021-01-04 Thread miran
Just a reminder: if you haven't already, please fill the survey:

Exceptions which can hold / pass an object?

2021-01-04 Thread HJarausch
Many thanks!

Exceptions which can hold / pass an object?

2021-01-04 Thread haxscramper_
Yes, see OSError in stdlib for example -

Exceptions which can hold / pass an object?

2021-01-04 Thread HJarausch
In C++ an exception can hold any type of object. Thus one can pass an object with _raise_ to the _except_ clause. The standard Nim exception can only handle _string_ objects. Is there a means for more general _Exceptions_? Many thanks for a hint, Helmut