Re: Beta 2.087.0

2019-06-17 Thread Marco de Wild via Digitalmars-d-announce

On Sunday, 16 June 2019 at 22:47:57 UTC, Martin Nowak wrote:
Glad to announce the first beta for the 2.087.0 release, ♥ to 
the 66 contributors.


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


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

-Martin


Cool! Lots of goodies are on the way.


Re: Optional 0.15.0 now compatible with vibe-d, @safe, @nogc, betterC.

2019-06-04 Thread Marco de Wild via Digitalmars-d-announce

On Tuesday, 4 June 2019 at 07:22:34 UTC, aliak wrote:

Hey,

I've recently released optional 0.15.0 [0] that includes 
support for vibe-d serialization/deserialization. So you can 
use it instead of Nullable for types that may or may not be 
there (I got bit by Nullable again so felt this had to be added 
[1])


Thanks! I've recently ran into the vibe-d serialization as well. 
It's awesome to be able to use Optional there.


Re: DConf 2019 Day 2 Livestream

2019-05-09 Thread Marco de Wild via Digitalmars-d-announce
On Thursday, 9 May 2019 at 07:45:41 UTC, Andrei Alexandrescu 
wrote:

Just checked, it works:

https://youtu.be/Vj6jNAlv03o


Thank you! I've shared it among friends.


Re: DConf 2019 Livestream

2019-05-08 Thread Marco de Wild via Digitalmars-d-announce

On Wednesday, 8 May 2019 at 10:13:35 UTC, Ethan wrote:

On Wednesday, 8 May 2019 at 07:57:40 UTC, Mike Parker wrote:
The venue uses WebEx for livestreaming. All the information is 
available in this PDF:


https://drive.google.com/open?id=1yekllbfOmxHqJNuuWIVeP9vNeROmfp1I


Good news everyone! A Youtube stream will be arriving after the 
lunch break.


Cheers for your patience.


Is there a URL we can share (for today)?


Re: Using const to Enforce Design Decisions

2019-03-26 Thread Marco de Wild via Digitalmars-d-announce

On Monday, 25 March 2019 at 20:59:41 UTC, Rubn wrote:
I guess obligatory 
http://jmdavisprog.com/articles/why-const-sucks.html


Good to read a different take on the subject. Jonathan uses a lot 
of arguments that I recognize (and adds a few that I didn't 
encounter in my project). I am a firm believer of using the type 
system and the compiler to aid development. Personally, I found 
it supplemental to the way I write code (with a strong DDD 
influence).


I've also tried to use pure, but (ironically) I found it harder 
to use. I think it's easier to understand when an object will be 
mutated or not than to predict whether there are side effects.


Would be nice to see the source code for this mahjong game as 
well.


https://github.com/Zevenberge/Mahjong

I've been learning on the job, so there are a few quirks of 
earlier times that managed to avoid the blade of refactoring 
(including a case I discovered yesterday where mutable state 
could potentially leak). In general, I'm quite happy with it 
though.


The code for the example in the blog is, among others:
https://github.com/Zevenberge/Mahjong/blob/master/source/engine/flow/turn.d
We are looking at a part of the state machine modelling the 
various moments (phases) in a mahjong turn, more precisely the 
action decided by the turn player (e.g. discard or declare a 
win). A message is sent to the players (UI or AI). The message 
exposes a read-only view on all game data relevant for making a 
decision. Manipulations can only be done through predefined 
methods in the message (conceptually a return message). This 
means that the turn player can declare a win through a method in 
the message, but not restart the game, as that would require 
access to a mutable game object.