Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Masanori Ogino
Thank you very much.

So, does the Pointer Guide need to be updated?

-- 
Masanori Ogino 
http://twitter.com/omasanori
http://gplus.to/omasanori
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Daniel Micay
On 20/05/14 07:41 PM, Liigo Zhuang wrote:
> Could you show us the memory layout of Box? Thank you!

The memory layout is just a pointer to a dynamic allocation with the
size of the value. Providing the dynamic allocation is up to the default
allocator, which is jemalloc right now.



signature.asc
Description: OpenPGP digital signature
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Liigo Zhuang
Could you show us the memory layout of Box? Thank you!
 2014年5月21日 上午6:59于 "Daniel Micay" 写道:

> On 20/05/14 06:45 PM, Masanori Ogino wrote:
> > Hello.
> >
> > I found that the Reference Manual uses the term "owning pointer", the
> > Pointer Guide and liballoc do "owned pointer" and Tutorial does "owned
> box".
> >
> > Which term is canonical today?
> >
> > --
> > Masanori Ogino  masanori.og...@gmail.com>>
> > http://twitter.com/omasanori
> > http://gplus.to/omasanori
>
> Either owned box (a dynamic allocation owned by a pointer) or owning
> pointer (a pointer owning a dynamic allocation) is accurate. On the
> other hand, the term 'owned pointer' doesn't make sense as even
> references and `Rc` are an owned *pointer*, but the ownership
> relationship doesn't pass through them.
>
>
> ___
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
>
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Corey Richardson
See https://github.com/mozilla/rust/wiki/The-Rusticon for an
up-to-date glossary and syntax reference.

On Tue, May 20, 2014 at 3:59 PM, Daniel Micay  wrote:
> On 20/05/14 06:45 PM, Masanori Ogino wrote:
>> Hello.
>>
>> I found that the Reference Manual uses the term "owning pointer", the
>> Pointer Guide and liballoc do "owned pointer" and Tutorial does "owned box".
>>
>> Which term is canonical today?
>>
>> --
>> Masanori Ogino mailto:masanori.og...@gmail.com>>
>> http://twitter.com/omasanori
>> http://gplus.to/omasanori
>
> Either owned box (a dynamic allocation owned by a pointer) or owning
> pointer (a pointer owning a dynamic allocation) is accurate. On the
> other hand, the term 'owned pointer' doesn't make sense as even
> references and `Rc` are an owned *pointer*, but the ownership
> relationship doesn't pass through them.
>
>
> ___
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>



-- 
http://octayn.net/
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Daniel Micay
On 20/05/14 06:45 PM, Masanori Ogino wrote:
> Hello.
> 
> I found that the Reference Manual uses the term "owning pointer", the
> Pointer Guide and liballoc do "owned pointer" and Tutorial does "owned box".
> 
> Which term is canonical today?
> 
> -- 
> Masanori Ogino mailto:masanori.og...@gmail.com>>
> http://twitter.com/omasanori
> http://gplus.to/omasanori

Either owned box (a dynamic allocation owned by a pointer) or owning
pointer (a pointer owning a dynamic allocation) is accurate. On the
other hand, the term 'owned pointer' doesn't make sense as even
references and `Rc` are an owned *pointer*, but the ownership
relationship doesn't pass through them.



signature.asc
Description: OpenPGP digital signature
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev


[rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Masanori Ogino
Hello.

I found that the Reference Manual uses the term "owning pointer", the
Pointer Guide and liballoc do "owned pointer" and Tutorial does "owned box".

Which term is canonical today?

-- 
Masanori Ogino 
http://twitter.com/omasanori
http://gplus.to/omasanori
___
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev