
Functional Programming with D ― Andreas Zwinkau
Apr 13, 2013 · Since Functional Programming (FP) is a paradigm, it is not limited to a specific language. You can write functional programs in any language, although it is quite ugly and tedious in some. …
D offers an innovative approach to concurrency [and parallelism], featuring true immutable data, message passing, no sharing by default, and controlled mutable sharing across threads.
Functional Programming ― Andreas Zwinkau
Jun 25, 2012 · 1. Immutable Data Never change data. Just wrap and extend old data to create new data.
Deep Copying ― Andreas Zwinkau
Jun 21, 2012 · A deep copy can simply return its argument if the object is immutable, since the state of immutable data never changes. Requirements There are usual more practical requirements. For …
Idiomatic D — d-tutorial 0.1 documentation
Constness ¶ D provides const and immutable keywords. Aim for const input and immutable output.
Language Design for Concurrency ― Andreas Zwinkau
The best approach for correctness is to keep that immutable. And correctness is a hard feature in concurrent programs. Sometimes immutability is not an option. In this case, the state should better …
How Types are Used ― Andreas Zwinkau
Restrictions Restrictions are a great way to prevent mistakes. For example, private class members cannot be accessed from outside. Some variables might be constant (or immutable).
File system on a keystore ― Andreas Zwinkau
Jun 25, 2009 · Since every change of a value changes the key, the data is effectivly immutable (as long as every participant behaves correctly). This also means that every change to a file, demands a …
Software Folklore ― Andreas Zwinkau
Send me more stories, if you know some. Of course, reddit also has a collection and Hacker Newsers like to tell stories as well. In my blog, I sometimes write stories like The Architect Rewritten (a Matrix …
How to implement strings
Nov 3, 2018 · This combination of capacity and indirection describes well how slices in D work. We can efficiently append to strings due to capacity and we efficiently use substrings due to the indirection. A …