LDC 1.38.0

2024-05-10 Thread kinke via Digitalmars-d-announce

Glad to announce LDC 1.38.0. Major changes:

- Based on D 2.108.1.
- Support for LLVM 18; the prebuilt packages use v18.1.5.
- Android: Switch to native ELF TLS, supported since API level 29 
(Android v10), dropping our former custom TLS emulation 
(requiring a modified LLVM and a legacy ld.bfd linker). The 
prebuilt packages themselves require Android v10+ (armv7a) / v11+ 
(aarch64) too, and are built with NDK r26d. Shared druntime and 
Phobos libraries are now available (`-link-defaultlib-shared`), 
as on regular Linux.


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


Thanks to all contributors & sponsors!


Re: Beta 2.109.0

2024-05-10 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce

On 11/05/2024 4:00 AM, Iain Buclaw wrote:

Fix your gitconfig then. :-)


Oh dangit, I hadn't noticed that it changed on me.

It was set correctly a few months ago! Ug.

Wonder why it changed after it was set correctly.


Re: Beta 2.109.0

2024-05-10 Thread Iain Buclaw via Digitalmars-d-announce
On Friday, 10 May 2024 at 09:19:58 UTC, Richard (Rikki) Andrew 
Cattermole wrote:

On 10/05/2024 9:14 PM, Iain Buclaw wrote:

[...]


Looks like my name needs cleaning up! Its there four times.



Fix your gitconfig then. :-)

All information is taken from git history and bugzilla.



We should also probably remove:

"DigitalMars sppn does not support anything newer than C99. It 
is known to be limited and using any Unicode character not in 
those ranges will result in an error."


Since OMF is gone :D


But not entirely cleaned up in dub or phobos yet.



Re: photon v0.9.0 with Go-style D-flavored channels!

2024-05-10 Thread Dmitry Olshansky via Digitalmars-d-announce

On Friday, 3 May 2024 at 17:12:40 UTC, Dmitry Olshansky wrote:
On Monday, 29 April 2024 at 20:50:59 UTC, Dmitry Olshansky 
wrote:
On Monday, 29 April 2024 at 20:50:24 UTC, Dmitry Olshansky 
wrote:
Photon is a minimalistic multi-threaded fiber scheduler and 
event loop that works transparently with traditional blocking 
I/O C/C++/D/Rust libraries w/o degrading performance.




And now we have Channels, gentelmen. The only missing bit is 
`select` function to multiplex on a bunch of channels.


And the wait is over! Now there is a select function to multiplex 
on read side of a bunch of channels. This also fixes a bug in the 
poll syscall override with multiple events on posix systems


https://github.com/DmitryOlshansky/photon/blob/master/examples/select.d

```d
module examples.select;

import std.range, std.datetime, std.stdio;

import photon;

void main() {
startloop();
auto first = channel!(int)(2);
auto second = channel!(string)(1);
go({
delay(500.msecs);
first.put(0);
first.put(1);
delay(500.msecs);
second.put("ping");
});
go({
foreach ( _; 0..3) {
select(
first, {
writefln("Got first %s", first.take(1));
},
second, {
writefln("Got second %s", second.take(1));
}
);
}
});
runFibers();
}

```


---
Dmitry Olshansky
CEO @ [Glow labs](https://glow-labs.pro)
https://olshansky.me/about/





Re: Beta 2.109.0

2024-05-10 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce

On 10/05/2024 9:14 PM, Iain Buclaw wrote:
Glad to announce the first beta for the 2.109.0 release, ♥ to the 41 
contributors.


This release comes with 14 major changes and 22 fixed Bugzilla issues, 
including:


- In the language, the special function `__ctfeWrite` has been to write 
messages from CTFE.

- Introspection capabilities have been added to Bit-fields.
- In the compiler, missing symbol errors from the linker are now 
formatted to be more readable.


http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.109.0.html

As usual please report any bugs at
https://issues.dlang.org

-Iain
on behalf of the Dlang Core Team


Looks like my name needs cleaning up! Its there four times.

We should also probably remove:

"DigitalMars sppn does not support anything newer than C99. It is known 
to be limited and using any Unicode character not in those ranges will 
result in an error."


Since OMF is gone :D


Beta 2.109.0

2024-05-10 Thread Iain Buclaw via Digitalmars-d-announce
Glad to announce the first beta for the 2.109.0 release, ♥ to the 
41 contributors.


This release comes with 14 major changes and 22 fixed Bugzilla 
issues, including:


- In the language, the special function `__ctfeWrite` has been to 
write messages from CTFE.

- Introspection capabilities have been added to Bit-fields.
- In the compiler, missing symbol errors from the linker are now 
formatted to be more readable.


http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.109.0.html

As usual please report any bugs at
https://issues.dlang.org

-Iain
on behalf of the Dlang Core Team