Re: D port of docopt

2014-06-16 Thread Jacob Carlborg via Digitalmars-d-announce
On 15/06/14 19:35, Bob Tolbert wrote: In order to learn D, I've worked up a port of the docopt commandline parser (original in Python http://docopt.org). https://github.com/rwtolbert/docopt.d Since this is my first code in D, I apologize in advance for the mix if Python and C++ idioms. Since

Re: D port of docopt

2014-06-16 Thread Colin via Digitalmars-d-announce
On Sunday, 15 June 2014 at 17:35:59 UTC, Bob Tolbert wrote: In order to learn D, I've worked up a port of the docopt commandline parser (original in Python http://docopt.org). https://github.com/rwtolbert/docopt.d Since this is my first code in D, I apologize in advance for the mix if Python

Yet another CT ini file parser: inifiled

2014-06-16 Thread Robert Schadek via Digitalmars-d-announce
On my way back from DConf I was bored with in the in-flight entertainment and start to hack. The result is inifiled a compile time ini file reader and writer that fills and stores a annotated struct. It excepts typical ini files with sections, comments and to some extend nesting and arrays. The

Re: John Chapman (Juno), calling for John Chapman (not spam)

2014-06-16 Thread John Chapman via Digitalmars-d-announce
On Thursday, 12 June 2014 at 05:39:06 UTC, Karen Bantoft wrote: I'm looking for the John Chapman who worked as a programmer at Centre-file Ltd, in Finsbury Circus London in 1971. Any leads? Karen Not me, sorry.

Re: D port of docopt

2014-06-16 Thread Bob Tolbert via Digitalmars-d-announce
On Monday, 16 June 2014 at 06:51:41 UTC, Jacob Carlborg wrote: Pretty cool idea. Are you aware of that in D you can, at compile time, parse the doc string and generate a command line parser for that particular documentation. I wondered about that, after looking at the compile-time regex

Re: Lang.NEXT panel (dfix)

2014-06-16 Thread Bruno Medeiros via Digitalmars-d-announce
On 12/06/2014 18:53, Andrei Alexandrescu wrote: On 6/12/14, 10:40 AM, Nick Sabalausky wrote: On 6/10/2014 12:35 PM, justme wrote: On Wednesday, 4 June 2014 at 06:13:39 UTC, Andrei Alexandrescu wrote: Of possible interest.

Re: Interview at Lang.NEXT

2014-06-16 Thread Bruno Medeiros via Digitalmars-d-announce
On 05/06/2014 08:30, Andrei Alexandrescu wrote: On 6/5/14, 7:59 AM, Nick Sabalausky wrote: So let me get this straight: There are programmers out there who find the occasional type annotations on some declarations to be significantly more work than following a convention of nearly *quadrupling*

Re: Lang.NEXT panel (dfix)

