September 27, 2013
If we're sharing potential allocators, I just partially implemented a design inspired by a rather 'Bright' person. (Please shoot me for that.)

http://pastebin.com/14jeVY4n

Based on: http://www.drdobbs.com/cpp/increasing-compiler-speed-by-over-75/240158941
September 27, 2013
On Fri, Sep 27, 2013 at 07:10:18PM +0200, Yota wrote:
> If we're sharing potential allocators, I just partially implemented a design inspired by a rather 'Bright' person. (Please shoot me for that.)

*BANG*


T

-- 
They say that "guns don't kill people, people kill people." Well I think the gun helps. If you just stood there and yelled BANG, I don't think you'd kill too many people. -- Eddie Izzard, Dressed to Kill
September 27, 2013
On Friday, 27 September 2013 at 17:29:06 UTC, H. S. Teoh wrote:
> *BANG*

> They say that "guns don't kill people, people kill people." Well I think
> the gun helps. If you just stood there and yelled BANG, I don't think
> you'd kill too many people. -- Eddie Izzard, Dressed to Kil

Was that an amazing coincidence, or did you have your quote generator cheat there?
September 27, 2013
On Friday, 27 September 2013 at 17:29:06 UTC, H. S. Teoh wrote:
> On Fri, Sep 27, 2013 at 07:10:18PM +0200, Yota wrote:
>> If we're sharing potential allocators, I just partially implemented
>> a design inspired by a rather 'Bright' person. (Please shoot me for
>> that.)
>
> *BANG*
>
>
> T
> --
> They say that "guns don't kill people, people kill people." Well I think
> the gun helps. If you just stood there and yelled BANG, I don't think
> you'd kill too many people. -- Eddie Izzard, Dressed to Kill

Did you specify that quote, or was it randomly generated?
September 27, 2013
On Friday, 27 September 2013 at 17:32:28 UTC, Craig Dillabaugh wrote:
> On Friday, 27 September 2013 at 17:29:06 UTC, H. S. Teoh wrote:
>> On Fri, Sep 27, 2013 at 07:10:18PM +0200, Yota wrote:
>>> If we're sharing potential allocators, I just partially implemented
>>> a design inspired by a rather 'Bright' person. (Please shoot me for
>>> that.)
>>
>> *BANG*
>>
>>
>> T
>> --
>> They say that "guns don't kill people, people kill people." Well I think
>> the gun helps. If you just stood there and yelled BANG, I don't think
>> you'd kill too many people. -- Eddie Izzard, Dressed to Kill
>
> Did you specify that quote, or was it randomly generated?

Given the fact it is not the first time he has done it, I'd incline to call the former.
September 27, 2013
On Fri, Sep 27, 2013 at 07:33:40PM +0200, Dicebot wrote:
> On Friday, 27 September 2013 at 17:32:28 UTC, Craig Dillabaugh wrote:
> >On Friday, 27 September 2013 at 17:29:06 UTC, H. S. Teoh wrote:
> >>On Fri, Sep 27, 2013 at 07:10:18PM +0200, Yota wrote:
> >>>If we're sharing potential allocators, I just partially implemented a design inspired by a rather 'Bright' person. (Please shoot me for that.)
> >>
> >>*BANG*
> >>
> >>
> >>T
> >>--
> >>They say that "guns don't kill people, people kill people." Well I think the gun helps. If you just stood there and yelled BANG, I don't think you'd kill too many people. -- Eddie Izzard, Dressed to Kill
> >
> >Did you specify that quote, or was it randomly generated?
> 
> Given the fact it is not the first time he has done it, I'd incline to call the former.

I cheated. :-P

Now punish me... oh. (OK, I didn't cheat on this one, but it was a close enough coincidence for me to take advantage of it. :-P)


T

-- 
I'm still trying to find a pun for "punishment"...
October 24, 2013
On Monday, 23 September 2013 at 15:56:11 UTC, ponce wrote:
> On Monday, 23 September 2013 at 15:45:25 UTC, Andrei Alexandrescu wrote:
>> On 9/23/13 7:22 AM, ponce wrote:
>>
>> One question: what circumstances require run-time alignment values, and what values would those be? I'm currently under the assumption that alignments are known during compilation.
>>
>>
>> Thanks,
>>
>> Andrei
>
> I don't know of a use case for run-time alignment values.

Actually there is at least one scenario in which run-time alignment values is required.
Using "true sharing" for OpenCL memory objects requires to first get the necessary alignement through an API call then passing accordingly aligned buffers.
It can requires alignement as high as 4096 bytes. Same business with OpenGL.

Just stumbled upon this problem in C++ which prevent to use a custom C++ STL allocator.
6 7 8 9 10 11 12 13 14 15 16
Next ›   Last »