Errors within async are not being raised

2023-12-08 Thread Nlits
Fixed: Resorted to manual editing If anyone has any ideas on how to get the macro to work, I would still appreciate it

hardware-software interaction in Nim

2023-12-08 Thread auxym
If your drone runs something like px4 or ArduPilot, then you would basically only have to implement mavlink () in Nim and you could read data from your drone and send commands to it. Mavlink is pretty straightforward. 2 years ago I made a minimal implementation for Matla

How to wrap JS object returned from a JS function

2023-12-08 Thread nim-horse
understood, thank you so much for your time and help!!

Can't trace the origin of "unlisted exception: Exception" when building a callback table

2023-12-08 Thread Araq
For version 1.6. you need `{.experimental: "strictEffects".}`, I think.

Can't trace the origin of "unlisted exception: Exception" when building a callback table

2023-12-08 Thread giuliano
That worked, thanks a lot @Araq!

Can't trace the origin of "unlisted exception: Exception" when building a callback table

2023-12-08 Thread giuliano
Hello folks, I apologize in advance if this is a silly question as I'm new to nim, but I'm bumping my head against this to no avail for a bit, so here it goes. I have the following snippet: import std/tables type CallbackRegistry = object table: Table[string,

Nimforum custom theme

2023-12-08 Thread systemonia
I think it would be best if nimforum allowed each user to simply insert whatever CSS they wanted to, so like I could make my own CSS stylesheet, go to my profile and insert it so every session I have, will be running that CSS. Just a thought

Forum dark theme

2023-12-08 Thread geotre
Not strictly a dark theme (it makes other changes as well), but I just uploaded my custom theme if you want to try it out - [forum thread](https://forum.nim-lang.org/t/10748)

Nimforum custom theme

2023-12-08 Thread geotre
The [recent request for a nimforum dark theme](https://forum.nim-lang.org/t/10738) reminded me that I should probably upload and share the [custom theme](https://github.com/geotre/nimforum-theme) that I created for the forum a while back. It was hacked together pretty quickly so it's not perfec

How to wrap JS object returned from a JS function

2023-12-08 Thread geotre
> is there a reason to use jsconsole/console.log over echo other than looks? Yes, for cstrings in particular. Compare the outputs of the following examples (all compiled with `-d:danger` to remove noise, and cleaned up slightly to make it clearer): Example 1: using echo with a regular Nim strin

The secret of Nim

2023-12-08 Thread vonH
The inspiration for my Ode to the Goddess Nim Dudes need to value the place of artistic and poetic inspiration in coding. Coding can't just be dry logic. It is supposed to be inspired by the observations and joys in life, by the beauty of nature, by the sounds and sights of everyday life. I th

Ingredients of Smart Hemp Gummies Australia

2023-12-08 Thread teresajiau
Smart Hemp Gummies Australia:- in its original form is very bitter to taste, which makes it not much liked by people. The manufacturers have started using fruits such as mangoes, oranges, berries and grapes which gives the gummies a nice flavor as well. The presence of fruit extract helps not to

NIR

2023-12-08 Thread ASVI
What will the design of exceptions and try/except in NIR look like ?

Enu 0.2

2023-12-08 Thread dsrw
Your code, and any bots/blocks that you place or edit should be saved automatically. If they don't that's a serious bug and I'd really like to hear more about it. If it truly isn't saving, please ping me on [Discord](https://discord.gg/BWHUs4Wc) or report it on [Github](https://github.com/dsrw/

Is there a guide to creating PostgreSQL extensions or dynamic libraries "xxx.so" etc in Nim?

2023-12-08 Thread vonH
There is a regex related question on SO - , and further down the source code for a C extension for the same task. There is a small github with the full details -

fmu.nim - my first FMU working with OpenModelica

2023-12-08 Thread PMunch
> Next step will be easy (I think). By compiling the model with zig, I think I > will be able to create FMU's that work in Windows and Linux at the same time. While the Zig compiler you can use with Nim can cross-compile it's not a requirement. You can use MinGW with Nim directly and compile Nim

fmu.nim - my first FMU working with OpenModelica

2023-12-08 Thread mantielero
After a very long time, I manage to create and FMU that actually works with OpenModelica with [fmu.nim](https://github.com/mantielero/fmu.nim). [FMU - Functional_Mock-up_Interface)](https://en.wikipedia.org/wiki/Functional_Mock-up_Interface) is a kind of file that it is used for simulation. Bas

FMU - C interop

2023-12-08 Thread mantielero
For the record, the issue was fixed by adding `cdecl` in the [following types](https://github.com/mantielero/fmu.nim/blob/2331c39acacd60be189068ab9239125fa07dba0a/src/lib/defs/modelinstance.nim#L28-L36).

Enu 0.2

2023-12-08 Thread viralpoetry
Played with Enu yesterday and it's great. Is it possible to save the state of the world?