Re: GSoC 2015 - Application Rejected

2015-03-03 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2015-03-02 at 23:00 +, CraigDillabaugh via Digitalmars-d-announce wrote: […] Yes, but I didn't see Rust, Nimrod, or Go on there, so I suppose we are on even footing with our main competition. It's called Nim now. I suspect there was a rationale for the change, but I am not sure

Filling a char array with letters and element type of char[]

2015-03-03 Thread Kadir Erdem Demir via Digitalmars-d-learn
I have an char[]; char[] strArr = http://www.hurriyet.com.tr/ekonomi.dup; I stripped the domain out of url like: auto domain = findSplitAfter(strArr, http://;)[1].until('/'); Than because I am new to the language I became curious if I change domain(which I believe a input iterator); the

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2015-03-02 at 22:49 +, CraigDillabaugh via Digitalmars-d-announce wrote: […] I will try to keep hectoring folks, but you all get a break at least for the summer :o) :-) I guess I don't get a dreadful t-shirt this year which costs more to ship than it's worth! I think the

Re: RCArray is unsafe

2015-03-03 Thread Manu via Digitalmars-d
On 3 March 2015 at 06:37, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 3/1/2015 12:51 PM, Michel Fortin wrote: That's actually not enough. You'll have to block access to global variables too: S s; void main() { s.array = RCArray!T([T()]); //

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2015-03-02 at 22:51 +, CraigDillabaugh via Digitalmars-d-announce wrote: […] I sent a message asking for a bit more in-depth feedback, we will see how that turns out! I suspect it is like any decision making process where there are N places for M applications and N M, many get

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2015-03-02 at 19:37 -0500, Ben Boeckel via Digitalmars-d-announce wrote: On Mon, Mar 02, 2015 at 23:57:56 +, Piotrek via Digitalmars-d- announce wrote: I remember someone somewhere suggested to make our own summer of code (however I don't know how this would look like).

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2015-03-02 at 22:36 +, weaselcat via Digitalmars-d-announce wrote: […] List of accepted projects https://www.google-melange.com/gsoc/org/list/public/google/gsoc2015 a lot of other languages got accepted :( Looks like Groovy has been rejected and yet Ruby gets lots. Must be a

Re: DIP74: Reference Counted Class Objects

2015-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/15 12:53 AM, Volodymyr wrote: On Thursday, 26 February 2015 at 21:50:56 UTC, Andrei Alexandrescu wrote: http://wiki.dlang.org/DIP74 got to reviewable form. Please destroy and discuss. Thanks, Andrei With opAddRef/opRelease class does respondible for its dealocation and its own

Re: RCArray is unsafe

2015-03-03 Thread Seo Sanghyeon via Digitalmars-d
On Tuesday, 3 March 2015 at 05:12:15 UTC, Walter Bright wrote: On 3/2/2015 6:04 PM, weaselcat wrote: On Tuesday, 3 March 2015 at 01:56:09 UTC, Walter Bright wrote: On 3/2/2015 4:40 PM, deadalnix wrote: After moving resources, the previous owner can no longer be used. How does that work with

Re: My Reference Safety System (DIP???)

2015-03-03 Thread via Digitalmars-d
On Monday, 2 March 2015 at 20:40:45 UTC, deadalnix wrote: On Monday, 2 March 2015 at 20:36:53 UTC, Marc Schütz wrote: Interesting approach. I will have to think about that. But I think it does not really work. Your example hides the fact that there are actually two types involved (or can be):

Re: RCArray is unsafe

2015-03-03 Thread via Digitalmars-d
On Monday, 2 March 2015 at 22:42:44 UTC, weaselcat wrote: I don't think you were advocating for this but, +1 for a borrow system similar to Rust. We're working on it ;-)

Re: This Week in D #7 - summary of reference counting discussion

2015-03-03 Thread NVolcz via Digitalmars-d-announce
On Monday, 2 March 2015 at 04:19:08 UTC, Adam D. Ruppe wrote: This was a very active week on the forums, though most of it was centered around DIP74 and its satellite discussions, leading to a somewhat thin newsletter. http://arsdnet.net/this-week-in-d/mar-01.html

Re: RCArray is unsafe

2015-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/15 5:45 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: On Tuesday, 3 March 2015 at 09:05:46 UTC, Walter Bright wrote: On 3/2/2015 9:58 PM, weaselcat wrote: Borrowing 'a' from a struct would make the parent struct immutable during the borrow scope of 'a', I believe. Right,

Re: RCArray is unsafe

2015-03-03 Thread Zach the Mystic via Digitalmars-d
On Tuesday, 3 March 2015 at 05:12:15 UTC, Walter Bright wrote: On 3/2/2015 6:04 PM, weaselcat wrote: On Tuesday, 3 March 2015 at 01:56:09 UTC, Walter Bright wrote: On 3/2/2015 4:40 PM, deadalnix wrote: After moving resources, the previous owner can no longer be used. How does that work with

Re: A Refcounted Array Type

2015-03-03 Thread Kagamin via Digitalmars-d
On Tuesday, 3 March 2015 at 14:42:40 UTC, Steven Schveighoffer wrote: // trigger assert in A.dtor. You mean assert breaks something?

Re: RCArray is unsafe

2015-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/15 5:05 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: The object is still accessible after its refcount went to zero, and can therefore potentially be resurrected. Probably not a problem, but needs to be taken into account, in particular in with respect to the freelist. That's

Re: RCArray is unsafe

2015-03-03 Thread Zach the Mystic via Digitalmars-d
On Tuesday, 3 March 2015 at 08:04:25 UTC, Manu wrote: My immediate impression on this problem: s.array[0] is being passed to foo from main. s does not belong to main (is global), and main does not hold have a reference to s.array. Shouldn't main just need to inc/dec array around the call to

[Issue 7067] std.random.RandomSample and RandomCover are poorly designed

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7067 --- Comment #22 from jens.k.muel...@gmx.de --- We should try out Martin's idea. I'll do it but I'd like to write some tests first. Joseph you mentioned several suprizes with the current design. I'd like to create some tests for those. Can you give

Re: RCArray is unsafe

2015-03-03 Thread Zach the Mystic via Digitalmars-d
On Monday, 2 March 2015 at 22:58:19 UTC, Walter Bright wrote: Pretty dazz idea, dontcha think? And DIP25 still stands unscathed :-) Unless, of course, we missed something obvious. I was dazzed, but I'm not anymore. I wrote my concern here:

Unreal Bindings

2015-03-03 Thread via Digitalmars-d
Unreal Engine 4 is not free: https://www.unrealengine.com/blog/ue4-is-free D bindings anyone?

Re: DIP74: Reference Counted Class Objects

2015-03-03 Thread Volodymyr via Digitalmars-d
On Thursday, 26 February 2015 at 21:50:56 UTC, Andrei Alexandrescu wrote: http://wiki.dlang.org/DIP74 got to reviewable form. Please destroy and discuss. Thanks, Andrei With opAddRef/opRelease class does respondible for its dealocation and its own payload so breaks SOLID's single

Re: Implicit fall through not detected (Example from lex.html)

2015-03-03 Thread bearophile via Digitalmars-d-learn
Andre: I am also not really happy with the actual behavor (w / wi switch needed) You shall always compile your D code with warnings active, unless you need them disabled for some real reason. Eventually the fall through warning will become a deprecation and then an error. It's meant to be

Re: RCArray is unsafe

2015-03-03 Thread via Digitalmars-d
On Tuesday, 3 March 2015 at 08:04:25 UTC, Manu wrote: So, passing global x to some function; inc/dec x around the function call that it's passed to...? Then the stack has its own reference, and the global reference can go away safely. Yes, the sane thing to do is to improve the general type

Re: Mac Apps That Use Garbage Collection Must Move to ARC

2015-03-03 Thread Martin Nowak via Digitalmars-d
On Tuesday, 3 March 2015 at 02:05:08 UTC, Walter Bright wrote: On 3/2/2015 11:38 AM, Martin Nowak wrote: Compacting is indeed easy once we have a precise GC, and can be done partially, i.e. objects pointed to by the stack/register are pinned. Also unions. Compacting doesn't solve the

Re: Implicit fall through not detected (Example from lex.html)

2015-03-03 Thread Andre via Digitalmars-d-learn
On Tuesday, 3 March 2015 at 07:27:33 UTC, ketmar wrote: implicit fallthru is not a fatal bug (but i believe it should be), it generates only warning. I am also not really happy with the actual behavor (w / wi switch needed) because the documentation is clear about that it is an error:

Re: Unreal Bindings

2015-03-03 Thread via Digitalmars-d
On Tuesday, 3 March 2015 at 15:59:20 UTC, Per Nordlöw wrote: Unreal Engine 4 is not free: Doh! I of course mean: *now* free!

[Issue 14239] New: template destructor attribute deduction conflicts with object.TypeInfo.destroy

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14239 Issue ID: 14239 Summary: template destructor attribute deduction conflicts with object.TypeInfo.destroy Product: D Version: D1 D2 Hardware: x86_64 OS: Linux

Re: RCArray is unsafe

2015-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/15 7:38 AM, Zach the Mystic wrote: On Monday, 2 March 2015 at 22:58:19 UTC, Walter Bright wrote: Pretty dazz idea, dontcha think? And DIP25 still stands unscathed :-) Unless, of course, we missed something obvious. I was dazzed, but I'm not anymore. I wrote my concern here:

[Issue 14239] template destructor attribute deduction conflicts with object.TypeInfo.destroy

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14239 Vlad Levenfeld vlevenf...@gmail.com changed: What|Removed |Added CC||vlevenf...@gmail.com

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread Bruno Medeiros via Digitalmars-d-announce
On 02/03/2015 23:00, CraigDillabaugh wrote: On Monday, 2 March 2015 at 22:36:43 UTC, weaselcat wrote: On Monday, 2 March 2015 at 19:08:49 UTC, CraigDillabaugh wrote: Unfortunately our organizational proposal for the 2015 Google Summer of Code was rejected. Thanks to everyone who helped out on

is expression and type tuples

2015-03-03 Thread Jack Applegame via Digitalmars-d-learn
Seems like is expression doesn't support type tuples: pragma(msg, is(short : int)); // true enum Test(ARGS...) = is(ARGS[0..2] : ARGS[2..4]); pragma(msg, is(Test!(int, int, int, int))); // false pragma(msg, Test!(int, short, int, int)); // false Is it by design, or just

Re: is expression and type tuples

2015-03-03 Thread bearophile via Digitalmars-d-learn
Jack Applegame: Seems like is expression doesn't support type tuples: pragma(msg, is(short : int)); // true enum Test(ARGS...) = is(ARGS[0..2] : ARGS[2..4]); pragma(msg, is(Test!(int, int, int, int))); // false pragma(msg, Test!(int, short, int, int)); // false Is it

[Issue 7104] linker error on void main(){ typeof(new class{}) c; c = new typeof(c); }

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7104 --- Comment #2 from Kenji Hara k.hara...@gmail.com --- https://github.com/D-Programming-Language/dmd/pull/4453 --

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread CraigDillabaugh via Digitalmars-d-announce
On Tuesday, 3 March 2015 at 09:03:44 UTC, weaselcat wrote: On Tuesday, 3 March 2015 at 08:14:55 UTC, Russel Winder wrote: On Mon, 2015-03-02 at 23:00 +, CraigDillabaugh via Digitalmars-d-announce wrote: […] Yes, but I didn't see Rust, Nimrod, or Go on there, so I suppose we are on even

Re: RCArray is unsafe

2015-03-03 Thread via Digitalmars-d
On Monday, 2 March 2015 at 22:58:19 UTC, Walter Bright wrote: On 3/2/2015 1:09 PM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: I have discovered a marvellous solution, but this post is too short to describe it. Fortunately, Fermat (er, Andrei) was able to pass along his dazz idea

Re: Making RCSlice and DIP74 work with const and immutable

2015-03-03 Thread Atila Neves via Digitalmars-d
On Sunday, 1 March 2015 at 15:49:12 UTC, Jakob Ovrum wrote: On Sunday, 1 March 2015 at 15:40:06 UTC, Atila Neves wrote: I've lost count now of how many times I've had to downgrade to auto despite always wanting immutable or const. This doesn't work: auto reg = regex(`(foo)`); const match =

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread CraigDillabaugh via Digitalmars-d-announce
On Tuesday, 3 March 2015 at 08:09:30 UTC, Russel Winder wrote: On Mon, 2015-03-02 at 22:51 +, CraigDillabaugh via Digitalmars-d-announce wrote: […] I sent a message asking for a bit more in-depth feedback, we will see how that turns out! I suspect it is like any decision making process

[Issue 4616] Link error with copy constructor of nested struct

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4616 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread Ben Boeckel via Digitalmars-d-announce
On Tue, Mar 03, 2015 at 08:20:41 +, Russel Winder via Digitalmars-d-announce wrote: But this is funded either by GSoC or RH. I don't think Fedora even requests money from GSoC itself anymore. Red Hat funding it makes sense though. And it's not like there aren't companies with 9+ zeros

