On Sat, 13 Dec 2014 07:03:22 +
Andrey Derzhavin via Digitalmars-d-learn
wrote:
p.p.s. please-please-please don't invent other hacks with
`rt_attachDisposeEvent()`! such hackery will not do you good in the
long term.
signature.asc
Description: PGP signature
On Sat, 13 Dec 2014 07:03:22 +
Andrey Derzhavin via Digitalmars-d-learn
wrote:
p.s. you can emulate "weak links" if this is what you want to have.
i.e. references to object that will not stop GC to collect that object
and which will be auto-nullified if the object was collected. see this
modu
On Sat, 13 Dec 2014 07:03:22 +
Andrey Derzhavin via Digitalmars-d-learn
wrote:
> Hello!
>
> We have object, for example, objA.
>
> ObjectAType objA = new ObjectAType(...);
>
> // we have a many references to objA
>
> void someFunction1(...)
> {
> // destroying the objA
> destroy(o
Hello!
We have object, for example, objA.
ObjectAType objA = new ObjectAType(...);
// we have a many references to objA
void someFunction1(...)
{
// destroying the objA
destroy(one_of_the_refToObjA);
//
}
void someFunction2()
{
// "segmentation fault" if the objA is
On Sat, 13 Dec 2014 05:15:08 +
earthfront via Digitalmars-d-learn
wrote:
> Am I using array incorrectly?
no, you are using `.byLine` incorrectly. ;-) `.byLine` reuses it's
internal buffer for each line, so you have to copy that buffer. like
this:
import std.array, std.stdio;
void main (
Hello!
I was attempting project euler problem 22 and seeing something
weird going on with the array function in std.array.
I made the following code to demonstrate.
Given names.txt:
--
"MARY","PATRICIA","LINDA","BARBARA","ELIZABETH"
--
and code:
--
Is this on purpose? Granted, I almost never use interface files,
but I had a whim to use them for what I was working on today.
Everything worked fine when I renamed the file to package.d, but
apparently package.di is not acceptible.
Here's my implementation of <<= and >>= for BitArray:
https://github.com/D-Programming-Language/phobos/pull/2797
While working with the code, I found that there are a lot of areas that
need improvement. If I have some time I'll file separate PR's for them.
T
--
VI = Visual Irritation
On 12/12/14 2:17 PM, H. S. Teoh via Digitalmars-d-learn wrote:
On Fri, Dec 12, 2014 at 11:13:38AM -0500, Steven Schveighoffer via
Digitalmars-d-learn wrote:
On 12/12/14 8:39 AM, Trollgeir wrote:
http://dlang.org/phobos/std_bitmanip.html
Does anyone know how to bit-shift a BitArray?
I'm tryin
On Fri, Dec 12, 2014 at 11:13:38AM -0500, Steven Schveighoffer via
Digitalmars-d-learn wrote:
> On 12/12/14 8:39 AM, Trollgeir wrote:
> >http://dlang.org/phobos/std_bitmanip.html
> >
> >Does anyone know how to bit-shift a BitArray?
> >
> >I'm trying to make spikes in a neural network travel along
On Friday, 12 December 2014 at 15:50:26 UTC, Steven Schveighoffer
wrote:
Can I email you at this address? If not, email me at the
address from my post to let me know your contact, no reason to
work through building issues on the public forum :)
-Steve
reach me at theambient [] me__com
On 12/12/14 2:02 AM, safety0ff wrote:
On Friday, 12 December 2014 at 06:17:56 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
Is there a way to allocate GC
memory blocks in D that are guaranteed to fall on OS page boundaries?
I don't know about guarantees, I think that in practice, if your OS
On 12/12/14 8:39 AM, Trollgeir wrote:
http://dlang.org/phobos/std_bitmanip.html
Does anyone know how to bit-shift a BitArray?
I'm trying to make spikes in a neural network travel along the
bits as they have various lengths.
That is a surprising omission from a bit-oriented type...
You also c
On 12/12/14 7:52 AM, Ruslan Mullakhmetov wrote:
On Thursday, 11 December 2014 at 18:36:59 UTC, Steven Schveighoffer wrote:
My analysis so far:
2. In the array append code, the block attributes are obtained via
GC.query, which has this code for getting the attributes:
https://github.com/D-Progr
On Fri, Dec 12, 2014 at 03:04:21PM +, Paul via Digitalmars-d-learn wrote:
> On Thursday, 11 December 2014 at 21:35:43 UTC, H. S. Teoh via
> Digitalmars-d-learn wrote:
> >On Thu, Dec 11, 2014 at 08:56:00PM +, Paul via Digitalmars-d-learn
> >wrote:
> >>Is there any merit (or folly!) in storin
On Thursday, 11 December 2014 at 21:35:43 UTC, H. S. Teoh via
Digitalmars-d-learn wrote:
On Thu, Dec 11, 2014 at 08:56:00PM +, Paul via
Digitalmars-d-learn wrote:
Is there any merit (or folly!) in storing a large array, that
frequently needs to be accessed globally, within a class like
so:
http://dlang.org/phobos/std_bitmanip.html
Does anyone know how to bit-shift a BitArray?
I'm trying to make spikes in a neural network travel along the
bits as they have various lengths.
On Friday, 12 December 2014 at 12:53:00 UTC, Ruslan Mullakhmetov
wrote:
On Thursday, 11 December 2014 at 18:36:59 UTC, Steven
Schveighoffer wrote:
My analysis so far:
4. If your code is multi-threaded, but using __gshared, it can
make the cache incorrect. Are you doing this?
the app is mul
On Thursday, 11 December 2014 at 18:36:59 UTC, Steven
Schveighoffer wrote:
My analysis so far:
2. In the array append code, the block attributes are obtained
via GC.query, which has this code for getting the attributes:
https://github.com/D-Programming-Language/druntime/blob/master/src/gc/gc.
19 matches
Mail list logo