Show Nim: CSS Grid layout engine!

2022-08-31 Thread kobi
Always happy to hear your progress, man. You're really providing practical options for the community. For example, for a gui app I wrote I had to switch to another language, and that's a bummer. What I'm trying to say is that there's a real need, especially for those who create tools and simple

Show Nim: CSS Grid layout engine!

2022-08-31 Thread elcritch
I split this out into it's own package! It's not explicitly Fidget related. Though Fidgetty is it's primary use case for me. I kinda wanna play with it for TUI's too. :) Anyone interested in hacking on this with me?! It's nerdy but also easy to pick off a

Show Nim: CSS Grid layout engine!

2022-08-31 Thread elcritch
Thanks! @treeform I'll admit I was sorta hoping you would like it. :) Using it worked pretty well in the demo `choosenimapp` app I made. The upfront complexity is a bit higher but it was much easier to adjust a grid upfront than trying to merge multiple concepts together like columns/rows/spring

c2nim - working with arrays

2022-08-31 Thread planetis
Use ptr UncheckedArray[T] . [#isarray](https://github.com/nim-lang/c2nim/blob/master/doc/c2nim.rst#isarray-directive) won't help here, it only applies to parameters.

c2nim - working with arrays

2022-08-31 Thread alexgustafson
I'm try to put together a nim wrapper for the Clap AudioPlugin API/ABI/interface. In the c world a clap audio plugin has a process method that will be called by the host. One of the arguments is a clap_process struct that stores info about, and pointers to audio buffers. In the process method t

Hello World with --mm:none and --warningAsError:GcMem

2022-08-31 Thread Hlaaftana
The Nim development version has a change to warningAsError which makes it only apply to the local package. So you might benefit from that.

cosmonim hello world - No such file or directory

2022-08-31 Thread Yardanico
Just as an update - I've seen a repo of someone else who used cosmopolitan with Nim - and decided to re-check my repo, because it didn't work with an older version of cosmopolitan for some reason. Now it works again, so you're free to use

Discreet Command Execution

2022-08-31 Thread archnim
Hello world. Using Nimscript, I want to execute an external program (like with exec), but I don't want the output to be printed on the screen. I rather want it to be saved in a file if possible. Please How can I do that ? The module `osproc` doesn't work in nimscript.

Mini-book on long-lived ABIs

2022-08-31 Thread icedquinn
Wrote this today: Examples are currently in C because the C ABI is the only one that is really defined across languages. While I don't think there are many Nim libraries being consumed by non-Nim clients it will happen in time (or even Nim-Nim projects, if

How to install packages via nimble on a machine without internet

2022-08-31 Thread halloleo
Cool! Will try that.

Stadard way to call a nimscript

2022-08-31 Thread halloleo
OK, thanks @stisa. So the top level definitions (like, in my case, compiling to JavaScript) are taken from config.nims Good to know.

c2nim problem with char[] to UncheckardArray[char]

2022-08-31 Thread alexgustafson
Ok, thanks for taking a look. I have a script that does some preprocessing on the .h files and some post processing on the .nim files after the c2nim conversion. I was looking at how nimraylib_now does it, and trying to do something similar. I am dealing with this in the post-processing by repl

Stadard way to call a nimscript

2022-08-31 Thread stisa
`nim e config.nims` should work, also iirc `config.nims` could be used to replace `nim.cfg` so it gets executed when compiling (the task won't, but top-level instructions will)

How to install packages via nimble on a machine without internet

2022-08-31 Thread stisa
That might work, as long as you copy nimbleDir to the right path or pass the path when compiling (`nim c --NimblePath: `)