Strange alias behaviour in template arguments

2015-03-03 Thread Stefan Frijters via Digitalmars-d-learn
So this is a strange thing I ran into while trying to streamline some templates in my code, where fixed-length arrays are passed as runtime arguments. I started out by trying variant fun2(), which disappointingly didn't work. fun3() then did its job but I was suspicious and tried fun4() and

Re: This Week in D #7 - summary of reference counting discussion

2015-03-03 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 3 March 2015 at 12:40:55 UTC, NVolcz wrote: Would be nice to have it link somewhere for discussions. E.x Reddit or the forums. I do reddit sometimes, but people were giving me a lot of grief about posting my own link to it (idiotic rule btw), so I skip it on weeks where there

Re: This Week in D #7 - summary of reference counting discussion

2015-03-03 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 3 March 2015 at 12:59:00 UTC, Adam D. Ruppe wrote: Of course, if any of you would like to post to reddit, please do! Somebody did! http://www.reddit.com/r/programming/comments/2xs4ok/this_week_in_d_7/

Re: Filling a char array with letters and element type of char[]

2015-03-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, March 03, 2015 09:06:03 Tobias Pankrath via Digitalmars-d-learn wrote: I have three questions? If I change the iterator which I get from algorithm, the owner data will change or not? How to use std.algorithm.fill with char types? What is the type of char array holds

[Issue 14237] Compiler should reject attempts to (re)define .init

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14237 Marc Schütz schue...@gmx.net changed: What|Removed |Added CC||schue...@gmx.net --

[Issue 8072] Methods defined in external object files when template alias parameter is involved

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8072 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: is expression and type tuples

