Re: indie game contests

2015-05-26 Thread Manu via Digitalmars-d
On 26 May 2015 at 07:05, Danni Coy via Digitalmars-d digitalmars-d@puremagic.com wrote: @Manu - if by that you mean do game jams without you - that horse has already bolted the stable :p I would be happy to a try the October Game Jam again this year and I thoroughly recommend the global (much

Re: DIP78 - macros without syntax extensions

2015-05-26 Thread Dennis Ritchie via Digitalmars-d
On Tuesday, 26 May 2015 at 20:23:11 UTC, Kagamin wrote: http://wiki.dlang.org/DIP78 - Proposal for a macro system without syntactical extensions to the language. Hence it doesn't allow arbitrary syntax. If this proposal is considered, it is required to propose to look at the implementation of

Re: indie game contests

2015-05-26 Thread rcorre via Digitalmars-d
This sounds like a fun idea, I might be interested if I can find the time. I dabble in pixel art and music, though I'm just barely past the point of programmer art: http://opengameart.org/users/rcorre Currently I've been hacking away at dtiled, working on general-purpose tilemap

problem with gc?

2015-05-26 Thread zhmt via Digitalmars-d-learn
I am writing a echoclient, as below: Ptr!Conn conn = connect(127.0.0.1,8881); ubyte[100] buf; for(int i=0; iN; i++) { scope string str = format(%s,i); conn.write((cast(ubyte*)str.ptr)[0..str.length]); conn.read(buf[0..str.length]); n++; } conn.close(); When it

Re: problem with gc?

2015-05-26 Thread zhmt via Digitalmars-d-learn
I noticed that the cpu% falls from 99% down to 4% as well when the throughput falls down.

Re: Lazy variadic not working, any alternatives?

2015-05-26 Thread Tofu Ninja via Digitalmars-d-learn
On Tuesday, 26 May 2015 at 05:54:11 UTC, John Colvin wrote: Something like this appears to work: import std.typetuple : allSatisfy; enum implicityConvertibleToBool(T) = is(T : bool); bool tok_and(Args...)(lazy Args terms) if(allSatisfy!(implicitlyConvertibleToBool, Args)) { auto

Re: shared libs for OSX

2015-05-26 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-25 21:40, bitwise wrote: So then I think I have a full solution: 1) _dyld_register_func_for_add_image should be taken care of with the above two fixes 2) __attribute__((constructor/destructor)) can be added to druntime when building for osx like in the file dylib_fixes.c [1] 3) copy

Re: shared libs for OSX

2015-05-26 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-25 22:58, Martin Nowak wrote: On Monday, 25 May 2015 at 19:40:52 UTC, bitwise wrote: 1) _dyld_register_func_for_add_image should be taken care of with the above two fixes You still cannot unregister the callback, so it can't be used for dynamically loading druntime. Last time we

Re: Status of Deimos bindings

2015-05-26 Thread Jacob Carlborg via Digitalmars-d
On 2015-05-25 23:33, FreeSlave wrote: What's the current status of Deimos? I don't think that this kind of bindings is useless, since not everyone always wants dynamic bindings. E.g. for the sake of simplicity or static linking. Actually Walter even fixes issues in these bindings time by time,

Re: Uphill

2015-05-26 Thread weaselcat via Digitalmars-d
On Tuesday, 26 May 2015 at 08:35:46 UTC, ketmar wrote: On Tue, 26 May 2015 07:43:59 +0200, Iain Buclaw via Digitalmars-d wrote: p.s. I suspect the most common beginner bugs occurs when using right accessor on the wrong tree causes an ICE at runtime in 'some obscure location'. Incase you

Re: Uphill

2015-05-26 Thread Laeeth Isharc via Digitalmars-d
On Sunday, 24 May 2015 at 22:24:40 UTC, Iain Buclaw wrote: The compiler situation feels odd, LDC and GDC have very few contributors despite being better than dmd at optimizing and providing a lot of extra perks I find the situation being like at university looking for grants or funding, and

narratives on switching to D

