Re:Show HN: LogicEmu – Online Logic Simulator
by abritinthebay on Tuesday June 05, 2018 @08:24PM
(#17243388)
Any reason for not using canvas or some kind of framework like Vue/preact/etc?
[ Parent
| on HN ]
Re:Show HN: LogicEmu – Online Logic Simulator
by kroltan on Wednesday June 06, 2018 @12:13PM
(#17248330)
The problem here is not a lack of framework, but the overkill usage of elements.
I think even a game-like approach of using a single canvas and re-rendering the whole screen when something changes would be more efficient than manual DOM mutations.
Re:Show HN: LogicEmu – Online Logic Simulator
by JustSomeNobody on Wednesday June 06, 2018 @08:02AM
(#17246266)
Not the OP but maybe because they wrote it in what they know and actually shipped.
Re:Show HN: LogicEmu – Online Logic Simulator
by uuu8728dw8d8d on Wednesday June 06, 2018 @02:55AM
(#17244902)
Snarky comments will be ignored.
╭∩╮⎛○⏜⏟〤○⎞╭∩╮
Re:Show HN: LogicEmu – Online Logic Simulator
by abritinthebay on Wednesday June 06, 2018 @04:22PM
(#17250778)
Wasn't snark, Mr Hostility. DOM manipulation is a very expensive operation and is abstracted by a lot of useful libraries - was wondering if there was a specific reason to not use them.
Canvas is another type of abstraction - and blitting to the screen is easier with it - so same applies.