2014-06-16 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 6/16/14, 6:43 AM, Bruno Medeiros wrote: On 12/06/2014 18:53, Andrei Alexandrescu wrote: I got convinced a dfix tool would be a strategic component of D's offering going forward. Andrei What's keeping us from having such a tool? It seems that after one has a decent parser (that also

DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-16 Thread Andrei Alexandrescu via Digitalmars-d-announce
https://news.ycombinator.com/newest https://www.facebook.com/dlang.org/posts/867399893273693 https://twitter.com/D_Programming/status/478588866321203200 http://www.reddit.com/r/programming/comments/28am0x/case_studies_in_simplifying_code_with_compiletime/ Andrei

Re: D port of docopt

2014-06-16 Thread Sönke Ludwig via Digitalmars-d-announce
Am 15.06.2014 19:35, schrieb Bob Tolbert: In order to learn D, I've worked up a port of the docopt commandline parser (original in Python http://docopt.org). https://github.com/rwtolbert/docopt.d Since this is my first code in D, I apologize in advance for the mix if Python and C++ idioms.

Re: D port of docopt

2014-06-16 Thread Bob Tolbert via Digitalmars-d-announce
On Monday, 16 June 2014 at 17:59:13 UTC, Sönke Ludwig wrote: Am 15.06.2014 19:35, schrieb Bob Tolbert: One thing that would be nice is support for multiple help screens (e.g. one per command). For DUB [1] (or GIT) for example there is one main help screen that lists all commands along

Re: Interview at Lang.NEXT

2014-06-16 Thread Nick Sabalausky via Digitalmars-d-announce
On 6/16/2014 10:00 AM, Bruno Medeiros wrote: Java, which dynamic language proponents like to bash for it's verbosity Static language proponents like to bash Java for its verbosity, too!

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-16 Thread simendsjo via Digitalmars-d-announce
On 06/16/2014 07:27 PM, Andrei Alexandrescu wrote: https://news.ycombinator.com/newest Why not put DConf 2014 in the title too?

Re: Lang.NEXT panel (dfix)

2014-06-16 Thread Stefan Koch via Digitalmars-d-announce
What's keeping us from having such a tool? It seems that after one has a decent parser (that also keeps tracks of the source ranges of AST nodes), it's easy to write code that does syntactic modifications and then rewrites the source code. And there's several D parsers out there already - so

Re: D port of docopt

2014-06-16 Thread Sönke Ludwig via Digitalmars-d-announce
Am 16.06.2014 20:19, schrieb Bob Tolbert: On Monday, 16 June 2014 at 17:59:13 UTC, Sönke Ludwig wrote: Am 15.06.2014 19:35, schrieb Bob Tolbert: One thing that would be nice is support for multiple help screens (e.g. one per command). For DUB [1] (or GIT) for example there is one main help

Re: Lang.NEXT panel (dfix)

2014-06-16 Thread Bruno Medeiros via Digitalmars-d-announce
On 16/06/2014 21:43, Stefan Koch wrote: What's keeping us from having such a tool? It seems that after one has a decent parser (that also keeps tracks of the source ranges of AST nodes), it's easy to write code that does syntactic modifications and then rewrites the source code. And there's

Re: D port of docopt

2014-06-16 Thread Dicebot via Digitalmars-d-announce
On Monday, 16 June 2014 at 06:51:41 UTC, Jacob Carlborg wrote: Pretty cool idea. Are you aware of that in D you can, at compile time, parse the doc string and generate a command line parser for that particular documentation. I don't think it gives any advantage here :) docopt looks cool,

Re: Lang.NEXT panel (dfix)

2014-06-16 Thread Stefan Koch via Digitalmars-d-announce
DSL?! You crazy bro? If you are using DScanner, just let people use D itself to write their own custom AST transformation code. With DUB it should be super easy to compile that code and run it on the target D code. This solution is vastly more simple than inventing your own DSL, and scales

Re: D port of docopt

2014-06-16 Thread Robert Schadek via Digitalmars-d-announce
On 06/16/2014 11:11 PM, Dicebot via Digitalmars-d-announce wrote: On Monday, 16 June 2014 at 06:51:41 UTC, Jacob Carlborg wrote: Pretty cool idea. Are you aware of that in D you can, at compile time, parse the doc string and generate a command line parser for that particular documentation. I

Re: DConf 2014 Day 1 Talk 4: Inside the Regular Expressions in D by Dmitry Olshansky

2014-06-16 Thread Dicebot via Digitalmars-d-announce
On Sunday, 15 June 2014 at 21:38:18 UTC, Dmitry Olshansky wrote: 15-Jun-2014 20:21, Dicebot пишет: On Saturday, 14 June 2014 at 16:34:35 UTC, Dmitry Olshansky wrote: But let's face it - it's a one-time job to get it right in your favorite build tool. Then you have fast and cached (re)build.

Re: D port of docopt

2014-06-16 Thread Dicebot via Digitalmars-d-announce
On Monday, 16 June 2014 at 21:21:47 UTC, Robert Schadek via Digitalmars-d-announce wrote: On 06/16/2014 11:11 PM, Dicebot via Digitalmars-d-announce wrote: On Monday, 16 June 2014 at 06:51:41 UTC, Jacob Carlborg wrote: Pretty cool idea. Are you aware of that in D you can, at compile time,

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-16 Thread Adam D. Ruppe via Digitalmars-d-announce
The reddit response this year hasn't been particularly impressive it seems to me compared to last year :(

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-16 Thread Dicebot via Digitalmars-d-announce
On Monday, 16 June 2014 at 22:14:01 UTC, Adam D. Ruppe wrote: The reddit response this year hasn't been particularly impressive it seems to me compared to last year :( I have found many of talks this year incredibly interesting for actual D users but not as catchy for something that passes

Re: D port of docopt

2014-06-16 Thread Leandro Lucarella via Digitalmars-d-announce
Bob Tolbert, el 15 de June a las 17:35 me escribiste: In order to learn D, I've worked up a port of the docopt commandline parser (original in Python http://docopt.org). https://github.com/rwtolbert/docopt.d THANK YOU. I love docopt! Since this is my first code in D, I apologize in advance

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-16 Thread Dicebot via Digitalmars-d-announce
On Monday, 16 June 2014 at 17:26:51 UTC, Andrei Alexandrescu wrote: https://news.ycombinator.com/newest https://www.facebook.com/dlang.org/posts/867399893273693 https://twitter.com/D_Programming/status/478588866321203200

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-16 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 16 June 2014 at 22:23:31 UTC, Dicebot wrote: I have found many of talks this year incredibly interesting for actual D users but not as catchy for something that passes by. Also lot of stuff has been discussed live in #d and ustream chat room. Yeah. Or r/programming is just so

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-16 Thread Walter Bright via Digitalmars-d-announce
On 6/16/2014 8:38 PM, Adam D. Ruppe wrote: BTW I tried posting the link to the sample chapter of my book in this too since it talks about reflection and the post seems to have just disappeared. I think I triggered reddits comment spam filter :( I gave up posting links on reddit years ago -

An LLVM bug that affect both LDC and SDC. Worth pushing for

2014-06-16 Thread deadalnix via Digitalmars-d
http://llvm.org/bugs/show_bug.cgi?id=20049 Basically when you have a closure in a closure and the whole thing get inlined, LLVM mess up, which result in compiler not being able to optimize GC allocation away. Probably worth pushing for. It does probably affect other functional languages as

Re: A Perspective on D from game industry

2014-06-16 Thread Nick Sabalausky via Digitalmars-d
On 6/15/2014 4:26 PM, Burp wrote: I work in the game industry so I'm familiar with this type of mindset. Not everyone in my industry is like this, but unfortunately many are(I avoid working with them). He doesn't understand metaprogramming and so dismisses it. He also assumes C++ is all

Re: A Perspective on D from game industry

2014-06-16 Thread H. S. Teoh via Digitalmars-d
On Mon, Jun 16, 2014 at 12:18:26AM -0400, Nick Sabalausky via Digitalmars-d wrote: [...] C++'s lack of finally didn't do any favors for exception handling's popularity, either. (Has finally finally been added?) http://stackoverflow.com/questions/7779652/try-catch-finally-construct-is-it-in-c11

Re: A Perspective on D from game industry

2014-06-16 Thread deadalnix via Digitalmars-d
On Monday, 16 June 2014 at 06:24:47 UTC, H. S. Teoh via Digitalmars-d wrote: On Mon, Jun 16, 2014 at 12:18:26AM -0400, Nick Sabalausky via Digitalmars-d wrote: [...] C++'s lack of finally didn't do any favors for exception handling's popularity, either. (Has finally finally been added?)

Re: Concurrent GC (for Windows)

2014-06-16 Thread Rainer Schuetze via Digitalmars-d
On 15.06.2014 23:30, Martin Nowak wrote: On 06/04/2014 10:37 PM, Rainer Schuetze wrote: Most of the remaining pause time is sweeping garbage. I think about deferring sweeping into allocations by running finalizers just before reusing the memory for another object. This can throttle

Re: A Perspective on D from game industry

2014-06-16 Thread simendsjo via Digitalmars-d
On 06/15/2014 11:16 PM, Abdulhaq wrote: On Sunday, 15 June 2014 at 20:10:34 UTC, Walter Bright wrote: On 6/15/2014 9:20 AM, Xinok wrote: Given that he lives in Italy, it's safe to assume that English is not his first language. But rather than consider what he has to say or dispute his

Re: A Perspective on D from game industry

2014-06-16 Thread w0rp via Digitalmars-d
On Monday, 16 June 2014 at 05:46:22 UTC, Nick Sabalausky wrote: On 6/15/2014 9:55 PM, Manu via Digitalmars-d wrote: To say that they literally have no time to spend on extra-curricular projects is an understatement, and risk-aversion is a key form of self-defence. I know many gamedev's who are

Re: A Perspective on D from game industry

2014-06-16 Thread Walter Bright via Digitalmars-d
On 6/15/2014 5:41 PM, Sean Kelly wrote: That's precisely the reason I wrote a chapter on templates in Tango With D despite Don's suggestion that I talk about the far sexier CTFE. People have an unreasonable fear of templates and when you get down to it they're terribly simple to understand.

Re: A Perspective on D from game industry

2014-06-16 Thread Walter Bright via Digitalmars-d
On 6/15/2014 6:12 PM, H. S. Teoh via Digitalmars-d wrote: I think you may have missed the fact that your very realization was a further development in itself. The term template comes from the C++ idea of having a pre-written piece of code with some blanks in a few places, that will be filled in

Re: A Perspective on D from game industry

2014-06-16 Thread Paolo Invernizzi via Digitalmars-d
On Monday, 16 June 2014 at 06:40:39 UTC, simendsjo wrote: Some countries are even dubbing all English shows and movies, so they're not exposed to much English outside some forums That's exactly what's happening in Italy... --- Paolo

Re: A Perspective on D from game industry

2014-06-16 Thread deadalnix via Digitalmars-d
On Monday, 16 June 2014 at 07:17:32 UTC, Paolo Invernizzi wrote: On Monday, 16 June 2014 at 06:40:39 UTC, simendsjo wrote: Some countries are even dubbing all English shows and movies, so they're not exposed to much English outside some forums That's exactly what's happening in Italy... ---

Re: A Perspective on D from game industry

2014-06-16 Thread Nick Sabalausky via Digitalmars-d
On 6/16/2014 2:23 AM, H. S. Teoh via Digitalmars-d wrote: On Mon, Jun 16, 2014 at 12:18:26AM -0400, Nick Sabalausky via Digitalmars-d wrote: [...] C++'s lack of finally didn't do any favors for exception handling's popularity, either. (Has finally finally been added?)

Re: A Perspective on D from game industry

2014-06-16 Thread Rikki Cattermole via Digitalmars-d
On 16/06/2014 1:12 p.m., H. S. Teoh via Digitalmars-d wrote: On Sun, Jun 15, 2014 at 12:51:12PM -0700, Walter Bright via Digitalmars-d wrote: On 6/15/2014 6:50 AM, Peter Alexander wrote: The fear of meta programming comes from Boost, and rightly so in my opinion. Boost is written with the

Re: A Perspective on D from game industry

2014-06-16 Thread safety0ff via Digitalmars-d
On Monday, 16 June 2014 at 07:27:16 UTC, Nick Sabalausky wrote: But wait...Hasn't Andrei created library-based scope guards for C++? (Or am I remembering something wrong?) How would that possible without finally? Skip to 19:00 http://vimeo.com/97329153

Re: A Perspective on D from game industry

2014-06-16 Thread Manu via Digitalmars-d
On 16 June 2014 15:46, Nick Sabalausky via Digitalmars-d digitalmars-d@puremagic.com wrote: On 6/15/2014 9:55 PM, Manu via Digitalmars-d wrote: On 16 June 2014 05:53, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 6/15/2014 12:27 PM, Nick Sabalausky wrote: It really

Re: A Perspective on D from game industry

2014-06-16 Thread Nick Sabalausky via Digitalmars-d
On 6/16/2014 2:56 AM, w0rp wrote: On Monday, 16 June 2014 at 05:46:22 UTC, Nick Sabalausky wrote: Geezus, that garbage is still going on? EA Spouse alone was well over a decade ago. That, and all the many, many other examples (often less extreme, but still entirely unacceptable IMO) was exactly

Re: A Perspective on D from game industry

2014-06-16 Thread safety0ff via Digitalmars-d
On Monday, 16 June 2014 at 07:41:03 UTC, safety0ff wrote: On Monday, 16 June 2014 at 07:27:16 UTC, Nick Sabalausky wrote: But wait...Hasn't Andrei created library-based scope guards for C++? (Or am I remembering something wrong?) How would that possible without finally? Skip to 19:00

Re: A Perspective on D from game industry

2014-06-16 Thread Paulo Pinto via Digitalmars-d
On Monday, 16 June 2014 at 06:56:22 UTC, w0rp wrote: On Monday, 16 June 2014 at 05:46:22 UTC, Nick Sabalausky wrote: On 6/15/2014 9:55 PM, Manu via Digitalmars-d wrote: To say that they literally have no time to spend on extra-curricular projects is an understatement, and risk-aversion is a

Re: A Perspective on D from game industry

2014-06-16 Thread Paulo Pinto via Digitalmars-d
On Monday, 16 June 2014 at 04:18:28 UTC, Nick Sabalausky wrote: On 6/15/2014 4:53 PM, w0rp wrote: I'm going to try my hand at making a game with 2.066, because I believe @nogc is a final piece in a puzzle of making doing that easy. Much like writing bare metal D code without the runtime, I'm

Re: A Perspective on D from game industry

2014-06-16 Thread Paulo Pinto via Digitalmars-d
On Sunday, 15 June 2014 at 16:42:22 UTC, Abdulhaq wrote: On Sunday, 15 June 2014 at 13:19:12 UTC, Russel Winder via Digitalmars-d wrote: On Sun, 2014-06-15 at 12:30 +, Abdulhaq via Digitalmars-d wrote: […] learning the Android API - after all, JDK8 + tooling is bearable now. On the

Re: DIP63 : operator overloading for raw templates

2014-06-16 Thread via Digitalmars-d
On Sunday, 15 June 2014 at 18:32:31 UTC, Dicebot wrote: http://wiki.dlang.org/DIP63 This is solution for a problem I am currently having with implementing http://wiki.dlang.org/DIP54 (afair it was also mentioned by Timon Gehr during old discussion of that DIP) New proposed semantics ( to

Re: Out of sight out of mind

2014-06-16 Thread Russel Winder via Digitalmars-d
On Sun, 2014-06-15 at 19:28 +, bearophile via Digitalmars-d wrote: Andrew Edwards: How do you recover your work from the GitHub five years from now when GitHub falls off the edge of the earth Online sites are ephemeral. So unless there is a way to move the bug repository off

Re: Out of sight out of mind

2014-06-16 Thread Daniel Murphy via Digitalmars-d
Andrew Edwards wrote in message news:lnkeji$5ve$1...@digitalmars.com... This happens because we have two separate systems (one tracking problems, another tracking the resolution), both of which compete for the same precious and extremely limited resource: the volunteer time of developers. I

Re: Out of sight out of mind

2014-06-16 Thread bearophile via Digitalmars-d
Russel Winder: Given the current site is equally ephemeral, The current site is under dlang.org, it's not ephemeral. Bye, bearophile

Re: A Perspective on D from game industry

2014-06-16 Thread via Digitalmars-d
On Monday, 16 June 2014 at 08:22:59 UTC, Paulo Pinto wrote: I have played around with C++ for a small graphics application, but note that the NDK does only support game related APIs. When using middleware like Qt, you have access to the majority of APIs but then have to pay the JNI

Is D production-ready?

2014-06-16 Thread John Petal via Digitalmars-d
Hi! A while ago, after my journey with PHP and Python, I've decided to learn C++. However, the more I learned, the more it got complicated. I think what Scott Meyer said in his talk was the main reason: the language was inconsistent; it didn't make sense as a whole. It always needed an extra

Re: Is D production-ready?

2014-06-16 Thread John Petal via Digitalmars-d
On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote: Hi! A while ago, after my journey with PHP and Python, I've decided to learn C++. However, the more I learned, the more it got complicated. I think what Scott Meyer said in his talk was the main reason: the language was inconsistent;

Re: Is D production-ready?

2014-06-16 Thread Chris Cain via Digitalmars-d
On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote: Does D have a mature SFML or SDL binding? http://code.dlang.org/packages/derelict-sfml2 and http://code.dlang.org/packages/derelict-sdl2 Are available. I have personally used the SDL2 bindings on both Windows and Mac and they work

Re: Is D production-ready?

2014-06-16 Thread ponce via Digitalmars-d
On Monday, 16 June 2014 at 10:39:42 UTC, Chris Cain wrote: On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote: Does D have a mature SFML or SDL binding? http://code.dlang.org/packages/derelict-sfml2 and http://code.dlang.org/packages/derelict-sdl2 Are available. I have personally

Re: Is D production-ready?

2014-06-16 Thread John Colvin via Digitalmars-d
On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote: I can't really see anything besides abandoned libraries written in D. Is it possible – for example – to write a simple 2D game, or an automation program, or a text editor in D? I know the language is perfectly capable, but I'm not sure

Re: Is D production-ready?

2014-06-16 Thread Kiith-Sa via Digitalmars-d
If you see abandoned libraries, you're probably looking at DSource, which is dead. Everything has long since moved to GitHub. Derelict provides good SDL2 as well as SFML2 bindings (and bindings to many other APIs). For GUI, (assuming you don't want Windows-only ones) TkD is simple and

Re: Is D production-ready?

2014-06-16 Thread seeker via Digitalmars-d
NO IT'S NOT! no working/incomplete windows headers for 32 and 64 bit. no gui or db lib and tons of abandoned libs and proggies that you mentioned. if your are on linux like most of the lieutenants and the vice-general you may be fine. On Monday, 16 June 2014 at 10:28:50 UTC, John Petal

Re: Is D production-ready?

2014-06-16 Thread Mike Parker via Digitalmars-d
On 6/16/2014 7:39 PM, Chris Cain wrote: On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote: Does D have a mature SFML or SDL binding? http://code.dlang.org/packages/derelict-sfml2 and http://code.dlang.org/packages/derelict-sdl2 Are available. I have personally used the SDL2 bindings

Re: A Perspective on D from game industry

2014-06-16 Thread Burp via Digitalmars-d
C++'s lack of finally didn't do any favors for exception handling's popularity, either. (Has finally finally been added?) Just noting: exceptions are rarely used in gamedev. Also I agree with Bjarne RIAA is preferable to finally in the C++ context, finally makes more sense in a language

Re: A Perspective on D from game industry

2014-06-16 Thread Timon Gehr via Digitalmars-d
On 06/16/2014 03:12 AM, H. S. Teoh via Digitalmars-d wrote: This insight therefore causes D's templates to mesh very nicely with CTFE to form a beautifully-integrated whole. I wouldn't go exactly that far. For one thing, CTFE cannot be used to manipulate types.

Dynamic array length ABI unit

2014-06-16 Thread via Digitalmars-d
Regarding the D ABI, http://dlang.org/abi.html , I've noticed that the description for dynamic arrays seems ambiguous: offset property contents 0.length array dimension size_t .ptr pointer to array data Couldn't array dimension be either in bytes or in T units,

Re: Is D production-ready?

2014-06-16 Thread Chris Cain via Digitalmars-d
On Monday, 16 June 2014 at 10:51:11 UTC, ponce wrote: Ahem, looks like I commited something too early. This is a bug. In the mean time you can use the ==1.1.1 version. Actually, sadly, you can't use gfm at all (or, at least, I can't) ... It complains about not being able to satisfy

