Like: is it possible to only load parts of the program? Is the answer just to have multiple small programs? Feel this conceptually ties into WASM too, albeit with more obstacles (async networking, handling load errors, prefetching, limited runtime).
Question I don't know the answer to: is it possible for a single binary to not load the whole code into memory before executing? I know from video games that incremental loading is a really nice way of minimizing load screens. Usually using interpreted languages.
-
-
Show this thread
-
I guess this might be a general question of: "How do you make big applications memory efficient?" Or is app logic hardly the offender, and is it more about making sure we load / unload assets gradually?
Show this thread
End of conversation
New conversation -
-
-
Can’t you do that through the magic of DLLs?
-
Maybe! But suspect it might already be happening at the OS level. Really curious how this works tho. Mmap perhaps?
- 1 more reply
New conversation -
-
-
Have you looked a dlopen / LoadLibrary? You can split your program into pieces and dynamically link those together, and either manually load the pieces as you need them or instruct the dynamic linker to resolve symbols lazily so code is only loaded as it is needed
-
Ah misunderstood the question. Didn't see that you meant parts of a single executable to be loaded in a lazy way
- 4 more replies
New conversation -
-
This Tweet is unavailable.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.