Nesper updates!

2024-07-27 Thread adokitkat
Good to see this. I made a PR with some fixes for IDF v5.0+ to your repo. I would like to contribute more (tbh I would like to be able to make a wrapper around the whole IDF in Nim) but I want it automated somehow since IDF changes kinda rapidly (yesterday v5.3 was release for example). I tried

NIR

2023-11-02 Thread adokitkat
IC -> view types -> anything else :)

A few (perhaps naive) questions

2023-08-07 Thread adokitkat
pends). Feel free to submit PRs. <https://github.com/adokitkat/bignum>

Article on wrapping C libraries in Nim

2023-04-23 Thread adokitkat
Hi! I necessarily don't want to create a new separate project if you're open to change up nesper. I was not aware of `cimporter` either. I don't quite like that futhark bundles everything to one file as well. To be fair I just experimented with futhark and I'll try cimporter next. Maybe we could

Article on wrapping C libraries in Nim

2023-04-18 Thread adokitkat
I would like to automatize creating a wrapper for ESP-IDF (framework for ESP32 programming based on FreeRTOS and full of macros). I would like to achieve a similar thing to [nesper](https://github.com/elcritch/nesper), but automatically generated so it doesn't have to be manually checked and fix

Article on wrapping C libraries in Nim

2023-04-18 Thread adokitkat
Hello! Thank you for your work. Is it possible to separate generated bindings to different files based on header `.h` files? I am trying to use Futhark on ESP-IDF but the the generated `.nim` file/bindings from one header file also contains all of the dependencies from `#include "..."` included

How to inverse set?

2023-04-18 Thread adokitkat
You can do something like: let u8 = {char(0)..char(255)} let s = {'a'..'z'} echo u8 - s Run

Nim v2.0.0 RC2 is out

2023-03-31 Thread adokitkat
I have the same problem except I cannot even install choosenim because of it. Stable version points to 1.9.3 instead of 1.6... deck@ubuntu-22-10:~$ curl https://nim-lang.org/choosenim/init.sh -sSf | sh choosenim-init: Downloading choosenim-0.8.4_linux_amd64 Prompt: Can ch

Anyone working on a new Nim book or second edition of Nim in Action?

2022-05-16 Thread adokitkat
wow, I really like it! @Stefan_Salewski you should see this :)

On Warning: Deprecated since v1.4; there should not be high

2022-03-09 Thread adokitkat
I mean if you want e.g. the highest value of integer then you should write `high(int)` where `int` is a type and not something like `high(42)` where 42 is a int value. You can use `type(value)` to solve the warning: var x = 42 echo high(x.type) Run

Forum crashes when search term includes "(" or ")"

2022-02-16 Thread adokitkat
This is like critical bug... jeez.

Nim sounds better (Catchy sounds and intros for Youtube Videos / Podcast)

2022-02-16 Thread adokitkat
Is someone assigned/paid/volunteering to do these videos? I agree on Nim needing more exposure via video tutorials but not a lot of people are making them.

Nim sounds better (Catchy sounds and intros for Youtube Videos / Podcast)

2022-02-15 Thread adokitkat
Wow. Are these free to use?

A better looking Nimble (web, design, feedback, ideas)

2022-02-15 Thread adokitkat
looks very good, I love the "aesthetic" pictures next to search

dnd - bi-directional drag and drop source/target

2022-02-12 Thread adokitkat
Thanks :) I had to because I have found a bug in gintro and it has been fixed in #HEAD only IFAIK? I can make it dependent on commit tho. What do you mean by adding a nimble task? I wanted to mimic `make install` which also installs a desktop entry (for an icon).

dnd - bi-directional drag and drop source/target

2022-02-12 Thread adokitkat
I also have a question - is there a way to use `before`/`after` hooks in `.nimble` file for `nimble uninstall`? I tried but it doesn't work.

dnd - bi-directional drag and drop source/target

2022-02-12 Thread adokitkat
# dnd Hi! I was working on this project over a few weekends and I think it's finally ready. Maybe some of you can make an use of it. Please leave a feedback - issues, suggestions, etc. :) ## About [dnd](https://github.com/adokitkat/dnd) is a bi-directional drag and drop source/t

To insert a Nim variable into its PCRE regex

2022-02-11 Thread adokitkat
To escape `{` or `}` you need to double it like `{{` / `}}`. It's explained in detail [here](https://nim-lang.org/docs/strformat.html#implementation-details). import re, strformat let num = r"\d*" wordNum = re(fmt"[a-z]\w*{num}{{") echo find("hello123{"

Nim devroom at FOSDEM this weekend

2022-02-05 Thread adokitkat
Hi! I missed it too. Would love to watch the talks. Are there any archived yet? @dsrw Thank you for making yours available :)

MNIST perceptron

2021-11-09 Thread adokitkat
I agree with this. Otherwise great job :)

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-10-26 Thread adokitkat
Hi. That's what I was recently trying to do. I made a static lib in Nim and tried to link it with ESP32's ESP-IDF as a component. However it was not full-on success. I managed to compile and link it together, but float and double (int worked) operations were not behaving correctly - I tested th

Interfacing with C - undefined reference

2021-10-25 Thread adokitkat
Oh that was so lame mistake... Thank you!

Interfacing with C - undefined reference

2021-10-25 Thread adokitkat
Hello, I wanted to try to create static lib in Nim and interface with C. However I cannot get it to work even when I tried to follow . OS: Linux, Arch: amd64, Nim 1.6.0 and 1.4.8 Nim code in `libnim.nim` file:

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-07-20 Thread adokitkat
Is there any preferred communication channel / method for EmbeddedNim organization members?

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-07-13 Thread adokitkat
Hello, could you also add me? I made the pull request on Nesper about FATFS / Wear leveling.

Google Summer of Code, Feb 19, 2021

2021-01-14 Thread adokitkat
If you got accepted I would love to try to join as a intern / student :)

Advent of Nim 2020 megathread

2020-12-04 Thread adokitkat
Hello, here's my repository :) <https://github.com/adokitkat/AdventOfCode2020>

Is there an easy way to bake in parameters at compile time?

2020-11-25 Thread adokitkat
Well `v` will be `static[bool]` and available at compile time if you declare it as `const v`.

Nim videos and tutorials survey

2020-10-30 Thread adokitkat
Nim macros operate on Abstract Syntax Tree level and are integrated into the language, unlike C pre processor which is just replacing text. They are much more powerful - you can generate code, modify the AST tree directly, change how Nim behaves, etc. See: ,

Reversed traversal of iterators instead of creating a reversed copy

2020-09-11 Thread adokitkat
Thank you for a nice solution :) I went straight for a macro not considering overloading of an implicit iterator...

Reversed traversal of iterators instead of creating a reversed copy

2020-09-10 Thread adokitkat
Hi, I think there should be a 'reverse' macro for reversed traversal of iterators which doesn't change the original content nor creates a duplicate (or something similar) - I tried to search for something like this but I did find only procs `algorithm.reverse()`, `algorithm.reversed()` which re

Experimenting with a FreeRTOS OS Port

2020-08-19 Thread adokitkat
Hello. Great work! Is this port still active? I would love to use Nim on ESP32 platform to get more into embedded systems.