News for hackers. Stuff that matters.

mvladic

Re:App Should Have Been a Website (and Probably Your Game Too) on Tuesday December 31, 2024 @06:53AM (#42558175)
Here is the screenshot showing memory consumption of Obsidian (I did wait 30 seconds for memory to settle down after initial spike which was 240 MB): https://pasteboard.co/uW2lPNSbL7f7.png

[EDIT] Here is memory consumption of Daino Notes: https://pasteboard.co/z5pciLoh99i6.png

Re:App Should Have Been a Website (and Probably Your Game Too) on Tuesday December 31, 2024 @06:28AM (#42558073)
Obsidian is an Electron app (I don't know if it belongs to the Block editor category). It loads just as fast as your app. I tried copying and pasting the text file War and Peace (66035 lines) from Notepad into both apps and, interestingly, Obsidian is slightly faster. Also, scrolling through this large chunk of text is slightly faster on Obsidian, too. Obsidian memory consumption (4 processes) is 172 MB and Daino Notes consumption (1 process) is 352.7 MB. Tested on Windows 11 PC.
Revolutionized IDEs? Isn't it, actually, a first mainstream IDE?
Re:C++17’s Useful Features for Embedded Systems on Sunday June 04, 2023 @02:33PM (#36188174)
Still, C++ is very useful on embedded systems. This article is just about that.
Actually, Croissant was invented in Austria according to wikipedia: https://en.wikipedia.org/wiki/Croissant
Yes, I agree. And it seems that the author of this blog post agrees with that also, because he wrote: "If I could wave a magic wand, I would create an open working group, with the influence of the W3C behind me, to create a mandatory web standard for browsers that defines both a subset (to simplify and create an appropriate desktop security model) and an extension of CSS/HTML that is specifically optimized for marking up and implementing desktop applications, and have that all built into modern browsers as standard."
There was also a large anti-fascist movement in Croatia during the Second World War: https://en.wikipedia.org/wiki/Croatian_Partisans.
Actually, there is already rast2 article: https://magcius.github.io/xplain/article/rast2.html. Also there is the menu article: https://magcius.github.io/xplain/article/menu.html.
Unfortunately, repository https://github.com/magcius/xplain is archived and the latest update is from 5 years ago.
Re:Why Figma Is Special on Saturday September 17, 2022 @11:47AM (#32878442)
> Browser hype is all good, but you have a memory limitation. And nothing beats a native app responsiveness.

I learned from the other HN comment that Figma is faster then Adobe XD (probably written in C++ as other Adobe software). Actually, Figma is also written in C++ then compiled with Emscripten to WASM, so it can run in the browser. Also, they skip DOM/SVG/Canvas 2D and use WebGL for fast rendering.

Re:Ballmer Laughs at iPhone (2007) on Saturday September 03, 2022 @04:01PM (#32705532)
The killer feature was the multitouch interface and removal of the keyboard. The same was with Macintosh, they removed the focus from the keyboard to the mouse. It is much easier to know what to do when you have several buttons on the screen instead of generic keyboard with many keys. I remember Steve Jobs emphasized this during the iPhone introduction event.
Re:Build a simple 2D physics engine for JavaScript games (2012) on Wednesday August 24, 2022 @05:34AM (#32576992)
Why would they use forEach? Is that criteria that your code is more modern? Or by forEach you mean: "for (const entity of entities) {...}"?
Re:Show HN: I made a little math game named Summle on Friday March 04, 2022 @11:13AM (#30556699)
[Spoiler alert] Terrible brute force program in JS says there is (possibly, didn't prove it) 6368 different solutions: https://gist.github.com/mvladic/9b2f2025a8c54aca78649ce17766...
Re:Is RT.com being censored in the West? on Friday February 25, 2022 @09:37AM (#30467711)
You can watch live stream here https://www.youtube.com/watch?v=GkHcrYqrrQ4
Re:CJSON – Ultralightweight JSON parser in ANSI C on Sunday February 13, 2022 @03:51AM (#30320341)
The size of cJSON structure that holds single JSON value is 80 bytes on 64-bit or 32 bytes on 32-bit architecture. Why the author doesn't use union here? Or NAN boxing trick like many JS interpreter do. In case of NAN boxing, single JSON value uses only 8 bytes on both 64-bit and 32-bit architecture.
Correct if I'm wrong, but FLTK is not using native widgets so it is not the same thing.
FYI builtin command "RMDIR /Q/S foldername" is fast, at least much faster then using windows file explorer.
Re:Autostereogram on Tuesday January 14, 2020 @04:22AM (#22043164)
Position your index finger between your eyes and monitor. If you focus on your index finger you will see only one index finger, but if you focus on monitor you will see two index fingers. Now, you need to do the same thing with the monitor, i.e. you need to see two monitors :-) by looking somewhere behind the monitor. If you separate two monitors just enough you will see the shark in 3D.