Re: A Perspective on D from game industry

2014-06-16 Thread Rikki Cattermole via Digitalmars-d
On 16/06/2014 11:39 p.m., Timon Gehr wrote: On 06/16/2014 03:12 AM, H. S. Teoh via Digitalmars-d wrote: This insight therefore causes D's templates to mesh very nicely with CTFE to form a beautifully-integrated whole. I wouldn't go exactly that far. For one thing, CTFE cannot be used to

Re: Is D production-ready?

2014-06-16 Thread Rikki Cattermole via Digitalmars-d
On 16/06/2014 11:14 p.m., seeker wrote: NO IT'S NOT! no working/incomplete windows headers for 32 and 64 bit. no gui or db lib and tons of abandoned libs and proggies that you mentioned. Wow now. For database libraries, there is a few choices out there currently. Mysql, Mongodb, Redis and

Re: Dynamic array length ABI unit

2014-06-16 Thread Daniel Murphy via Digitalmars-d
Luís Marques wrote in message news:fykakpufqivskbnus...@forum.dlang.org... Regarding the D ABI, http://dlang.org/abi.html , I've noticed that the description for dynamic arrays seems ambiguous: offset property contents 0.length array dimension size_t .ptr

D Lang Web Site (and Wiki): How many accounts must one have?

