Quill - A nim js library for making text editors

2023-02-07 Thread pietroppeter
> I just checked the function from nimib, and that file is not compatible with > nim js, Huh that is weird, I was expecting code there to be fairly tame and the imports too (from stdlib) I was expecting them to work in js

Why vtable implementaion is not better than subtype checking implementation?

2023-02-07 Thread ringabout
It seems that the vtable implementation works great when there are 50 object types with 5 methods and 100 instances ref 50 object types with 5 methods and 100 instances vtable: `nim c -r -d:release` dummy value: 34803480 time: 0.0054946001 Run the old imp

what's with deepCopy?

2023-02-07 Thread mode80
Oh, that explains it. Thanks

Quill - A nim js library for making text editors

2023-02-07 Thread Nlits
I will look at it! I agree this would be a good idea. And @inv2004, I tried shift+arrow and it did work. You should note that at it's core, it is a glorified `textarea`, so anything that works with a `textarea` tags will work here

Quill - A nim js library for making text editors

2023-02-07 Thread inv2004
Very interesting, because I was trying to make some small PoC of the text editor and wanted to make demo in browser, but TUI happened to be easier to choose. Will try to switch into you lib

Quill - A nim js library for making text editors

2023-02-07 Thread pietroppeter
This looks pretty cool, thanks for making it and sharing! I cannot find the nim code to generate the behaviour in the [live demo](https://thatrandomperson5.github.io/Quill/example) (I even searched for "newline" in the repo), is it anywhere in the repo? It would be cool to have a demo where the

Mysql limit not working

2023-02-07 Thread tubbs
Ok, thanks alot!

Getting started with Nim on attiny85

2023-02-07 Thread nasl
NordicSemi name comes up when battery operation is a requirement and it's used widely in commercial products but I don't know much about it. As you pointed out Pi Pico and especially Espressif SoC power consumption is not great. I love Pi Pico for ease of use with it's build in USB (MSC mode!)

Mysql limit not working

2023-02-07 Thread Araq
MariaDB does not support `?` in this position but you should be able to use this: let x = 10 let entrys = db.getAllRows(sql("SELECT surname FROM the_table WHERE name='John' LIMIT " & $x)) Run

nimqt - bindings to Qt

2023-02-07 Thread Martinix75
to make him work to do: import os let app = newQApplication(commandLineParams()) I don't know maybe it should be reviewed?

Why vtable implementaion is not better than subtype checking implementation?

2023-02-07 Thread ringabout
I'm working on which replaces the dispatcher using subtype checking with the vtable dispatcher. But in the benchmark , they behave as good as each other. The old dispatcher gains per

Mysql limit not working

2023-02-07 Thread tubbs
WORKS => let entrys = db.getAllRows(sql"SELECT surname FROM the_table WHERE name='John' LIMIT 10") LIMIT AS PARAM NOT WORKING => let entrys = db.getAllRows(sql"SELECT surname FROM the_table WHERE name='John' LIMIT ?","10") I can't manage to pass LIMIT in as a param. If I would pass in name as p

Please help me analyze whether I have been deceived by this game

2023-02-07 Thread Davy200
Please help me analyze whether I have been deceived by this game You may have seen an advertisement about Fairy Cat Game recently, and I fell into the pit with the attitude of giving it a try. Now Let me talk about the experience of this game. I hope it will be helpful to the players in the fut

A seasoned programmer's take on Nim's docs

2023-02-07 Thread cmc
Thank you for the thoughtful input and the real world data points. I've felt similarly to your colleague a lot, I tend to run into situations where I'm stuck and there's nowhere to go. Then it seams that Nim is creating more problems than it solves. I think a good word that somes everything up

Getting started with Nim on attiny85

2023-02-07 Thread cmc
I think a good thing to look at is power. Raspberry pi pico seems to draw 25mA if idle and 390uA dormant, compared to the attiny85's 2mA and 1µa dormant. So if you don't need the pi's features, you can run an attiny85 a lot longer on a coin cell. I made a similar comparison once when I was look