Re: DIP60: @nogc attribute

2014-04-15 Thread Brad Anderson via Digitalmars-d
On Tuesday, 15 April 2014 at 20:56:24 UTC, Steven Schveighoffer wrote: On Tue, 15 Apr 2014 16:06:26 -0400, Walter Bright newshou...@digitalmars.com wrote: On 4/15/2014 12:57 PM, monarch_dodra wrote: I mean, if we want this to actually be useful in Phobos (or other), it will require

Re: DIP60: @nogc attribute

2014-04-17 Thread Brad Anderson via Digitalmars-d
On Tuesday, 15 April 2014 at 17:01:38 UTC, Walter Bright wrote: http://wiki.dlang.org/DIP60 Start on implementation: https://github.com/D-Programming-Language/dmd/pull/3455 Would @nogc apply to code being evaluated at compile-time? I don't think it should.

Re: DIP60: @nogc attribute

2014-04-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 April 2014 at 06:35:33 UTC, Walter Bright wrote: On 4/17/2014 9:23 PM, Brad Anderson wrote: Would @nogc apply to code being evaluated at compile-time? I don't think it should. Yes, it would be. Compile time functions are not special, in fact, there is no such thing in D. But

Re: DIP60: @nogc attribute

2014-04-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 April 2014 at 14:45:37 UTC, Byron wrote: On Thu, 17 Apr 2014 11:55:14 +, w0rp wrote: I'm not convinced that any automatic memory management scheme will buy much with real time applications. Generally with real-time processes, you need to pre-allocate. I think GC could be

Re: Redesign of dlang.org

