June 05, 2014 General » @safe inference fundamentally broken | |||
|---|---|---|---|
| |||
...T[] getBuf(T)() @safe
{
T[100] ret;
auto r = ret[];
return r;
}
void main() @safe... | |||
May 30, 2014 General » Re: Performance | |||
|---|---|---|---|
| |||
...4,,7 L12: fstp %st(1) L10: rep ret L7: fldl LC0 ret Bye, bearophile | |||
May 30, 2014 General » Re: Performance | |||
|---|---|---|---|
| |||
...4(%ebp), %esp popl %esi popl %ebp ret LBB0_5: movl $11, 4(%esp) movl... | |||
May 29, 2014 Learn » Re: Cost of .dup vs. instantiation | |||
|---|---|---|---|
| |||
...something
append ~= item;
MyType[] ret;
if (append.data.length < 10_000)
{
ret = append.data).dup... | |||
May 23, 2014 Announce » Re: Per popular demand, here are Adam D Ruppe's presentation slides | |||
|---|---|---|---|
| |||
...offset)
ret ~= format(" internal padding\n");
offset += off-offset;
}
foreach(i; 0 .. size)
ret ~= format... | |||
May 23, 2014 Issues » [Issue 12792] New: runtime loading D shared library as a standalone (with it's own GC etc) | |||
|---|---|---|---|
| |||
...runtime; bool ret=Runtime.initialize();//will segfault below with or without that assert(ret);//ok... | |||
May 21, 2014 General » Re: Switch to list all druntime calls? | |||
|---|---|---|---|
| |||
...ptr __memset32
add ESP,018h
pop EAX
ret
ldc2 is smarter and removes the calls... | |||
May 21, 2014 Issues » [Issue 12779] New: [REG2.066a] -inline makes wrong code under some conditions | |||
|---|---|---|---|
| |||
...ret = new Foo();
ret.data = data;
assert(ret.data.length < 1_000_000); // OK!
ret... | |||
May 20, 2014 General » DMD generates calls to next operation | |||
|---|---|---|---|
| |||
...eax,eax 20: c9 leave 21: c3 ret 22: 66 0f 1f 44 00 00... | |||
May 18, 2014 General » Re: D to ASM.js vs D to Dart (VM) | |||
|---|---|---|---|
| |||
...EAX
leave
ret
_D4temp16__T8doubleItTxiZ8doubleItFNaNbNiNfxiZxi:
enter 4,0
add EAX,EAX
leave
ret
Bye,
bearophile | |||
Copyright © 1999-2021 by the D Language Foundation