Is there any plan for a dependency-free subset of "core" runtime?
Seb
seb at wilzba.ch
Thu Jul 19 11:35:00 UTC 2018
On Thursday, 19 July 2018 at 10:27:36 UTC, Zheng (Vic) Luo wrote:
> Current implementation of d-runtime relies on a lot of symbols
> from libc, librt, libpthread, which makes it hard to create a
> minimal runtime used for embedded devices. Although there are
> some unofficial minimal versions of d-runtime, many of them
> lack maintenance and outdates rapidly. I was wondering that is
> there any plan for a https://doc.rust-lang.org/core/ library in
> D world, which only depends several explicitly-defined symbols?
Well, since 2.079 it's actually possible to use D without a
dependency any runtime (even libc):
https://dlang.org/changelog/2.079.0.html#minimal_runtime
Also with -betterC you can actually use lots of things from core
that don't depend on the runtime. For example,
std.algorithm/range works in betterC:
https://run.dlang.io/is/38yowj
Now, I assume you are asking whether there are plans for a
minimal -betterC runtime?
There aren't "official" plans, but AFAICT a few people are
independently working on this. It might be a good idea to join
efforts with them.
More information about the Digitalmars-d-learn
mailing list