Using Concepts for abstracting display graphics

2023-10-18 Thread sei
Thanks for the handy tutorial, quite a nice color scheme you have there :)

Using Concepts for abstracting display graphics

2023-10-18 Thread ElegantBeef
It's just the wonderful in action :D

Using Concepts for abstracting display graphics

2023-10-18 Thread sei
Ah I see, I looked at the repo a while ago but haven't tried it yet, maybe I should!

Using Concepts for abstracting display graphics

2023-10-18 Thread ElegantBeef
On that topic is likely a nice resource.

Type introspection

2023-10-18 Thread ElegantBeef
Not that it's well documented, but a ton of type operations are defined inside . Most important to this question would be

Type introspection

2023-10-18 Thread dlesnoff
I am going through examples of basic metaprogramming challenges, as proposed to me by the ChatGPT4 bot: One of these is type introspection: Given a Nim object or type, explore and print its fields using Nim's metaprogramming c

How to echo from a proc correctly?

2023-10-18 Thread shirleyquirk
A template is sufficient: import std/macros template playAndWriteLN(audioFile: string; myStr: varargs[typed]) = PlaySound(`audioFile`, 0, SND_NOSTOP) echo.unpackVarargs(myStr) Run

Using Concepts for abstracting display graphics

2023-10-18 Thread sei
That's quite a lot stuff you have in your repo, I will definitively check it out, thanks!

Using Concepts for abstracting display graphics

2023-10-18 Thread sei
Thank you very much, that works perfectly! I've to read about `mixin` though, haven't encountered that so far :)

How to echo from a proc correctly?

2023-10-18 Thread dlesnoff
I wrote the solution with Araq's hint. It did not work for me with a procedure instead of a macro. import macros, winim let myRange = 0..99 macro playAndWriteLN(audioFile: string; myStr: varargs[typed]): untyped = result = newStmtList() # Add Play

Which tools do you use to code in Nim?

2023-10-18 Thread giaco
thanks! I'll try moving from saem extension + nimlagserver + nimsuggest to this, too! speaking of nimlsp, the readme on github doesn't say anything about vscode, but I realize only now that a whole extension is built for it!

ugly code or concepts?

2023-10-18 Thread ingo
> reverse-mode autodifferentiation Thank you. That's quite a bit to read up upon and digest.

Using Concepts for abstracting display graphics

2023-10-18 Thread Martinix75
If you want I have already written several bookstores (display) for rp2040 ... try to take a look if you want