Flexible Default Function Parameters via structs with Nullable Fields

2019-04-29 Thread Mike Parker via Digitalmars-d-announce
Victor Porton shows how he uses string mixins to generate structs 
with Nullable fields at compile time to help him pass arbitrary 
subsets of explicit and default arguments to functions in D.


The blog:
https://dlang.org/blog/2019/04/29/flexible-default-function-parameters/

Reddit:
https://www.reddit.com/r/programming/comments/bip83x/flexible_default_function_parameters_in_d/


Re: libfirm-d - D bindings of Firm, a compiler IR based on the SSA form

2019-04-29 Thread Basile B. via Digitalmars-d-announce

On Sunday, 1 July 2018 at 12:04:06 UTC, Basile B. wrote:

I've recently ported libfirm to D.

This nice C library, developed at the Karlsruhe university, 
allows to build compiler back-ends, using the SSA intermediate 
representation.


In theory it could even be used to make a new D compiler 
version, e.g "FDC", although this is obviously of no interest ;)


So this is mostly to make JIT scripting engines or back-ends 
for toy languages...


See:

- https://github.com/BBasile/libfirm-d
- https://code.dlang.org/packages/firm-d
- https://pp.ipd.kit.edu/firm/

Note that unfortunately this library is LGPL2 licensed, so much 
less usable than LLVM-d, which is a similar but a more 
mainstream library.


With the recent release of dstep 1.0.0 I've managed to make a new 
minor release that only auto generate the sources (v0.1.0). It 
was obviously not a good idea to maintain all the headers up to 
date manually, although this permitted to learn a bit the API.


Note that building must be done at least twice the first time 
because of a DUB limitation.


other changes :
- dub package on code dlang is gone, it must really be a git 
stuff now

- it's much faster because build is optimized using git hashes.
- location changed due to GH account renaming

https://github.com/Basile-z/libfirm-d


Re: Release Candidate 2.086.0 [was: Re: Beta 2.086.0]

2019-04-29 Thread kinke via Digitalmars-d-announce

On Monday, 29 April 2019 at 09:43:04 UTC, Martin Nowak wrote:

The release candidate is live now.


FWIW, I consider https://issues.dlang.org/show_bug.cgi?id=19822 a 
release blocker.


Re: Release Candidate 2.086.0 [was: Re: Beta 2.086.0]

2019-04-29 Thread Bastiaan Veelo via Digitalmars-d-announce
The list in 
https://dlang.org/changelog/2.086.0.html#copy_constructor is 
still broken by the examples inside it. Do we have a DDOC expert 
that knows how to solve that?


Bastiaan.


Release Candidate 2.086.0 [was: Re: Beta 2.086.0]

2019-04-29 Thread Martin Nowak via Digitalmars-d-announce

On Saturday, 20 April 2019 at 14:16:09 UTC, Martin Nowak wrote:
Glad to announce the first beta for the 2.086.0 release, ♥ to 
the 52 contributors.


The release candidate is live now.

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

-Martin