2015-05-26 Thread Laeeth Isharc via Digitalmars-d
weaselcat: I feel like I could write a book on why I use D, so I'm going to stop now : ) Actually, kidding aside, I do believe that it would make sense to collect some personal warts-and-all accounts of the experience of individuals working in academe, the corporate sector, and elsewhere in

Re: Uphill

2015-05-26 Thread ketmar via Digitalmars-d
On Tue, 26 May 2015 04:07:40 +, weaselcat wrote: while I agree with your ideological standpoint on GPL, gcc is virtually inaccessible to anyone who isn't already familiar with the codebase in comparison to llvm. At least it seems gcc is interested in changing this. funny, that movement

Re: Uphill

2015-05-26 Thread ketmar via Digitalmars-d
On Tue, 26 May 2015 07:43:59 +0200, Iain Buclaw via Digitalmars-d wrote: p.s. I suspect the most common beginner bugs occurs when using right accessor on the wrong tree causes an ICE at runtime in 'some obscure location'. Incase you intend to dabble again in the future as more parts move

Re: Status of Deimos bindings

2015-05-26 Thread Rikki Cattermole via Digitalmars-d
On 26/05/2015 7:24 p.m., ketmar wrote: On Tue, 26 May 2015 15:51:20 +1200, Rikki Cattermole wrote: Really what needs to happen is getting Derelict-Util into phobos. And some CTFE magic to create static bindings from those (if wanted). From there its just port the derelict libraries and

Re: Uphill

2015-05-26 Thread ketmar via Digitalmars-d
On Tue, 26 May 2015 07:43:59 +0200, Iain Buclaw via Digitalmars-d wrote: On 26 May 2015 00:30, ketmar via Digitalmars-d digitalmars-d@puremagic.com wrote: thank you for the info. ah, if only i have a time freezing device to make my days longer... ;-) signature.asc Description: PGP signature

Re: Status of Deimos bindings

2015-05-26 Thread ketmar via Digitalmars-d
On Tue, 26 May 2015 15:51:20 +1200, Rikki Cattermole wrote: Really what needs to happen is getting Derelict-Util into phobos. And some CTFE magic to create static bindings from those (if wanted). From there its just port the derelict libraries and deimos ones to it and PR for phobos.

Re: Status of Deimos bindings

2015-05-26 Thread Mike Parker via Digitalmars-d
On Tuesday, 26 May 2015 at 04:09:09 UTC, weaselcat wrote: Please no, derelict bindings are incredibly heavyweight. I cut my application's size from ~6mb to 200kb by using glad openGL loader over derelict GL3. One of my goals for the current iteration of DerelictGL was to keep the size down,

[Issue 13433] Request: Clock.currTime option to use CLOCK_REALTIME_COARSE / CLOCK_REALTIME_FAST

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13433 --- Comment #18 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Sobirari Muhomori from comment #17) How about server platforms? Those are less conservative than desktop. So we release two Windows DMD builds, one for client version

Re: Uphill

2015-05-26 Thread Chris via Digitalmars-d
On Sunday, 24 May 2015 at 21:35:13 UTC, bachmeier wrote: On Sunday, 24 May 2015 at 20:36:47 UTC, Laeeth Isharc wrote: Without wishing to dwell on the negatives of alternatives, might I ask what made you decide to settle on D? Do you have collaborators who write code and, if so, how did the

[Issue 13433] Request: Clock.currTime option to use CLOCK_REALTIME_COARSE / CLOCK_REALTIME_FAST

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13433 --- Comment #19 from Sobirari Muhomori dfj1es...@sneakemail.com --- (In reply to Vladimir Panteleev from comment #18) Makes no sense. Already done: 64-bit executables are incompatible with 32-bit systems. I think, it fits D ideology good by

[Issue 13433] Request: Clock.currTime option to use CLOCK_REALTIME_COARSE / CLOCK_REALTIME_FAST

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13433 --- Comment #20 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Sobirari Muhomori from comment #19) Already done: 64-bit executables are incompatible with 32-bit systems. Except that: - We do not actually release separate 32-bit

Re: DMD Symbol Reference Analysis Pass

