August 24, 2021 General » Re: Sometimes 100 lines of code can fix your ctfe perf | |||
|---|---|---|---|
| |||
...SIZE = 4096;
char[CHUNK_SIZE] fixedBuffer;
size_t fixedBufferUsed;
char[CHUNK_SIZE][] chunks;
size_t... | |||
August 24, 2021 General » Sometimes 100 lines of code can fix your ctfe perf | |||
|---|---|---|---|
| |||
...SIZE = 4096;
char[CHUNK_SIZE] fixedBuffer;
size_t fixedBufferUsed;
char[CHUNK_SIZE][] chunks;
size_t... | |||
August 24, 2021 Learn » Re: foreach() behavior on ranges | |||
|---|---|---|---|
| |||
...d
import std;
class MyIntRange {
int[] _elements;
size_t _offset;
this(int[] elems) { _elements = elems... | |||
August 23, 2021 Learn » Re: compile time compression for associatve array literal | |||
|---|---|---|---|
| |||
...it doesn't. And it didn't help...not *really* worried about size of object code... | |||
August 17, 2021 Genel » Re: ÜÇLÜ İŞLEÇ (?) VE DERLEME ZAMANI İZLEME (Monitoring) | |||
|---|---|---|---|
| |||
...yazıldığı gibi parantezleri ekledim:
```d
T x(size_t i, T n = -1) {
return n... | |||
August 17, 2021 Genel » ÜÇLÜ İŞLEÇ (?) VE DERLEME ZAMANI İZLEME (Monitoring) | |||
|---|---|---|---|
| |||
...dizi[i][`~v~`]`;
enum işlevKat = `T `~f~`(size_t i, T n = -1){`
~`if(n... | |||
August 16, 2021 Issues » [Issue 22215] New: [dip1000] scope analysis does not respect @system or @trusted | |||
|---|---|---|---|
| |||
...f()
{ int x = 42;
auto wannaBePointer = cast(size_t)&x;
return cast(typeof(return)) wannaBePointer... | |||
August 16, 2021 Learn » DMD compiler - warning of unused variables | |||
|---|---|---|---|
| |||
...void main() {
import std.stdio;
size_t i;
size_t j;
i = 5;
writeln("i... | |||
August 16, 2021 Learn » Re: Drawbacks of exceptions being globally allocated | |||
|---|---|---|---|
| |||
...auto size = __traits(classInstanceSize, T);
auto memory = malloc(size)[0 .. size];
auto instance = emplace!(T... | |||
August 16, 2021 Learn » Re: Drawbacks of exceptions being globally allocated | |||
|---|---|---|---|
| |||
...auto size = __traits(classInstanceSize, T);
auto memory = malloc(size)[0 .. size];
auto instance = emplace!(T... | |||
Copyright © 1999-2021 by the D Language Foundation