On Sat, 15 Dec 2018 02:54:55 +, Heromyth wrote:
> shared static this() {
> writeln("running A in shared static this(),
> sharedField=", sharedField);
>
> Thread th = new Thread(() { });
> th.start();
When you start a D thread, thread-local static constructors
On Saturday, 15 December 2018 at 02:54:55 UTC, Heromyth wrote:
We have a module including many globle variables which are
needed to be initialized firstly in "shared static this() {}",
see here
https://github.com/huntlabs/hunt/blob/master/source/hunt/time/Init.d.
The problem is that these var
We have a module including many globle variables which are needed
to be initialized firstly in "shared static this() {}", see here
https://github.com/huntlabs/hunt/blob/master/source/hunt/time/Init.d.
The problem is that these variables are not always initialized
firstly when are referenced by
On Friday, 14 December 2018 at 17:45:26 UTC, rjframe wrote:
On Fri, 14 Dec 2018 16:33:44 +, Giovanni Di Maria wrote:
I need the flow of calls.
Thank you Giovanni
gprof will do this on Linux/BSD if gdc supports the -pg flag (I
don't know whether it would, but assume so) and your
applica
On Friday, 14 December 2018 at 21:22:05 UTC, unDEFER wrote:
So it looks like a bug, and I have reported about it:
https://issues.dlang.org/show_bug.cgi?id=19487
Not an expert, but you may wish to try GC.minimize()
(https://dlang.org/phobos/core_memory.html#.GC.minimize).
So it looks like a bug, and I have reported about it:
https://issues.dlang.org/show_bug.cgi?id=19487
On 12/14/2018 05:37 AM, J-S wrote:
I'm sorry for asking such a stupid question, but can anybody point me to
a precooked consistent set of customizations?
Good question. My Emacs D editing is suboptimal as well.
Ali
So more digging..
dtor of Thread calls in GC.collect() if thread is finished.
But it's do nothing because
bool not_registered = !next && !prev && (sm_tbeg !is this);
is always true... So how to register the thread?
So in digging by this problem, I have made simple patch to
druntime. I have added in druntime/src/core/thread.d to
final Thread start() nothrow
of class Thread
import core.stdc.stdio;
printf("start Thread\n");
And to
~this() nothrow @nogc
import core.stdc.stdio;
Thank you very much,
Fantastic!!!
Giovanni
On Fri, 14 Dec 2018 16:33:44 +, Giovanni Di Maria wrote:
>
> I need the flow of calls.
> Thank you Giovanni
gprof will do this on Linux/BSD if gdc supports the -pg flag (I don't know
whether it would, but assume so) and your application is working.
>From code, you'd need to call a trace f
Hello!
I have the program which uses BDB and while testing often makes
spawn. And after 12 hours of testing bdb said:
mmap: Cannot allocate memory
But the problem that I've found that it is not BDB created too
many maps. Watching for /proc/[PID]/maps shows that number of
anonymous mapped regi
Do you really have a nested function print() inside a nested
function calculate() inside main()? That is,
Hi
this is only an example of names of funcions but the structure is
this:
void main()
{
// maybe some calls to calculate()
}
void calculate()
{
// maybe some calls to print(
On Friday, 14 December 2018 at 15:38:49 UTC, Giovanni Di Maria
wrote:
Hi
Is there an utility to print
the functions in a source file, for example:
- main()
--- calculate()
- print()
--- simulate()
- print()
.
Thank you very much
Giovanni Di Maria
Do you really have a nested functio
Hi
Is there an utility to print
the functions in a source file, for example:
- main()
--- calculate()
- print()
--- simulate()
- print()
.
Thank you very much
Giovanni Di Maria
I've tried (and failed) to get my emacs (26.1) to properly handle
indentation (as per the "D style") in d-mode (2.0.9).
Things that don't work:
- aligning braces below keywords like "foreach", "while", "in"
etc: when I put the braces on the following line, I get a 4-space
indent (while the cor
On Friday, 14 December 2018 at 12:43:40 UTC, berni wrote:
I've got a lot of code with two-dimensional arrays, where I use
stuff like:
assert(matrix.all!(a=>a.all!(b=>b>=0)));
Does anyone know if there is a 2D-version of all so I can write
something like:
assert(matrix.all2D!(a=>a>=0));
I've got a lot of code with two-dimensional arrays, where I use
stuff like:
assert(matrix.all!(a=>a.all!(b=>b>=0)));
Does anyone know if there is a 2D-version of all so I can write
something like:
assert(matrix.all2D!(a=>a>=0));
Thank you very much for your
precious informations.
Now i will try.
Thank you!!!
Giovanni
19 matches
Mail list logo