2015-03-03 Thread Jack Applegame via Digitalmars-d-learn
On Tuesday, 3 March 2015 at 16:42:22 UTC, bearophile wrote: But it should be not too much hard to implement it your code. Just use two is(), or use recursion (with splitting in two, and not 1 + n-1). Bye, bearophile I already have one: template Is(ARGS...) if(ARGS.length % 2 == 0) {

Re: RCArray is unsafe

2015-03-03 Thread Zach the Mystic via Digitalmars-d
On Tuesday, 3 March 2015 at 16:31:07 UTC, Andrei Alexandrescu wrote: I was dazzed, but I'm not anymore. I wrote my concern here: http://forum.dlang.org/post/ylpaqhnuiczfgfpqj...@forum.dlang.org There's a misunderstanding here. The object being assigned keeps a trailing list of past values

Re: RCArray is unsafe

2015-03-03 Thread deadalnix via Digitalmars-d
On Tuesday, 3 March 2015 at 09:05:46 UTC, Walter Bright wrote: On 3/2/2015 9:58 PM, weaselcat wrote: Borrowing 'a' from a struct would make the parent struct immutable during the borrow scope of 'a', I believe. Right, now consider that struct is a leaf in a complex graph of data structures.

Re: Is there such a thing?

2015-03-03 Thread Taylor Hillegeist via Digitalmars-d
On Tuesday, 3 March 2015 at 10:37:49 UTC, Kagamin wrote: On Saturday, 28 February 2015 at 17:06:58 UTC, Dicebot wrote: On Friday, 27 February 2015 at 19:49:37 UTC, Taylor Hillegeist wrote: I just think its a shame that all over the place people are compiling code in different programming

Re: Unreal Bindings

2015-03-03 Thread via Digitalmars-d
On Tuesday, 3 March 2015 at 15:59:20 UTC, Per Nordlöw wrote: Unreal Engine 4 is not free: https://www.unrealengine.com/blog/ue4-is-free D bindings anyone? Yes, please! Although 5% of gross earnings is more like «free»...

Re: RCArray is unsafe

2015-03-03 Thread via Digitalmars-d
On Tuesday, 3 March 2015 at 15:03:41 UTC, Andrei Alexandrescu wrote: On 3/3/15 5:45 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: On Tuesday, 3 March 2015 at 09:05:46 UTC, Walter Bright wrote: On 3/2/2015 9:58 PM, weaselcat wrote: Borrowing 'a' from a struct would make the parent

Re: Dgame revived

2015-03-03 Thread Namespace via Digitalmars-d-announce
On Sunday, 1 March 2015 at 10:00:35 UTC, Namespace wrote: On Sunday, 1 March 2015 at 00:10:22 UTC, stewarth wrote: On Saturday, 28 February 2015 at 22:52:47 UTC, Namespace wrote: On Saturday, 28 February 2015 at 11:02:31 UTC, Namespace wrote: Next step is Font, Text and Spritesheet. Then I'll

Re: [NEEDING HELP] Translation of Ali Cehreli's book in French

2015-03-03 Thread deadalnix via Digitalmars-d
On Tuesday, 3 March 2015 at 13:47:06 UTC, Scroph wrote: Alright, I just finished translating the member functions chapter. I modified the member_functions.d file after downloading it from the BitBucket repository, here's a link to the file I used :

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 3/3/15 9:53 AM, CraigDillabaugh wrote: On Tuesday, 3 March 2015 at 17:40:55 UTC, Jacob Carlborg wrote: On 2015-03-03 14:45, CraigDillabaugh wrote: That would require some serious chutzpah! Are you volunteering to mentor that? Not really. That was not completely serious proposal, hence

Re: RCArray is unsafe

2015-03-03 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 3 March 2015 at 08:59:08 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 3 March 2015 at 08:04:25 UTC, Manu wrote: So, passing global x to some function; inc/dec x around the function call that it's passed to...? Then the stack has its own reference, and the global reference can go

Re: Unreal Bindings

2015-03-03 Thread Steven Schveighoffer via Digitalmars-d
On 3/3/15 12:15 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 3 March 2015 at 15:59:20 UTC, Per Nordlöw wrote: Unreal Engine 4 is not free: https://www.unrealengine.com/blog/ue4-is-free D bindings anyone? Yes, please! Although 5% of gross

[Issue 14240] New: Segfault while compiling templated code

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14240 Issue ID: 14240 Summary: Segfault while compiling templated code Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: Cycle detected between modules with ctors/dtors

2015-03-03 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/3/15 12:40 PM, rumbu wrote: I encountered the following error: First-chance exception: object.Exception Aborting: Cycle detected between modules with ctors/dtors: system.globalization - internals.locale - system.runtime.interopservices - system.io - system.globalization at

Re: Filling a char array with letters and element type of char[]

2015-03-03 Thread Ali Çehreli via Digitalmars-d-learn
On 03/03/2015 11:38 AM, Steven Schveighoffer wrote: Sure, but I think that for phobos to say you can't fill a large char[] with a repeat of small char[], but you can fill a large int[] with a repeat of small int[], is more of a problem than somehow fixing the underlying situation. Other

D Unittest shortcomings with DLLs

2015-03-03 Thread Benjamin Thaut via Digitalmars-d
I'm currently in the process of annotating all of phobos with export and its quite cumbersome. To verify that I annoted all relevant functions and types with export I would like to run the unitests against the shared version of phobos. There is a problem with this though. The unittests are

Re: is expression and type tuples

2015-03-03 Thread bearophile via Digitalmars-d-learn
Jack Applegame: or use recursion (with splitting in two, and not 1 + n-1). Bye, bearophile I already have one: template Is(ARGS...) if(ARGS.length % 2 == 0) { enum N = ARGS.length/2; static if(N == 1) enum Is = is(ARGS[0] : ARGS[1]); else enum Is = is(ARGS[0] : ARGS[N])

Re: RCArray is unsafe

2015-03-03 Thread Zach the Mystic via Digitalmars-d
On Tuesday, 3 March 2015 at 17:40:59 UTC, Marc Schütz wrote: All instances need to carry a pointer to refcount anyway, so the freelist could just be stored next to the refcount. The idea of creating that list, however, is more worrying, because it again involves allocations. It can get

Re: RCArray is unsafe

2015-03-03 Thread Nick Treleaven via Digitalmars-d
On 03/03/2015 13:05, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: The bigger problem is that it's relying on a convention. The RC wrapper needs to be constructed in a particular way that's easy to get wrong and that the compiler has no way to check for us. Maybe the compiler could

Standard GUI framework inspired by Qt

2015-03-03 Thread Aram via Digitalmars-d
Hi all I've been thinking over a GUI framework for D for some time, and ended up with idea expressed by Andrew Fedoniouk here: http://www.digitalmars.com/d/archives/digitalmars/D/32633.html. That is, having a separate drawing layer, and widgets built on top of it. But since it has already

Re: RCArray is unsafe

2015-03-03 Thread Walter Bright via Digitalmars-d
On 3/3/2015 9:44 AM, Andrei Alexandrescu wrote: On 3/3/15 9:40 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: All instances need to carry a pointer to refcount anyway, so the freelist could just be stored next to the refcount. The idea of creating that list, however, is more

Re: RCArray is unsafe

2015-03-03 Thread Walter Bright via Digitalmars-d
On 3/3/2015 9:19 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: Therefore, your reply isn't really valid. In Rust, it is an escape hatch from a fundamentally safe type system, whereas in D it would be a necessary convention to make usage of RC safe. My understanding of Rust is that

Re: Standard GUI framework inspired by Qt

2015-03-03 Thread Taylor Hillegeist via Digitalmars-d
On Tuesday, 3 March 2015 at 18:43:50 UTC, Aram wrote: Hi all I've been thinking over a GUI framework for D for some time, and ended up with idea expressed by Andrew Fedoniouk here: http://www.digitalmars.com/d/archives/digitalmars/D/32633.html. That is, having a separate drawing layer, and

Re: RCArray is unsafe

2015-03-03 Thread Biker via Digitalmars-d
On Tuesday, 3 March 2015 at 07:17:11 UTC, Sativa wrote: On Sunday, 1 March 2015 at 15:44:49 UTC, Marc Schütz wrote: Walter posted an example implementation of a reference counted array [1], that utilizes the features introduced in DIP25 [2]. Then, in the threads about reference counted

Re: RCArray is unsafe

2015-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/15 9:00 AM, Zach the Mystic wrote: On Tuesday, 3 March 2015 at 16:31:07 UTC, Andrei Alexandrescu wrote: I was dazzed, but I'm not anymore. I wrote my concern here: http://forum.dlang.org/post/ylpaqhnuiczfgfpqj...@forum.dlang.org There's a misunderstanding here. The object being

Re: RCArray is unsafe

2015-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/15 10:22 AM, Zach the Mystic wrote: On Tuesday, 3 March 2015 at 17:40:59 UTC, Marc Schütz wrote: All instances need to carry a pointer to refcount anyway, so the freelist could just be stored next to the refcount. The idea of creating that list, however, is more worrying, because it

Re: RCArray is unsafe

2015-03-03 Thread ixid via Digitalmars-d
Somebody please write the code already. With no code we sit forever on our testes speculating. Isn't this testes-driven development?

Re: Filling a char array with letters and element type of char[]

2015-03-03 Thread Ali Çehreli via Digitalmars-d-learn
On 03/03/2015 12:18 AM, Kadir Erdem Demir wrote: I have an char[]; char[] strArr = http://www.hurriyet.com.tr/ekonomi.dup; I stripped the domain out of url like: auto domain = findSplitAfter(strArr, http://;)[1].until('/'); Than because I am new to the language I became curious if I

Re: Filling a char array with letters and element type of char[]

2015-03-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, March 03, 2015 08:50:35 Steven Schveighoffer via Digitalmars-d-learn wrote: What is the type of char array holds why it does not matches char? Because D is schizophrenic ;) Phobos considers char[] arrays not to be arrays of char, only ranges of dchar. Unless you talk to the

Re: A Refcounted Array Type

2015-03-03 Thread Steven Schveighoffer via Digitalmars-d
On 3/3/15 9:57 AM, Kagamin wrote: On Tuesday, 3 March 2015 at 14:42:40 UTC, Steven Schveighoffer wrote: // trigger assert in A.dtor. You mean assert breaks something? OK, if you want to be pedantic: int *myglobal; repeat same code, but access what myglobal points to instead of setting

Re: GSoC 2015 - Application Rejected

2015-03-03 Thread CraigDillabaugh via Digitalmars-d-announce
On Tuesday, 3 March 2015 at 17:40:55 UTC, Jacob Carlborg wrote: On 2015-03-03 14:45, CraigDillabaugh wrote: That would require some serious chutzpah! Are you volunteering to mentor that? Not really. That was not completely serious proposal, hence the smiley. I would probably need to know

Re: Filling a char array with letters and element type of char[]

2015-03-03 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/3/15 2:32 PM, Jonathan M Davis via Digitalmars-d-learn wrote: On Tuesday, March 03, 2015 08:50:35 Steven Schveighoffer via Digitalmars-d-learn wrote: What is the type of char array holds why it does not matches char? Because D is schizophrenic ;) Phobos considers char[] arrays not to be