2014-06-16 Thread Tom Browder via Digitalmars-d
Between bugs, code.lang.org, etc., I must have multiple log-in accounts and i've run out of e-mail addresses. Can't there be a single account for dlang.org? Or maybe I'm doing something wrong? Thanks. Best regards, -Tom

Re: Is D production-ready?

2014-06-16 Thread MattCoder via Digitalmars-d
On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote: Is it possible – for example – to write a simple 2D game, or an automation program, or a text editor in D? Speaking by myself, I was able to write both: Game and Text Editor, using Derelict2 and Cairo respectively. PS: I know the

Re: D Lang Web Site (and Wiki): How many accounts must one have?

2014-06-16 Thread David Nadlinger via Digitalmars-d
On Monday, 16 June 2014 at 12:03:49 UTC, Tom Browder via Digitalmars-d wrote: Between bugs, code.lang.org, etc., I must have multiple log-in accounts and i've run out of e-mail addresses. Can't there be a single account for dlang.org? The systems run on different machines and are managed by

Re: Is D production-ready?

2014-06-16 Thread ponce via Digitalmars-d
On Monday, 16 June 2014 at 11:46:57 UTC, Chris Cain wrote: On Monday, 16 June 2014 at 10:51:11 UTC, ponce wrote: Ahem, looks like I commited something too early. This is a bug. In the mean time you can use the ==1.1.1 version. Actually, sadly, you can't use gfm at all (or, at least, I can't)