2015-05-26 Thread via Digitalmars-d
On Monday, 25 May 2015 at 12:43:04 UTC, Per Nordlöw wrote: Does DMD currently do any analysis of references to a symbol in a given scope? If not where could this information be extracted (in which visitor/callback) and in what structure should it, if so, be stored? Reason: After having read

[Issue 13433] Request: Clock.currTime option to use CLOCK_REALTIME_COARSE / CLOCK_REALTIME_FAST

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13433 --- Comment #17 from Sobirari Muhomori dfj1es...@sneakemail.com --- (In reply to Steven Schveighoffer from comment #16) But we can't require Windows 8 for D. How about server platforms? Those are less conservative than desktop. --

[Issue 14606] [REG2.067.0] Bad code with -inline and structs

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14606 --- Comment #2 from Vladimir Panteleev thecybersha...@gmail.com --- Err, confirmed, thanks. I got the original reduction result on Linux but now I can't reproduce it. --

Re: Evaluation order of index expressions

2015-05-26 Thread Timon Gehr via Digitalmars-d
On 05/26/2015 06:35 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: One of C's design mistakes is to make assignments expressions and not statements. I think it is more about returning void vs. returning the lvalue. The expression/statement distinction is

Re: Evaluation order of index expressions

2015-05-26 Thread Timon Gehr via Digitalmars-d
On 05/26/2015 02:55 AM, deadalnix wrote: On Tuesday, 26 May 2015 at 00:07:33 UTC, Timon Gehr wrote: I'm fine with RTL for assignment expressions, and LTR everywhere else. Daniel, if you could work this out at front end level so it goes the same way for all backends, that would be fantastic. --

Re: Evaluation order of index expressions

2015-05-26 Thread Timon Gehr via Digitalmars-d
On 05/26/2015 02:51 PM, Timon Gehr wrote: int a=0,b=0; (b++,a)=b; // ltr gives a==1, rtl gives a==0, caching irrelevant This should have said that caching _on the lhs_ is irrelevant.

Re: [dconf] Share a ride SLC-hotel?

2015-05-26 Thread Lionello Lunesu via Digitalmars-d
On 25/05/15 10:39, Andrei Alexandrescu wrote: I'm arriving in SLC on Tue at 11:39 pm. Anyone up for sharing a ride? I'm thinking http://www.expressshuttleutah.com/. -- Andrei I took the Green TRAX (light rail) from airport to downtown for $2.50. From there you can apparently take the train or

[Issue 14606] [REG2.067.0] Bad code with -inline and structs

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14606 --- Comment #1 from Kenji Hara k.hara...@gmail.com --- Introduced in https://github.com/D-Programming-Language/dmd/pull/3979 The broken executable has been generated since 2.065, which and it was introduced in:

[Issue 13433] Request: Clock.currTime option to use CLOCK_REALTIME_COARSE / CLOCK_REALTIME_FAST

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13433 --- Comment #21 from Sobirari Muhomori dfj1es...@sneakemail.com --- I mean, D compiler can compile 64-bit programs, which are incompatible with 32-bit systems. And I believe 64-bit linux can be set up without ability to run 32-bit executables. --

[Issue 13433] Request: Clock.currTime option to use CLOCK_REALTIME_COARSE / CLOCK_REALTIME_FAST

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13433 --- Comment #22 from Steven Schveighoffer schvei...@yahoo.com --- Vladimir pointed out a mechanism to make the decision at runtime. That's the only option I see here. I'm not sure how it's done, but it seems it would incur some runtime cost. But I

Re: Evaluation order of index expressions

2015-05-26 Thread via Digitalmars-d
On Tuesday, 26 May 2015 at 12:54:27 UTC, Timon Gehr wrote: On 05/26/2015 06:35 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: One of C's design mistakes is to make assignments expressions and not statements. I think it is more about returning void vs.

[Issue 14606] [REG2.067.0] Bad code with -inline and structs

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14606 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, wrong-code ---

Re: Evaluation order of index expressions

2015-05-26 Thread deadalnix via Digitalmars-d
On Tuesday, 26 May 2015 at 12:51:20 UTC, Timon Gehr wrote: I guess overloaded operators could be made to cache the old value. (As they do in CTFE, apparently. :o)) However, this seems like overkill. Any other ideas? They can but it wouldn't fix anything. The rvalue is already evaluated by

