Re: My first email to Walter, ever

2013-07-09 Thread Kagamin
On Sunday, 7 July 2013 at 12:27:02 UTC, Peter Alexander wrote: :-( template allSatisfy(alias F, T...) { static if (T.length == 0) { enum allSatisfy = true; } else static if (T.length == 1) { enum allSatisfy = F!(T[0]); } else { enum

Re: A very basic blog about D

2013-07-09 Thread John Colvin
On Sunday, 7 July 2013 at 15:00:43 UTC, John Colvin wrote: I had some free time so I decided I should start a simple blog about D, implementing some unix utilities. I've (unsurprisingly) started with echo. http://foreach-hour-life.blogspot.co.uk/ It's nothing ground-breaking, but every

Re: NDC Oslo talk: Generic Programming Galore Using D

2013-07-09 Thread Andrei Alexandrescu
On 7/8/13 10:03 AM, Andrei Alexandrescu wrote: On 7/8/13 6:49 AM, Dicebot wrote: On Thursday, 4 July 2013 at 16:47:36 UTC, Andrei Alexandrescu wrote: Videos for my two NDC 2013 talks are now online. Generic Programming Galore using D at http://vimeo.com/68378925 and the HipHop Virtual Machine

Re: Is this D or is it Javascript?

2013-07-09 Thread Kagamin
On Saturday, 6 July 2013 at 00:21:54 UTC, Adam D. Ruppe wrote: // the second () is just because @property is broken writeln(Math.max()(12, 24)); // prints 24 With dynamic typing there's no way to tell if Math.max(12,24) is a method call or field delegate call. Javascript assumes it's member

Re: Is this D or is it Javascript?

2013-07-09 Thread Adam D. Ruppe
On Tuesday, 9 July 2013 at 19:14:30 UTC, Kagamin wrote: With dynamic typing there's no way to tell if Math.max(12,24) is a method call or field delegate call. The way my thing works is Math.max (or anything else) returns a ref var, and the (12,24) does opCall on it, which succeeds if the var

Re: Programming in D book is about 88% translated

2013-07-09 Thread Ali Çehreli
On 06/29/2013 01:08 AM, Johannes Pfau wrote: BTW: The link to wiki4d on this page http://ddili.org/ders/d.en/intro.html could be updated to http://wiki.dlang.org/Editors and / or http://wiki.dlang.org/IDEs Done. Additionally, thanks to Jerome Sniatecki, I made the Ranges chapter

Re: Situation of scope?

2013-07-09 Thread deadalnix
On Tuesday, 9 July 2013 at 00:49:40 UTC, bearophile wrote: What is the situation regarding the implementation of scope in D, Walter? Are there some implementation difficulties that make it hard to implement? It require to define lifetime of basically everything. This is a difficult task to

Re: typeid(double) does not respect NaNs

2013-07-09 Thread deadalnix
On Tuesday, 9 July 2013 at 03:03:34 UTC, H. S. Teoh wrote: More to the point, *if* typeinfo isn't meant to match == for whatever reason, then why is it being used as the standard of comparison for AA keys? I guess we need NaN == NaN to be true for AA keys, no ?

Re: Feature request: Path append operators for strings

2013-07-09 Thread Tommi
On Monday, 8 July 2013 at 21:46:24 UTC, Walter Bright wrote: I'm sure you're self-aware, as I'm sure Siri and Watson are not. But there is no way for you to prove to me that you are self-aware. It could be that you are simply programmed to appear to be self-aware; think of an infinite loop

Re: Feature request: Path append operators for strings

2013-07-09 Thread Tommi
On Tuesday, 9 July 2013 at 06:07:12 UTC, Tommi wrote: Consciousness would be kind of your ability to predict what kind of sensory data would be likely to be produced if you sent a certain set of signals to your muscles. ...and the better you are at predicting those very-near-future sensory

Re: Feature request: Path append operators for strings

2013-07-09 Thread deadalnix
On Monday, 8 July 2013 at 18:37:30 UTC, Walter Bright wrote: On 7/8/2013 6:31 AM, Dicebot wrote: Well, second one is not really a scientific problem, it is a philosophical one. Self-awareness is a very vague term with a lot of space for personal interpretation. I don't even think it is worth

Re: Feature request: Path append operators for strings

2013-07-09 Thread deadalnix
On Monday, 8 July 2013 at 21:46:24 UTC, Walter Bright wrote: Just because we have difficulty defining something is not a reason to dismiss it as irrelevant or non-existent. I'm sure you're self-aware, as I'm sure Siri and Watson are not. It is proven that at least 70% of what we perceive as

Re: Phobos rising!

2013-07-09 Thread deadalnix
On Monday, 8 July 2013 at 19:34:32 UTC, Walter Bright wrote: http://spaceindustrynews.com/mars-curiosity-rover-shoots-video-of-phobos-moon-rising-video/3694/ Awesome ! I love it !

Re: Phobos rising!

2013-07-09 Thread Joseph Rushton Wakeling
On 07/08/2013 09:34 PM, Walter Bright wrote: http://spaceindustrynews.com/mars-curiosity-rover-shoots-video-of-phobos-moon-rising-video/3694/ https://www.youtube.com/watch?v=4Aq_ZvBgIx0#t=31s :-) Seriously, though -- that's a fascinating video. Thanks so much for sharing.

Re: Function literals can't be class members

2013-07-09 Thread JS
On Monday, 8 July 2013 at 22:41:41 UTC, JS wrote: trying to use a lambda inside a sub template gives an error. mixin template a { template b() { enum b = { }(); } mixin(b!()); } gives the error in the subject, removing the nesting or using a function instead of a lamda

Re: Phobos rising!

2013-07-09 Thread Joseph Rushton Wakeling
On 07/09/2013 11:44 AM, Joseph Rushton Wakeling wrote: On 07/08/2013 09:34 PM, Walter Bright wrote: http://spaceindustrynews.com/mars-curiosity-rover-shoots-video-of-phobos-moon-rising-video/3694/ https://www.youtube.com/watch?v=4Aq_ZvBgIx0#t=31s :-) ...

Re: Function literals can't be class members

2013-07-09 Thread Dicebot
On Tuesday, 9 July 2013 at 09:44:17 UTC, JS wrote: Anyone have any ideas? Yes and I will answer once you start asking question in D.learn newsgroup.

Re: Function literals can't be class members

2013-07-09 Thread John Colvin
On Monday, 8 July 2013 at 22:41:41 UTC, JS wrote: trying to use a lambda inside a sub template gives an error. mixin template a { template b() { enum b = { }(); } mixin(b!()); } gives the error in the subject, removing the nesting or using a function instead of a lamda

Re: Feature request: Path append operators for strings

2013-07-09 Thread Dicebot
On Monday, 8 July 2013 at 21:46:24 UTC, Walter Bright wrote: Just because we have difficulty defining something is not a reason to dismiss it as irrelevant or non-existent. Sure, but there is an important difference between dismissing and dismissing as a relevant scientific term to discuss.

Re: Function literals can't be class members

2013-07-09 Thread JS
On Tuesday, 9 July 2013 at 10:10:10 UTC, Dicebot wrote: On Tuesday, 9 July 2013 at 09:44:17 UTC, JS wrote: Anyone have any ideas? Yes and I will answer once you start asking question in D.learn newsgroup. Thanks... I'll just keep posting in here then...

Re: Feature request: Path append operators for strings

2013-07-09 Thread John Colvin
On Tuesday, 9 July 2013 at 10:38:11 UTC, Dicebot wrote: ... nor does it mean that personhood is not a very useful and meaningful construct. Even worse, now you use personhood as a replacement for self-awareness! :) It is a very dangerous mistake to use common words when speaking about

Re: Function literals can't be class members

2013-07-09 Thread JS
On Tuesday, 9 July 2013 at 10:25:26 UTC, John Colvin wrote: On Monday, 8 July 2013 at 22:41:41 UTC, JS wrote: trying to use a lambda inside a sub template gives an error. mixin template a { template b() { enum b = { }(); } mixin(b!()); } gives the error in the subject, removing

Re: Function literals can't be class members

2013-07-09 Thread John Colvin
On Tuesday, 9 July 2013 at 10:45:40 UTC, JS wrote: On Tuesday, 9 July 2013 at 10:10:10 UTC, Dicebot wrote: On Tuesday, 9 July 2013 at 09:44:17 UTC, JS wrote: Anyone have any ideas? Yes and I will answer once you start asking question in D.learn newsgroup. Thanks... I'll just keep posting

Re: Function literals can't be class members

2013-07-09 Thread John Colvin
On Tuesday, 9 July 2013 at 11:03:34 UTC, JS wrote: On Tuesday, 9 July 2013 at 10:25:26 UTC, John Colvin wrote: On Monday, 8 July 2013 at 22:41:41 UTC, JS wrote: trying to use a lambda inside a sub template gives an error. mixin template a { template b() { enum b = { }(); }

Re: Function literals can't be class members

2013-07-09 Thread Dicebot
On Tuesday, 9 July 2013 at 11:06:22 UTC, John Colvin wrote: P.S. Dicebot's responses to your questions have been by-and-large correct and informative. I'm sure he genuinely means he will try to help you if you post in the correct place. I am always ready to help when it makes sense. But there

Re: [phobos] New Linux phobos shared library

2013-07-09 Thread Dicebot
On Tuesday, 9 July 2013 at 04:53:01 UTC, Jordi Sayol wrote: I propose to name the shared phobos library as libphobos2.so.0.nn.0, where nn is the current dmd version. The last zero is just for bug/regression fixes. This is exactly naming scheme I am already using in my Arch Linux PKGBUILD, so

Searching for D using Goolgle

2013-07-09 Thread Mike James
Hmmm. Every time I search for something using the search string dlang, Google asks me did I mean golang. Are Google getting worried about the success of D? -=mike=-

Re: Searching for D using Goolgle

2013-07-09 Thread Dicebot
On Tuesday, 9 July 2013 at 12:42:47 UTC, Mike James wrote: Hmmm. Every time I search for something using the search string dlang, Google asks me did I mean golang. Are Google getting worried about the success of D? -=mike=- I guess that is search personalization in action ;)

Re: typeid(double) does not respect NaNs

2013-07-09 Thread H. S. Teoh
On Tue, Jul 09, 2013 at 08:05:35AM +0200, deadalnix wrote: On Tuesday, 9 July 2013 at 03:03:34 UTC, H. S. Teoh wrote: More to the point, *if* typeinfo isn't meant to match == for whatever reason, then why is it being used as the standard of comparison for AA keys? I guess we need NaN ==

Re: [phobos] New Linux phobos shared library

2013-07-09 Thread H. S. Teoh
On Tue, Jul 09, 2013 at 06:52:44AM +0200, Jordi Sayol wrote: From dmd v2.063, release zip file includes Linux phobos shared libraries. As shared libraries are needed at runtime too, we should allow to install multiple versions of phobos shared libs. at same time. If not, every program

pushd / popd for std.process/std.file

2013-07-09 Thread David
Having pushd/popd in std.process would make a lot of code look better, often you have to change the workding directory only for a few commands, with pushd/popd you don't have to temporarily store the old one explicitly. pushd/popd: https://en.wikipedia.org/wiki/Pushd_and_popd What do you think?

Re: [phobos] New Linux phobos shared library

2013-07-09 Thread Jordi Sayol
On 09/07/13 13:37, Dicebot wrote: On Tuesday, 9 July 2013 at 04:53:01 UTC, Jordi Sayol wrote: I propose to name the shared phobos library as libphobos2.so.0.nn.0, where nn is the current dmd version. The last zero is just for bug/regression fixes. This is exactly naming scheme I am

Re: Function literals can't be class members

2013-07-09 Thread Joseph Rushton Wakeling
On 07/09/2013 12:45 PM, JS wrote: Thanks... I'll just keep posting in here then... You know, most people, when they get informed there's a dedicated newsgroup/mailing list for language questions, are polite enough to say thank you for the information, and take their question over to the

Re: [phobos] New Linux phobos shared library

2013-07-09 Thread Dicebot
On Tuesday, 9 July 2013 at 14:31:51 UTC, Jordi Sayol wrote: Programs dynamically links against SONAME, so it's more important than the real library name. What SONAME naming scheme you used in Arch Linux PKGBUILD? To my shame, default one is (.0.2) is used, completely forgot about it. Will

Re: pushd / popd for std.process/std.file

2013-07-09 Thread Jakob Ovrum
On Tuesday, 9 July 2013 at 14:21:48 UTC, David wrote: Having pushd/popd in std.process would make a lot of code look better, often you have to change the workding directory only for a few commands, with pushd/popd you don't have to temporarily store the old one explicitly. pushd/popd:

Re: pushd / popd for std.process/std.file

2013-07-09 Thread Jakob Ovrum
On Tuesday, 9 July 2013 at 15:02:59 UTC, Jakob Ovrum wrote: On Tuesday, 9 July 2013 at 14:21:48 UTC, David wrote: Having pushd/popd in std.process would make a lot of code look better, often you have to change the workding directory only for a few commands, with pushd/popd you don't have to

Re: [phobos] New Linux phobos shared library

2013-07-09 Thread Jordi Sayol
On 09/07/13 15:49, H. S. Teoh wrote: On Tue, Jul 09, 2013 at 06:52:44AM +0200, Jordi Sayol wrote: From dmd v2.063, release zip file includes Linux phobos shared libraries. As shared libraries are needed at runtime too, we should allow to install multiple versions of phobos shared libs. at

Re: pushd / popd for std.process/std.file

2013-07-09 Thread Artur Skawina
On 07/09/13 17:04, Jakob Ovrum wrote: On Tuesday, 9 July 2013 at 15:02:59 UTC, Jakob Ovrum wrote: On Tuesday, 9 July 2013 at 14:21:48 UTC, David wrote: Having pushd/popd in std.process would make a lot of code look better, often you have to change the workding directory only for a few

Re: typeid(double) does not respect NaNs

2013-07-09 Thread Maxim Fomin
On Tuesday, 9 July 2013 at 13:46:48 UTC, H. S. Teoh wrote: On Tue, Jul 09, 2013 at 08:05:35AM +0200, deadalnix wrote: On Tuesday, 9 July 2013 at 03:03:34 UTC, H. S. Teoh wrote: More to the point, *if* typeinfo isn't meant to match == for whatever reason, then why is it being used as the

Re: Function literals can't be class members

2013-07-09 Thread Maxim Fomin
On Tuesday, 9 July 2013 at 10:45:40 UTC, JS wrote: On Tuesday, 9 July 2013 at 10:10:10 UTC, Dicebot wrote: On Tuesday, 9 July 2013 at 09:44:17 UTC, JS wrote: Anyone have any ideas? Yes and I will answer once you start asking question in D.learn newsgroup. Thanks... I'll just keep posting

Re: typeid(double) does not respect NaNs

2013-07-09 Thread Jonathan M Davis
On Tuesday, July 09, 2013 18:04:29 Maxim Fomin wrote: On Tuesday, 9 July 2013 at 13:46:48 UTC, H. S. Teoh wrote: On Tue, Jul 09, 2013 at 08:05:35AM +0200, deadalnix wrote: On Tuesday, 9 July 2013 at 03:03:34 UTC, H. S. Teoh wrote: More to the point, *if* typeinfo isn't meant to match == for

Re: typeid(double) does not respect NaNs

2013-07-09 Thread bearophile
Jonathan M Davis: That being the case, I'd argue in favor of language consistency Here I'd like D AAs act as Python dicts. This means breaking consistency. Bye, bearophile

Re: Searching for D using Goolgle

2013-07-09 Thread w0rp
On Tuesday, 9 July 2013 at 12:44:40 UTC, Dicebot wrote: On Tuesday, 9 July 2013 at 12:42:47 UTC, Mike James wrote: Hmmm. Every time I search for something using the search string dlang, Google asks me did I mean golang. Are Google getting worried about the success of D? -=mike=- I guess

Re: Searching for D using Goolgle

2013-07-09 Thread H. S. Teoh
On Tue, Jul 09, 2013 at 07:28:48PM +0200, w0rp wrote: On Tuesday, 9 July 2013 at 12:44:40 UTC, Dicebot wrote: On Tuesday, 9 July 2013 at 12:42:47 UTC, Mike James wrote: Hmmm. Every time I search for something using the search string dlang, Google asks me did I mean golang. Are Google getting

Re: Proposal: DPM, the D Package Manager

2013-07-09 Thread w0rp
On Monday, 8 July 2013 at 20:51:09 UTC, Dicebot wrote: On Monday, 8 July 2013 at 20:46:21 UTC, Kevin Kane wrote: I don't know if this thread is dead but... Have you considered dub? It seems like current main bet as D package manager http://registry.vibed.org/ With more adoption, dub can

Re: A thread without GC

2013-07-09 Thread Sean Kelly
On Jul 8, 2013, at 8:08 AM, Adam D. Ruppe destructiona...@gmail.com wrote: On Monday, 8 July 2013 at 14:53:25 UTC, John Colvin wrote: I wonder if one could somehow register a pre-existing thread with std.concurrency, being careful not to introduce any reference that lets in the garbage

Re: A thread without GC

2013-07-09 Thread Sean Kelly
On Jul 8, 2013, at 7:04 AM, John Colvin john.loughran.col...@gmail.com wrote: I would post this in d.learn, but I suspect there isn't an easy answer so it would be good to have some serious discussion here. Is there any way to create a thread that is totally free from the garbage

Re: Deimos Request: Add flac

2013-07-09 Thread Walter Bright
On 7/8/2013 10:51 PM, Jonathan M Davis wrote: On Monday, July 08, 2013 22:43:41 Walter Bright wrote: On 7/8/2013 9:28 PM, Jonathan M Davis wrote: Walter, would you please create a 1.2.1 branch? I can't create a pull request with the 1.3.0 stuff until there's branch for 1.2.1, or 1.2.1 won't be

Re: Phobos rising!

2013-07-09 Thread Walter Bright
On 7/9/2013 2:46 AM, Joseph Rushton Wakeling wrote: On 07/09/2013 11:44 AM, Joseph Rushton Wakeling wrote: On 07/08/2013 09:34 PM, Walter Bright wrote: http://spaceindustrynews.com/mars-curiosity-rover-shoots-video-of-phobos-moon-rising-video/3694/

Re: atomic Weapons: The C++ Memory Model and Modern Hardware

2013-07-09 Thread Sean Kelly
On Jul 8, 2013, at 12:04 PM, Flamaros flamaros.xav...@gmail.com wrote: http://herbsutter.com/2013/02/11/atomic-weapons-the-c-memory-model-and-modern-hardware/ Is D and DMD aware of those kind of issues with atomic? I think more thought needs to be given to how the compiler recognizes and

[OT] Why mobile web apps are slow

2013-07-09 Thread Paulo Pinto
A bit off-topic, but well worth reading, http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ -- Paulo

Re: atomic Weapons: The C++ Memory Model and Modern Hardware

2013-07-09 Thread Sean Kelly
On Jul 8, 2013, at 5:05 PM, Marco Leise marco.le...@gmx.de wrote: Fortunately on x86 architectures at least, atomic operations are pretty sane and fast. The x86 memory model is sufficiently strict that, by and large, simple concurrent interactions actually work without any memory barriers at

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread Sean Kelly
On Jul 9, 2013, at 11:12 AM, Paulo Pinto pj...@progtools.org wrote: A bit off-topic, but well worth reading, http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ Thanks for the link. In my experience, mobile networking is slow in general. When I run Speedtest on my phone vs. a

Re: Poll: how long have you been into D

2013-07-09 Thread Jesse Phillips
On Monday, 8 July 2013 at 19:22:59 UTC, H. S. Teoh wrote: Y'know what would be an awesome feature? A configurable volume level scheduler, like those old turn-on-the-light-at-night power dials, that automatically shuts off the volume at night, and turns it back on in the morning. Better yet,

Re: Deimos Request: Add flac

2013-07-09 Thread Joseph Rushton Wakeling
On 07/09/2013 04:06 AM, Jonathan M Davis wrote: Walter (or someone else with the appropriate permissions), would you please add a repo to deimos for flac? It's unlikely that I'll ever personally use this code (though never say never:-), but as an enthusiastic audiophile, thank you very much

Re: Phobos rising!

2013-07-09 Thread Joseph Rushton Wakeling
On 07/09/2013 07:56 PM, Walter Bright wrote: Debbie Gibson still trying to revive her career? :-) I think the octopus was the real rising star here ... :-P

Linear algebra for Win64?

2013-07-09 Thread Kevin McTaggart
Does anyone know of a good D linear algebra library for Win64? I tried scid a year ago and liked it on Win32, but have been unable to get it to link on Win64. When trying to run scid on Win64, I've been using prebuilt LAPACK 3.4.1 libraries from

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread QAston
On Tuesday, 9 July 2013 at 18:12:24 UTC, Paulo Pinto wrote: A bit off-topic, but well worth reading, http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ -- Paulo I think that the garbage collection part of the atricle is very relevant to the usage of D on mobile.

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread Joakim
On Tuesday, 9 July 2013 at 19:27:22 UTC, QAston wrote: On Tuesday, 9 July 2013 at 18:12:24 UTC, Paulo Pinto wrote: A bit off-topic, but well worth reading, http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ -- Paulo I think that the garbage collection part of the atricle is very

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread bearophile
On Tuesday, 9 July 2013 at 18:12:24 UTC, Paulo Pinto wrote: A bit off-topic, but well worth reading, http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ An interesting article, a strong critique of many kinds of garbage collection. Having good enough built-in means to avoid

Re: atomic Weapons: The C++ Memory Model and Modern Hardware

2013-07-09 Thread Robert Schadek
On 07/08/2013 09:04 PM, Flamaros wrote: http://herbsutter.com/2013/02/11/atomic-weapons-the-c-memory-model-and-modern-hardware/ Is D and DMD aware of those kind of issues with atomic? OT: How does he change slides? I can't see a clicker nor a sign for somebody off camera?? Anyway, awesome

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread Brian Rogoff
On Tuesday, 9 July 2013 at 20:02:33 UTC, bearophile wrote: On Tuesday, 9 July 2013 at 18:12:24 UTC, Paulo Pinto wrote: A bit off-topic, but well worth reading, http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ An interesting article, a strong critique of many kinds of garbage

Re: Deimos Request: Add flac

2013-07-09 Thread Jonathan M Davis
On Tuesday, July 09, 2013 20:27:57 Joseph Rushton Wakeling wrote: On 07/09/2013 04:06 AM, Jonathan M Davis wrote: Walter (or someone else with the appropriate permissions), would you please add a repo to deimos for flac? It's unlikely that I'll ever personally use this code (though never

Re: Deimos Request: Add flac

2013-07-09 Thread Jonathan M Davis
On Tuesday, July 09, 2013 10:52:12 Walter Bright wrote: You do have push/pull permissions to all Deimos repositories. I think that means you need to submit your changes as a pull request, not do it directly. Okay, but AFAIK, you have to have commit permissions to the repo in order to create

Re: typeid(double) does not respect NaNs

2013-07-09 Thread Jonathan M Davis
On Tuesday, July 09, 2013 19:19:18 bearophile wrote: Jonathan M Davis: That being the case, I'd argue in favor of language consistency Here I'd like D AAs act as Python dicts. This means breaking consistency. I'm afraid that you'll have to be more specific in terms of what you mean. But

Re: typeid(double) does not respect NaNs

2013-07-09 Thread bearophile
Jonathan M Davis: I'm afraid that you'll have to be more specific in terms of what you mean. Please ignore what I have said... As such, I see no reason why it should matter that NaN is effectively unusable as an AA key. OK. Bye, bearophile

Re: A thread-safe weak reference implementation

2013-07-09 Thread Robert
if (GC.addrOf(cast(void*)obj)) return obj; Smart :-) You are waiting for the collection to complete, if we are one of the threads started before destructor calls happen. Brilliant. Is it ok if I shamelessly copy parts of your implementation for the new std.signals? I

Re: Deimos Request: Add flac

2013-07-09 Thread Walter Bright
On 7/9/2013 2:02 PM, Jonathan M Davis wrote: Okay, but AFAIK, you have to have commit permissions to the repo in order to create new branches. I don't know of any way to create a branch via a pull request. And I specifically need to create a branch for version 1.2.1 of flac as opposed to simply

Re: typeid(double) does not respect NaNs

2013-07-09 Thread monarch_dodra
On Tuesday, 9 July 2013 at 21:12:15 UTC, Jonathan M Davis wrote: On Tuesday, July 09, 2013 19:19:18 bearophile wrote: Jonathan M Davis: That being the case, I'd argue in favor of language consistency Here I'd like D AAs act as Python dicts. This means breaking consistency. I'm afraid

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread Nick Sabalausky
On Tue, 09 Jul 2013 20:12:25 +0200 Paulo Pinto pj...@progtools.org wrote: A bit off-topic, but well worth reading, http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ -- Paulo Very good article. (Actually, a nice site design, too.)

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread Walter Bright
On 7/9/2013 11:12 AM, Paulo Pinto wrote: A bit off-topic, but well worth reading, http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ It isn't off-topic at all. It's very relevant to D. I also agree with what he says about GC.

Re: Current version of D.

2013-07-09 Thread Rob T
On Sunday, 7 July 2013 at 07:36:41 UTC, Russel Winder wrote: On Sat, 2013-07-06 at 15:24 +0200, mike james wrote: The current release is 2.063.2, but it's the first time that we've actually released point releases like that, so there are likely to be places saying 2.063 instead of

Re: Current version of D.

2013-07-09 Thread Rob T
On Tuesday, 9 July 2013 at 22:34:18 UTC, Rob T wrote: Agreed, however we should also have a pre-release package for testing that is clearly marked as a pre-release, it can go on a separate web page to avoid any possibility of confusion. The current release is showing as both 2.63.0 and

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread bearophile
Walter Bright: It isn't off-topic at all. It's very relevant to D. I also agree with what he says about GC. There's a long way from recognizing those problems, to having good enough solutions in D. Some possible attack strategies for D are: - A less allocating Phobos to produce a bit less

Re: Current version of D.

2013-07-09 Thread Tyro[17]
On 7/9/13 6:36 PM, Rob T wrote: On Tuesday, 9 July 2013 at 22:34:18 UTC, Rob T wrote: Agreed, however we should also have a pre-release package for testing that is clearly marked as a pre-release, it can go on a separate web page to avoid any possibility of confusion. The current release is

access CTFE variables at compile time.

2013-07-09 Thread JS
It seems possible that we can print CTFE variables at compile time by using string mixes as the code below demonstrates. The problem is that we can not pass a variable to a template to create a print routine in the first place. e.g., we can't do mixin a!(s) if s is a string since s can't be

Re: Current version of D.

2013-07-09 Thread Rob T
On Tuesday, 9 July 2013 at 22:46:36 UTC, Tyro[17] wrote: On 7/9/13 6:36 PM, Rob T wrote: On Tuesday, 9 July 2013 at 22:34:18 UTC, Rob T wrote: Agreed, however we should also have a pre-release package for testing that is clearly marked as a pre-release, it can go on a separate web page to

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread Adam D. Ruppe
On Tuesday, 9 July 2013 at 22:40:31 UTC, bearophile wrote: - A less allocating Phobos to produce a bit less garbage; Yes, and options to pass output ranges to more functions too, instead of always returning gc allocated things. - Perhaps an annotation to disallow heap allocations in a

Is the compiler supposed to accept this?

2013-07-09 Thread Brian Schott
While finishing up work on my parser and grammar specification I found this in container.d: return equal!(function(Elem a, Elem b) = !_less(a,b) !_less(b,a)) (thisRange, thatRange); It seems to be some strange hybrid of the function literal syntax and the lambda

Memory management design

2013-07-09 Thread BLM768
Given all of this talk about memory management, it would seem that it's time for people to start putting forward some ideas for improved memory management designs. I've got an idea or two of my own, but I'd like to discuss my ideas before I draft a DIP so I can try to get everything fleshed

Re: Is the compiler supposed to accept this?

2013-07-09 Thread Timon Gehr
On 07/10/2013 01:24 AM, Brian Schott wrote: While finishing up work on my parser and grammar specification I found this in container.d: return equal!(function(Elem a, Elem b) = !_less(a,b) !_less(b,a)) (thisRange, thatRange); It seems to be some strange hybrid of the

Re: [OT] Why mobile web apps are slow

2013-07-09 Thread H. S. Teoh
On Wed, Jul 10, 2013 at 01:01:01AM +0200, Adam D. Ruppe wrote: On Tuesday, 9 July 2013 at 22:40:31 UTC, bearophile wrote: - A less allocating Phobos to produce a bit less garbage; Yes, and options to pass output ranges to more functions too, instead of always returning gc allocated things.

Re: Deimos Request: Add flac

2013-07-09 Thread Jonathan M Davis
On Tuesday, July 09, 2013 14:40:43 Walter Bright wrote: Ok, I created a 1.2.1 branch. Thanks! - Jonathan M Davis

Re: access CTFE variables at compile time.

2013-07-09 Thread Meta
On Tuesday, 9 July 2013 at 22:49:38 UTC, JS wrote: It seems possible that we can print CTFE variables at compile time by using string mixes as the code below demonstrates. The problem is that we can not pass a variable to a template to create a print routine in the first place. e.g., we can't

Re: access CTFE variables at compile time.

2013-07-09 Thread bearophile
Meta: I think there's been mention a couple times of a ctfeWrite function that can print values at compile-time, but so far nobody's implemented it. That's not true. This is the ER: http://d.puremagic.com/issues/show_bug.cgi?id=3952 And the patch:

Re: Linear algebra for Win64?

2013-07-09 Thread dnewbie
On Tuesday, 9 July 2013 at 19:02:09 UTC, Kevin McTaggart wrote: Does anyone know of a good D linear algebra library for Win64? I tried scid a year ago and liked it on Win32, but have been unable to get it to link on Win64. When trying to run scid on Win64, I've been using prebuilt LAPACK

Re: typeid(double) does not respect NaNs

2013-07-09 Thread deadalnix
On Tuesday, 9 July 2013 at 17:04:47 UTC, Jonathan M Davis wrote: On Tuesday, July 09, 2013 18:04:29 Maxim Fomin wrote: On Tuesday, 9 July 2013 at 13:46:48 UTC, H. S. Teoh wrote: On Tue, Jul 09, 2013 at 08:05:35AM +0200, deadalnix wrote: On Tuesday, 9 July 2013 at 03:03:34 UTC, H. S. Teoh

Re: Current version of D.

2013-07-09 Thread Kapps
On Tuesday, 9 July 2013 at 22:53:08 UTC, Rob T wrote: I did a full removal, and install of latest version as of today downloaded from here: http://dlang.org/download.html dmd_2.063-0_amd64.deb The version on download page is showing 2.063-0, and so does the deb file name, and also the

Re: access CTFE variables at compile time.

2013-07-09 Thread JS
On Wednesday, 10 July 2013 at 01:10:37 UTC, Meta wrote: On Tuesday, 9 July 2013 at 22:49:38 UTC, JS wrote: It seems possible that we can print CTFE variables at compile time by using string mixes as the code below demonstrates. The problem is that we can not pass a variable to a template to

Re: access CTFE variables at compile time.

2013-07-09 Thread Jonathan M Davis
On Wednesday, July 10, 2013 06:24:02 JS wrote: On Wednesday, 10 July 2013 at 01:10:37 UTC, Meta wrote: On Tuesday, 9 July 2013 at 22:49:38 UTC, JS wrote: It seems possible that we can print CTFE variables at compile time by using string mixes as the code below demonstrates. The problem

Re: A thread-safe weak reference implementation

2013-07-09 Thread Kagamin
What race condition do you have in the constructor? Declare _object field shared and cast it less.

Re: Current version of D.

2013-07-09 Thread H. S. Teoh
On Wed, Jul 10, 2013 at 06:15:08AM +0200, Kapps wrote: [...] The download page has the wrong link, it doesn't seem to have been updated for 2.063.2. Can just manually add a .2 at the end, such as http://downloads.dlang.org/releases/2013/dmd.2.063.2.zip This sounds pretty serious. Can somebody

Re: GitHub behind proxy servers among other questions

2013-07-09 Thread monarch_dodra
On Monday, 8 July 2013 at 19:57:52 UTC, JohnnyK wrote: On Monday, 8 July 2013 at 19:37:08 UTC, JohnnyK wrote: Another thing about GitHub's Download Zip button and this process as a whole. While the Download Zip button does allow you to download the master folders with recursive directories I

Re: GitHub behind proxy servers among other questions

2013-07-09 Thread monarch_dodra
On Monday, 8 July 2013 at 19:20:46 UTC, John Colvin wrote: I don't see how it is problematic? The firewall doesn't allow a particular type of connection, so you cache the result somewhere else and then access it via something that is allowed. It's the same as downloading the zip file from

Needing help with basic HTTP requests..

2013-07-09 Thread AlexMcP
Hi guys, I've only been trying to learn D for a short while, and compared to the other more popular programming languages, I've been able to find very little helpful and updated documentation or tutorials on it. I basically need help getting data from a website, just the HTML of a webpage,

lambdas and function literals in classes

2013-07-09 Thread John Colvin
JS asked about this in the main group, but here is more appropriate and I'm quite interested myself. Can someone explain the rationale behind this: class A { auto a = (){}; //Lambda not allowed auto b = function(){}; //Function allowed auto c = delegate(){};

Re: lambdas and function literals in classes

2013-07-09 Thread Dicebot
On Tuesday, 9 July 2013 at 10:50:02 UTC, John Colvin wrote: JS asked about this in the main group, but here is more appropriate and I'm quite interested myself. Can someone explain the rationale behind this: class A { auto a = (){}; //Lambda not allowed auto b =

Re: lambdas and function literals in classes

2013-07-09 Thread bearophile
Dicebot: So this has something to do with _initialization_ of class members with delegates/lambdas, not their very existence. So is it worth adding this diagnostic bug report in Bugzilla? class Foo { void delegate() dg1; void delegate() dg2 = delegate(){}; this() {

Re: Needing help with basic HTTP requests..

2013-07-09 Thread Adam D. Ruppe
On Tuesday, 9 July 2013 at 09:03:32 UTC, AlexMcP wrote: writeln(Connection Error , Socket.ERROR); First tip: Socket.ERROR is a constant, so printing it doesn't help much (as you probably noticed). More helpful is the function lastSocketError(), which returns a string

Re: Needing help with basic HTTP requests..

2013-07-09 Thread Adam D. Ruppe
BTW I also wrote a more complete lower level implementation too: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/http.d My code is kinda ugly, but might be useful to refer to too. http has some other features you'll need to think about, like

  1   2   >