Re: Standard GUI framework inspired by Qt

2015-03-03 Thread Jonas Drewsen via Digitalmars-d
On Tuesday, 3 March 2015 at 18:43:50 UTC, Aram wrote: Hi all ... However, for maximum flexibility and customizability, GUI will utilize QML+CSS approach, and Qt's layout manager classes will be dropped completely. Also there is no need to port classes that are available in D, such as

Re: dfmt 0.1.0

2015-03-03 Thread Walter Bright via Digitalmars-d-announce
On 2/19/2015 6:21 PM, Brian Schott wrote: dfmt is a D source code formatting tool. https://github.com/Hackerpilot/dfmt/ https://github.com/Hackerpilot/dfmt/releases/tag/v0.1.0 Thanks for doing this. It's an important part of the D toolchain we need to have. At some point I want to merge it

[Issue 7157] Optimiser is O(n^2) w.r.t. function length

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7157 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment #4 from

Re: RCArray is unsafe

2015-03-03 Thread deadalnix via Digitalmars-d
On Tuesday, 3 March 2015 at 18:49:43 UTC, Andrei Alexandrescu wrote: On 3/3/15 10:22 AM, Zach the Mystic wrote: On Tuesday, 3 March 2015 at 17:40:59 UTC, Marc Schütz wrote: All instances need to carry a pointer to refcount anyway, so the freelist could just be stored next to the refcount. The

