Jump to content

How inefficient is this programming idea?

AlTech
Go to solution Solved by Pinguinsan,

This is essentially a process of bootstrapping. It is very common in software (one example off the top of my head is Steam). If you want to try to see it done, go to your Steam installation folder, and delete all the files and folders except for "steam.exe", "steamapps", and "userdata", then run steam.exe as admin. You can watch as the program downloads and extracts packages needed for steam. If you have Linux, check out the "steam.sh" shell script which handles this. 

So to answer you question more directly, it is very common and not inefficient.

So this idea started out of a dislike for using Java and Window Builder.

 

 

This is my idea for packaging a program:

  1. Have a java launcher.jar program which gets information needed for the program
  2. Get the launcher.jar to save the information to a file
  3. Get the launcher.jar to launch another executable
  4. Have the new executable open the program.

 

Is this a really bad idea?

 

I thought of this since the executable I'm using can't get the information needed. The launcher.jar program could get the information required.

 

Would this have a big impact on startup time or not?

 

Thanks.

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
Share on other sites

Link to post
Share on other sites

The only overhead is in starting a thread which will be stuff all. Also this is stupidly easy to do in Unix, maybe the new powershell might be useful to you.

             ☼

ψ ︿_____︿_ψ_   

Link to comment
Share on other sites

Link to post
Share on other sites

This is essentially a process of bootstrapping. It is very common in software (one example off the top of my head is Steam). If you want to try to see it done, go to your Steam installation folder, and delete all the files and folders except for "steam.exe", "steamapps", and "userdata", then run steam.exe as admin. You can watch as the program downloads and extracts packages needed for steam. If you have Linux, check out the "steam.sh" shell script which handles this. 

So to answer you question more directly, it is very common and not inefficient.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Pinguinsan said:

This is essentially a process of bootstrapping. It is very common in software (one example off the top of my head is Steam). If you want to try to see it done, go to your Steam installation folder, and delete all the files and folders except for "steam.exe", "steamapps", and "userdata", then run steam.exe as admin. You can watch as the program downloads and extracts packages needed for steam. If you have Linux, check out the "steam.sh" shell script which handles this. 

So to answer you question more directly, it is very common and not inefficient.

Oh. Thank you :). Now I feel like a noob for asking this question :D.

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
Share on other sites

Link to post
Share on other sites

10 minutes ago, Pinguinsan said:

This is essentially a process of bootstrapping. It is very common in software (one example off the top of my head is Steam). If you want to try to see it done, go to your Steam installation folder, and delete all the files and folders except for "steam.exe", "steamapps", and "userdata", then run steam.exe as admin. You can watch as the program downloads and extracts packages needed for steam. If you have Linux, check out the "steam.sh" shell script which handles this. 

So to answer you question more directly, it is very common and not inefficient.

Even with Java opening the JVM, it wouldn't be inefficient?

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
Share on other sites

Link to post
Share on other sites

It's only inefficient in that it'll be slower than a direct-hardware language, but no, structurally it's a very common and good practice. Separation of concerns is a good thing :)

 

On 12/1/2016 at 11:16 PM, AluminiumTech said:

Even with Java opening the JVM, it wouldn't be inefficient?

The second jar will just open up in the same JVM, so there should be no palpable overhead there.

Software Engineer for Suncorp (Australia), Computer Tech Enthusiast, Miami University Graduate, Nerd

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×