Re: Dynamic array length ABI unit

2014-06-16 Thread David Nadlinger via Digitalmars-d
On Monday, 16 June 2014 at 11:44:53 UTC, Luís Marques wrote: Regarding the D ABI, http://dlang.org/abi.html , I've noticed that the description for dynamic arrays seems ambiguous: offset property contents 0.length array dimension size_t .ptr pointer to array

Re: Is D production-ready?

2014-06-16 Thread Mike Parker via Digitalmars-d
On 6/16/2014 8:14 PM, seeker wrote: NO IT'S NOT! no working/incomplete windows headers for 32 and 64 bit. no gui or db lib and tons of abandoned libs and proggies that you mentioned. if your are on linux like most of the lieutenants and the vice-general you may be fine. YES IT IS! I've been

Re: DIP63 : operator overloading for raw templates

2014-06-16 Thread matovitch via Digitalmars-d
On Monday, 16 June 2014 at 08:56:24 UTC, Marc Schütz wrote: On Sunday, 15 June 2014 at 18:32:31 UTC, Dicebot wrote: http://wiki.dlang.org/DIP63 This is solution for a problem I am currently having with implementing http://wiki.dlang.org/DIP54 (afair it was also mentioned by Timon Gehr during

Re: Is D production-ready?

2014-06-16 Thread ponce via Digitalmars-d
On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote: Are there any advices you can give me? If nothing can convince you, learning D will make it way easier to learn C++, and you won't write the same C++ either.

