News for hackers. Stuff that matters.
Re:Solitaire: Authentic remake of the Windows 95 original by userbinator on Saturday April 20, 2024 @01:37AM (#40095089)

    Full installation of Windows 95 - ~64MB
    sol.exe - 167KB

    jre-9.0.4_windows-x64_bin.exe - 96.6MB (compressed)
    Solitaire.jar - 463KB
It seems that even a VM containing all of Windows 95 would be smaller than a JRE and this version of Solitaire.
Re:Solitaire: Authentic remake of the Windows 95 original by qingcharles on Saturday April 20, 2024 @03:38AM (#40095547)
I saw a launcher in Task Manager today using 96MB of RAM. Its only job is to launch another app.

For a couple of years I programmed on a device where ALL the apps combined had to total less than 8KB.

Re:Solitaire: Authentic remake of the Windows 95 original by lionkor on Saturday April 20, 2024 @03:57AM (#40095625)
Can we explain what this memory does? Is it just abstractions ontop of abstractions etc?
Re:Solitaire: Authentic remake of the Windows 95 original by qingcharles on Saturday April 20, 2024 @04:06AM (#40095671)
The app simply has an image and a button that says "OPEN" on it, which launches the other app.

I'm guessing it is Electron or something and underneath it is loading an entire web browser engine to display the image and the button.

Re:Solitaire: Authentic remake of the Windows 95 original by samuell on Saturday April 20, 2024 @04:06AM (#40095675)
Not to complain too much on a praise worthy effort, but it would have been so nice if this was coded in FreePascal with Lazarus. Then we would have tiny native binaries for all the desktop platforms, which would feel even more native.
Re:Solitaire: Authentic remake of the Windows 95 original by qwerty456127 on Saturday April 20, 2024 @04:13AM (#40095704)
Nevertheless it's just such a delightful gulp of fresh air to open the repo of a GUI app and see it's not in JavaScript :-) An Electron instance with the same would probably take even more memory, wouldn't it?
Re:Solitaire: Authentic remake of the Windows 95 original by wolletd on Saturday April 20, 2024 @06:27AM (#40096239)
I recently build some internal app with Qt. Unfortunately, building Qt apps on Windows is somewhat complex.

Also I didn't find a way to install Qt on Windows without later receiving E-Mails from Trolltech (or The Qt Company, nowadays) trying to sell Qt to me.

Re:Solitaire: Authentic remake of the Windows 95 original by qwerty456127 on Sunday April 21, 2024 @01:33AM (#40103384)
> Also I didn't find a way to install Qt on Windows

pip install pyqt5-tools gets you everything incl the designer :-)

It may fail building though.

Re:Solitaire: Authentic remake of the Windows 95 original by pjmlp on Saturday April 20, 2024 @04:02AM (#40095651)
That is because they haven't bothered to use jlink.

Shipping JRE isn't a thing since Java 9, other than for folks stuck in old Java ways.

Re:Solitaire: Authentic remake of the Windows 95 original by raverbashing on Saturday April 20, 2024 @02:51AM (#40095394)
It would be an interesting exercise to try the port using WxWindows or something similar
Re:Solitaire: Authentic remake of the Windows 95 original by widge on Saturday April 20, 2024 @05:00AM (#40095893)
wxWindows?
Re:Solitaire: Authentic remake of the Windows 95 original by raverbashing on Saturday April 20, 2024 @06:06AM (#40096158)
Called wxWidgets now https://www.wxwidgets.org/
Re:Solitaire: Authentic remake of the Windows 95 original by ktosobcy on Saturday April 20, 2024 @05:03AM (#40095916)
Developer should have used jlink to get smaller distribution package, alas it would still be bigger.

OTOH - I wonder what the size of native binary would be

Re:Solitaire: Authentic remake of the Windows 95 original by rpigab on Saturday April 20, 2024 @05:08AM (#40095935)
That's right, but we have to remember it's not really useful to optimize for binary size or RAM usage for a software that does not need multiple instances on servers, it's an end user app that you only need one of.

I think Java is a nice choice for a Solitaire game. If you're looking for efficiency, take a look at my command-line Solitaire that you can play in Gitlab pages or in a terminal : https://gitlab.com/rpigab/solitaire-cli

It's written in Rust so by design, it should be blazingly fast wink wink. Well there are many ways to shrink the binary, I didn't try to yet, the WebAssembly part too is way bigger that it would need to, but still, it's smaller and there's less colors, shapes and animations to display.

Re:Solitaire: Authentic remake of the Windows 95 original by trallnag on Saturday April 20, 2024 @06:46AM (#40096328)
Instead you end up with 20 Java microservices each taking up a gig of memory
Re:Solitaire: Authentic remake of the Windows 95 original by tjoff on Saturday April 20, 2024 @05:44AM (#40096082)
... that sentiment is how we ended up requiring 1GB of ram for sending text...
Re:Solitaire: Authentic remake of the Windows 95 original by rpigab on Saturday April 20, 2024 @07:46AM (#40096612)
Is that true or just hyperbole? On what system?

I love working towards making systems as efficient as possible, but in real life, engineer hours are limited and compromises exist.

Also, if this is quantitative, we could make the same argument with 1MB, and 1KB, and less. Sending text doesn't require RAM at all, it requires carrier pigeons.

Re:Solitaire: Authentic remake of the Windows 95 original by VelesDude on Saturday April 20, 2024 @07:03AM (#40096410)
A slight tangent but it is kind of mind melting that smartphones now do need a minimum of 1GB just to send an SMS. I mean look at any Nokia phone form the 90's and none of them probably had more than 1MB of RAM, many way below that. Yes there is a lot of quality of life and security features but the bloat is real.
Re:Solitaire: Authentic remake of the Windows 95 original by throwawayyy9237 on Saturday April 20, 2024 @10:30AM (#40097605)
Imagine an Adobe version of this. 64Gb at least.