[Issue 14622] New: documented unit test that follows an undocumented symbol silently ignored

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14622 Issue ID: 14622 Summary: documented unit test that follows an undocumented symbol silently ignored Product: D Version: D2 Hardware: All OS: All

Re: Evaluation order of index expressions

2015-05-26 Thread Timon Gehr via Digitalmars-d
On 05/26/2015 06:13 PM, Artur Skawina via Digitalmars-d wrote: On 05/26/15 14:54, Timon Gehr via Digitalmars-d wrote: On 05/26/2015 06:35 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: One of C's design mistakes is to make assignments expressions and not

Re: Evaluation order of index expressions

2015-05-26 Thread Artur Skawina via Digitalmars-d
On 05/26/15 14:54, Timon Gehr via Digitalmars-d wrote: On 05/26/2015 06:35 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: One of C's design mistakes is to make assignments expressions and not statements. I think it is more about returning void vs.

DIP78 - macros without syntax extensions

2015-05-26 Thread Kagamin via Digitalmars-d
http://wiki.dlang.org/DIP78 - Proposal for a macro system without syntactical extensions to the language. Hence it doesn't allow arbitrary syntax.

[Issue 9110] Lazy variadic array error message is confusing

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9110 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC||schvei...@yahoo.com

Re: Uphill

2015-05-26 Thread Ziad Hatahet via Digitalmars-d
On Sun, May 24, 2015 at 12:06 PM, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote: Furthermore, I strongly dislike that Rust has made it completely impossible to opt out of bounds checking without annotating your code with unsafe. Using iterators should cause bounds checking

Re: [dconf] Share a ride SLC-hotel?

2015-05-26 Thread Adam D. Ruppe via Digitalmars-d
Random question for anyone who knows, when does the conference end each day? Like 5pm? 5:30pm?

Re: DMD Symbol Reference Analysis Pass

2015-05-26 Thread via Digitalmars-d
On Tuesday, 26 May 2015 at 15:21:04 UTC, Marc Schütz wrote: On Tuesday, 26 May 2015 at 14:59:38 UTC, Per Nordlöw wrote: On Tuesday, 26 May 2015 at 10:19:52 UTC, Marc Schütz wrote: ... to be used in templates and for enforcing these rules:

Martin Nowak's talk cancelled

2015-05-26 Thread Andrei Alexandrescu via Digitalmars-d-announce
Sad news - Martin missed his flight and found no viable alternative to make it to DConf. For his slot at 10:00 AM on Thursday, we'll look into teleconferencing options for him. Alternatively, we're now taking applications from the other speakers and attendees to fill his slot. Please email

Re: Martin Nowak's talk cancelled

2015-05-26 Thread Adam D. Ruppe via Digitalmars-d-announce
If worse comes to worst, I can probably improvise something to fill the time... don't expect slides though :P

Re: DMD Symbol Reference Analysis Pass

2015-05-26 Thread via Digitalmars-d
On Tuesday, 26 May 2015 at 10:19:52 UTC, Marc Schütz wrote: ... to be used in templates and for enforcing these rules: http://wiki.dlang.org/User:Schuetzm/scope3#.40safe-ty_violations_with_borrowing There's at least a plan. Nice! One thing, though. I'm lacking a section in the document linked

Re: Lazy variadic not working, any alternatives?

2015-05-26 Thread John Colvin via Digitalmars-d-learn
On Tuesday, 26 May 2015 at 06:04:59 UTC, Tofu Ninja wrote: On Tuesday, 26 May 2015 at 05:54:11 UTC, John Colvin wrote: Something like this appears to work: import std.typetuple : allSatisfy; enum implicityConvertibleToBool(T) = is(T : bool); bool tok_and(Args...)(lazy Args terms)

[Issue 14621] New: ICE: Assertion failure: 'global.gaggedErrors || global.errors' on line 752 in file 'statement.c'

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14621 Issue ID: 14621 Summary: ICE: Assertion failure: 'global.gaggedErrors || global.errors' on line 752 in file 'statement.c' Product: D Version: unspecified Hardware: x86

