Re: Interview at Lang.NEXT

2014-06-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 16/06/14 16:00, Bruno Medeiros wrote: I sometimes tried to convince dynamic language proponents - the ones that write unittests at least - of the benefits of static typing, by stating that static typing is really just compile time unit-tests! (it is actually) You can actually do compile

Re: D port of docopt

2014-06-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 16/06/14 15:31, Bob Tolbert wrote: While that is true, I'd argue that if you are writing an app with a command line that complicated, then you have your work cut out for you no matter what the system is you use. It would be nice to see a simpler example of how to use the library after

Re: Lang.NEXT panel (dfix)

2014-06-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 16/06/14 15:43, Bruno Medeiros 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-17 Thread Jacob Carlborg via Digitalmars-d-announce
On 16/06/14 23:11, Dicebot wrote: I don't think it gives any advantage here :) docopt looks cool, though my I'd prefer something that works other way around - automatically generates argument parsing code and help messages from aggregate that represents configuration and/or CLI API (with help

Re: Lang.NEXT panel (dfix)

2014-06-17 Thread Bruno Medeiros via Digitalmars-d-announce
On 16/06/2014 22:10, Stefan Koch wrote: The thing I have in mind should be really easy for simple tasks as in `if constuctor in any class has parameter of type oldRouter change that parameter to type new Router` but i habe yet to find a good notation for that I guess a DSL for simple

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

2014-06-17 Thread Joakim 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: Lang.NEXT panel (dfix)

2014-06-17 Thread Bruno Medeiros via Digitalmars-d-announce
On 17/06/2014 07:25, Jacob Carlborg wrote: On 16/06/14 15:43, Bruno Medeiros 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

Re: Lang.NEXT panel (dfix)

2014-06-17 Thread Bruno Medeiros via Digitalmars-d-announce
On 17/06/2014 16:45, Bruno Medeiros wrote: Dunno about DScanner, but if it's being used in DCD, I'd guess it can handle the whole language, or be fairly close to it. Similarly, there is also DParser2 from MonoD and the DDT parser (for the tool I'm working on) And DDT is fairly complete,

Re: Lang.NEXT panel (dfix)

2014-06-17 Thread Bruno Medeiros via Digitalmars-d-announce
On 17/06/2014 16:45, Bruno Medeiros wrote: Similarly, there is also DParser2 from MonoD and the DDT parser (for the tool I'm working on) And the DDT parser is fairly complete, AFAIK, and well covered in tests. There might be some syntax I have missed if I misunderstood the grammar spec, but

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

2014-06-17 Thread Mengu 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 :( r/programming and hn is all about rust and go. on hn many d posts are invisible after some time. i believe mods are taking

Re: Lang.NEXT panel (dfix)

2014-06-17 Thread deadalnix via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 15:45:55 UTC, Bruno Medeiros wrote: Dunno about DScanner, but if it's being used in DCD, I'd guess it can handle the whole language, or be fairly close to it. Similarly, there is also DParser2 from MonoD and the DDT parser (for the tool I'm working on)

Re: D port of docopt

2014-06-17 Thread Bob Tolbert via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 06:29:14 UTC, Jacob Carlborg wrote: On 16/06/14 15:31, Bob Tolbert wrote: While that is true, I'd argue that if you are writing an app with a command line that complicated, then you have your work cut out for you no matter what the system is you use. It would be

Re: Lang.NEXT panel (dfix)

2014-06-17 Thread Jacob Carlborg via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 15:45:55 UTC, Bruno Medeiros wrote: Adding final to every method in certain classes could be done without semantic analysis. Reworking certain constructs to different constructs possibly as well (for example change foreach_reverse to just foreach usage) What

Re: Lang.NEXT panel (dfix)

2014-06-17 Thread Bruno Medeiros via Digitalmars-d-announce
On 17/06/2014 19:10, deadalnix wrote: On Tuesday, 17 June 2014 at 15:45:55 UTC, Bruno Medeiros wrote: Dunno about DScanner, but if it's being used in DCD, I'd guess it can handle the whole language, or be fairly close to it. Similarly, there is also DParser2 from MonoD and the DDT parser (for

Re: Lang.NEXT panel (dfix)

2014-06-17 Thread Bruno Medeiros via Digitalmars-d-announce
On 17/06/2014 20:12, Jacob Carlborg wrote: On Tuesday, 17 June 2014 at 15:45:55 UTC, Bruno Medeiros wrote: Adding final to every method in certain classes could be done without semantic analysis. Reworking certain constructs to different constructs possibly as well (for example change

Re: Lang.NEXT panel (dfix)

2014-06-17 Thread Dicebot via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 19:48:42 UTC, Bruno Medeiros wrote: On 17/06/2014 19:10, deadalnix wrote: On Tuesday, 17 June 2014 at 15:45:55 UTC, Bruno Medeiros wrote: Dunno about DScanner, but if it's being used in DCD, I'd guess it can handle the whole language, or be fairly close to it.

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

2014-06-17 Thread Tofu Ninja 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-17 Thread Tofu Ninja via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 17:10:16 UTC, Mengu wrote: and also the genius idea to post each talk seperately instead of having a nice talks page on dconf.org and providing a link for that. i'd understand the keynotes but for the rest of the talks this is / was not a good idea. I think the

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

2014-06-17 Thread Joakim via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 17:10:16 UTC, Mengu wrote: 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 :( r/programming and hn is all about rust and go. on hn many d posts are

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

2014-06-17 Thread safety0ff via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 22:09:06 UTC, Joakim wrote: I don't mind it as much, because I'm not bingeing on the talks and spreading out watching them instead, but it'd be nice to see the talks I missed on the livestream and want to watch now, rather than at some indeterminate date in the

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

2014-06-17 Thread Meta via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 22:09:06 UTC, Joakim wrote: Don't you know that it's better to maintain a steady stream of publicity for D on sites full of people who always dismiss it, rather than making the talks available immediately to the people who actually use D and want to watch them?

core.checkedint added to druntime

2014-06-17 Thread Walter Bright via Digitalmars-d-announce
https://github.com/D-Programming-Language/druntime/pull/839 While being a very modest piece of code in and of itself, I believe this offers a significant opportunity that both D compilers and user defined types can exploit. Not only can it be used to create an efficient safeint data type, it

Re: A Perspective on D from game industry

2014-06-17 Thread Dicebot via Digitalmars-d
On Tuesday, 17 June 2014 at 04:24:54 UTC, c0de517e wrote: Hi everybody. I'm Angelo Pesce, the author of the post on c0de517e. ... Thanks for coming here and clarifying your point of view despite our zealous bashing :) Welcome!

Re: Out of sight out of mind

2014-06-17 Thread Russel Winder via Digitalmars-d
On Mon, 2014-06-16 at 09:28 +, bearophile via Digitalmars-d wrote: Russel Winder: Given the current site is equally ephemeral, The current site is under dlang.org, it's not ephemeral. I quote from your email of Sunday 2014-06-15 20:28+0100 which is the one I replied to: Online sites

Re: A Perspective on D from game industry

2014-06-17 Thread Dicebot via Digitalmars-d
On Tuesday, 17 June 2014 at 04:03:23 UTC, Mike Parker wrote: On 6/17/2014 12:16 PM, Caligo via Digitalmars-d wrote: My rant wasn't about his lack of fluency in the English language. You only learn once what a sentence is, and the concept translates over to most other natural languages. The

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Nick Sabalausky via Digitalmars-d
On 6/16/2014 8:57 PM, Ary Borenszweig wrote: On 6/16/14, 9:22 PM, Manu via Digitalmars-d wrote: On 17 June 2014 10:08, deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 16 June 2014 at 15:16:44 UTC, Manu via Digitalmars-d wrote: What say you to that, Walter? Apple

Re: Out of sight out of mind

2014-06-17 Thread Russel Winder via Digitalmars-d
On Tue, 2014-06-17 at 02:24 +, ed via Digitalmars-d wrote: […] I agree, but it is rather pricey for OSS. JIRA is free for FOSS projects if you apply to them and they agree. Groovy, GPars and Gant all use the Codehaus infrastructure that has a free JIRA and Bamboo. -- Russel.

Re: Is D production-ready?

2014-06-17 Thread Russel Winder via Digitalmars-d
On Mon, 2014-06-16 at 11:10 +, Kiith-Sa via Digitalmars-d wrote: If you see abandoned libraries, you're probably looking at DSource, which is dead. Everything has long since moved to GitHub. If true, then it should be removed from the Web to avoid confusing potential new users. If there is

Re: Is D production-ready?

2014-06-17 Thread Russel Winder via Digitalmars-d
On Mon, 2014-06-16 at 12:39 +, ponce via Digitalmars-d wrote: 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. Also

Re: Out of sight out of mind

2014-06-17 Thread ed via Digitalmars-d
On Tuesday, 17 June 2014 at 06:07:22 UTC, Russel Winder via Digitalmars-d wrote: On Tue, 2014-06-17 at 02:24 +, ed via Digitalmars-d wrote: […] I agree, but it is rather pricey for OSS. JIRA is free for FOSS projects if you apply to them and they agree. Groovy, GPars and Gant all use the

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread via Digitalmars-d
On Tuesday, 17 June 2014 at 05:52:37 UTC, Nick Sabalausky wrote: Well, I think interesting part we're trying to look at here is the ARC's impact on speed. ARC without deep whole program analysis is bound to be slow. It turns reads into writes. You even have to do writes to access read-only

Re: A Perspective on D from game industry

2014-06-17 Thread via Digitalmars-d
On Tuesday, 17 June 2014 at 03:08:48 UTC, Walter Bright wrote: Assuming you are talking about C macros: I was talking about macros in general. :-) expert on the C preprocessor. Why would a freakin' macro processor even have an ecological niche for a world leading expert on it? The mind

Re: foreach

2014-06-17 Thread monarch_dodra via Digitalmars-d
On Monday, 16 June 2014 at 21:47:22 UTC, H. S. Teoh via Digitalmars-d wrote: On Mon, Jun 16, 2014 at 01:31:21PM -0700, H. S. Teoh via Digitalmars-d wrote: On Mon, Jun 16, 2014 at 06:37:56PM +, Wyatt via Digitalmars-d wrote: On Monday, 16 June 2014 at 17:52:29 UTC, H. S. Teoh via

Re: foreach

2014-06-17 Thread Rikki Cattermole via Digitalmars-d
On 17/06/2014 7:59 p.m., monarch_dodra wrote: On Monday, 16 June 2014 at 21:47:22 UTC, H. S. Teoh via Digitalmars-d wrote: On Mon, Jun 16, 2014 at 01:31:21PM -0700, H. S. Teoh via Digitalmars-d wrote: On Mon, Jun 16, 2014 at 06:37:56PM +, Wyatt via Digitalmars-d wrote: On Monday, 16 June

Re: A Perspective on D from game industry

2014-06-17 Thread Walter Bright via Digitalmars-d
On 6/16/2014 9:24 PM, c0de517e wrote: Hi everybody. I'm Angelo Pesce, the author of the post on c0de517e. Welcome - nice of you to drop by!

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Walter Bright via Digitalmars-d
On 6/16/2014 10:02 PM, Manu via Digitalmars-d wrote: Granted. I don't really understand the situation well enough to comment with any authority. What are the conditions that create the requirement, or could relax it? inc try { ... code that may throw an exception ... } finally { dec; }

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Walter Bright via Digitalmars-d
On 6/16/2014 10:30 PM, Nick Sabalausky wrote: is this a cost that would *always* be paid, Yes. I've probably written 30+ posts explaining this again and again. Nobody believes me. I beg you to write some code and disassemble it and see for yourself.

Re: A Perspective on D from game industry

2014-06-17 Thread Jacob Carlborg via Digitalmars-d
On 17/06/14 06:44, H. S. Teoh via Digitalmars-d wrote: String mixins? Auto-completion? I dunno, that sounds like a stretch to me. How would an IDE handle autocompletion for things like like: string generateCode() { string code = int x=; if

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Nick Sabalausky via Digitalmars-d
On 6/17/2014 2:56 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 17 June 2014 at 05:52:37 UTC, Nick Sabalausky wrote: Well, I think interesting part we're trying to look at here is the ARC's impact on speed. ARC without deep whole program analysis is bound to

Re: A Perspective on D from game industry

2014-06-17 Thread via Digitalmars-d
On Tuesday, 17 June 2014 at 08:23:08 UTC, Jacob Carlborg wrote: That would require semantic analysis. Basically evaluate the string mixin and to autocomplete on the resulted code. But consider something like gofix/dfix where you have to propagate changes back to the original prefix string.

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread via Digitalmars-d
On Tuesday, 17 June 2014 at 08:36:10 UTC, Nick Sabalausky wrote: But even if nothing else, Manu's certainly right about one thing: What we need is some hard empirical data. Sure. Empirical data is needed on many levels: 1. How fast can you get the GC if you exploit all possibilities for

Re: Not initialized out argument error

2014-06-17 Thread bearophile via Digitalmars-d
Walter Bright: But it is not uninitialized. All out parameters are default initialized to their .init value. I don't agree with this opinion, as they *are* initialized. The documentation of Microsoft SAL2, several discussions, and some other things I've read tell me that if you want your

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Nick Sabalausky via Digitalmars-d
On 6/17/2014 4:23 AM, Walter Bright wrote: On 6/16/2014 10:30 PM, Nick Sabalausky wrote: is this a cost that would *always* be paid, Yes. I've probably written 30+ posts explaining this again and again. Nobody believes me. I beg you to write some code and disassemble it and see for yourself.

Re: Not initialized out argument error

2014-06-17 Thread monarch_dodra via Digitalmars-d
On Tuesday, 17 June 2014 at 08:55:52 UTC, bearophile wrote: Walter Bright: But it is not uninitialized. All out parameters are default initialized to their .init value. I don't agree with this opinion, as they *are* initialized. [...] void foo(out int x) {} void bar(out int x) { x = 10; }

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Walter Bright via Digitalmars-d
On 6/17/2014 1:59 AM, Nick Sabalausky wrote: It's not that I don't believe you, I guess I must have just missed a lot of those posts, or probably glanced through them too quickly. I'm more interested in this topic now than I was before, so I'm just trying to get up to speed (so to speak). I'll

Re: A Perspective on D from game industry

2014-06-17 Thread Nick Sabalausky via Digitalmars-d
On 6/17/2014 4:43 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 17 June 2014 at 08:23:08 UTC, Jacob Carlborg wrote: That would require semantic analysis. Basically evaluate the string mixin and to autocomplete on the resulted code. But consider something like

Re: Out of sight out of mind

2014-06-17 Thread Mathias LANG via Digitalmars-d
On Monday, 16 June 2014 at 13:53:39 UTC, Byron Heads wrote: 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

Re: Not initialized out argument error

2014-06-17 Thread Tobias Pankrath via Digitalmars-d
What if x is an optional out parameter: EG: something you only set if other conditions are met? Do you want to make sure that x is at least assigned to once, or rather make it an error to have a control path that *doesn't* assign anything to it. Either way: 1. Making it an error to have a

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Araq via Digitalmars-d
I think D2 has too many competing features to experiment, so an experimental D-- implemented in D2 would be most interesting IMO. But it takes a group effort… :-/ What's the point? Nimrod already exists and answers most of your questions. If only you would know how to ask...

Re: Not initialized out argument error

2014-06-17 Thread Walter Bright via Digitalmars-d
On 6/17/2014 1:55 AM, bearophile wrote: Walter Bright: But it is not uninitialized. All out parameters are default initialized to their .init value. I don't agree with this opinion, as they *are* initialized. The documentation of Microsoft SAL2, several discussions, and some other things

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Nick Sabalausky via Digitalmars-d
On 6/17/2014 5:10 AM, Walter Bright wrote: On 6/17/2014 1:59 AM, Nick Sabalausky wrote: Keep in mind, for people in certain areas, the allure of a memory management system with no/minimal collection pauses, minimized memory requirements and good behavior in low-memory conditions (even if it all

Re: Not initialized out argument error

2014-06-17 Thread Iain Buclaw via Digitalmars-d
On 17 June 2014 10:24, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 6/17/2014 1:55 AM, bearophile wrote: Walter Bright: But it is not uninitialized. All out parameters are default initialized to their .init value. I don't agree with this opinion, as they *are*

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread eles via Digitalmars-d
On Tuesday, 17 June 2014 at 09:10:14 UTC, Walter Bright wrote: On 6/17/2014 1:59 AM, Nick Sabalausky wrote: Oh, I totally understand where it's coming from. I'm trying to point out that ARC is not a magic zero-cost system. Its costs are SUBSTANTIAL. But in order to understand those costs, it

Re: A Perspective on D from game industry

2014-06-17 Thread Walter Bright via Digitalmars-d
On 6/16/2014 9:32 PM, H. S. Teoh via Digitalmars-d wrote: Do string mixins have scoping of names? Yes, of course, since they are D code. And how would you syntax-highlight a string mixin that's assembled from arbitrary string fragments? You wouldn't need to, since the text editor sees

Re: Not initialized out argument error

2014-06-17 Thread bearophile via Digitalmars-d
Walter Bright: and D's 'out' has nothing to do with strictness. Strictness is how a language handles every own feature :-) Frankly, I think D's parameter classes and array slices are far simpler and more effective than SAL2. I have not used SAL so I can't tell. It has nonnull

Re: Not initialized out argument error

2014-06-17 Thread bearophile via Digitalmars-d
Walter: and D's 'out' has nothing to do with strictness. I think Ada requires all out arguments to be initialized manually inside the function. Bye, bearophile

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Jonathan M Davis via Digitalmars-d
On Tue, 17 Jun 2014 15:02:32 +1000 Manu via Digitalmars-d digitalmars-d@puremagic.com wrote: I can't imagine exceptions would appear in hot code very often/ever? They could definitely appear in hot code if the exception is for a case that is very rare, but it's certainly true that if an

Re: A Perspective on D from game industry

2014-06-17 Thread dennis luehring via Digitalmars-d
Am 17.06.2014 11:30, schrieb Walter Bright: And how would you syntax-highlight a string mixin that's assembled from arbitrary string fragments? You wouldn't need to, since the text editor sees only normal D code. the text editor sees just D-code-Strings - so no syntax-highlight except that

Re: Is D production-ready?

2014-06-17 Thread Jonathan M Davis via Digitalmars-d
On Tue, 17 Jun 2014 07:12:46 +0100 Russel Winder via Digitalmars-d digitalmars-d@puremagic.com wrote: On Mon, 2014-06-16 at 11:10 +, Kiith-Sa via Digitalmars-d wrote: If you see abandoned libraries, you're probably looking at DSource, which is dead. Everything has long since moved to

Re: Not initialized out argument error

2014-06-17 Thread Jonathan M Davis via Digitalmars-d
On Tue, 17 Jun 2014 02:24:43 -0700 Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 6/17/2014 1:55 AM, bearophile wrote: Walter Bright: I see it as annoying and nothing to do with 'strictness'. D default initializes all variables that don't have an explicit

Re: Not initialized out argument error

2014-06-17 Thread bearophile via Digitalmars-d
Walter Bright: How much often do I need to write a function like foo? I think it's uncommon. I suspect that is a guess. I have just studied all usages of out arguments in my code, and I have never left an out argument uninitialized inside the function body. When I use an out argument, I

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread via Digitalmars-d
On Tuesday, 17 June 2014 at 09:24:32 UTC, Araq wrote: What's the point? Nimrod already exists and answers most of your questions. If only you would know how to ask... If you know the answers then I am an eager listener. Go ahead! :-) But isn't Nimrod a source-2-source compiler/translator? In

Re: A Perspective on D from game industry

2014-06-17 Thread via Digitalmars-d
On Tuesday, 17 June 2014 at 09:17:21 UTC, Nick Sabalausky wrote: I think you're hitting on the fundamental limitations of automated code-updating tools here: They can't be treated as trusted black-boxes. I don't think this is a fundamental limitation of tools, but a consequence of language

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Manu via Digitalmars-d
On 17 June 2014 18:18, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 6/16/2014 10:02 PM, Manu via Digitalmars-d wrote: I can't imagine exceptions would appear in hot code very often/ever? I've tried to explain this to you for months. You don't believe my

Re: Is D production-ready?

2014-06-17 Thread Russel Winder via Digitalmars-d
On Tue, 2014-06-17 at 03:32 -0700, Jonathan M Davis via Digitalmars-d wrote: […] It's well known by the D community that most of dsource is abandoned and useless at this point, but as I understand it, no one knows how to get ahold of the fellow who runs it, so that makes it very difficult to

Re: A Perspective on D from game industry

2014-06-17 Thread Dicebot via Digitalmars-d
On Tuesday, 17 June 2014 at 10:25:39 UTC, dennis luehring wrote: Am 17.06.2014 11:30, schrieb Walter Bright: And how would you syntax-highlight a string mixin that's assembled from arbitrary string fragments? You wouldn't need to, since the text editor sees only normal D code. the text

Re: A Perspective on D from game industry

2014-06-17 Thread Kapps via Digitalmars-d
On Tuesday, 17 June 2014 at 10:25:39 UTC, dennis luehring wrote: Am 17.06.2014 11:30, schrieb Walter Bright: And how would you syntax-highlight a string mixin that's assembled from arbitrary string fragments? You wouldn't need to, since the text editor sees only normal D code. the text

Re: Not initialized out argument error

2014-06-17 Thread Kapps via Digitalmars-d
C# forces you to set a default value for out parameters, and I personally find it annoying. The very nature of out parameters is often that you use it in a situation where there *may* be a result. Again using a C# example, 'bool Dictionary.TryGetValue(key, out foo)'. I don't care what the

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Manu via Digitalmars-d
On 17 June 2014 18:36, Nick Sabalausky via Digitalmars-d digitalmars-d@puremagic.com wrote: On 6/17/2014 2:56 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 17 June 2014 at 05:52:37 UTC, Nick Sabalausky wrote: Well, I think interesting part we're trying to

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread ed via Digitalmars-d
On Tuesday, 17 June 2014 at 11:59:23 UTC, Manu via Digitalmars-d wrote: On 17 June 2014 18:36, Nick Sabalausky via Digitalmars-d digitalmars-d@puremagic.com wrote: On 6/17/2014 2:56 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 17 June 2014 at 05:52:37 UTC,

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Jacob Carlborg via Digitalmars-d
On 16/06/14 17:16, 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? I think Swift is only intended for high

Re: Is D production-ready?

2014-06-17 Thread Wyatt via Digitalmars-d
On Tuesday, 17 June 2014 at 10:32:57 UTC, Jonathan M Davis via Digitalmars-d wrote: but as I understand it, no one knows how to get ahold of the fellow who runs it Nah, it's pretty simple. Just send him an email. I did this some time last year, and even posted to the NG about it. that

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Jacob Carlborg via Digitalmars-d
On 17/06/14 05:18, Walter Bright wrote: Note that Swift seems to not do exceptions (I may be wrong, again, I know little about Swift), which is one way to avoid that problem. It does not support exceptions. -- /Jacob Carlborg

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Manu via Digitalmars-d
On 17 June 2014 22:26, w0rp via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 17 June 2014 at 00:22:55 UTC, Manu via Digitalmars-d wrote: -Ofast seems to perform the same as C++. -Ofast allegedly does basically what '-release -noboundscheck' does. You'd never try and benchmark

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 17 June 2014 at 12:10:13 UTC, Jacob Carlborg wrote: On 16/06/14 17:16, 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

Re: foreach

2014-06-17 Thread Wyatt via Digitalmars-d
On Monday, 16 June 2014 at 20:32:57 UTC, H. S. Teoh via Digitalmars-d wrote: Another recent enterprise nastiness I ran into: having several functions with identical name in the source tree, each of which does something completely different, and which one ends up in the executable depends on

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread w0rp via Digitalmars-d
On Tuesday, 17 June 2014 at 00:22:55 UTC, Manu via Digitalmars-d wrote: On 17 June 2014 10:08, deadalnix via Digitalmars-d digitalmars-d@puremagic.com 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

Re: A Perspective on D from game industry

2014-06-17 Thread Artur Skawina via Digitalmars-d
On 06/17/14 11:30, Walter Bright via Digitalmars-d wrote: On 6/16/2014 9:32 PM, H. S. Teoh via Digitalmars-d wrote: And how would you syntax-highlight a string mixin that's assembled from arbitrary string fragments? You wouldn't need to, since the text editor sees only normal D code.

Re: Out of sight out of mind

2014-06-17 Thread Andrew Edwards via Digitalmars-d
On 6/16/14, 10:09 PM, Jesse Phillips wrote: On Sunday, 15 June 2014 at 15:37:22 UTC, Andrew Edwards wrote: Observe the following truths: 1) Issue tricking and resolution are kept separate in our community 2) That which is not visible garners no attention Your message has not convinced

Re: A Perspective on D from game industry

2014-06-17 Thread Dicebot via Digitalmars-d
On Tuesday, 17 June 2014 at 13:13:00 UTC, Artur Skawina via Digitalmars-d wrote: artur (who implemented both features last weekend; it started out as a fun let's-see-how-D-would-look-if-it-had-this-project, but after making them work and then converting a few small programs, almost immediately

Re: Not initialized out argument error

2014-06-17 Thread Timon Gehr via Digitalmars-d
On 06/17/2014 02:02 AM, Walter Bright wrote: On 6/16/2014 3:51 PM, bearophile wrote: test.d(1,21): Error: uninitialised out argument of 'test3.foo' function But it is not uninitialized. All out parameters are default initialized to their .init value. struct S{ @disable this(); } void

Re: Not initialized out argument error

2014-06-17 Thread bearophile via Digitalmars-d
Timon Gehr: struct S{ @disable this(); } void foo(out S s){} // ? If you compile this code: struct Foo { @disable this(); } void foo(out Foo x) {} void main() {} Gives a good error message (with a typo): test.d(4): Error: cannot have out parameter of type Foo because the default

Re: A Perspective on D from game industry

2014-06-17 Thread John Colvin via Digitalmars-d
On Tuesday, 17 June 2014 at 13:24:11 UTC, Dicebot wrote: On Tuesday, 17 June 2014 at 13:13:00 UTC, Artur Skawina via Digitalmars-d wrote: artur (who implemented both features last weekend; it started out as a fun let's-see-how-D-would-look-if-it-had-this-project, but after making them work and

Re: Is D production-ready?

2014-06-17 Thread Jacob Carlborg via Digitalmars-d
On 16/06/14 12:24, John Petal wrote: Does D have a mature and cross-platform GUI library? I would recommend DWT [1], although it currently doesn't work on OS X (I'm working on that). [1] https://github.com/d-widget-toolkit/dwt -- /Jacob Carlborg

Unicode 7.0.0 is out

2014-06-17 Thread dennis luehring via Digitalmars-d
http://www.unicode.org/versions/Unicode7.0.0/

Re: A Perspective on D from game industry

2014-06-17 Thread Kiith-Sa via Digitalmars-d
On Tuesday, 17 June 2014 at 13:36:48 UTC, John Colvin wrote: On Tuesday, 17 June 2014 at 13:24:11 UTC, Dicebot wrote: On Tuesday, 17 June 2014 at 13:13:00 UTC, Artur Skawina via Digitalmars-d wrote: artur (who implemented both features last weekend; it started out as a fun

Re: Out of sight out of mind

2014-06-17 Thread Steven Schveighoffer via Digitalmars-d
On Tue, 17 Jun 2014 09:23:50 -0400, Andrew Edwards rid...@yahoo.com wrote: On 6/16/14, 10:09 PM, Jesse Phillips wrote: On Sunday, 15 June 2014 at 15:37:22 UTC, Andrew Edwards wrote: Observe the following truths: 1) Issue tricking and resolution are kept separate in our community 2)

Re: A Perspective on D from game industry

2014-06-17 Thread Dicebot via Digitalmars-d
On Tuesday, 17 June 2014 at 13:36:48 UTC, John Colvin wrote: also, foreach that works outside of function scope would be awesome: mixin template A(TL ...) { foreach(i, T; TL) { mixin(T v ~ i.to!string); } } It is not also, it is primary use case of

Re: A Perspective on D from game industry

2014-06-17 Thread John Colvin via Digitalmars-d
On Tuesday, 17 June 2014 at 13:52:48 UTC, Dicebot wrote: On Tuesday, 17 June 2014 at 13:36:48 UTC, John Colvin wrote: also, foreach that works outside of function scope would be awesome: mixin template A(TL ...) { foreach(i, T; TL) { mixin(T v ~ i.to!string);

Re: Out of sight out of mind

2014-06-17 Thread Andrew Edwards via Digitalmars-d
Understood... Sorry for the noise. On 6/17/14, 9:53 AM, Steven Schveighoffer wrote: On Tue, 17 Jun 2014 09:23:50 -0400, Andrew Edwards rid...@yahoo.com wrote: On 6/16/14, 10:09 PM, Jesse Phillips wrote: On Sunday, 15 June 2014 at 15:37:22 UTC, Andrew Edwards wrote: Observe the following

Re: Swift does away with pointers == pervasive ARC

2014-06-17 Thread Steven Schveighoffer via Digitalmars-d
On Tue, 17 Jun 2014 01:02:32 -0400, Manu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 17 June 2014 13:18, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 6/16/2014 5:48 PM, Manu via Digitalmars-d wrote: Hmmm, I still don't buy it, I know, but you also

Re: Out of sight out of mind

2014-06-17 Thread Dicebot via Digitalmars-d
On Tuesday, 17 June 2014 at 13:23:48 UTC, Andrew Edwards wrote: The argument I'm hearing from the majority (at least those who choose to respond) is too much work for minimal gain. I stand by the point that gain is not minimal, it is actually negative. Loss of power search tools is huge

Re: Out of sight out of mind

2014-06-17 Thread Jesse Phillips via Digitalmars-d
On Tuesday, 17 June 2014 at 13:23:48 UTC, Andrew Edwards wrote: The issue I'm trying to solve is to make issues more visible to people who work on them. By putting those issues in the same location where developers work, they immediately become more visible. Does it solve the overall problem?

Re: A Perspective on D from game industry

2014-06-17 Thread Dicebot via Digitalmars-d
On Tuesday, 17 June 2014 at 14:00:44 UTC, John Colvin wrote: I though the primary use of static foreach was to force the compiler to attempt compile-time iteration even for non-TemplateArgList arguments like arrays known at compile-time If static foreach acts as code generator there is no

Re: A Perspective on D from game industry

2014-06-17 Thread Timon Gehr via Digitalmars-d
On 06/17/2014 04:00 PM, John Colvin wrote: I though the primary use of static foreach was to force the compiler to attempt compile-time iteration even for non-TemplateArgList arguments like arrays known at compile-time e.g. static foreach(el; [1,2,3,4]) { pragma(msg, el); } or static

Re: Out of sight out of mind

2014-06-17 Thread Andrew Edwards via Digitalmars-d
On 6/17/14, 10:32 AM, Jesse Phillips wrote: On Tuesday, 17 June 2014 at 13:23:48 UTC, Andrew Edwards wrote: The issue I'm trying to solve is to make issues more visible to people who work on them. By putting those issues in the same location where developers work, they immediately become more

Re: A Perspective on D from game industry

2014-06-17 Thread Timon Gehr via Digitalmars-d
On 06/17/2014 03:36 PM, John Colvin wrote: also, foreach that works outside of function scope would be awesome: mixin template A(TL ...) { foreach(i, T; TL) { mixin(T v ~ i.to!string); } } Also, identifier mixins might then somewhat clean up a lot of code. The

Re: Unicode 7.0.0 is out

2014-06-17 Thread Dmitry Olshansky via Digitalmars-d
17-Jun-2014 17:43, dennis luehring пишет: http://www.unicode.org/versions/Unicode7.0.0/ OMG The good news is we haven't implemented yet the collation algorithm, so no need to re-implement it! :) P.S. Seriously we should be good to go, with a minor semi-automated update to std.uni tables.

Unnamed parameter with default value

2014-06-17 Thread via Digitalmars-d
Is there any particular reason why this is accepted? (I introduced it by mistake): void foo(int = 3) {} I guess it could be useful to ensure binary compatibility when you expect to add the parameter later?

Re: Unnamed parameter with default value

2014-06-17 Thread Steven Schveighoffer via Digitalmars-d
On Tue, 17 Jun 2014 11:15:43 -0400, Luís Marques l...@luismarques.eu wrote: Is there any particular reason why this is accepted? (I introduced it by mistake): void foo(int = 3) {} I guess it could be useful to ensure binary compatibility when you expect to add the parameter later?

  1   2   3   >