I want to cry when I see simple software like Sticky Notes in Windows 10 using dozens of MB of memory and have a 30+MB install size with minimal functionality.
I don't have a big issue with .NET and Java based apps but I seem to be using more and more Electron based software and while the software isn't bad it sucks that every program comes with its own bloated framework :(
https://web.archive.org/web/20030618002602/http://www.tinywi...
[1] Nintendo reported us to some software theft agency over "Tiny Donkey Kong" (I forget what the agency was called) and that got us threatened us with scary emails. We tried to protest that we just supplied emulators, and not ROM images, but it fell on deaf ears and we were too young and intimidatable to stand our ground. It's a shame, since it was a popular site in its day.
https://groups.google.com/d/msg/alt.comp.freeware/yKQBaHgjGD...
https://news.ycombinator.com/item?id=12985672
I'm afraid (or perhaps the word I'm looking for is "glad" ;-) that the Internet has passed tinyapps.org on by. After its fleeting 15 seconds of fame back in 2001 (thanks to a Slashdotting and tiny blurb in Wired), the site has mainly served as an irregular tech blog lo these many years.
Your blog is always a breath of fresh air any time I happen to stumble by one of your solutions in response to searching for help. Definitely one of my "trusted" sources - don't ever let that domain expire!
Is there some sort of @mention bookmarklet/browser extension in HN?
The first HN notification system I learned of and used was HN Notify[2,3] by Riyad of The Buzz Media[4].
I've been using edavis' hnrss.org[5] of late; it "provides custom, realtime RSS feeds for Hacker News", including for user posts and comments.
A quick search just now turned up dangrossman's HN Replies[6,7] and a few other monitoring options[8].
But in this case, it was indeed steanne's kind email that alerted me to the HN post.
[2] https://web.archive.org/web/20120103200449/http://hnnotify.c...
[3] https://github.com/rkalla/hnnotify
[4] https://web.archive.org/web/20120119135841/http://www.thebuz...
[5] https://edavis.github.io/hnrss/
[7] https://news.ycombinator.com/item?id=11080539
[8] https://www.google.com/search?q=hacker+news+comment+notifica...
great job Miles
Executable size may not be the best measure of these things though. Ram usage of some things can be quite huge. tinyapps.org seems to avoid this by disallowing things needing runtimes, which while not the cause of RAM bloat, often tends to be a common factor.
I'd actually like to see an interface for micro controller style apps. Like An 8 bit AVR emulator that could do some kernel syscalls to the hosted environment. It would allow for a class of apps to be written that would have a fixed memory footprint. There's some Irony here in that this would also be a runtime.
I once had a volume knob widget on my task bar that used 4 meg of ram. Somehow I feel it could have been done better.
When I'm not being so grumpy, I'm glad it's easier to write apps than ever before. I think someone on here posited that it's a choice between something written in Electron or not written at all. I think that's fair enough - maybe we just need to make it easier to write tiny apps. Rust and Go look great, even with a very steep learning curve coming from C# and Python.
And yes, I know as a C# developer sitting on top of hundreds of megabytes of runtime, I'm "part of the problem".
But it was easy before. If you are willing to forego completely native UIs (which you are when you are using Electron), it's always been easy to make GUI apps with Qt. Drag together an UI in designer, use (py|whatever)uic to generate classes, hook up signals/slots, and you are done.
I can only pin it on intellectual laziness of front-end programmers not wanting to learn anything else than HTML/CSS/JS and companies wanting replaceable developers. There is virtually no benefit for the end user over native applications or cross-platform applications written with e.g. Qt.
Here is an old video i made 2-3 years ago where i write a small 2D tilemap editor with Lazarus (the first 5-6 minutes are downloading and installing Lazarus and a tile editing tool i wrote since i used Windows 7 for that vidoe and the Win7 paint program sucks) https://www.youtube.com/watch?v=_3JgeIUo1X0
To be fair, Qt is a lot trickier than Electron - you've mentioned slots and signals which are not something you'd encounter every day (at least in webdev world).
Edit: I also don't buy any argument that relies on "intellectual laziness". There's enough elitism around already.
VsCode is an excellent use case for electron - a complex cross platform app with a very quick release cycle, a large plugin ecosystem and a requirement for display and processing of a lot of different types of markup.
But I've also seen a tray notification app worn in electron. It didn't even have a UI. There's also an sd card formatter, and a "quick" launcher.
Devs who wasn't to release some tiny single function app like this should rightly be ridiculed for using electron, but more complex stuff (gitKraken etc) should get a pass. Building a large, complex editor is hard work
I was actually, partly, looking for a community who built or curated lists of apps with artificial constraints, for example: app must not use more than N MB of ram, must be open source, etc.
there is the demo scene, but I want to build practical apps, and there is suckless, but I found their community and philosophy a bit ... hardcore and unaccommodating.
"app must not use more than N MB of RAM" is a tricky one - how would you measure usage in all cases?
I believe that it is Delphi which sits right at the sweet spot of 'native code', 'easy gui development' and 'easy deploy' and I am sad that it is not really in use anymore.
This should be a solvable problem, IMO.
I mean, C/C++ apps are not inherently tiny - they sit on top of a large runtime too, but one that usually comes with the OS. What makes Python or Lisp apps (in binary form) multi-megabyte by default is that they can't depend on users having the runtime installed, unlike C/C++ apps. JVM managed to cross that gap too - most users, at some point, will install a JRE, which allows .jar files to be small.
I wonder why generalized solution for managing programming language runtimes OS/user-side didn't materialize.
What makes managed/VM based languages big is that those runtimes are general purpose, and therefore have to embark what most people need. A C/C++ app embarks (mostly) only what's necessary.
I can compile a hello world for bare metal, replace puts with a routine that sends the characters to the serial output, add the necessary UART initializations, and the final program will still be a bunch of order of magnitudes smaller that a Python install. The comparison is unfair of course, but it proves one thing: no multimegabyte runtime in C.
Yesterday, I decided to finally retire my old self-written 'sticky notes' utility, and migrate all my notes to the built in Windows 10 Sticky Notes.
* My note app: ~3mb whilst running.
* Win10 Sticky Notes: ~22mb whilst running.
22mb might not be a lot of ram, but I do struggle to understand how it's using that much memory just to display small squares with text in them...
...
Anecdote: Two hours later, whilst trying to copy-paste text from one note to another, I lost the text completely, and Sticky Notes crashed... ~sigh~ back to my crappy app then...
Basically there's just a lot going on under the hood for many of these "simple" apps that isn't user facing. For better or for worse, that's why.
hmm wasn't aware of that, and didn't see the option - if this so, then I shall redact my outrage. :)
https://en.wikipedia.org/wiki/Apollo_Guidance_Computer
https://en.wikipedia.org/wiki/IBM_System/4_Pi
https://www.nasa.gov/mission_pages/shuttle/flyout/flyfeature...
The minute you start touching modern languages and OS's things become significantly more difficult to shrink into small platforms.
> I'd actually like to see an interface for micro controller style apps. Like An 8 bit AVR emulator that could do some kernel syscalls to the hosted environment. It would allow for a class of apps to be written that would have a fixed memory footprint. There's some Irony here in that this would also be a runtime.
As rebootthesystem suggests, this sounds a lot like a niche that would be well-served by a purpose-built Forth interpreter. Such interpreters have been used to e.g. facilitate interactive development or hot-patching on actual microcontrollers and other constrained systems. There's a surprising amount of symmetry with Lisp systems, but the traditions of Forth tend to value small code for both application and implementation. There's probably nothing preventing a tiny Lisp from filling the same role.
> Home of dwm, dmenu and other quality software with a focus on simplicity, clarity, and frugality.
These are all no-dependency, and all <100KBytes:
Keyboard layout switcher for Windows: https://github.com/tom-seddon/kbswitch
Windows window manipulation tools, for use with AutoHotKey: https://github.com/tom-seddon/align_window2, https://github.com/tom-seddon/align_window3, https://github.com/tom-seddon/dispswitch
Snack-size Windows clock: https://github.com/tom-seddon/NotifyClock
I think the large ones are only as large as they are because they statically link with the CRT. I used to do the full /NODEFAULTLIB /OPT:NOWIN98 thing, and leave out the CRT entirely, so the EXEs were tiny and had no dependencies - but this was a bit of a pain to work with. And dynamically linking with the CRT caused me a couple of deployment problems here and there, since I used to share my binaries folder between several PCs in the past. So eventually I settled on the purely no-dependency option: statically linking with the CRT, and ignoring the EXE size. The average app just isn't made meaningfully larger in the grand scheme of things by this, and by modern standards it barely even counts as measurable. Even if it's a tiny app, and now 10x larger, it might still be only 90KBytes...
It seems that programs get bloated and slower with each passing day. I'd love to see a Renaissance of small, focused, efficient applications.
https://web.archive.org/web/20160710205728/http://donkeyssta...
https://web.archive.org/web/20160619170739fw_/http://donkeys...
Via Wayback Machine,unfortunately, as often happens another dead piece of the internet.
The actual Winexplorer tool has not been cached, I just uploaded a copy here:
http://www90.zippyshare.com/v/OlyKhob6/file.html
The compiled executable is 164 kb, and the .zip includes sources.
It is a simple replacement for Explorer with a number of nice features.
Even the latest MacOS, Windows, Linux, etc are all running decades old chunks of code. And yet, they still run well.
Old code is debugged code. It's (mostly) proven code. It's aged leather. It feels good and it just works.
Everything doesn't have to be "modern".
[1]: https://fman.io
[2]: https://fman.io/blog/picking-technologies-for-a-desktop-app-...
Back in the 90s I used this DOS text editor that fit on a single floppy sector (512B). I forget the name, but it was a part of my standard toolkit for many years.
These days, I run "evilwm" for my home desktop. That's about as small and efficient as a DE/WM gets anymore, and I love it.
Disclaimer: Currently working at AnyDesk.
http://www.bcheck.net/apps/hoe.htm
customized hotkey launcher.
Written in assembly I believe. You can modify it far beyond bosskey.
http://members.ozemail.com.au/~nulifetv/freezip/freeware/
http://members.ozemail.com.au/~nulifetv/freezip/freeware/dsf...
Sort of dd for Windows:
dsfi.exe 5,061 bytes
dsfo.exe 6,637 bytes
fsz 6,144 bytes <- same use as /dev/zero can create files filled with 00's
And - as a side note - a related rant: http://reboot.pro/topic/15207-why-everything-is-so-dmn-diifi...