Thread overview
[Issue 19575] core.cpuid not usable without a runtime
May 20, 2019
ponce
May 28, 2019
ponce
Jun 04, 2022
Walter Bright
Jan 07, 2023
Dlang Bot
Jan 26, 2023
Dlang Bot
May 19, 2019
https://issues.dlang.org/show_bug.cgi?id=19575

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilyayaroshenko@gmail.com

--- Comment #1 from Илья Ярошенко <ilyayaroshenko@gmail.com> ---
BetterC CPUID library. Bugs, if any, will be fixed quickly.

https://github.com/libmir/mir-cpuid

It is constructed with C runtime constructor, not shared static this. Also, you can call extern(C) mir_cpuid_init manually.

--
May 20, 2019
https://issues.dlang.org/show_bug.cgi?id=19575

--- Comment #2 from ponce <aliloko@gmail.com> ---
Well I want to use the core.cpuid in druntime, not the one in a library rewrite. I also use a library rewrite, but other parts of Phobos are affected by this lack of core.cpuid

Besides other problems of mir.cpuid:
- it depends on mir-core
- ...with a dependency version version="<0.3.0" which precludes bugfix for new
compilers, why not use ~>
  In SemVer major version 0 means "unstable" which means mir-core doesn't have
a stability guarantee? If it has, please tag a v1.0.0
- mir-core and mir-cpuid are tested with current/latest LDC and DMD but I do
use older compilers all the time. I can't depend on a DUB package that will
break compiler that are less than one year ago.

--
May 28, 2019
https://issues.dlang.org/show_bug.cgi?id=19575

--- Comment #3 from Илья Ярошенко <ilyayaroshenko@gmail.com> ---
1. mir-core v1.0.0 has been tagged.
2. Please specify compiler vendors and the oldest versions you need for
mir-cpuid. I will try to add support for them.

--
May 28, 2019
https://issues.dlang.org/show_bug.cgi?id=19575

--- Comment #4 from ponce <aliloko@gmail.com> ---
Well I don't promise to use Mir, but currently as an industry user I use:

- LDC 1.8.0  (released Mar 4, 2018 so not that long ago)
- and support equivalent DMD so v2.078.3 or later

This goes for all my open source libraries (intel-intrinics, printed, gfm,
dplug...)

It's a bit of work, but is reassuring for library users. It also force you to avoid newer D features which are usually a bit buggy or full of traps for GUI.

Besides, you can build with many compilers which derisk things.

When there is a major versions I deprecate a bunch of compilers, issue a major Semver tag (because this is a breaking change), and write a changelog entry.

I feel that the D ecosystem would flourish if depending on a DUB library was completely hassle-free.

--
June 04, 2022
https://issues.dlang.org/show_bug.cgi?id=19575

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |betterC
                 CC|                            |bugzilla@digitalmars.com

--
January 07, 2023
https://issues.dlang.org/show_bug.cgi?id=19575

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright updated dlang/dmd pull request #14671 "fix Issue 19575 - core.cpuid not usable without a runtime" fixing this issue:

- fix Issue 19575 - core.cpuid not usable without a runtime

https://github.com/dlang/dmd/pull/14671

--
January 26, 2023
https://issues.dlang.org/show_bug.cgi?id=19575

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14671 "fix Issue 19575 - core.cpuid not usable without a runtime" was merged into master:

- 63efd5f3e093e97733546f1b7c0a85882c316526 by Walter Bright:
  fix Issue 19575 - core.cpuid not usable without a runtime

https://github.com/dlang/dmd/pull/14671

--