2014-04-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 April 2014 at 15:49:59 UTC, Andrei Alexandrescu wrote: On 4/18/14, 8:30 AM, David Gileadi wrote: It does mean that the site is static HTML, so any dynamism needs to be JS-only (and I think any efforts to make the pages largely JS-driven would meet resistance). We can (and

Re: Redesign of dlang.org

2014-04-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 April 2014 at 14:04:04 UTC, Aleksandar Ruzicic wrote: snip I have also tried to design something myself (although I'm not a designer) and this is what I came up with: http://krcko.net/dlang.org/dlang-home-draft1.png I'm not entirely satisfied with it but I believe that it

Re: Redesign of dlang.org

2014-04-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 April 2014 at 16:25:10 UTC, Aleksandar Ruzicic wrote: On Friday, 18 April 2014 at 15:30:52 UTC, David Gileadi wrote: As the guy who was mostly responsible for the current look and feel of the website I can provide some insight into the effort required. The website is built

Re: More radical ideas about gc and reference counting

2014-04-30 Thread Brad Anderson via Digitalmars-d
On Wednesday, 30 April 2014 at 23:34:33 UTC, Andrei Alexandrescu wrote: On 4/30/14, 4:19 PM, froglegs wrote: Here is an alternative: 1. classes are unique by default, they cannot be shared. No GC or RF required, and covers 90% of objects. Where does 90% come from? On the contrary, it

Re: Parallel execution of unittests

2014-05-01 Thread Brad Anderson via Digitalmars-d
On Thursday, 1 May 2014 at 17:24:58 UTC, Andrei Alexandrescu wrote: On 5/1/14, 10:09 AM, Steven Schveighoffer wrote: On Thu, 01 May 2014 12:07:19 -0400, Dicebot pub...@dicebot.lv wrote: On Thursday, 1 May 2014 at 15:37:21 UTC, Andrei Alexandrescu wrote: On 5/1/14, 8:04 AM, Dicebot wrote: On

Re: Running Phobos unit tests in threads: I have data

2014-05-05 Thread Brad Anderson via Digitalmars-d
On Monday, 5 May 2014 at 17:56:11 UTC, Dicebot wrote: On Saturday, 3 May 2014 at 12:26:13 UTC, Rikki Cattermole wrote: On Saturday, 3 May 2014 at 12:24:59 UTC, Atila Neves wrote: Out of curiosity are you on Windows? No, Arch Linux 64-bit. I also just noticed a glaring threading bug in my

Re: API

2014-05-05 Thread Brad Anderson via Digitalmars-d
On Tuesday, 6 May 2014 at 00:10:36 UTC, Andrei Alexandrescu wrote: So I'm looking at creation functions and in particular creation functions for arrays. I like Adam's input range idea. It gives you the best of both worlds, I think. It clears the conflict between ints and lengths using an

Re: Allocating a wstring on the stack (no GC)?

2014-05-07 Thread Brad Anderson via Digitalmars-d
On Wednesday, 7 May 2014 at 18:26:08 UTC, Maxime Chevalier-Boisvert wrote: I have a very specific use case (JIT compiler) in which I have a pre-allocated array of wchar string data stored somewhere in memory. I'd like to be able to create a temporary D wstring object to pass this as a regular

Re: 64-bit DMD for windows?

2014-05-21 Thread Brad Anderson via Digitalmars-d
On Wednesday, 21 May 2014 at 03:15:34 UTC, Manu via Digitalmars-d wrote: On 21 May 2014 05:15, Temtaime via Digitalmars-d digitalmars-d@puremagic.com wrote: Sorry i misunderstood you. Yes dmd supports x64 on windows but it doesn't work without external tools. It's a main trouble i think.

Re: Including Dub with D

2014-05-22 Thread Brad Anderson via Digitalmars-d
On Thursday, 22 May 2014 at 18:03:16 UTC, Jeremy Powers via Digitalmars-d wrote: Dub (code.dlang.org) has emerged as the standard build tool for D. Yet there doesn't look to be any mention of it on the D site proper... Would it be reasonable to include dub with the DMD installer? Or

Re: Including Dub with D

2014-05-22 Thread Brad Anderson via Digitalmars-d
On Thursday, 22 May 2014 at 19:20:12 UTC, Etienne wrote: On 2014-05-22 3:11 PM, Nick Sabalausky wrote: On 5/22/2014 2:06 PM, Dicebot wrote: Main blocker is transition to SDL as default project description format Is there anything blocking actual adoption of SDL? I'm not holding anything up

Re: Vibe.d featured on HN frontpage - upvote to give some exposure

2014-05-26 Thread Brad Anderson via Digitalmars-d
On Monday, 26 May 2014 at 17:22:47 UTC, Walter Bright wrote: What's the title of the HN posting so I can find it? Asynchronous I/O that doesn’t get in your way, written in D

Re: Thanks for a great DConf

2014-05-28 Thread Brad Anderson via Digitalmars-d
On Wednesday, 28 May 2014 at 14:14:40 UTC, Dicebot wrote: It was really funny to observe output of DFeed during the conference by the way - PR merges, issue comments and casual hacking have never stopped. I am somewhat surprised no one has managed to create a pull request right in the middle

Re: Redesign of dlang.org

2014-05-29 Thread Brad Anderson via Digitalmars-d
On Friday, 18 April 2014 at 14:04:04 UTC, Aleksandar Ruzicic wrote: Hello, I've been D enthusiast for couple of years now (but I do not participate much in discussions here, although I read forums almost daily), and I keep telling people about D and how awesome it is. But, all this time

Re: The GC and performance, but not what you expect

2014-05-30 Thread Brad Anderson via Digitalmars-d
On Friday, 30 May 2014 at 05:45:52 UTC, Andrei Alexandrescu wrote: Thing is the allocation patterns in D and Java are mightily different. Java does need a good GC because it allocates everywhere for everything. I think we need to come up with our own measurements and statistics when it comes

Re: Redesign of dlang.org

2014-06-01 Thread Brad Anderson via Digitalmars-d
On Sunday, 1 June 2014 at 13:29:38 UTC, w0rp wrote: I just updated the site. Here are the main changes. snip Had to force a refresh to see the changes. I can't decide if I like the dark background better or worse. Either looks fine though.

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-02 Thread Brad Anderson via Digitalmars-d
On Monday, 2 June 2014 at 20:07:00 UTC, Nordlöw wrote: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html#//apple_ref/doc/uid/TP40014097-CH2 Same mistake with syntatically ambiguous template syntax. Maybe the deprecated

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-02 Thread Brad Anderson via Digitalmars-d
On Monday, 2 June 2014 at 19:19:27 UTC, Paulo Pinto wrote: Just thought it would be nice to give a heads up about Apple's plans to replace Objective-C in the long run. The language was presented today at the WWDC Keynote, looks like Ruby, uses ARC alongside the Objective-C runtime.

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-04 Thread Brad Anderson via Digitalmars-d
On Monday, 2 June 2014 at 19:19:27 UTC, Paulo Pinto wrote: Just thought it would be nice to give a heads up about Apple's plans to replace Objective-C in the long run. The language was presented today at the WWDC Keynote, looks like Ruby, uses ARC alongside the Objective-C runtime.

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-04 Thread Brad Anderson via Digitalmars-d
On Thursday, 5 June 2014 at 03:12:05 UTC, Brad Anderson wrote: HN discussion: http://www.splasmata.com/?p=2798 That should be https://news.ycombinator.com/item?id=7849213

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Brad Anderson via Digitalmars-d
On Thursday, 5 June 2014 at 22:06:02 UTC, monarch_dodra wrote: On Thursday, 5 June 2014 at 08:49:18 UTC, Jonathan M Davis via Digitalmars-d long days; int seconds; short msecs; d.split!(days, seconds, msecs)(days, seconds, msecs); Please don't use pass-by-pointer in D APIs. It

Re: Is D production-ready?

2014-06-16 Thread Brad Anderson via Digitalmars-d
On Monday, 16 June 2014 at 17:05:05 UTC, Andrei Alexandrescu wrote: On 6/16/14, 4:45 AM, Rikki Cattermole wrote: 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

Re: Icons for .d and .di files

2014-06-19 Thread Brad Anderson via Digitalmars-d
On Thursday, 19 June 2014 at 21:57:03 UTC, FreeSlave wrote: Is there any good icon for D source files? Now .d files look like plain text files. I changed mime on my Debian to use dlang site logo for .d files, but it looks weird among with others (C, C++, etc.) I'm not artist, but I see there

Re: DIP64: Attribute Cleanup

2014-06-20 Thread Brad Anderson via Digitalmars-d
On Friday, 20 June 2014 at 19:22:04 UTC, Brian Schott wrote: http://wiki.dlang.org/DIP64 Attributes in D have two problems: 1. There are too many of them and declarations are getting too verbose 2. New attributes use @ and the old ones do not. I've created a DIP to address these issues. I

Re: Optimizing Java using D

2014-06-20 Thread Brad Anderson via Digitalmars-d
On Saturday, 21 June 2014 at 00:47:23 UTC, bearophile wrote: Xinok: I get the feeling that, because he is utilizing UFCS, that it is actually calling the built-in array sort and not std.algorithm.sort. The built-in sort is 3-4x slower, so that would explain why his naive quicksort

Re: Optimizing Java using D

2014-06-20 Thread Brad Anderson via Digitalmars-d
On Saturday, 21 June 2014 at 00:56:32 UTC, deadalnix wrote: On Friday, 20 June 2014 at 23:34:32 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/28mp3m/the_magic_forest_problem_revisited_optimising/ The article indicates there may be a performance problem with

Re: Few recent dmd pull requests

2014-06-26 Thread Brad Anderson via Digitalmars-d
On Thursday, 26 June 2014 at 18:55:38 UTC, H. S. Teoh via Digitalmars-d wrote: On Thu, Jun 26, 2014 at 05:45:23PM +, Meta via Digitalmars-d wrote: On Thursday, 26 June 2014 at 17:26:02 UTC, bearophile wrote: Meta: There has been discussion before about doing away with string lambdas.

Re: Redesign of dlang.org

2014-07-01 Thread Brad Anderson via Digitalmars-d
On Tuesday, 1 July 2014 at 12:40:21 UTC, w0rp wrote: On Tuesday, 1 July 2014 at 12:38:39 UTC, w0rp wrote: On Tuesday, 1 July 2014 at 07:40:03 UTC, Alix Pexton wrote: On 01/07/2014 7:42 AM, w0rp wrote: The logo on the site I'm testing is the most effective duck. The logo is a placeholder I

Re: Redesign of dlang.org

2014-07-01 Thread Brad Anderson via Digitalmars-d
On Tuesday, 1 July 2014 at 08:34:30 UTC, Gary Willoughby wrote: On Monday, 30 June 2014 at 21:23:59 UTC, David Gileadi wrote: My opinion is that the redesign preserves the spirit of the current logo while fitting in well with the flatter look. I think someone who sees the one logo will

Re: Worrying attitudes to the branding of the D language

2014-07-01 Thread Brad Anderson via Digitalmars-d
On Tuesday, 1 July 2014 at 17:45:02 UTC, Gary Willoughby wrote: There is currently an effort made by w0rp to redesign the D website. This is a good thing and i applaud his efforts. The website really does need an overhaul. However i find it extremely alarming that there is a casual disregard

Re: Worrying attitudes to the branding of the D language

2014-07-02 Thread Brad Anderson via Digitalmars-d
On Wednesday, 2 July 2014 at 11:56:39 UTC, Shammah Chancellor wrote: snip Walter, I've been involved with D since 2001 (iirc? 0.064 i think?) I absolutely love your language and the project. The D Programming Languages deserves more usage and notoriety since it *is* the best programming

Re: Worrying attitudes to the branding of the D language

2014-07-02 Thread Brad Anderson via Digitalmars-d
On Wednesday, 2 July 2014 at 10:23:12 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 2 July 2014 at 08:59:06 UTC, Alix Pexton wrote: [Incidentally, I found the copyright notice that goes with the current logo at the bottom of this page: http://media.sukimashita.com/d/ (the gallery of designs

Re: Worrying attitudes to the branding of the D language

2014-07-02 Thread Brad Anderson via Digitalmars-d
On Wednesday, 2 July 2014 at 20:04:50 UTC, Gary Willoughby wrote: snip The 'new' design by w0rp (http://w0rp.com:8010/) does none of those things. He's well intentioned but even things like basic text layout and white space usage are completely lacking.

Re: Worrying attitudes to the branding of the D language

2014-07-02 Thread Brad Anderson via Digitalmars-d
On Wednesday, 2 July 2014 at 23:16:48 UTC, Andrei Alexandrescu wrote: On 7/2/14, 4:00 PM, Israel Rodriguez wrote: Or you know...you could rename D to maybe something likeThe Mars programming language? I think we should have an FAQ for that stuff. -- Andrei I actually added a FAQ entry

Re: Worrying attitudes to the branding of the D language

2014-07-02 Thread Brad Anderson via Digitalmars-d
On Wednesday, 2 July 2014 at 23:33:33 UTC, H. S. Teoh via Digitalmars-d wrote: On Wed, Jul 02, 2014 at 11:00:52PM +, Israel Rodriguez via Digitalmars-d wrote: Or you know...you could rename D to maybe something likeThe Mars programming language? The name isnt taken, and im sure it

Re: Worrying attitudes to the branding of the D language

2014-07-02 Thread Brad Anderson via Digitalmars-d
On Wednesday, 2 July 2014 at 23:25:13 UTC, w0rp wrote: On Wednesday, 2 July 2014 at 23:18:13 UTC, Brad Anderson wrote: On Wednesday, 2 July 2014 at 23:16:48 UTC, Andrei Alexandrescu wrote: On 7/2/14, 4:00 PM, Israel Rodriguez wrote: Or you know...you could rename D to maybe something

Re: Worrying attitudes to the branding of the D language

2014-07-02 Thread Brad Anderson via Digitalmars-d
On Thursday, 3 July 2014 at 00:17:49 UTC, Walter Bright wrote: On 7/2/2014 4:18 PM, Brad Anderson wrote: On Wednesday, 2 July 2014 at 23:16:48 UTC, Andrei Alexandrescu wrote: On 7/2/14, 4:00 PM, Israel Rodriguez wrote: Or you know...you could rename D to maybe something likeThe Mars

Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Brad Anderson via Digitalmars-d
On Thursday, 3 July 2014 at 14:44:06 UTC, Wyatt wrote: [...] Very nice; thank you. Though, having thought on it some more, I would suggest the capital D and the two moons are the most important aspect in terms of a distinctive mark. The red background is currently an element of the logo

Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Brad Anderson via Digitalmars-d
On Thursday, 3 July 2014 at 11:40:34 UTC, Alix Pexton wrote: I agree! I started working on this little document last night while angry and tired, maybe it should find its way to the wiki. https://docs.google.com/document/d/1Sb4xnZUbzVRIicsfnxBFhTvRH4EOYq88wZexAuGcnaE/edit Its the last time

Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Brad Anderson via Digitalmars-d
On Thursday, 3 July 2014 at 21:02:53 UTC, Ola Fosheim Grøstad wrote: On Thursday, 3 July 2014 at 19:46:18 UTC, Alix Pexton wrote: I agree, it may be a happy accident that a shape that was meant to be part of the glossy sheen on the image got interpreted as the distant Martian horizon, but the

Re: Worrying attitudes to the branding of the D language

2014-07-03 Thread Brad Anderson via Digitalmars-d
On Friday, 4 July 2014 at 00:11:25 UTC, Brad Anderson wrote: [...] I've had this .svg of the flat version of the logo around for a few years that is a bit cleaner than the one you quickly put together (sharper edges, and I think your bottom is truncated a bit). Feel free to use it.

Re: Thanks for the bounty!

2014-07-08 Thread Brad Anderson via Digitalmars-d
On Tuesday, 8 July 2014 at 15:57:40 UTC, David Gileadi wrote: On Friday, 4 July 2014 at 20:31:20 UTC, Walter Bright wrote: On 7/4/2014 5:49 AM, Andrej Mitrovic via Digitalmars-d wrote: Now *that* I definitely cannot work on. It's a complete conflict of interest due to our two companies. :)

Re: Languages for servers (Go, D, and more)

2014-07-08 Thread Brad Anderson via Digitalmars-d
On Tuesday, 8 July 2014 at 17:55:15 UTC, Sean Kelly wrote: Well sure, but you can't use a class instance living on the stack as the context for a callback. At that point, whatever smart pointer you're using has to be discarded. This is actually why I find little use for

Re: Languages for servers (Go, D, and more)

2014-07-08 Thread Brad Anderson via Digitalmars-d
On Tuesday, 8 July 2014 at 18:23:41 UTC, Sean Kelly wrote: On Tuesday, 8 July 2014 at 18:04:14 UTC, Brad Anderson wrote: Maybe I'm misunderstanding but why not just use reset()? reset deletes the currently referenced object. Oh, I see what you were going for now.

Re: Opportunities for D

2014-07-08 Thread Brad Anderson via Digitalmars-d
On Wednesday, 9 July 2014 at 02:44:54 UTC, Walter Bright wrote: On 7/8/2014 6:01 PM, Mike wrote: On Tuesday, 8 July 2014 at 21:22:31 UTC, Walter Bright wrote: 1. Ref Counting I believe that ARC is a pipe dream for D, as we've discussed extensively here. But a ref counted object should work,

Re: Opportunities for D

2014-07-11 Thread Brad Anderson via Digitalmars-d
On Thursday, 10 July 2014 at 21:29:30 UTC, Dmitry Olshansky wrote: Not digging into the whole thread. 9. Extensible I/O package to replace our monolitic std.stdio sitting awkwardly on top of C's legacy. That would imply integrating it with sockets/pipes and filters/codecs (compression,

Re: dub freeimage package

2014-07-14 Thread Brad Anderson via Digitalmars-d
On Monday, 14 July 2014 at 20:56:22 UTC, alexeibs wrote: Does it work under Windows? I didn't manage to link it with a simple test app. I added freeimage package into dependency list inside package.json and got an error File Not Found freeimage.lib. Then I downloaded latest archive from

Re: GCs in the news

2014-07-17 Thread Brad Anderson via Digitalmars-d
On Thursday, 17 July 2014 at 12:37:10 UTC, w0rp wrote: The key to making D's GC acceptable lies in two factors I believe. 1. Improve the implementation enough so that you will only be impacted by GC in extermely low memory or real time environments. 2. Defer allocation more and more by using

Re: GCs in the news

2014-07-17 Thread Brad Anderson via Digitalmars-d
On Thursday, 17 July 2014 at 22:16:10 UTC, Dicebot wrote: On Thursday, 17 July 2014 at 22:06:01 UTC, Brad Anderson wrote: I agreed with this for awhile but following the conversation here https://github.com/D-Programming-Language/phobos/pull/2149 I'm more inclined to think we should be adding

Naming of new lazy versions of existing Phobos functions

2014-07-17 Thread Brad Anderson via Digitalmars-d
Walter's prototype[1] for removing allocations from a phobos function (std.path.setExtension) got hung up on the naming of the function. It couldn't keep the same name because it differed only by return type. Walter doesn't like explicitly naming them as lazy because existing lazy functions

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 08:48:08 UTC, Walter Bright wrote: [...] Since there are a lot of existing lazy algorithms in Phobos that do not follow this naming convention, either the convention is pointless or we go through yet another round of changing Phobos names and breaking everyone's

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 17:59:05 UTC, Brad Anderson wrote: - abbrev : abbreviated: withAbbrev abbrev actually doesn't belong in this list. I probably included a few others mistakenly too.

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 18:49:13 UTC, H. S. Teoh via Digitalmars-d wrote: [...] I think it's a fool's errand to try to invent a single system of naming that's blindly applied across the board. We should have some guiding principles for common cases (like withXxx, xxxOf, verbed, etc.) for

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 19:00:56 UTC, Walter Bright wrote: On 7/18/2014 10:59 AM, Brad Anderson wrote: What do you think? I'd leaven that proposal with the observation that functions are likely to be lexically sorted by name. Hence, like functions should lexicographically be adjacent to

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 20:35:33 UTC, Walter Bright wrote: General comment (not particularly directed at Tourist): There is no such thing as the perfect set of names and the perfect naming convention. These discussions about which of car, auto, vehicle is more intuitive give the illusion

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
On Friday, 18 July 2014 at 22:37:26 UTC, Walter Bright wrote: On 7/18/2014 2:14 PM, Brad Anderson wrote: It's kind of weird that you'd say that because you seem to be pretty strongly opinionated about the naming. It's not just this one, it comes up again and again, always spawning long

Re: Naming of new lazy versions of existing Phobos functions

2014-07-18 Thread Brad Anderson via Digitalmars-d
To summarize what I think are the best ideas so far: std.string -- EagerLazy - capitalize capitalized center centered detabdetabbed entabentabbed format formatted leftJustify

Re: What's blocking DDMD?

2014-07-22 Thread Brad Anderson via Digitalmars-d
On Tuesday, 22 July 2014 at 22:14:31 UTC, Domingo Alvarez Duarte wrote: On Tuesday, 22 July 2014 at 21:36:01 UTC, safety0ff wrote: You mentioned not knowing which branch, are you on yebblies' newmagic branch? On https://github.com/D-Programming-Language/dmd there is no such branchs ! Is

Re: Java compilation [was GCs in the news]

2014-07-23 Thread Brad Anderson via Digitalmars-d
On Wednesday, 23 July 2014 at 09:16:57 UTC, John Colvin wrote: I am suspicious. I understand that a situation can be contrived such that C will lose, but in normal, sensible code the only language I've ever seen reliably beat C is FORTRAN. I'm reminded of when headlines came out saying PyPy

Re: D for Android

2014-07-23 Thread Brad Anderson via Digitalmars-d
On Thursday, 24 July 2014 at 01:17:44 UTC, Joakim wrote: This means most of 1. and 2. above can be crossed off the list. I'll start cleaning up my fairly simple build process and document it on the wiki, so that others can easily play with D on Android/x86. Most of the patches so far have

Re: Setting array length to 0 discards reserved allocation?

2014-07-25 Thread Brad Anderson via Digitalmars-d
On Friday, 25 July 2014 at 17:32:38 UTC, Andrei Alexandrescu wrote: Wyatt wyatt@gmail.com wrote: On Friday, 25 July 2014 at 15:59:18 UTC, Gary Willoughby wrote: The D community is hoping those discussion sections start being used in the same way the PHP documentation is used. We are?

New Github Issues

2014-07-28 Thread Brad Anderson via Digitalmars-d
Github updated their Issues system (which includes Pull Requests). You can read about it here: https://github.com/blog/1866-the-new-github-issues Bugzilla is here to stay but the newly added Labels feature could probably help organize Pull Requests. The usual Enhancement, Bug, etc. are nice

Re: New Github Issues

2014-07-28 Thread Brad Anderson via Digitalmars-d
On Monday, 28 July 2014 at 17:31:56 UTC, Brad Anderson wrote: [...] A lot of the time it seems like there is confusion over whose court the ball is in. I always forget idioms probably aren't a good idea in an international community like this one.

Re: New Github Issues

2014-07-28 Thread Brad Anderson via Digitalmars-d
On Monday, 28 July 2014 at 18:23:06 UTC, Daniel Murphy wrote: Daniel Murphy wrote in message news:lr6249$18pf$1...@digitalmars.com... Oh FINALLY!!! I've just labelled all the DDMD pull requests. Nice. https://github.com/D-Programming-Language/dmd/pulls?q=is%3Aopen+is%3Apr+label%3ADDMD

Re: New Github Issues

2014-07-29 Thread Brad Anderson via Digitalmars-d
On Tuesday, 29 July 2014 at 10:42:24 UTC, Dicebot wrote: [...] I went ahead and have added few labels for Phobos (https://github.com/D-Programming-Language/phobos/labels): blocked (awaits decision) == Andrei-blocked but named a bit more generic just in case blocked by dependency == depends

Re: discuss disqus

2014-07-29 Thread Brad Anderson via Digitalmars-d
On Tuesday, 29 July 2014 at 22:02:16 UTC, Vladimir Panteleev wrote: On Tuesday, 29 July 2014 at 21:47:16 UTC, Andrei Alexandrescu wrote: There's a pretty negative article about disqus making the rounds: http://www.reddit.com/r/programming/comments/2c19of/your_users_deserve_better_than_disqus/

Re: discuss disqus

2014-07-30 Thread Brad Anderson via Digitalmars-d
On Wednesday, 30 July 2014 at 13:10:35 UTC, Wyatt wrote: On Wednesday, 30 July 2014 at 00:40:09 UTC, Brad Anderson wrote: Andrei did say forum integration would be prefered back when you mentioned it[1]. The more I think about this though the more I think you are right that wiki would be

Re: Official PPA for dmd

2014-08-01 Thread Brad Anderson via Digitalmars-d
On Friday, 1 August 2014 at 19:34:12 UTC, Andrew Pennebaker wrote: I'm happy to see an official .DEB for installing DMD! Could we please host this in a PPA, to make it easier for Debian/Ubuntu users to install? This would make dmd play nicer with automated provisioning sytems like

Re: Assignment of shared values

2014-08-06 Thread Brad Anderson via Digitalmars-d
On Wednesday, 6 August 2014 at 23:01:11 UTC, Andrei Alexandrescu wrote: I'd submitted https://issues.dlang.org/show_bug.cgi?id=4130 which is related to issues with shared values assignment. Did you mean https://issues.dlang.org/show_bug.cgi?id=13262 ?

Re: scope classes mentioned in tutorials, but deprecated

2014-08-21 Thread Brad Anderson via Digitalmars-d
On Thursday, 21 August 2014 at 17:55:19 UTC, Timothee Cour via Digitalmars-d wrote: http://dlang.org/cpptod.html#raii mentions scope class and scope variables, which seem deprecated (http://dlang.org/deprecate.html) https://github.com/D-Programming-Language/dlang.org/pull/637

Re: Automated source translation of C++ to D

2014-08-21 Thread Brad Anderson via Digitalmars-d
On Thursday, 21 August 2014 at 17:57:13 UTC, Joakim wrote: Yes, I'm aware of ddmd. You've mentioned many times that it only works because dmd is written using a very unC++-like style, to the point where github's source analyzer claims that dmd is written in 66.7% C, 28.4% D (presumably the

Re: Yet another victory for D

2014-08-22 Thread Brad Anderson via Digitalmars-d
On Friday, 22 August 2014 at 17:54:36 UTC, H. S. Teoh via Digitalmars-d wrote: A friend of mine stumbled across this today: http://tomerfiliba.com/blog/dlang/ Rejoice! :-) T There's a fairly active conversation going on about this article on Hacker News currently.

Re: [OT] Microsoft filled patent applications for scoped and immutable types

2014-08-26 Thread Brad Anderson via Digitalmars-d
On Tuesday, 26 August 2014 at 20:55:26 UTC, Cliff wrote: On Tuesday, 26 August 2014 at 20:27:55 UTC, Timon Gehr wrote: On 08/26/2014 10:13 PM, Cliff wrote: On Tuesday, 26 August 2014 at 19:47:25 UTC, Casper Færgemand wrote: How would this even work? It looks like this applies only to the

Re: [OT] Microsoft filled patent applications for scoped and immutable types

2014-08-26 Thread Brad Anderson via Digitalmars-d
On Tuesday, 26 August 2014 at 21:26:36 UTC, H. S. Teoh via Digitalmars-d wrote: D has had immutable for years! Surely that counts as prior art?? Does the patent office accept prior art submissions? T They do. http://meta.patents.stackexchange.com/a/107

Re: [OT] Microsoft filled patent applications for scoped and immutable types

2014-08-26 Thread Brad Anderson via Digitalmars-d
On Tuesday, 26 August 2014 at 21:35:39 UTC, Ali Çehreli wrote: There has been some changes in the US since that article was written: http://en.wikipedia.org/wiki/First_to_file_and_first_to_invent Ali True but First-to-file didn't take away Prior Art. In fact, the America Invents Act

Re: Who pays for all this?

2014-10-05 Thread Brad Anderson via Digitalmars-d
On Sunday, 5 October 2014 at 20:45:06 UTC, Sean Kelly wrote: On Sunday, 5 October 2014 at 18:06:49 UTC, Etienne wrote: Programmers cost money, it would be nice to have a D Foundation where companies can donate and maybe eventually use the funds to pay for professional staffing rather than

Re: On Phobos GC hunt

2014-10-07 Thread Brad Anderson via Digitalmars-d
On Tuesday, 7 October 2014 at 19:24:34 UTC, Walter Bright wrote: Thanks, Dmitri, this is great work. I suggest at a minimum that all of those get notes added to their documentation that they gc allocate. Seems like that's something that should just be automated where possible instead of

Re: Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

2014-10-09 Thread Brad Anderson via Digitalmars-d
On Thursday, 9 October 2014 at 08:50:52 UTC, Martin Nowak wrote: Kenji just proposed a slightly controversial pull request so I want to reach out for more people to discuss it's tradeoffs. It's about deprecating function qualifiers on the left hand side of a function. +1. Prefixed const is

Re: DIP66 - Multiple alias this

2014-10-10 Thread Brad Anderson via Digitalmars-d
On Friday, 10 October 2014 at 17:31:23 UTC, Steven Schveighoffer wrote: On 10/10/14 1:09 PM, IgorStepanov wrote: I've created DIP for my pull request. DIP: http://wiki.dlang.org/DIP66 PR: https://github.com/D-Programming-Language/dmd/pull/3998 Please, comment it. Hm... not sure you need a

Re: Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

2014-10-10 Thread Brad Anderson via Digitalmars-d
On Friday, 10 October 2014 at 17:52:30 UTC, Steven Schveighoffer wrote: I think leaving this to a lint tool basically is as good and effective as doing nothing. It's not a compromise at all. I agree. The only people who run lint tools are established users (because they are the only ones who

Re: Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

2014-10-10 Thread Brad Anderson via Digitalmars-d
On Friday, 10 October 2014 at 21:10:14 UTC, Walter Bright wrote: Const works differently in D than in C++, and this doesn't change that. First off, I think it's rather unfortunate that D used keywords from C++ for things that work differently. const in particular but struct and class cause

Re: UFCS in C++

2014-10-13 Thread Brad Anderson via Digitalmars-d
On Monday, 13 October 2014 at 09:32:58 UTC, Francesco Cattoglio wrote: On Monday, 13 October 2014 at 08:53:28 UTC, Peter Alexander wrote: Looks like Bjarne has proposed UFCS for C++ http://isocpp.org/files/papers/N4174.pdf No mention of D though... Seriously, not even a mention? Ok, I'm

Re: Segmented stack

2014-10-16 Thread Brad Anderson via Digitalmars-d
On Thursday, 16 October 2014 at 19:46:42 UTC, Shucai wrote: I am doing research on segmented stack mechanisms, and in addition to academic papers, I am surveying whether segmented stack mechanism is still useful on 64-bit machines. On 64 bit machines, why they don’t just use a big enough

Re: What is the status of 64-bit development on Windows?

2014-10-20 Thread Brad Anderson via Digitalmars-d
On Monday, 20 October 2014 at 21:05:33 UTC, Joakim wrote: For 32-bit compilation, no, no additional download is necessary. For 64-bit, you need the Microsoft COFF linker and C runtime. The installer will try to automatically configure dmd to use those if you have them already. Have you

Re: Linking to other resources in the installer

2014-10-21 Thread Brad Anderson via Digitalmars-d
On Tuesday, 21 October 2014 at 01:03:21 UTC, Xinok wrote: * On the post-install screen, provide a few links here. * Add start menu shortcuts to these things. * Many installers open a webpage after installation is complete. This could be an option on the post-install screen. What do you all

Re: example of pointer usefulness in D

2014-10-21 Thread Brad Anderson via Digitalmars-d
On Tuesday, 21 October 2014 at 16:55:09 UTC, Jeremy DeHaan wrote: On Tuesday, 21 October 2014 at 12:40:57 UTC, w0rp wrote: On Tuesday, 21 October 2014 at 12:22:54 UTC, edn wrote: Could someone provide me with examples showing the usefulness of pointers in the D language? They don't seem to be

Re: Change Tab Sizes in Forum Posts

2014-10-24 Thread Brad Anderson via Digitalmars-d
On Friday, 24 October 2014 at 09:17:52 UTC, John Colvin wrote: I think the column limit for word wrapping should be increased to at least 80 The problem with that is that you'll get terrible line wrapping of any quoted parts after the first reply. Newsreaders and email clients wrap before 80

Re: Fiber is better than go's goroutine?

2014-10-27 Thread Brad Anderson via Digitalmars-d
On Monday, 27 October 2014 at 20:37:26 UTC, Sean Kelly wrote: One thing I just ran into while working on MultiScheduler is that if a spawned thread is holding a lock when it yields, and by yielding is picked up and executed by another thread, Bad Things happen. In hindsight this sees obvious,

Re: Deimos library interfaces needed for these

2014-10-27 Thread Brad Anderson via Digitalmars-d
On Monday, 27 October 2014 at 20:56:04 UTC, Jacob Carlborg wrote: On 2014-10-27 18:18, Dicebot wrote: I personally consider Deimos legacy with addition of dub and would actively discourage anyone from using it or relying on it. I agree. I see no point in using it. +1 A Deimos category

Re: Fiber is better than go's goroutine?

2014-10-27 Thread Brad Anderson via Digitalmars-d
On Monday, 27 October 2014 at 21:43:47 UTC, Sean Kelly wrote: On Monday, 27 October 2014 at 20:54:38 UTC, Brad Anderson wrote: Just out of curiosity, what's the goal of MultiScheduler? Is it intended to be an M:N scheduler? Yep. Every logical thread is a Fiber executed in a round-robin

Re: DIP67: Associative Ranges

2014-10-28 Thread Brad Anderson via Digitalmars-d
On Tuesday, 28 October 2014 at 22:44:32 UTC, Freddy wrote: http://wiki.dlang.org/DIP67 Abstraction over the build-in associative array(one type of range for containers and another type for dynamic generators). Plese criticize. It's kind of a weird proposal to be honest. Ranges primitives are

Re: DIP67: Associative Ranges

2014-10-29 Thread Brad Anderson via Digitalmars-d
On Wednesday, 29 October 2014 at 06:59:09 UTC, bearophile wrote: This is very false. I have tons of cases where you only iterate on values or keys. On the other hand I have suggested several times that I'd like a byPairs (that yields keys-values tuple pairs). It happens to me too but it's

Re: Dynamic array as stack and GC.BlkAttr.APPENDABLE

2014-11-14 Thread Brad Anderson via Digitalmars-d
On Friday, 14 November 2014 at 22:16:42 UTC, IgorStepanov wrote: Recently I encountered the following problem. I need a simple stack of uint. I want to push uints back and pop it. I don't want to copy this stack and I want it to work fast. Nick wrote an article about this very thing.

Re: New std.range submodule

2014-11-14 Thread Brad Anderson via Digitalmars-d
On Friday, 14 November 2014 at 21:52:04 UTC, David Nadlinger wrote: On Friday, 14 November 2014 at 06:10:43 UTC, Rikki Cattermole wrote: std.range.checks For this, std.range.constraints would also be perfectly fine. The point is that the module also contains the array-range adapters that

Re: Phobos - breaking existing code

2014-11-29 Thread Brad Anderson via Digitalmars-d
On Friday, 28 November 2014 at 23:33:54 UTC, Walter Bright wrote: [snip] I know there's been a lot of break my code advocacy lately, but this code was only 2 years old. I fully understand how unfriendly this is to users and how discouraging it can be to have their recently working code

Re: DMD 2.066.1 is missing in the Digitalmars FTP

2014-12-02 Thread Brad Anderson via Digitalmars-d
On Tuesday, 2 December 2014 at 17:10:12 UTC, Jacob Carlborg wrote: DMD 2.066.1 is missing in the Digitalmars FTP. The release candidates are present but the final release is missing. This breaks DVM. Why use the DigitalMars FTP? http://downloads.dlang.org/ is the official place for them.

  1   2   3   4   >