On Sunday, 1 April 2018 at 01:19:08 UTC, auto wrote:
What is auto decoding and why it is a problem?
Auto-decoding is essentially related to UTF representation of
Unicode strings. In D, `char[]` and `string` represent UTF8
strings, `wchar[]` and `wstring` represent UTF16 strings and
What is auto decoding and why it is a problem?
On Saturday, 31 March 2018 at 20:17:26 UTC, Per Nordlöw wrote:
auto reg = Region!(NullAllocator, 16)(cast(ubyte[])buf);
Thanks!
Turns out that Region allocator wasn't fully qualified:
https://github.com/dlang/phobos/pull/6400
This will make it possible to allocate with it in pure code
On Friday, 30 March 2018 at 23:09:33 UTC, Alexandru Jercaianu
wrote:
Hello,
You can try the following:
struct Node
{
char[64] arr;
}
enum numNodes = 100_000_000;
void[] buf = GCAllocator.instance.allocate(numNodes *
Node.sizeof);
auto reg =
On Saturday, 31 March 2018 at 19:38:31 UTC, Per Nordlöw wrote:
On Saturday, 31 March 2018 at 19:31:37 UTC, Rubn wrote:
Be willing to change your code, the allocator can change at
any point. What you implement today may not work tomorrow,
what you fix to work for tomorrow may not end up working
On Saturday, 31 March 2018 at 19:31:37 UTC, Rubn wrote:
Be willing to change your code, the allocator can change at any
point. What you implement today may not work tomorrow, what you
fix to work for tomorrow may not end up working the next day
(in terms of releases). That really should be
On Friday, 30 March 2018 at 20:46:43 UTC, Per Nordlöw wrote:
On Friday, 30 March 2018 at 20:38:35 UTC, rikki cattermole
wrote:
Use a custom allocator (that could be backed by the GC) using
std.experimental.allocators :)
https://dlang.org/phobos/std_experimental_allocator.html
is massive.
I
On Saturday, 31 March 2018 at 09:10:13 UTC, Boris-Barboris wrote:
On Friday, 30 March 2018 at 20:31:35 UTC, Per Nordlöw wrote:
Is there a faster way of allocating many small class objects
such as...
maybe something like this:
import std.conv: to;
import std.stdio;
class Node {}
class
On Friday, 23 March 2018 at 12:59:23 UTC, crimaniak wrote:
I want to have reactive variables like in this example:
```
USING_REACTIVE_DOMAIN(D)
// The two words
VarSignalT firstWord = MakeVar(string( "Change" ));
VarSignalT secondWord = MakeVar(string( "me!" ));
// ...
SignalT bothWords =
On Friday, 30 March 2018 at 10:23:15 UTC, Cecil Ward wrote:
My principal question: If I successfully do this, with GCC or
LDC, will I be able to get the code for the externally defined
short routine expanded inline and fully integrated into the
generated code that corresponds to the calling
On Friday, 30 March 2018 at 20:31:35 UTC, Per Nordlöw wrote:
Is there a faster way of allocating many small class objects
such as...
maybe something like this:
import std.conv: to;
import std.stdio;
class Node {}
class StrNode : Node
{
string value;
}
void main()
{
11 matches
Mail list logo