www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - LDC 1.12.0-beta2 (based on LLVM 7)

reply kinke <noone nowhere.com> writes:
Glad to announce the second beta for LDC 1.12.

* Based on D 2.082.0+ (today's DMD stable).
* Support for LLVM 7, which is used for the prebuilt packages.
   Due to an LLVM 7.0.0 regression, the prebuilt x86[_64] LDC 
binaries
   require a CPU with SSSE3.
* New, Easy::jit-like interface for dynamic/JIT compilation.

Full release log and downloads: 
https://github.com/ldc-developers/ldc/releases/tag/v1.12.0-beta2

Thanks to all contributors!
Sep 29 2018
parent reply Dennis <dkorpel gmail.com> writes:
"LTO now basically working for Win64 too"
That's great! Why the "basically"?

On Saturday, 29 September 2018 at 19:00:09 UTC, kinke wrote:
 * New, Easy::jit-like interface for dynamic/JIT compilation.
What are the applications of that? Is there a code sample I can check out?
Sep 30 2018
parent kinke <noone nowhere.com> writes:
On Sunday, 30 September 2018 at 12:31:20 UTC, Dennis wrote:
 "LTO now basically working for Win64 too"
 That's great! Why the "basically"?
Just a precaution as it hasn't been tested extensively yet; Guillaume Piolat (p0nce) successfully tested it with his commercial codebase though, so it's looking good.
 * New, Easy::jit-like interface for dynamic/JIT compilation.
What are the applications of that? Is there a code sample I can check out?
The linked PR contains some tests, but they aren't showcases. The dynamic compilation feature per se isn't new; its main application is probably for a bunch of hot key functions, compiling them at runtime to fully exploit the CPU's instruction set (and having the ability to treat some variables as const for these functions). You may want to contact Ivan Butygin (Hardcode84) for more infos, this feature is exclusively his baby. :)
Sep 30 2018