SiSix and Nim

2022-03-31 Thread DavideGalilei
I noticed a bug in the SiSix code generator, which definitely slows down the compiled program by a factor of 7x in -d:debug, and almost 2.5x in -d:release mode. I dag deeply on this issue and tried to tweak the compiler, and it turns out that it's an issue of the Vlang stdlib dependency of the c

SiSix and Nim

2022-03-31 Thread xflywind
Congratulations!

SiSix and Nim

2022-03-31 Thread Araq
I'm happy to announce that I joined [SiSix](https://en.wikipedia.org/wiki/HTTP_404), a company developing a "RISC 6", a new instruction set which unique properties: * An **ultimate** reduced instruction set; there is only a single instruction. * Since there is only a single instruction, no e

Define proc that is called from imported module

2022-03-31 Thread KerryC
Great! Thank you! I thought mixin was how to go about this. It wasn't clear to me from the manual how I should apply it.

Define proc that is called from imported module

2022-03-31 Thread ElegantBeef
proc first*[T](obj: Object[T]) = mixin second second(obj) Run [mixin](https://nim-lang.org/docs/manual.html#generics-mixin-statement) makes `second` an open symbol choice, which means in english "this procedure will mix in any procedure named `second` at instantiat

Define proc that is called from imported module

2022-03-31 Thread KerryC
Is there a way to define a proc inside a file that is called from an imported module. My idea is that I will have a library for doing common operations on an object that has a generic type associated with it. Then a user could define a desired behavior for some custom type that is triggered duri

Fidgets: widgets using Fidget

2022-03-31 Thread elcritch
@ErikWDev That's awesome! I've run into a problem trying to tie in animation actions. The general problem is really how to trigger user defined events associated with a widget and its state. It'd be nice to not have to explicitly know or pass the widgets internal state. Something like this:

Newbie questions about Nim, Python, XCB

2022-03-31 Thread kobi
For gui apps, what worked for me was building all the functionality in Nim, and compiling to a library, with nimpy providing python export pragma. On the python side, as long as the (.so) library is in your path, it should be able to find it, and simply use it right away. For using python in Nim

Searching "jester" on nimble puts it on the bottom

2022-03-31 Thread ErikWDev
Seems intentional () and I would probably agree with it in general. Just funny when its such a specific word like "jester" xP

Searching "jester" on nimble puts it on the bottom

2022-03-31 Thread ErikWDev
"jester" puts jester on the bottom: "web framework", on the other hand, puts it on the top: `nimble search jester` puts it on the top, but since the terminal gets filled with results one has to

Fidgets: widgets using Fidget

2022-03-31 Thread ErikWDev
GIFs for the curious basicwidgets.nim dropdown.nim

Newbie questions about Nim, Python, XCB

2022-03-31 Thread PMunch
Another thing you can do if you want your Nim project to be plugable or scriptable is to either load dynamic libraries (which can be created from Nim, or any other language) or you could embed NimScript with Nimscripter. Not sure what you have aganst Gtk, it is pretty much the default for most L

On multi nested macros (templates) in sparse argument pass

2022-03-31 Thread geotre
Can you give an example of what you mean?