Re: A Perspective on D from game industry

2014-06-16 Thread via Digitalmars-d
On Monday, 16 June 2014 at 11:49:11 UTC, Rikki Cattermole wrote: I would go that far, when combining string mixins, As far as I can tell string mixins have the same bad properties that macros have. It makes automatic translation very difficult and makes reasoning about code more difficult.

Re: D Lang Web Site (and Wiki): How many accounts must one have?

2014-06-16 Thread Tom Browder via Digitalmars-d
On Mon, Jun 16, 2014 at 7:23 AM, David Nadlinger via Digitalmars-d digitalmars-d@puremagic.com wrote: ... However, it shouldn't be a problem to just use the same email address for all of them. Why would it be for you? Well, I started with a wiki editing account which works fine. Then, when I

Re: DIP63 : operator overloading for raw templates

2014-06-16 Thread matovitch via Digitalmars-d
Well I realized I was a bit off-topic there since it is not about ctfe operators but raw template operators. I'm out.

Re: Tail pad optimization, cache friendlyness and C++ interrop

2014-06-16 Thread Timon Gehr via Digitalmars-d
On 06/16/2014 06:49 AM, Walter Bright wrote: On 6/15/2014 4:26 PM, Timon Gehr wrote: On 06/16/2014 01:06 AM, Walter Bright wrote: I don't understand your question. I don't know what is unhelpful about saying that @safe refers to memory safety. ... You stated the two to be equivalent earlier,