Re: Unreal Bindings

2015-03-03 Thread Jonas Drewsen via Digitalmars-d
On Tuesday, 3 March 2015 at 17:15:47 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 3 March 2015 at 15:59:20 UTC, Per Nordlöw wrote: Unreal Engine 4 is not free: https://www.unrealengine.com/blog/ue4-is-free D bindings anyone? Yes, please! Although 5% of gross earnings is more like «free»...

Re: Unreal Bindings

2015-03-03 Thread Kiith-Sa via Digitalmars-d
On Tuesday, 3 March 2015 at 22:01:46 UTC, Jonas Drewsen wrote: On Tuesday, 3 March 2015 at 17:15:47 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 3 March 2015 at 15:59:20 UTC, Per Nordlöw wrote: Unreal Engine 4 is not free: https://www.unrealengine.com/blog/ue4-is-free D bindings anyone?

Re: Unreal Bindings

2015-03-03 Thread Jonas Drewsen via Digitalmars-d
On Tuesday, 3 March 2015 at 22:07:43 UTC, Kiith-Sa wrote: On Tuesday, 3 March 2015 at 22:01:46 UTC, Jonas Drewsen wrote: On Tuesday, 3 March 2015 at 17:15:47 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 3 March 2015 at 15:59:20 UTC, Per Nordlöw wrote: Unreal Engine 4 is not free:

Re: RCArray is unsafe

2015-03-03 Thread via Digitalmars-d
On Tuesday, 3 March 2015 at 19:50:46 UTC, Paulo Pinto wrote: You just reminded me of ParaSail. Here is the latest version of their pointer free programming paper. https://drive.google.com/file/d/0B6Vq5QaY4U7ubm5qVkFpMEtmN2s/view?pli=1 Thanks! Section «5. Related Work» was a fun read. :-)

Re: RCArray is unsafe

2015-03-03 Thread Andrei Alexandrescu via Digitalmars-d
On 3/3/15 12:35 PM, Zach the Mystic wrote: On Tuesday, 3 March 2015 at 18:48:36 UTC, Andrei Alexandrescu wrote: On 3/3/15 9:00 AM, Zach the Mystic wrote: On Tuesday, 3 March 2015 at 16:31:07 UTC, Andrei Alexandrescu wrote: I was dazzed, but I'm not anymore. I wrote my concern here:

Re: Standard GUI framework inspired by Qt

2015-03-03 Thread Freddy via Digitalmars-d
On Tuesday, 3 March 2015 at 18:43:50 UTC, Aram wrote: Hi all I've been thinking over a GUI framework for D for some time, and ended up with idea expressed by Andrew Fedoniouk here: http://www.digitalmars.com/d/archives/digitalmars/D/32633.html. That is, having a separate drawing layer, and

Re: Cycle detected between modules with ctors/dtors

2015-03-03 Thread rumbu via Digitalmars-d-learn
On Tuesday, 3 March 2015 at 18:55:49 UTC, Steven Schveighoffer wrote: Only one of the listed modules has a static contructor (system.globalization) and that constructor doesn't use any information from other modules. It's a complex problem. Because we don't control the linker, we cannot

