4 ms·
Not really related to the type system and bridging, but can the compiled code run in real-time without interference by the garbage collector? Can you define an
by nyanpasu64 5y ago
Not really related to the type system and bridging, but can the compiled code run in real-time without interference by the garbage collector? Can you define an entire thread running statically typed code which never gets interrupted by the garbage collector? C# definitely can't do the latter.
Or am I confusing "statically typed" and "no GC"? Sadly a lot of even statically-typed languages lack support for transparently bridging between application and no-GC real-time code, using the same data types on both sides. I'd be fine writing application code in a no-GC language, but it seems most GUI libraries are sadly for GC languages.
- reikonomusha 5y agoThey’re different concepts. Statically typed doesn’t mean that lifetimes are determined statically.
- Smaug123 5y ago"Statically typed" means roughly that variables have known types at compile time, for whatever the word "type" means in your chosen language. "No GC" means, well, that there is no runtime entity that manages memory cleanup for you. They are totally unrelated.