Re: Dynamic array length ABI unit

2014-06-16 Thread via Digitalmars-d
On Monday, 16 June 2014 at 12:27:03 UTC, David Nadlinger wrote: Dimension seems to say number of elements to me without much room for interpretation (which it indeed is). Feel free to open a pull request if you have an idea for a better description, though. I think you are right, my comment

Re: Dynamic array length ABI unit

2014-06-16 Thread via Digitalmars-d
On Monday, 16 June 2014 at 11:54:27 UTC, Daniel Murphy wrote: Couldn't array dimension be either in bytes or in T units, for a T[]? It seems to be in bytes (I had assumed it was in T units). If you agree that it is ambiguous, please tweak the description to be more precise. It _is_ in T

Re: Is D production-ready?

2014-06-16 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote: Now I want to know if the language is production-ready. I've been using it on live production websites for a handful of jobs since 2009 with no significant problems.

Re: Is D production-ready?

2014-06-16 Thread Byron Heads via Digitalmars-d
On Mon, 16 Jun 2014 11:14:05 +, seeker wrote: NO IT'S NOT! no working/incomplete windows headers for 32 and 64 bit. no gui or db lib and tons of abandoned libs and proggies that you mentioned. if your are on linux like most of the lieutenants and the vice-general you may be fine.

Re: D Lang Web Site (and Wiki): How many accounts must one have?

2014-06-16 Thread David Nadlinger via Digitalmars-d
On Monday, 16 June 2014 at 12:50:50 UTC, Tom Browder via Digitalmars-d wrote: All three use an e-mail or user name, but none can be the same apparently. This is not the case. Maybe you just had accounts at the other sites already? Of course, you could also be hitting some strange bug. In

Re: Dynamic array length ABI unit

2014-06-16 Thread David Nadlinger via Digitalmars-d
On Monday, 16 June 2014 at 13:11:24 UTC, Luís Marques wrote: Ah, OK. I was mislead by the following: 1: int[] a1 = [42]; 2: ubyte[] a2 = cast(ubyte[]) a1; 3: writeln(a2); Ah, that clears up the confusion. Array casts are smart and automatically divide down the length

Re: foreach

