digitalmars.D - libc (glibc and others) runtime independance for Dlang programms. - is
- Alexey (1/1) Nov 12 2021 like in Go
- Imperatorn (3/4) Nov 12 2021 Do you mean like betterC? 🤔
- Kagamin (2/2) Nov 12 2021 Sort of, if you do something like
- IGotD- (14/15) Nov 12 2021 I find this a good question and I don't really understand the
- SealabJaster (4/5) Nov 12 2021 I sort of tried it: https://github.com/BradleyChatha/bcstd
On Friday, 12 November 2021 at 09:55:24 UTC, Alexey wrote:like in GoDo you mean like betterC? 🤔 https://dlang.org/spec/betterc.html
Nov 12 2021
Sort of, if you do something like https://github.com/matheusmoreira/liblinux
Nov 12 2021
On Friday, 12 November 2021 at 09:55:24 UTC, Alexey wrote:like in GoI find this a good question and I don't really understand the point of being dependent on libc, especially when D is more than able to cover the functionality of libc completely of its own. However, there might be situations you want it, like using malloc/free from libc rather than the Druntime allocator. This should be a non-default option though. Independence gives D more control over its environment. The disadvantage is that the D project needs to do more, for example right now D is piggy backing on libc initialization (crt0) and if we are not using libc for that the D projects need to write platform dependent initialization which requires more work. The goal for D should be as much libc independence as possible. While it require a lot of work, this approach can be gradual.
Nov 12 2021
On Friday, 12 November 2021 at 09:55:24 UTC, Alexey wrote:like in GoI sort of tried it: https://github.com/BradleyChatha/bcstd I found it pretty hard (unsurprisingly) to account for both Windows and Linux though, and kind of lost motivation for it.
Nov 12 2021