4 ms·
You could use Java with Avian, which is a small embeddable, statically linkable JVM. It uses LZMA and aggressive dead code elimination to make tiny binaries. If
by mike_hearn 10y ago
You could use Java with Avian, which is a small embeddable, statically linkable JVM. It uses LZMA and aggressive dead code elimination to make tiny binaries. If you use it with SWT you get native widgets too, and they have an example which does exactly that weighing in at only one megabyte:
https://readytalk.github.io/avian-web/swt-examples/windows-x86_64/example.exe https://readytalk.github.io/avian-web/swt-examples/windows-x...
Creating such a tight binary isn't entirely point and click, but if you want a tiny self contained executable and don't want to assume a pre-existing runtime like .NET then your options are really only VB6 (classic), Delphi or VC++ and all of them will involve a lot of arcane wizardry too.
- chrisseaton 10y ago> don't want to assume a pre-existing runtime like .NET Don't all distributions of Windows include .NET by default?
- omnibrain 10y ago"Windows is not a .NET Framework delivery channel either" https://blogs.msdn.microsoft.com/oldnewthing/20110404-00/?p=11043 https://blogs.msdn.microsoft.com/oldnewthing/20110404-00/?p=... .NET could be disabled or some older version.
- TheLML 10y agoI've had to install .NET many times. Maybe it's due to people using older windows versions when the software uses a newer .NET version that isn't pre-installed
- kohanz 10y agoNo, but you can bundle the installer for the version you need into your own installer.
- vram22 10y agoNot "all" if you mean it literally. .NET came much later than Windows - maybe post-Win NT as well as post-Win 2K - others who know better can probably correct me or give a more precise date. I remember meeting and talking with (or rather he did more of the talking) a senior Microsoft software engineer who was involved in the first .NET version, and he was telling me stuff about it. He may not have used the term .NET (can't remember), but I remember him saying that it used XML throughout (and also a lot of other stuff about its advantages). Very enthusiastic about it, he was. It was only some time later that I realized that what was now called .NET, was the same as what he had been referring to in his talk with me. Also, Turbo Delphi Explorer (which was a stripped-down version of Delphi 6), came in two versions - the plain Win 32 version (non-.NET) and the .NET version. I remember, because I installed and used it some. Here's a blog post about a small utility I wrote with it (screenshot of the clock not there now, sorry): http://jugad2.blogspot.in/2010/08/digital-clock-v10-in-3-lines-of-delphi.html http://jugad2.blogspot.in/2010/08/digital-clock-v10-in-3-lin...
- vram22 10y ago> .NET came much later than Windows Before .NET there was only Win 32, and before that, Win 16. (Worked some on both). Edit: Okay, there was and maybe still is WoW too (Windows on Windows), and even something called Win32s (or 16s) (IIRC, but I don't know or remember much about those).
- midnitewarrior 10y agoWhat you CAN do is not what you SHOULD do or the recommended way of doing it. What you are saying may have made sense 15 years ago, but not today.
- TimJYoung 10y agoDelphi does not really involve any "arcane wizardy" for basic applications - it really is drag/drop/code/compile/deploy a single .exe. Things only get a little more complicated once you "up the level of polish" to a commercial application that needs to deal with high-DPI and multiple image sizes, etc. But, that's a problem for any platform that uses raster images for toolbars, menus, etc.
- mike_hearn 10y agoI was a Delphi programmer for years: yes it makes self contained binaries. But at this point the VCL definitely counts as arcane wizardry unfortunately - it's hard to think of a more legacy technology except maybe COBOL. More's the pity.
- TimJYoung 10y agoThen you also know that the VCL is a wrapper around the Win32 API, which is still present in Windows 10 and used by every native Windows desktop application on the planet, including .Net applications. So, how exactly is it legacy technology ?
- mike_hearn 10y agoI think it gets harder to hire people with strong Win32 knowledge every year, and there were always far more apps written against Win32 directly than the VCL.
- vram22 10y ago>Delphi does not really involve any "arcane wizardy" for basic applications Agreed. Said as a guy who is not a GUI programming expert - just used VB's earlier versions in real life projects (but more as project manager than dev, on those VB projects), and VB and Delphi (both in multiple versions) and wxPython for some small personal GUI apps. Not had any problems with Delphi that can be called arcane. And Pascal is a pretty straightforward language, and Object Pascal just adds some (mainly OO and GUI and Windows API) stuff on top of that.