2014-06-16 Thread Steven Schveighoffer via Digitalmars-d
On Sun, 15 Jun 2014 20:38:53 -0400, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sun, Jun 15, 2014 at 03:05:37AM -0400, Nick Sabalausky via Digitalmars-d wrote: [...] True story: I once had to put up with a production codebase (the company's *flagship* product) that

Re: Out of sight out of mind

2014-06-16 Thread Byron Heads via Digitalmars-d
Does github link issues with pull requests (and the conversation) and commits? Does it link issues with sub issues/tasks? Can Issues link to other repos (link issues that are in both runtime and std lib)? If it does have these features (and they are easy to use) then I would back it. I have

Re: D Lang Web Site (and Wiki): How many accounts must one have?

2014-06-16 Thread Tom Browder via Digitalmars-d
On Mon, Jun 16, 2014 at 8:21 AM, David Nadlinger via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 16 June 2014 at 12:50:50 UTC, Tom Browder via Digitalmars-d wrote: All three use an e-mail or user name, but none can be the same apparently. ... This is not the case. Maybe you

Re: foreach

2014-06-16 Thread H. S. Teoh via Digitalmars-d
On Mon, Jun 16, 2014 at 09:24:56AM -0400, Steven Schveighoffer via Digitalmars-d wrote: On Sun, 15 Jun 2014 20:38:53 -0400, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sun, Jun 15, 2014 at 03:05:37AM -0400, Nick Sabalausky via Digitalmars-d wrote: [...] True story:

Re: A Perspective on D from game industry

2014-06-16 Thread H. S. Teoh via Digitalmars-d
On Mon, Jun 16, 2014 at 12:44:05PM +, via Digitalmars-d wrote: On Monday, 16 June 2014 at 11:49:11 UTC, Rikki Cattermole wrote: I would go that far, when combining string mixins, As far as I can tell string mixins have the same bad properties that macros have. It makes automatic

Re: foreach

2014-06-16 Thread Steven Schveighoffer via Digitalmars-d
On Mon, 16 Jun 2014 10:53:49 -0400, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Mon, Jun 16, 2014 at 09:24:56AM -0400, Steven Schveighoffer via Digitalmars-d wrote: On Sun, 15 Jun 2014 20:38:53 -0400, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On

Swift does away with pointers == pervasive ARC

2014-06-16 Thread Manu via Digitalmars-d
What say you to that, Walter? Apple have committed to pervasive ARC, which you consistently argue is not feasible... Have I missed something, or is this a demonstration that it is actually practical?

Re: A Perspective on D from game industry

2014-06-16 Thread via Digitalmars-d
On Monday, 16 June 2014 at 15:07:08 UTC, H. S. Teoh via Digitalmars-d wrote: Having said that, though, proper use of string mixins with CTFE and templates ('scuse me, *compile-time arguments* ;)) can be extremely powerful, and one of the things that make D metaprogramming so awesome. Sure,

Re: A Perspective on D from game industry

2014-06-16 Thread Timon Gehr via Digitalmars-d
On 06/16/2014 05:18 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Monday, 16 June 2014 at 15:07:08 UTC, H. S. Teoh via Digitalmars-d wrote: Having said that, though, proper use of string mixins with CTFE and templates ('scuse me, *compile-time arguments* ;)) can be

Re: A Perspective on D from game industry

2014-06-16 Thread David Gileadi via Digitalmars-d
On 6/15/14, 11:56 PM, w0rp wrote: I was considering getting a job in the games industry, so I applied to a bunch of places in the UK during my final year of university. When you filtered out the jobs that were looking for years of industry experience, then filtered out the jobs that expected you

Re: Swift does away with pointers == pervasive ARC

2014-06-16 Thread via Digitalmars-d
On Monday, 16 June 2014 at 15:16:44 UTC, Manu via Digitalmars-d wrote: Have I missed something, or is this a demonstration that it is actually practical? All performance tests so far says Swift is slower than Objective-C, which is slow to begin with, but it is still in Beta. I don't think

Re: Swift does away with pointers == pervasive ARC

2014-06-16 Thread Dicebot via Digitalmars-d
On Monday, 16 June 2014 at 15:16:44 UTC, Manu via Digitalmars-d wrote: What say you to that, Walter? Apple have committed to pervasive ARC, which you consistently argue is not feasible... Have I missed something, or is this a demonstration that it is actually practical? Good luck writing

Re: Swift does away with pointers == pervasive ARC

2014-06-16 Thread Namespace via Digitalmars-d
On Monday, 16 June 2014 at 16:19:55 UTC, Dicebot wrote: On Monday, 16 June 2014 at 15:16:44 UTC, Manu via Digitalmars-d wrote: What say you to that, Walter? Apple have committed to pervasive ARC, which you consistently argue is not feasible... Have I missed something, or is this a

Re: An LLVM bug that affect both LDC and SDC. Worth pushing for

2014-06-16 Thread safety0ff via Digitalmars-d
On Monday, 16 June 2014 at 06:09:28 UTC, deadalnix wrote: http://llvm.org/bugs/show_bug.cgi?id=20049 Basically when you have a closure in a closure and the whole thing get inlined, LLVM mess up, which result in compiler not being able to optimize GC allocation away. Probably worth pushing

Re: Is D production-ready?

2014-06-16 Thread Gary Willoughby via Digitalmars-d
On Monday, 16 June 2014 at 10:24:46 UTC, John Petal wrote: Does D have a mature and cross-platform GUI library? I released this a month or so ago: http://code.dlang.org/packages/tkd It's fully cross-platform and very simple to use. If it's not as full featured as you need then try this:

  1   2   3   >