Re: DMD Symbol Reference Analysis Pass

2015-05-26 Thread via Digitalmars-d
On Tuesday, 26 May 2015 at 14:59:38 UTC, Per Nordlöw wrote: On Tuesday, 26 May 2015 at 10:19:52 UTC, Marc Schütz wrote: ... to be used in templates and for enforcing these rules: http://wiki.dlang.org/User:Schuetzm/scope3#.40safe-ty_violations_with_borrowing There's at least a plan. Nice!

[Issue 9110] Lazy variadic array error message is confusing

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9110 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Keywords||diagnostic --

[Issue 14621] [REG2.066] ICE: Assertion failure: 'global.gaggedErrors || global.errors' on line 752 in file 'statement.c'

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14621 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

Re: Lazy variadic not working, any alternatives?

2015-05-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/25/15 11:53 PM, Tofu Ninja wrote: On Tuesday, 26 May 2015 at 05:43:59 UTC, Tofu Ninja wrote: On Tuesday, 26 May 2015 at 05:22:26 UTC, Tofu Ninja wrote: Actually the code seems to compile on 2.067.1 but definitely does not work as expected. ... I guess it stems from the fact that its lazy

Re: Evaluation order of index expressions

2015-05-26 Thread Timon Gehr via Digitalmars-d
On 05/26/2015 07:48 PM, deadalnix wrote: On Tuesday, 26 May 2015 at 12:51:20 UTC, Timon Gehr wrote: I guess overloaded operators could be made to cache the old value. (As they do in CTFE, apparently. :o)) However, this seems like overkill. Any other ideas? They can but it wouldn't fix

Re: Evaluation order of index expressions

2015-05-26 Thread Artur Skawina via Digitalmars-d
On 05/26/15 18:16, Timon Gehr via Digitalmars-d wrote: On 05/26/2015 06:13 PM, Artur Skawina via Digitalmars-d wrote: On 05/26/15 14:54, Timon Gehr via Digitalmars-d wrote: On 05/26/2015 06:35 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: One of C's

Re: Evaluation order of index expressions

2015-05-26 Thread ketmar via Digitalmars-d
On Tue, 26 May 2015 18:16:57 +0200, Timon Gehr wrote: Sure, but there is no incentive to do this. a[i=j+1]=3; makes the code shorter. and harder to read. it is considered bad practice anyway, and will hardly pass any serious code review. signature.asc Description: PGP signature

Re: Uphill

2015-05-26 Thread ketmar via Digitalmars-d
On Tue, 26 May 2015 10:07:08 +, Chris wrote: With Go I have the sinking feeling that it won't be able to contend with C++ - or D for that matter. It took off due to Google and a fool-proof, easy-to-use infrastructure. But it is way too limited and limiting to be useful for more

Re: [dconf] Share a ride SLC-hotel?

2015-05-26 Thread Andre Kostur via Digitalmars-d
On 2015-05-25 9:39 AM, Andrei Alexandrescu wrote: I'm arriving in SLC on Tue at 11:39 pm. Anyone up for sharing a ride? I'm thinking http://www.expressshuttleutah.com/. -- Andrei Sorry... I'm arriving about 4:15 PM

[Issue 11870] replace dynamic symbol table (--export-dynamic) for backtraces

2015-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11870 Maurice van der Pot griffo...@kfk4ever.com changed: What|Removed |Added CC|

Re: shared libs for OSX

2015-05-26 Thread bitwise via Digitalmars-d
On Tue, 26 May 2015 02:28:14 -0400, Jacob Carlborg d...@me.com wrote: On 2015-05-25 22:58, Martin Nowak wrote: On Monday, 25 May 2015 at 19:40:52 UTC, bitwise wrote: 1) _dyld_register_func_for_add_image should be taken care of with the above two fixes You still cannot unregister the

Re: Uphill

2015-05-26 Thread ketmar via Digitalmars-d
On Tue, 26 May 2015 08:45:01 +, weaselcat wrote: that's why i have mixed feelings about C++ code in GCC. although i really like it being C only, compile-time checking is very valuable. just convince the gcc dev team to port it to D ;) ah, that would be *ideal*... but ok, let my Secret