ImPlot library

2023-09-26 Thread Neodim
Looks very promising! Is it possible to make an "interactive" point on the plot which calls back a function or specific pop-up menu upon clicking?

atlas/nimble build still tries to download dependencies despite nim.cfg

2023-09-26 Thread woolsweater
> That is indeed the intended process and not an interim solution either, it's > Atlas's key feature and design aspect. Got it, thanks! I assumed that the `atlas build` command would be the new way. I am curious to see what that command is renamed/turned into.

atlas/nimble build still tries to download dependencies despite nim.cfg

2023-09-26 Thread woolsweater
This sounds great; do you happen to have a public repo using this technique that I could look at?

Simple template and macro question

2023-09-26 Thread CircArgs
Kinda close, but the description says > will actually dump x + y, but at the same time will print at compile time the > expansion of... its definition is just echo body.toStrLit result = body Run and it takes `typed` and I can't avoid compiler errors while using it. W

[newbie] go to definition is not working on vscodium on EndeavourOS(Arch based distro)

2023-09-26 Thread amkrajewski
Not an answer really, but I hope an extra data point helps. I'm using Nim 2.0.0 in VS Code (1.82.2) with Nim extension (the one by nimsaem) on MacOS (Darwin 22.5) and the "Go to Definition" works as intended.

Simple template and macro question

2023-09-26 Thread Zoom
The explanations in this thread are great and the only logical next step is to add it all to the official tutorials.

Simple template and macro question

2023-09-26 Thread nrk
> Is there a way to actually see the expanded Nim code. Maybe try [expandMacros](https://nim-lang.org/docs/macros.html#expandMacros.m%2Ctyped).

ImPlot library

2023-09-26 Thread Vindaar
Nice! Always great to see more plotting libraries! Do you intend to write a high level interface for it at some point? And just out of curiosity, do you know what performance actually looks like when you plot large amounts of data? Does it handle that better than all standard scientific plottin

ImPlot library

2023-09-26 Thread didlybom
This is cool but can I ask why do the plot functions receive the address of the data they must plot?

how to static linking sqlite ?

2023-09-26 Thread aiac
Thanks a lot, it seems helpful for compiling sqlite3.a. In my case, we have already got it by add sqlite-static Run so I found that I just need to modify it like the following and it will work well > > RUN nimble build -d:beast -d:release --mm:refc -d:nimDebugDlOpe

Simple template and macro question

2023-09-26 Thread CircArgs
For `repr` though, it seems is has to be in a macro (I'd been using it before asking this question actually and I didn't even put together that the `gensym` I was seeing was actually modifying the identifiers!) 🤔 I suppose I can just make a utility macro for the repr in which case I guess my qu

ImPlot library

2023-09-26 Thread hamidrb80
Amazing! please publish it to Nimble

how to static linking sqlite ?

2023-09-26 Thread Allin
Lines 68-103 of SQLiteral should effectively guide you towards a solution:

[newbie] go to definition is not working on vscodium on EndeavourOS(Arch based distro)

2023-09-26 Thread Levlan
Is it because of nim on vscodium (vscode)? or something related to EndeavourOS?

how to static linking sqlite ?

2023-09-26 Thread aiac
I don’t know why, but the forum’s markdown editor keeps eating my text. error info here when start container : Dynamic loading not supported Dynamic loading not supported could not load: libsqlite3.so(|.0) Run

how to static linking sqlite ?

2023-09-26 Thread aiac
* error info Run * my Dockerfile FROM nimlang/nim:2.0.0-alpine as builder WORKDIR /project RUN apk add --update --no-cache --force-overwrite sqlite-dev sqlite-static COPY . . RUN nimble build -d:beast -d:re

Simple template and macro question

2023-09-26 Thread dlesnoff
There is nothing in your code saying that T should be char and R should be a string. Parser seems to be a generic type that is not specialized. Shouldn't that be: 1\. Just to see if it works correctly: template generate(body: untyped): untyped = block: proc temp[T, R]

ImPlot library

2023-09-26 Thread galaxyDragon
I'v made [ImPlot library binding](https://github.com/dinau/nim_implot) for Nim. [ImPlot](https://github.com/epezent/implot) is an immediate mode, GPU accelerated plotting library for [Dear ImGui](https://github.com/ocornut/imgui) . Running examples: nimble install https://github.c

Improving Examples and Documentation

2023-09-26 Thread cmc
Hahaha yeah, another Supercollider user! I learned the hard way to read the source instead of the docs using SuperCollider! It worked wonders for Nim as well! I know what, we'll just scrap the whole documentation thing and have Nim marketing exclusively target SuperCollider users, then we can cu

Improving Examples and Documentation

2023-09-26 Thread cmc
That's a really neat theory about documentation aversion. Reading your explanation, I got a hunch that maybe it's because considering others emotionally is built-in, while considering others cerebrally is rather hard work that can lead to overthinking and other problems so people throw in the t

Simple template and macro question

2023-09-26 Thread dlesnoff
> Is there a way to actually see the expanded Nim code. Like your comment Do like the code snippet above. Return the `repr` of the Nim's AST.

atlas/nimble build still tries to download dependencies despite nim.cfg

2023-09-26 Thread Araq
> If the intended process (at least for now) is to just use nim c then I think > that resolves my question, thanks! That is indeed the intended process and not an interim solution either, it's Atlas's key feature and design aspect. It means Atlas does not have to replicate `nim c`, `nim cpp`, `

atlas/nimble build still tries to download dependencies despite nim.cfg

2023-09-26 Thread elcritch
I've taken to creating a `build.nims` and putting build tasks in there. Then I include it in both `config.nims` and `project.nimble`. That way you can do `nim build` or `nim test` in addition to `nimble build`.