On Friday, 22 September 2017 at 21:29:10 UTC, Steven
Schveighoffer wrote:
GC.addRange has this signature:
static nothrow @nogc void addRange(in void* p, size_t sz, const
TypeInfo ti = null);
I see a large problem with this. Let's say you malloc an array
of struct pointers:
struct Foo {
On Sunday, 8 October 2017 at 21:48:05 UTC, Fra Mecca wrote:
Hi,
I have noticed that there are elements of core and phobos that
are pretty ugly when printed via writeln.
One example is container.Array, but also exceptions.
Should we prettify all of them to have a result similar to the
one in
On Monday, 9 October 2017 at 17:44:12 UTC, jmh530 wrote:
On Monday, 9 October 2017 at 17:19:42 UTC, Petar Kirov
[ZombineDev] wrote:
Another point is that if the container contains many elements
automatically printing all of them would be ugly, unhelpful
and slow, while printing its identity
On Saturday, 14 October 2017 at 14:35:53 UTC, Shriramana Sharma
wrote:
Hello. I prepared a utility/library to output ANSI escape codes
for terminal text attributes with capabilities as advertised at
https://sites.google.com/site/jamadagni/files/temp/textattr-usage.html. (AFAIK this set of
On Sunday, 1 October 2017 at 01:54:24 UTC, Jonathan Marler wrote:
On Saturday, 30 September 2017 at 22:37:31 UTC, Jonathan M
Davis wrote:
On Saturday, September 30, 2017 16:57:09 solidstate1991 via
Digitalmars-d wrote:
On Saturday, 30 September 2017 at 16:22:37 UTC, Jonathan M
Davis
wrote:
>
On Saturday, 23 September 2017 at 22:07:58 UTC, bitwise wrote:
Of the few different architectures I tried, the fiber based
approach was much slower. It's possible that my implementation
did too many unnecessary context switches.
Can you give a bit more details? What kind of architectures do
On Wednesday, 4 October 2017 at 17:56:16 UTC, Walter Bright wrote:
On 10/4/2017 2:28 AM, Dukc wrote:
But you can't deny our solution eats expressive power: If you
don't want to change code you're importing, you have to write
a wrapper type for int[] here.
Please present an example.
I think
On Wednesday, 22 November 2017 at 00:19:51 UTC, codephantom wrote:
btw. what was the last compiler you wrote?
https://github.com/eth-srl/psi
https://github.com/tgehr/d-compiler
On Monday, 27 November 2017 at 06:36:27 UTC, Ola Fosheim Grostad
wrote:
On Monday, 27 November 2017 at 05:47:49 UTC, Dmitry Olshansky
wrote:
likely via RAII. Not to mention cheap (thread-local) Ref
Counting, C++ and many other language have to use atomics
which makes RC costly.
No, you dont.
On Thursday, 14 December 2017 at 16:40:33 UTC, Petar Kirov
[ZombineDev] wrote:
On Thursday, 14 December 2017 at 16:10:17 UTC, Jonathan Marler
wrote:
On Thursday, 14 December 2017 at 14:45:51 UTC, Dgame wrote:
Strongly reminds me of scoped
Declaring a variable as `scoped` prevents that
On Thursday, 14 December 2017 at 16:10:17 UTC, Jonathan Marler
wrote:
On Thursday, 14 December 2017 at 14:45:51 UTC, Dgame wrote:
Strongly reminds me of scoped
Declaring a variable as `scoped` prevents that variable from
escaping the scope it is declared in. This restriction allows
the
On Friday, 15 December 2017 at 12:56:41 UTC, Jonathan M Davis
wrote:
On Friday, December 15, 2017 11:10:42 Dgame via Digitalmars-d
wrote:
On Friday, 15 December 2017 at 09:18:23 UTC, Seb wrote:
> On Thursday, 14 December 2017 at 16:40:33 UTC, Petar Kirov
>
> [ZombineDev] wrote:
>> ```
>> scope
On Thursday, 14 December 2017 at 07:04:49 UTC, Arun
Chandrasekaran wrote:
Hi,
What are the reasoning behind core.sync.* primitives being
classes and not structs?
There are several reasons as far as I know:
1) Structs in D can't have non-trivial constructors - i.e. you
can't call
On Tuesday, 19 December 2017 at 01:01:57 UTC, cosinus wrote:
Recently I've asked my self why `C` isn't capable of returning
multiple values at once. And I thought that the
return-statement was primarally used only for error-handling
and all the valuable data has been returned through the
On Tuesday, 19 December 2017 at 01:01:57 UTC, cosinus wrote:
[snip]
A second thought that came up was:
Shouldn't there be a compiler-error if someone is ignoring the
return-value of a function?
I saw this C-code:
```C
(void)printf("Hello World!");
```
It cast's the return-value to void to
On Wednesday, 15 November 2017 at 19:29:29 UTC, Steven
Schveighoffer wrote:
On 11/15/17 11:59 AM, Andrea Fontana wrote:
On Wednesday, 15 November 2017 at 15:25:06 UTC, Steven
Schveighoffer wrote:
alias foo = lambda1;
alias foo = lambda2;
What?
Yep. Would never have tried that in a million
On Friday, 17 November 2017 at 18:53:57 UTC, Temtaime wrote:
On Thursday, 16 November 2017 at 03:58:38 UTC, Adam D. Ruppe
wrote:
[...]
There is system-wide C library. It is named msvc.dll.
TCC uses it producing very small executables.
On Monday, 4 June 2018 at 15:48:35 UTC, DigitalDesigns wrote:
Does D have any methods of validating code in a natural manner
besides unit tests and contracts?
I'm specifically thinking of validating mathematical
calculations and boolean operations that could depend on very
improbable
On Friday, 5 January 2018 at 20:20:04 UTC, jmh530 wrote:
On Friday, 5 January 2018 at 03:11:42 UTC, jmh530 wrote:
[...]
In std.experimental.allocator, I was thinking that in something
like GCAllocator you could have the allocate function be a
template that changes the behavior based on the
On Thursday, 21 December 2017 at 21:10:39 UTC, H. S. Teoh wrote:
After pulling from vibe.d git master today, my vibe.d project
doesn't compile anymore. `dub build` dies with:
/usr/src/d/vibe.d/stream/vibe/stream/memory.d(56,42): Error:
constructor vibe.utils.array.AllocAppender!(ubyte[],
On Saturday, 24 February 2018 at 06:14:52 UTC, deadalnix wrote:
On Thursday, 22 February 2018 at 19:26:54 UTC, Andrei
Alexandrescu wrote:
After coding https://github.com/dlang/phobos/pull/6192 with
AliasSeq, the experience has been quite pleasurable. However,
in places the AliasSeq tends to
On Thursday, 15 February 2018 at 20:59:53 UTC, Ali wrote:
On Thursday, 15 February 2018 at 20:43:41 UTC, Daniel Kozak
wrote:
Unfortunately they have use wrong results. They have selected
run from 31.1.2018. But If they use the other one from
february, it would be better. But still is nice
On Tuesday, 2 January 2018 at 15:13:46 UTC, Mike Franklin wrote:
[..]
I suggest the following:
Calls `obj`'s destructor and sets `obj` to its default initial
state, `T.init`. This function does not initiate a GC cycle
nor does it free any GC memory.
Mike
+1
On Thursday, 26 July 2018 at 12:45:52 UTC, Johan Engelen wrote:
On Wednesday, 25 July 2018 at 08:11:59 UTC, rikki cattermole
wrote:
Standard solution[0].
[0] https://dlang.org/phobos/std_conv.html#.emplace.4
Thanks for pointing to D's placement new. This is bad news for
my devirtualization
On Thursday, 26 July 2018 at 21:22:45 UTC, Petar Kirov
[ZombineDev] wrote:
[..]
D on the other hand is (or at least I'm hopeful that it is)
moving away giving magical powers to its runtime or standard
library and is its embracing the spirit of bare bones systems
programming where the
On Friday, 10 August 2018 at 07:19:02 UTC, Andrea Fontana wrote:
On Friday, 10 August 2018 at 07:01:09 UTC, Petar Kirov
[ZombineDev] wrote:
`is(T == U)` evaluates to true iff `T` is exactly `U`. `is(T :
U)` tests if `T` is a subtype of (can be implicitly converted
to) `U` [0]. So we have:
On Friday, 10 August 2018 at 06:44:20 UTC, Andrea Fontana wrote:
On Thursday, 9 August 2018 at 15:56:31 UTC, w0rp wrote:
On Thursday, 9 August 2018 at 10:37:36 UTC, Andrea Fontana
wrote:
On Thursday, 9 August 2018 at 04:10:47 UTC, Nicholas Wilson
wrote:
The DIP makes the claim that:
*
On Friday, 24 August 2018 at 09:46:08 UTC, Jonathan M Davis wrote:
On Friday, August 24, 2018 2:46:06 AM MDT Dave Jones via
Digitalmars-d wrote:
On Friday, 24 August 2018 at 04:50:34 UTC, Mike Franklin wrote:
> On Friday, 24 August 2018 at 04:12:42 UTC, Jonathan M Davis
> wrote:
>
>
> It's
On Friday, 20 July 2018 at 10:08:03 UTC, Dgame wrote:
On Friday, 20 July 2018 at 09:39:47 UTC, Nicholas Wilson wrote:
On Friday, 20 July 2018 at 09:03:18 UTC, Dukc wrote:
appending something (like .byRef or byRef!long, the latter
making an implicit type conversion)
That can't work: either it
On Friday, 20 July 2018 at 05:16:53 UTC, Mike Parker wrote:
This is the feedback thread for the first round of Community
Review for DIP 1016, "ref T accepts r-values":
https://github.com/dlang/DIPs/blob/725541d69149bc85a9492f7df07360f8e2948bd7/DIPs/DIP1016.md
All review-related feedback on
Hi all,
Mathias LANG and me have been working on fixing a regression in
Dub's variable expansion implementation [1]. Background:
In order to support use cases where a variable is used as a
prefix or suffix in an identifier-like strings (e.g.
On Friday, 31 August 2018 at 10:37:05 UTC, rikki cattermole wrote:
On 31/08/2018 10:16 PM, Andrey wrote:
Any self-respecting website related to programming or
developing something, has in its composition a place where
people can comfortably and freely discuss pressing issues. Not
some weird
On Sunday, 2 September 2018 at 13:21:05 UTC, bauss wrote:
Is there a reason why you cannot create a separate scope within
a static foreach?
The below will not compile:
```
enum a = ["a" : "a", "b" : "b", "c" : "c"];
static foreach (k,v; a)
{
{
enum b = k;
enum c = v;
On Wednesday, 24 January 2018 at 07:21:09 UTC, Shachar Shemesh
wrote:
test.d(6): Error: struct test.A(int var = 3) is used as a type
Of course it is. That's how structs are used.
Program causing this:
struct A(int var = 3) {
int a;
}
void main() {
A a;
}
To resolve, you need to
On Wednesday, 24 January 2018 at 07:32:17 UTC, Petar Kirov
[ZombineDev] wrote:
On Wednesday, 24 January 2018 at 07:21:09 UTC, Shachar Shemesh
wrote:
test.d(6): Error: struct test.A(int var = 3) is used as a type
Of course it is. That's how structs are used.
Program causing this:
struct A(int
On Tuesday, 23 January 2018 at 11:04:33 UTC, Atila Neves wrote:
On Sunday, 14 January 2018 at 18:17:38 UTC, Timon Gehr wrote:
On 14.01.2018 19:14, Timothee Cour wrote:
actually I just learned that indeed
sizeof(typeof(tuple()))=1, but why
is that? (at least for std.typecons.tuple)
maybe worth
On Wednesday, 21 March 2018 at 09:59:52 UTC, berni wrote:
I need code, that generates a copy of a twodimensional array.
What I do is:
auto tmp = new int[][](X,X);
foreach (i; 0..X) tmp[i] = solution[i].dup;
solutions ~= tmp;
because solutions ~= solution.dup obviously doesn't work (the
On Wednesday, 21 March 2018 at 19:44:19 UTC, H. S. Teoh wrote:
On Wed, Mar 21, 2018 at 12:35:08PM -0700, H. S. Teoh via
Digitalmars-d wrote: [...]
Cool, passing --DRT-covopt="merge:1" did the trick.
[...]
Speaking of which, are the --DRT-* options documented
anywhere?? I don't even know
On Thursday, 28 June 2018 at 05:57:36 UTC, Seb wrote:
On Wednesday, 27 June 2018 at 23:54:55 UTC, Manu wrote:
Hey people,
So I had a few people in the office refuse to install DMD
because when
they launched the installer, Windows displayed the prompt that
it was
untrusted (ie, unsigned) and
On Sunday, 14 October 2018 at 11:36:28 UTC, notna wrote:
Hi D gurus.
Did read an interesting post form GitLab [1] how they improved
performance by 30x by just going to go_v1.9... because they
again went from "fork" to "posix_spawn"...
[1]
On Sunday, 14 October 2018 at 17:33:37 UTC, Petar Kirov
[ZombineDev] wrote:
I'll look into making a pull request to druntime about
posix_spawn [..]
Here's the full deal:
https://github.com/dlang/druntime/pull/2329/files
with support for:
Linux Glibc
Linux Bionic libc
Linux Musl libc
Linux
On Thursday, 20 September 2018 at 23:13:38 UTC, aliak wrote:
Alo!
I have been watching Jonathan Blow's Jai for a while myself.
There are many interesting ideas there, and many of them are what
made me like D so much in the first place. It's very important to
note that the speed claims he
On Friday, 21 September 2018 at 11:48:50 UTC, Nemanja Boric wrote:
On Friday, 21 September 2018 at 10:06:06 UTC, Nemanja Boric
wrote:
On Friday, 21 September 2018 at 09:10:06 UTC, Jonathan M Davis
wrote:
[...]
The @__future is fully (to a reasonable degree) implemented -
and the
On Thursday, 20 September 2018 at 10:50:49 UTC, Atila Neves wrote:
This pattern is incredibly easy to wrap and reuse as needed. I
would've done already if only I'd known @nogc was ignored as
well as pure.
It's a recent development:
https://dlang.org/changelog/2.082.0#debug-unsafe :
Unsafe
On Monday, 17 September 2018 at 11:51:04 UTC, Vladimir Panteleev
wrote:
[..]
The high load is temporary, but will take a week or two to
resolve.
How feasible would be to have a simple page like
https://status.github.com/ for sharing such information?
On Tuesday, 18 September 2018 at 23:01:46 UTC, Per Nordlöw wrote:
On Tuesday, 18 September 2018 at 14:23:44 UTC, 9il wrote:
I just remember that D's GC has NO_SCAN [1] attribute!
I thought D libraries like Mir and Lubeck only had to care
about when to call GC.addRange after allocations that
On Friday, 22 September 2017 at 14:43:28 UTC, Johan wrote:
Hi all,
```
auto foo(const int[3] x)
{
int[3] y = x;
y[0] = 1; // line 4
return y;
}
immutable int[3] a = [0,1,2];
immutable int[3] b = foo(a); // line 8
```
compiles with an error:
```
4: Error: cannot modify
On Wednesday, 11 October 2017 at 10:20:01 UTC, b4s1L3 wrote:
On Monday, 9 October 2017 at 19:44:24 UTC, Martin Nowak wrote:
Glad to announce D v2.076.1.
http://dlang.org/download.html
This point release fixes a few issues over v2.076.1, see the
changelog for more details.
On Thursday, 23 November 2017 at 13:06:14 UTC, Petar Kirov
[ZombineDev] wrote:
On Thursday, 23 November 2017 at 12:04:05 UTC, Nicholas Wilson
wrote:
On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak
wrote:
First beta for the 2.077.1 point release.
On Thursday, 23 November 2017 at 12:04:05 UTC, Nicholas Wilson
wrote:
On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak
wrote:
First beta for the 2.077.1 point release.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.077.1.html
Please report any bugs at
On Wednesday, 29 November 2017 at 07:08:12 UTC, Vino wrote:
Hi All,
Request your help, with the below code I am able to print the
value of the array without brackects , but can some on help me
on hot to store this output to a variable
Program:
import std.stdio;
import std.container;
void
On Wednesday, 22 November 2017 at 15:33:46 UTC, Anonymouse wrote:
On Tuesday, 21 November 2017 at 19:22:47 UTC, Anonymouse wrote:
Compiling a debug dmd and running the build command in gdb, it
seems to be a stack overflow at ddmd/dtemplate.d:6241,
TemplateInstance::needsCodegen().
After a
On Friday, 10 November 2017 at 11:55:57 UTC, Guillaume Piolat
wrote:
On Thursday, 9 November 2017 at 16:00:36 UTC, Petar Kirov
[ZombineDev] wrote:
In short, the cost / benefit of going all the way
version(D_BetterC) is incredibly poor for regular
applications, as you end up a bit more
On Thursday, 9 November 2017 at 19:42:55 UTC, Jacob Carlborg
wrote:
On 2017-11-09 17:52, Petar Kirov [ZombineDev] wrote:
Thanks for reminding me, I keep forgetting that it should just
work (minus initialization?).
What do you mean "initialization"?
static constructors
On Tuesday, 21 November 2017 at 09:53:33 UTC, Petar Kirov
[ZombineDev] wrote:
On Tuesday, 21 November 2017 at 09:21:29 UTC, Chirs Forest
wrote:
I'm interpolating some values and I need to make an
(elapsed_time/duration) value a float between 0 and 1
(inclusive of 0 and 1). The elapsed_time
On Tuesday, 21 November 2017 at 09:21:29 UTC, Chirs Forest wrote:
I'm interpolating some values and I need to make an
(elapsed_time/duration) value a float between 0 and 1
(inclusive of 0 and 1). The elapsed_time might be more than the
duration, and in some cases might be 0 or less. What's the
On Tuesday, 21 November 2017 at 07:02:20 UTC, Michael V. Franklin
wrote:
I'm getting this error when I try to run the DMD test suite.
cd dmd
make -C test -f Makefile
[...]
I don't think you're doing anything wrong, though you shouldn't
be getting that error. File a bug report and try
On Tuesday, 21 November 2017 at 00:15:04 UTC, Anonymouse wrote:
I have a large named enum (currently 645 members) of IRC event
types. It's big by neccessity[1].
I'm using dub, and both dmd and ldc successfully build it in
test and debug modes, but choke and die on plain and release. I
On Tuesday, 21 November 2017 at 10:10:59 UTC, Petar Kirov
[ZombineDev] wrote:
On Tuesday, 21 November 2017 at 00:15:04 UTC, Anonymouse wrote:
I have a large named enum (currently 645 members) of IRC event
types. It's big by neccessity[1].
I'm using dub, and both dmd and ldc successfully build
On Thursday, 16 November 2017 at 17:29:56 UTC, Nordlöw wrote:
Are there any plans on a compiler pass that finds scoped
GC-allocations and makes their destructors deterministic
similar to D's struct scope behaviour?
On Wednesday, 8 November 2017 at 07:55:02 UTC, Andrew Edwards
wrote:
On Wednesday, 8 November 2017 at 07:30:34 UTC, evilrat wrote:
On Wednesday, 8 November 2017 at 06:34:27 UTC, Andrew Edwards
just using fully qualified name didn't make it?
void call_cpp() {
::foo("do great things"); //
On Thursday, 9 November 2017 at 11:08:21 UTC, ParticlePeter wrote:
Any experience reports or general suggestions?
I've used only D threads so far.
It would be far easier if you use druntime + @nogc and/or
de-register latency-sensitive threads from druntime [1], so
they're not interrupted
On Thursday, 9 November 2017 at 12:30:49 UTC, rikki cattermole
wrote:
On 09/11/2017 12:19 PM, Petar Kirov [ZombineDev] wrote:
On Thursday, 9 November 2017 at 11:08:21 UTC, ParticlePeter
wrote:
Any experience reports or general suggestions?
I've used only D threads so far.
It would be far
On Thursday, 9 November 2017 at 13:00:15 UTC, ParticlePeter wrote:
On Thursday, 9 November 2017 at 12:19:00 UTC, Petar Kirov
[ZombineDev] wrote:
On Thursday, 9 November 2017 at 11:08:21 UTC, ParticlePeter
wrote:
Any experience reports or general suggestions?
I've used only D threads so far.
On Thursday, 9 November 2017 at 16:08:20 UTC, Jacob Carlborg
wrote:
On 2017-11-09 13:19, Petar Kirov [ZombineDev] wrote:
Though you need to be extra careful not to use thread-local
storage
I think TLS should work, it's the OS that handles TLS, not
druntime.
Thanks for reminding me, I keep
On Wednesday, 7 February 2018 at 12:17:11 UTC, Bastiaan Veelo
wrote:
On Wednesday, 7 February 2018 at 01:15:14 UTC, Seb wrote:
https://run.dlang.io/is/vSUTf6
Press [Run] and it shows "42". OK
Press [-X] and it shows "42". ??
Press [-D] and it shows "42". ??
I think I recently bumped into
On Wednesday, 15 August 2018 at 08:14:53 UTC, Petar Kirov
[ZombineDev] wrote:
https://run.dlang.io/is/iD9ydu
I made a typo in one of the comments. Here's the fixed version:
https://run.dlang.io/is/HRqYcZ
On Tuesday, 14 August 2018 at 17:49:32 UTC, Mike Franklin wrote:
On Tuesday, 14 August 2018 at 17:22:42 UTC, Seb wrote:
FYI: staticArray will be part of 2.082, it already works with
dmd-nightly:
That just seems wrong. Isn't the fact that `staticArray` is
needed a bug in the compiler? I
On Thursday, 16 August 2018 at 18:10:38 UTC, jmh530 wrote:
On Thursday, 16 August 2018 at 12:25:14 UTC, aliak wrote:
Hi
See: https://optional.dub.pm
I've totally revamped the Optional type and am now quite happy
with. It has a range interface and safe dispatching and can be
used to 1) avoid
On Tuesday, 7 August 2018 at 12:46:31 UTC, Steven Schveighoffer
wrote:
On 8/7/18 6:08 AM, bauss wrote:
On Monday, 6 August 2018 at 13:28:05 UTC, Laeeth Isharc wrote:
Hi Walter.
Can dtoh be open-sourced now that dmd is?
https://github.com/adamdruppe/dtoh
I might be confused, but it seems
On Monday, 20 August 2018 at 18:59:23 UTC, Russel Winder wrote:
Hi,
[...]
Hi Russel,
So the questions are:
1. How does Dub find the compiler version number, in this case
2.081, given that neither DMD or LDC seem to have a way of
delivering only the version number.
The __VERSION__ [1]
On Friday, 7 September 2018 at 03:12:50 UTC, Joakim wrote:
On Wednesday, 5 September 2018 at 05:15:45 UTC, Joakim wrote:
I'll add native beta builds for Android in a couple days.
The native Android builds are up at the above github release
link. I think this is the last time I'll put beta
On Friday, 13 April 2018 at 10:31:43 UTC, Atila Neves wrote:
On Wednesday, 11 April 2018 at 14:33:26 UTC, Jacob Carlborg
wrote:
On Monday, 9 April 2018 at 11:03:48 UTC, Atila Neves wrote:
Here's my blog post about my project that allows directly
#including C headers in D*
I don't know the
On Thursday, 8 November 2018 at 07:54:56 UTC, Manu wrote:
On Wed, Nov 7, 2018 at 10:30 PM Vladimir Panteleev via
Digitalmars-d-announce
wrote:
On Thursday, 8 November 2018 at 06:08:20 UTC, Vladimir
Panteleev wrote:
> It was definitely about 4 seconds not too long ago, a few
> years at
On Wednesday, 19 September 2018 at 13:58:00 UTC, Joakim wrote:
On Wednesday, 19 September 2018 at 13:10:07 UTC, Daniel Kozak
wrote:
http://releases.llvm.org/7.0.0/docs/ReleaseNotes.html#external-open-source-projects-using-llvm-7
no mention of D anymore :(
On Tuesday, 15 January 2019 at 00:42:37 UTC, Tony A wrote:
Hi, I just watched the Andrei's talk about Design by
Introspection and for what I see this is used in D.
Could anyone point out some good Github examples that I can see
this in action and the benefits?
Thanks.
Basically, look for
On Tuesday, 11 December 2018 at 10:45:39 UTC, Atila Neves wrote:
A few things that have annoyed me about writing D lately:
https://atilanevesoncode.wordpress.com/2018/12/11/what-d-got-wrong/
No UFCS chain for templates.
No template lambdas.
You can write code like this today via library
On Monday, 3 December 2018 at 10:04:48 UTC, M.M. wrote:
On Sunday, 2 December 2018 at 21:23:31 UTC, Manu wrote:
On Sun, Dec 2, 2018 at 8:05 AM Rainer Schuetze via
Digitalmars-d-announce
wrote:
[...]
Bravo!
Thank you for your awesome work as always Rainer!
For those following, this release
On Tuesday, 12 March 2019 at 17:48:20 UTC, Chris M. wrote:
On Thursday, 7 March 2019 at 11:30:01 UTC, Mike Parker wrote:
As most of you surely know, DIP 1000, "Scoped Pointers", has
been sitting in the DIP queue with the Draft status for ages
and was significantly out of sync with the
On Thursday, 31 January 2019 at 20:33:43 UTC, Ron Tarrant wrote:
On Wednesday, 30 January 2019 at 21:21:24 UTC, Mike Wey wrote:
This is whats going on:
https://issues.dlang.org/show_bug.cgi?id=15418
To work around this you can either build things with
"--arch=x86mscoff" or tell dub not to
On Wednesday, 30 January 2019 at 14:55:37 UTC, jmh530 wrote:
Also, there is an example in the readme on @Values of
@Values(1, 2, 3) unittest { assert(getValue!int % 2 == 0); }
What if it's not so easy to create the values? I suppose you
could pass the parameters in @Values to some other
On Tuesday, 5 February 2019 at 15:47:30 UTC, Dejan Lekic wrote:
On Tuesday, 5 February 2019 at 15:28:04 UTC, Alex wrote:
Hi all,
my van Emde Boas tree finally reached an announceable state,
at version 0.12.0.
vEB tree is an interesting data structure. Where is the
implementation? - You did
On Monday, 6 May 2019 at 19:52:23 UTC, Mike Brockus wrote:
Hello everyone I am a Meson build system user and I am new to
the D language, just wondering if there are compiler flags that
I should add, unit testing frameworks, any good practices I can
follow and or anything like that also some
On Thursday, 14 November 2019 at 17:32:27 UTC, jmh530 wrote:
On Thursday, 14 November 2019 at 17:06:36 UTC, Andre Pany wrote:
[snip]
With the public availability of Github Actions I highly
recommend it if you have open source project on Github. If is
free and works well with D and Dub.
On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote:
[..]
That's great news! Thanks a lot for your hard work!
# Note: This will redownload your dependencies every time,
which doesn't play well with docker
I have been meaning to add a docker and CI friendly command to
dub that
On Thursday, 12 December 2019 at 19:21:22 UTC, berni44 wrote:
Is it possible to get to the bits of a float in CTFE? I tried
the following, but this doesn't work:
```
import std.stdio;
union FloatBits
{
float floatValue;
ulong ulongValue;
}
ulong test(float f)
{
FloatBits fb;
On Tuesday, 19 November 2019 at 21:50:08 UTC, Steven
Schveighoffer wrote:
I know I can format a range with a format string that contains
%(%s, %). And this results in a nice comma separated list for
each item.
But what about an item that has a not-so-cookie-cutter format?
Like for instance a
On Wednesday, 12 February 2020 at 12:46:23 UTC, Petar Kirov
[ZombineDev] wrote:
On Wednesday, 12 February 2020 at 08:41:25 UTC, Neils wrote:
[...]
Since your project is already on GitHub, I think the easiest
solution would be to use GitHub Actions [1] + setup-dlang
action [2] +
On Wednesday, 12 February 2020 at 08:41:25 UTC, Neils wrote:
I maintain an open-source project written in D and I use DUB
for building and my compiler backend is DMD. My dub.json file
is rather simple:
https://github.com/neilsf/XC-BASIC/blob/master/dub.json
I offer pre-built binaries for
On Wednesday, 12 February 2020 at 12:42:32 UTC, Dukc wrote:
I have pushed a new release tag in Github around two weeks ago,
and ordered a manual update at DUB, yet DUB has still not
aknowledged the new tag. Is there some requirement for the
release tag for it to be recognized?
Hi Dukc,
I'm
On Wednesday, 26 February 2020 at 08:32:50 UTC, Abby wrote:
On Wednesday, 26 February 2020 at 08:25:00 UTC, Abby wrote:
Any idea why?
Ok so this is enough to produce the same result, it seems that
there is a problem in string switch when there is more the 6
cases.
extern(C) void main()
{
On Wednesday, 26 February 2020 at 09:45:55 UTC, Walter Bright
wrote:
On 2/25/2020 1:36 AM, aliak wrote:
This may have already been answered in the other threads, but
I was just wondering if anyone managed to propose a way to
avoid this scenario with DIP1027?
void f(string s, int i = 0);
On Thursday, 27 February 2020 at 00:20:27 UTC, Walter Bright
wrote:
On 2/26/2020 3:13 AM, Petar Kirov [ZombineDev] wrote:
In all other languages with string interpolation that I'm
familiar with, `a` is not passed to the `i` parameter.
All rely on a garbage collected string being generated as
On Thursday, 27 February 2020 at 09:30:30 UTC, Walter Bright
wrote:
On 2/27/2020 12:27 AM, Petar Kirov [ZombineDev] wrote:
I'm well aware that allocation is inevitable if we want this
behavior. My argument is that this behavior is so ubiquitous
that not following it would be surprising to much
On Tuesday, 25 February 2020 at 11:02:40 UTC, wjoe wrote:
Lets say I've got 3 overloads of opIndexAssign:
auto opIndexAssign(T t);
auto opIndexAssign(T t, size_t i); and
auto opIndexAssign(T t, size_t[2] i);
I would assume to return what I would return with opIndex but
I'd rather not act upon
On Thursday, 27 February 2020 at 14:58:20 UTC, Adam D. Ruppe
wrote:
On Thursday, 27 February 2020 at 14:32:29 UTC, Petar Kirov
[ZombineDev] wrote:
2. Have the new type implicitly convert to printf-style args.
I think this is what Adam is proposing. While nice to have, I
don't think it's
On Tuesday, 28 January 2020 at 21:40:40 UTC, Petar Kirov
[ZombineDev] wrote:
[snip]
import std.algorithm : count, splitter;
import std.stdio : File, writefln;
import std.typecons : Yes;
void main(string[] args) {
size_t lines, words, bytes;
foreach (line;
On Tuesday, 28 January 2020 at 14:01:35 UTC, Mike Parker wrote:
[snip]
BTW, while playing with a solution of my own [0] I noticed that
both mine and Robert's version return different results for the
following input [1]:
expected:
On Sunday, 2 February 2020 at 08:54:02 UTC, mark wrote:
I've done quite a few small corrections/improvements to the
D-tour's English. Almost all have been accepted.
However, four have not been accepted, apparently for technical
reasons. But I don't understand what's wrong or what I need to
On Tuesday, 28 January 2020 at 21:40:40 UTC, Petar Kirov
[ZombineDev] wrote:
BTW, while playing with a solution of my own [0] I noticed that
both mine and Robert's version return different [... snip]
I found the culprit - iswspace. For more info see:
1 - 100 of 189 matches
Mail list logo