3 ms·
I am watching patiently from a distance to my hands on a well-designed frontend language but can't help to wonder... is it really _that_ inefficient to call a J
by DarkNova6 1y ago
I am watching patiently from a distance to my hands on a well-designed frontend language but can't help to wonder... is it really _that_ inefficient to call a JS wrapper to touch the DOM?
Most code already is so horribly inefficient that I can't imagine this making a noticeable difference in most scenarios.
- thrance 1y agoNo, it's not that bad honestly. But it's not more efficient than JS either, and all this ugly glue code hurts my sensibility.
- DarkNova6 1y agoSounds like something that could be trivially turned into a library, no?
- thrance 1y agoThere are some already (https://docs.rs/web-sys/latest/web_sys https://docs.rs/web-sys/latest/web_sys, for example), and I made mine too as an exercise. But it's still ugly, unecessary, verbose and inefficient code.