Re: What is the state of D with Android/iOS

2015-03-03 Thread Rishub Nagpal via Digitalmars-d
On Wednesday, 25 February 2015 at 08:04:02 UTC, Joakim wrote: On Tuesday, 24 February 2015 at 21:20:24 UTC, Rishub Nagpal wrote: On Tuesday, 24 February 2015 at 19:34:15 UTC, Joakim wrote: I need to patch llvm in a similar way to that dmd PR, so that Android/ARM can use the same scheme. It

Re: RCArray is unsafe

2015-03-03 Thread Zach the Mystic via Digitalmars-d
On Tuesday, 3 March 2015 at 18:48:36 UTC, Andrei Alexandrescu wrote: On 3/3/15 9:00 AM, Zach the Mystic wrote: On Tuesday, 3 March 2015 at 16:31:07 UTC, Andrei Alexandrescu wrote: I was dazzed, but I'm not anymore. I wrote my concern here:

[Issue 7157] Optimiser is O(n^2) w.r.t. function length

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7157 Jonathan M Davis issues.dl...@jmdavisprog.com changed: What|Removed |Added CC|

Re: @trusted and return ref

2015-03-03 Thread w0rp via Digitalmars-d-learn
On Wednesday, 25 February 2015 at 06:48:17 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 24 February 2015 at 22:49:17 UTC, w0rp wrote: In general, @trusted means I have proven myself that this code is actually safe, eeven though it uses unsafe features. The compiler has to be pessimistic and

[Issue 14241] New: phobos unittests not run on Windows

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14241 Issue ID: 14241 Summary: phobos unittests not run on Windows Product: D Version: unspecified Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: Refactoring D as an MSc Project

2015-03-03 Thread Jonas Drewsen via Digitalmars-d
On Monday, 2 March 2015 at 21:50:46 UTC, Jamie wrote: Hello all! This is my first post on the forums. I'm interested in possibly creating a refactoring tool for D for my MSc dissertation (I notice there is currently no refactoring in D?). I wanted to ask if this is possible with D's current

[Issue 7157] Optimiser is O(n^2) w.r.t. function length

2015-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7157 --- Comment #5 from Martin Nowak c...@dawg.eu --- Most CPU time is spent in `updaterd` and `accumaecpx` if that helps. https://github.com/D-Programming-Language/dmd/blob/82b031c22f18334a7edeff437260b6802070a9e3/src/backend/gloop.c#L1263

GSOC 2015 - GNU dmd

2015-03-03 Thread notna via Digitalmars-d-announce
not sure if someone should inform them about the DMD name clash... or just enjoy the popularity ;) http://www.gnu.org/software/dmd

Re: Standard GUI framework inspired by Qt

2015-03-03 Thread Freddy via Digitalmars-d
On Tuesday, 3 March 2015 at 22:16:36 UTC, Freddy wrote: On Tuesday, 3 March 2015 at 18:43:50 UTC, Aram wrote: Hi all I've been thinking over a GUI framework for D for some time, and ended up with idea expressed by Andrew Fedoniouk here:

Re: Parallel Merge Sort

2015-03-03 Thread H. S. Teoh via Digitalmars-d
On Wed, Mar 04, 2015 at 02:05:45AM +, anonymous via Digitalmars-d wrote: On Wednesday, 4 March 2015 at 01:17:00 UTC, H. S. Teoh wrote: The 'in' modifier is the same as 'const' when applied to function parameters, but writing 'in' documents that the parameters are input parameters that

Re: Cycle detected between modules with ctors/dtors

2015-03-03 Thread rumbu via Digitalmars-d-learn
Now I see: this bug is 7 years old, but is filled in for D1: https://issues.dlang.org/show_bug.cgi?id=2457 Does this mean it will be ignored for D2?

Re: A Refcounted Array Type

2015-03-03 Thread Kagamin via Digitalmars-d
On Tuesday, 3 March 2015 at 18:38:11 UTC, Steven Schveighoffer wrote: int *myglobal; repeat same code, but access what myglobal points to instead of setting to 42. Memory corruption is what @safe code is trying to prevent. This would lead to memory corruption. You mean, the class destructor

Re: is expression and type tuples

2015-03-03 Thread Jack Applegame via Digitalmars-d-learn
On Tuesday, 3 March 2015 at 17:49:24 UTC, bearophile wrote: That's 1 + n-1 :-) Could you please explain what does '1 + n-1' mean?

  1   2   >