nimqt - bindings to Qt

2023-10-02 Thread jerous
I have no idea, I haven't looked into Qml for a long time, and mostly forgot about it. I think an advantage of DOtherside is that it uses c. There are more libraries supported by the c backend, and mixing c with c++ code was difficult, when I last tried it. And with respect to performance, I wo

system.string

2023-10-02 Thread ingo
Thank you all, looking in the wrong places.

system.string

2023-10-02 Thread inventormatt
there are a number of things going wrong with your example. the first being as mentioned by nrk that you have extra brackets around your seq[int]. The code below should fix that issue as well as the others assuming I am partially interpreting what you are trying to do correctly. im

system.string

2023-10-02 Thread nrk
Your type signature looks a bit strange. `Table[string, [seq[int]]]` should probably be `Table[string, seq[int]]` (without the brackets around `seq[int]`); the former appears to be interpreted as a single-element array of `typedesc[seq[int]]`'s, which you can't even pass to Table in the first pl

system.string

2023-10-02 Thread Isofruit
I mean any string is system.string. That's where the type is defined. Your problem seems to be that in your loop `for n in ...` you call `toLayer(layer...)` and I can't seem to make out where you actually define a `layer` variable anywhere. Alternatively, based on the error message if you defin

system.string

2023-10-02 Thread ingo
type Box = object x, y, w, h: int var layer = initTable[string, seq[int]]() Run is just above the `func toLayer`.

ZIP32

2023-10-02 Thread RedDevil
While looking at 'zip.h' i notice a function 'zip_set_file_compression' that is not replicated in 'libzim.nim'. This might be a clue that I can investigate as that would allow use of 'ZIP_CM_DEFLATE (old 32-bit format) and 'ZIP_CM_DEFLATE64' (which I am assuming id the default). I am working on

Is there any utility to output a graphical representation of a Nim Abstract Syntax Tree?

2023-10-02 Thread dlesnoff
@PMunch Sorry for bumping this old thread, but I remark that in your code: 1. You do not give the `test` variable, but apparently it is a multi-line string with the AST without the last end of line character! 2. The second example only differs by the two-before-last lines, is that right?

system.string

2023-10-02 Thread ingo
system.string? What is it? Why is it? How do I get rid of it? func toLayer(layer: var Table[string, [seq[int]]], b:Box)= var k = "" for j in b.x..

Which tools do you use to code in Nim?

2023-10-02 Thread giaco
Thanks for all the contributions so far, very interesting indeed seems that thread participants prefer LSP over other possible choices. How did you choose between nimlangserver and nimlsp?

nimqt - bindings to Qt

2023-10-02 Thread rel
What is the diffrerence between binding in nimqml and nimqt? So far I have found in the docs. nimqml uses for the binding and creation of QObjects and compiles to c. Developer need to compile DOtherSide to a dynLib before you can use the fw. nimqt uses

ZIP32

2023-10-02 Thread dissolved_girl
Browsing the code, it looks like Zippy might be able to parse 32-bit zip files correctly.

Which tools do you use to code in Nim?

2023-10-02 Thread dissolved_girl
[neovim](https://github.com/neovim/neovim) \+ [LazyVim](https://www.lazyvim.org/) (with a pretty default configuration) + [nimlangserver](https://github.com/nim-lang/langserver) \+ [zah/nim.nvim](https://github.com/zah/nim.vim) (for the syntax highlighting). Works great. I used to use nimlsp bu