On Friday, 8 July 2022 at 12:48:20 UTC, Paul Backus wrote:
On Friday, 8 July 2022 at 12:20:13 UTC, ryuukk_ wrote:
The problem when i try to introduce variadic template, is i
can't seem to understand how to unwrap the parameter as
pointer type T -> T*
```D
struct Includes(Args...) { alias
On Monday, 11 July 2022 at 21:46:10 UTC, IGotD- wrote:
On Monday, 11 July 2022 at 18:19:41 UTC, max haughton wrote:
The dmd backend is ancient, it isn't really capable of these
kinds of loop optimizations.
I've said it several times before. Just depreciate the the DMD
backend, it's just
On Monday, 11 July 2022 at 18:19:41 UTC, max haughton wrote:
The dmd backend is ancient, it isn't really capable of these
kinds of loop optimizations.
I've said it several times before. Just depreciate the the DMD
backend, it's just not up to the task anymore. This is not
criticism against
On Monday, 11 July 2022 at 18:15:16 UTC, Ivan Kazmenko wrote:
Hi.
I'm looking at the compiler output of DMD (-O -release), LDC
(-O -release), and GDC (-O3) for a simple array operation:
```
void add1 (int [] a)
{
foreach (i; 0..a.length)
a[i] += 1;
}
```
Here are the outputs:
On Monday, 11 July 2022 at 18:15:16 UTC, Ivan Kazmenko wrote:
Hi.
I'm looking at the compiler output of DMD (-O -release), LDC
(-O -release), and GDC (-O3) for a simple array operation:
```
void add1 (int [] a)
{
foreach (i; 0..a.length)
a[i] += 1;
}
```
Here are the outputs:
Hi.
I'm looking at the compiler output of DMD (-O -release), LDC (-O
-release), and GDC (-O3) for a simple array operation:
```
void add1 (int [] a)
{
foreach (i; 0..a.length)
a[i] += 1;
}
```
Here are the outputs: https://godbolt.org/z/GcznbjEaf
From what I gather at the view
On Sunday, 10 July 2022 at 09:15:59 UTC, Bagomot wrote:
Based on Thread, I managed to do what I intended. I have not
yet been able to figure out how to do the same through the Task.
Here in the example, when you click on the Start button, a
worker is launched that updates the progress bar.
On Monday, 11 July 2022 at 02:49:52 UTC, Steven Schveighoffer
wrote:
So here is what happened:
1. User found an old thread (2019) asking if there was a
128-bit integer.
2. User noticed that there's a new implementation for 128-bit
integers.
3. User replied to the thread indicating that there
On Monday, 11 July 2022 at 06:59:32 UTC, anonymouse wrote:
I did search for a better solution and came across...
https://tastyminerals.github.io/tasty-blog/dlang/2020/03/22/multidimensional_arrays_in_d.html
I like it!
It's been a good collaboration...
```d
import std.variant;
auto
On Monday, 11 July 2022 at 05:41:40 UTC, jfondren wrote:
Oh, sorry. I didn't defend the code in any way because I
assumed that the exceptional design would be seen as obviously
bad (and that someone else would dig harder in order to find a
better solution).
And you were right. I did search
On Sunday, 10 July 2022 at 19:14:34 UTC, Paul Backus wrote:
For reference, this is the more correct way:
```d
while (cast(TypeInfo_Array) v.type !is null) {
Variant elem = v[0];
// etc.
}
```
Hard to blame anyone for not coming up with that on their first
try, especially since
11 matches
Mail list logo