Re: Is this D or is it Javascript?

2013-07-07 Thread Kagamin
Seems like vibe.d runs a blog http://vibed.org/blog/ doesn't it suit you?

Re: My first email to Walter, ever

2013-07-07 Thread Andrej Mitrovic
On 7/7/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: While doing some unrelated research I stumbled upon my very first email to Walter, dated April 26, 2004. That's a cool teaser, but how did the discussion continue? :)

Re: My first email to Walter, ever

2013-07-07 Thread Marco Leise
Am Sat, 06 Jul 2013 20:02:16 -0700 schrieb Andrei Alexandrescu seewebsiteforem...@erdani.org: * The venerable typeof check * For a class, enumerate all of its members, and figure out their attributes (protection level, static or not, type...) check * For a module/namespace, enumerate

Re: My first email to Walter, ever

2013-07-07 Thread Peter Alexander
On Sunday, 7 July 2013 at 03:03:03 UTC, Andrei Alexandrescu wrote: Terrible. If you have conditionals, iteration, functions, and objects in D's straight programming support, you should have conditionals, iteration, functions, and objects in D's metalanguage. :-( template allSatisfy(alias F,

Re: My first email to Walter, ever

2013-07-07 Thread Xinok
On Sunday, 7 July 2013 at 03:03:03 UTC, Andrei Alexandrescu wrote: On 4/26/04 6:54 PM, Andrei Alexandrescu wrote: I was bitching to myself and then together with a friend (e-meet [...]) about how hard it is to do metaprogramming in C++. He mentioned D is much better at it, and we browsed the

Re: My first email to Walter, ever

2013-07-07 Thread Timon Gehr
On 07/07/2013 02:27 PM, Peter Alexander wrote: ... We're almost there with CTFE, but CTFE can only run functions that could run at runtime. In a crazy world where types were first class objects, stuff like this would be feasible. Or perhaps we just need a compile-time metalanguage that allows

Re: My first email to Walter, ever

2013-07-07 Thread Artur Skawina
On 07/07/13 14:27, 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 allSatisfy =

Re: My first email to Walter, ever

2013-07-07 Thread Andrej Mitrovic
On 7/7/13, Peter Alexander peter.alexander...@gmail.com wrote: Still looks like half-assed functional programming to me. Yep I agree. Where's the iteration? Why can't I write this? template allSatisfy(alias F, T...) { foreach(t; T) if (!F!(t)) return false;

Re: My first email to Walter, ever

2013-07-07 Thread Peter Alexander
On Sunday, 7 July 2013 at 13:20:14 UTC, Timon Gehr wrote: On 07/07/2013 02:27 PM, Peter Alexander wrote: ... We're almost there with CTFE, but CTFE can only run functions that could run at runtime. In a crazy world where types were first class objects, stuff like this would be feasible. Or

A very basic blog about D

2013-07-07 Thread John Colvin
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 little helps :)

Re: A very basic blog about D

2013-07-07 Thread Andrei Alexandrescu
On 7/7/13 8:00 AM, 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 little helps :) Nice idea!

Re: A very basic blog about D

2013-07-07 Thread Andrei Alexandrescu
On 7/7/13 8:55 AM, Andrei Alexandrescu wrote: Here's a conformant implementation for reference: http://www.scs.stanford.edu/histar/src/pkg/echo/echo.c Hmm, that's actually not so good, it doesn't ensure that I/O was successful. Anyhow, here's a possibility: import std.stdout; void

Re: A very basic blog about D

2013-07-07 Thread John Colvin
On Sunday, 7 July 2013 at 15:55:31 UTC, Andrei Alexandrescu wrote: On 7/7/13 8:00 AM, 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/

Re: A very basic blog about D

2013-07-07 Thread John Colvin
On Sunday, 7 July 2013 at 16:06:43 UTC, Andrei Alexandrescu wrote: On 7/7/13 8:55 AM, Andrei Alexandrescu wrote: Here's a conformant implementation for reference: http://www.scs.stanford.edu/histar/src/pkg/echo/echo.c Hmm, that's actually not so good, it doesn't ensure that I/O was

Re: A very basic blog about D

2013-07-07 Thread Andrei Alexandrescu
On 7/7/13 10:08 AM, John Colvin wrote: On Sunday, 7 July 2013 at 16:06:43 UTC, Andrei Alexandrescu wrote: On 7/7/13 8:55 AM, Andrei Alexandrescu wrote: Here's a conformant implementation for reference: http://www.scs.stanford.edu/histar/src/pkg/echo/echo.c Hmm, that's actually not so good,

Re: My first email to Walter, ever

2013-07-07 Thread Nick Sabalausky
On Sun, 07 Jul 2013 15:23:03 +0200 Artur Skawina art.08...@gmail.com wrote: template allSatisfy(alias F, T...) { enum allSatisfy = { foreach (E; T) if (!F!E) return false; return true; }(); } // And no, it isn't perfect. But not /that/ much is

Re: A very basic blog about D

2013-07-07 Thread Leandro Lucarella
Andrei Alexandrescu, el 7 de July a las 09:06 me escribiste: On 7/7/13 8:55 AM, Andrei Alexandrescu wrote: Here's a conformant implementation for reference: http://www.scs.stanford.edu/histar/src/pkg/echo/echo.c Hmm, that's actually not so good, it doesn't ensure that I/O was successful.

Re: My first email to Walter, ever

2013-07-07 Thread QAston
On Sunday, 7 July 2013 at 12:27:02 UTC, Peter Alexander wrote: On Sunday, 7 July 2013 at 03:03:03 UTC, Andrei Alexandrescu wrote: Terrible. If you have conditionals, iteration, functions, and objects in D's straight programming support, you should have conditionals, iteration, functions, and

Re: A very basic blog about D

2013-07-07 Thread John Colvin
On Sunday, 7 July 2013 at 20:08:19 UTC, Leandro Lucarella wrote: Andrei Alexandrescu, el 7 de July a las 09:06 me escribiste: On 7/7/13 8:55 AM, Andrei Alexandrescu wrote: Here's a conformant implementation for reference: http://www.scs.stanford.edu/histar/src/pkg/echo/echo.c Hmm, that's

Re: My first email to Walter, ever

2013-07-07 Thread Walter Bright
On 7/7/2013 5:09 AM, Andrej Mitrovic wrote: On 7/7/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: While doing some unrelated research I stumbled upon my very first email to Walter, dated April 26, 2004. That's a cool teaser, but how did the discussion continue? :) Generally

GDC D2 port status

2013-07-07 Thread Iain Buclaw
Not sure this is common knowledge, as am still getting questions / propositions off people for this. Through collaboration of the gcc maintainers at Debian/Ubuntu, gdc has been merged in with the gcc source package, and is available for all architectures supported by Debian (albeit, with the

Re: GDC D2 port status

2013-07-07 Thread F i L
Awesome! Would be great to see on the official Arch repos! :)

Re: My first email to Walter, ever

2013-07-07 Thread deadalnix
On Sunday, 7 July 2013 at 03:03:03 UTC, Andrei Alexandrescu wrote: * And if you really want to go meta, define metacode that can take an AST node as a parameter and can visit the AST and figure out what each node is. That would allow things such as loop fusion and other advanced stuff. But

Re: Fun with templates

2013-07-07 Thread TommiT
On Saturday, 6 July 2013 at 23:11:26 UTC, Manu wrote: [..] I feel like it would be a much cleaner solution than any of the others presented in this thread... I think Artur's solution is the cleanest one because it changes the default behaviour to a more sensible one: it is useful to keep the

Re: Feature request: Path append operators for strings

2013-07-07 Thread TommiT
On Saturday, 6 July 2013 at 22:25:59 UTC, Walter Bright wrote: On 7/5/2013 3:48 PM, H. S. Teoh wrote: For example, consider the sentence he's such an office Romeo!. It's relatively easy to parse -- no convoluted nested subordinate clauses or anything tricky like that. But it's extremely

Re: Fun with templates

2013-07-07 Thread Manu
On 7 July 2013 16:02, TommiT tommitiss...@hotmail.com wrote: On Saturday, 6 July 2013 at 23:11:26 UTC, Manu wrote: [..] I feel like it would be a much cleaner solution than any of the others presented in this thread... I think Artur's solution is the cleanest one because it changes the

Re: Poll: how long have you been into D

2013-07-07 Thread Nick Sabalausky
On Sat, 6 Jul 2013 14:08:20 -0700 H. S. Teoh hst...@quickfur.ath.cx wrote: I resisted upgrading to a smartphone for many years (people used to laugh at me for carrying around such a prehistoric antique -- to a point I took pride in showing it off to the kids), until the battery life started

Re: Unhelpful error messages

2013-07-07 Thread Maxim Fomin
http://d.puremagic.com/issues/

Re: Current version of D.

2013-07-07 Thread Russel Winder
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 2.063.2. Maybe it's time to make the odd-numbered releases the

Re: Poll: how long have you been into D

2013-07-07 Thread Kagamin
On Saturday, 6 July 2013 at 21:09:59 UTC, H. S. Teoh wrote: but I found that I *still* have to recharge once a day 'cos of the battery drain from all those advanced features that were never there in the old phone. Sigh... I heard, wifi consumes the lion share of battery charge, try to

Re Typing [ was Re: Poll: how long have you been into D ]

2013-07-07 Thread Russel Winder
On Sat, 2013-07-06 at 08:13 -0700, H. S. Teoh wrote: […] Y'know, I've always found correct-as-you-type features extremely annoying. I encountered it first in MS Word, and it annoyed me so much I crawled back into my Vim cave. :-P When I upgraded to a smartphone, I decided to give it an honest

Re: Smartphone properties [was Poll: how long have you been into D]

2013-07-07 Thread Russel Winder
On Sun, 2013-07-07 at 09:38 +0200, Kagamin wrote: […] I heard, wifi consumes the lion share of battery charge, try to disable it. WiFi can be a big battery drain, but so is the screen, and (perhaps most importantly) the mobile aerial. The second of these is perhaps obvious, the first and third

Re: Feature request: Path append operators for strings

2013-07-07 Thread Walter Bright
On 7/6/2013 11:11 PM, TommiT wrote: I can see machine translation that is based on statistical correlation with a sufficiently large corpus of human translations, but I don't see much hope for actual understanding of non-literal speech in the foreseeable future, and I'm actually rather glad of

Re: Feature request: Path append operators for strings

2013-07-07 Thread Andrei Alexandrescu
On 7/7/13 1:26 AM, Walter Bright wrote: On 7/6/2013 11:11 PM, TommiT wrote: I can see machine translation that is based on statistical correlation with a sufficiently large corpus of human translations, but I don't see much hope for actual understanding of non-literal speech in the foreseeable

Re: Fun with templates

2013-07-07 Thread Artur Skawina
On 07/07/13 08:22, Manu wrote: On 7 July 2013 16:02, TommiT tommitiss...@hotmail.com mailto:tommitiss...@hotmail.com wrote: On Saturday, 6 July 2013 at 23:11:26 UTC, Manu wrote: [..] I feel like it would be a much cleaner solution than any of the others presented in

Re: Fun with templates

2013-07-07 Thread TommiT
On Sunday, 7 July 2013 at 06:22:17 UTC, Manu wrote: On 7 July 2013 16:02, TommiT tommitiss...@hotmail.com wrote: I think Artur's solution is the cleanest one [..] Maybe so, but I just have my suspicions that it will never fly, and I think a solution here is actually pretty important. You

Re: Feature request: Path append operators for strings

2013-07-07 Thread John Colvin
On Sunday, 7 July 2013 at 08:26:03 UTC, Walter Bright wrote: On 7/6/2013 11:11 PM, TommiT wrote: I can see machine translation that is based on statistical correlation with a sufficiently large corpus of human translations, but I don't see much hope for actual understanding of non-literal

Re: Feature request: Path append operators for strings

2013-07-07 Thread Walter Bright
On 7/7/2013 2:16 AM, John Colvin wrote: On Sunday, 7 July 2013 at 08:26:03 UTC, Walter Bright wrote: On 7/6/2013 11:11 PM, TommiT wrote: I can see machine translation that is based on statistical correlation with a sufficiently large corpus of human translations, but I don't see much hope for

Re: Feature request: Path append operators for strings

2013-07-07 Thread Walter Bright
On 7/7/2013 1:30 AM, Andrei Alexandrescu wrote: On 7/7/13 1:26 AM, Walter Bright wrote: On 7/6/2013 11:11 PM, TommiT wrote: I can see machine translation that is based on statistical correlation with a sufficiently large corpus of human translations, but I don't see much hope for actual

Re: Fun with templates

2013-07-07 Thread Marco Leise
Am Sat, 6 Jul 2013 20:24:41 +1000 schrieb Manu turkey...@gmail.com: On 6 July 2013 18:23, Namespace rswhi...@googlemail.com wrote: That doesn't do what I want at all. The signature is still f(T) not f(Unqual!T). For non-const, const and immutable inout would do it. void

Emacs D Mode and __vector

2013-07-07 Thread Russel Winder
It has been mooted that we actually formally release 2.0.6 of the Emacs D Mode. It has also been mooted that __vector is now an official part of D and should be highlighted accordingly. Is __vector part of D? If so what type of thing is it? Thanks. -- Russel.

Re: Fun with templates

2013-07-07 Thread Marco Leise
Am Sun, 7 Jul 2013 00:06:26 +1000 schrieb Manu turkey...@gmail.com: On 6 July 2013 22:27, Namespace rswhi...@googlemail.com wrote: The way that makes the most sense to me is: void f(T)(Unqual!T t) {} Given an immutable(T) for instance that I want to call with, it would instantiate

Re: Fun with templates

2013-07-07 Thread TommiT
On Sunday, 7 July 2013 at 11:07:44 UTC, Marco Leise wrote: Am Sat, 6 Jul 2013 20:24:41 +1000 schrieb Manu turkey...@gmail.com: On 6 July 2013 18:23, Namespace rswhi...@googlemail.com wrote: That doesn't do what I want at all. The signature is still f(T) not f(Unqual!T). For

Re: Feature request: Path append operators for strings

2013-07-07 Thread TommiT
On Sunday, 7 July 2013 at 10:07:51 UTC, Walter Bright wrote: On 7/7/2013 2:16 AM, John Colvin wrote: One word: Watson. Ask Watson what its favorite color is. Oh well. That would require self-awareness. But self-awareness is not a requirement of understanding natural language as long as

Re: Fun with templates

2013-07-07 Thread Marco Leise
Am Sat, 06 Jul 2013 17:10:24 +0200 schrieb Dicebot pub...@dicebot.lv: On Saturday, 6 July 2013 at 15:05:51 UTC, Artur Skawina wrote: ... It is not that simple. Consider: void f(T)(T t) { static if (T == Unqual!T) // one function body else // completely different

Re: Fun with templates

2013-07-07 Thread Marco Leise
Am Sun, 07 Jul 2013 01:04:52 +0400 schrieb Dmitry Olshansky dmitry.o...@gmail.com: I've seen an aggressive proposal back in the day to just do a shallow unqual on all aggregates passed by value. I came to the same conclusion. If feasible, type inference should always produce tail-const

Re: Fun with templates

2013-07-07 Thread Marco Leise
Am Sat, 06 Jul 2013 17:24:23 +0200 schrieb Dicebot pub...@dicebot.lv: On Saturday, 6 July 2013 at 01:35:09 UTC, Manu wrote: ... If this is about template bloat I think much better is to address problem in general. For example, internal linkage or strict export requirements - anything

Re: Emacs D Mode and __vector

2013-07-07 Thread Peter Alexander
On Sunday, 7 July 2013 at 11:11:54 UTC, Russel Winder wrote: Is __vector part of D? Yep, it's officially in the list of keywords and in the language spec. If so what type of thing is it? It's kind of a type constructor, like const, shared, etc., so I'd put it in that category for syntax

Re: Fun with templates

2013-07-07 Thread Marco Leise
Am Sun, 07 Jul 2013 13:17:23 +0200 schrieb TommiT tommitiss...@hotmail.com: const would have the same effect: void f(T)(const T var) { ... } ...but then you can't mutate var. That doesn't handle shared. -- Marco

Re: Unhelpful error messages

2013-07-07 Thread Peter Alexander
On Sunday, 7 July 2013 at 06:58:29 UTC, Maxim Fomin wrote: http://d.puremagic.com/issues/ Ironically, this isn't helpful. H. S. Teoh is opening up a discussion, not reporting a bug. The problem here is more general than this specific case. Any template constraint on any function could fail

Feature request: assert expressions should live inside version(assert)

2013-07-07 Thread Tommi
Sometimes you need to have some extra data to check against in the assert expression. That data isn't needed in release mode when assertions are ignored. Therefore, you put that extra data inside a version(assert). But then those assertions fail to compile in release mode because the symbol

Re: Fun with templates

2013-07-07 Thread Tommi
On Sunday, 7 July 2013 at 11:59:36 UTC, Marco Leise wrote: Am Sun, 07 Jul 2013 13:17:23 +0200 schrieb TommiT tommitiss...@hotmail.com: const would have the same effect: void f(T)(const T var) { ... } ...but then you can't mutate var. That doesn't handle shared. That seems like a compiler

Re: Feature request: assert expressions should live inside version(assert)

2013-07-07 Thread Andrej Mitrovic
On 7/7/13, Tommi tommitiss...@hotmail.com wrote: Sometimes you need to have some extra data to check against in the assert expression. That data isn't needed in release mode when assertions are ignored. Therefore, you put that extra data inside a version(assert). But then those assertions fail

Re: Fun with templates

2013-07-07 Thread Dmitry Olshansky
06-Jul-2013 05:34, Manu пишет: Okay, so I feel like this should be possible, but I can't make it work... I want to use template deduction to deduce the argument type, but I want the function arg to be Unqual!T of the deduced type, rather than the verbatim type of the argument given. I've tried:

Re: Feature request: Path append operators for strings

2013-07-07 Thread John Colvin
On Sunday, 7 July 2013 at 10:07:51 UTC, Walter Bright wrote: On 7/7/2013 2:16 AM, John Colvin wrote: On Sunday, 7 July 2013 at 08:26:03 UTC, Walter Bright wrote: On 7/6/2013 11:11 PM, TommiT wrote: I can see machine translation that is based on statistical correlation with a sufficiently

Re: Feature request: assert expressions should live inside version(assert)

2013-07-07 Thread Peter Alexander
On Sunday, 7 July 2013 at 12:30:28 UTC, Andrej Mitrovic wrote: I've ran into an issue when implementing this feature back in February (see the pull request): http://d.puremagic.com/issues/show_bug.cgi?id=9450 https://github.com/D-Programming-Language/dmd/pull/1614 WTF: Hmm.. I think we

Re: Feature request: assert expressions should live inside version(assert)

2013-07-07 Thread Tommi
On Sunday, 7 July 2013 at 12:30:28 UTC, Andrej Mitrovic wrote: On 7/7/13, Tommi tommitiss...@hotmail.com wrote: Sometimes you need to have some extra data to check against in the assert expression. That data isn't needed in release mode when assertions are ignored. Therefore, you put that extra

Re: Feature request: assert expressions should live inside version(assert)

2013-07-07 Thread Tommi
On Sunday, 7 July 2013 at 13:12:06 UTC, Tommi wrote: [..] Then, when parsing assert expressions, if an undefined symbol is found, the compiler would check that separate list of symbols that it has been keeping, and if the symbol is found there and use of the symbol is syntactically correct,

Re: Struct hidden context pointers

2013-07-07 Thread Iain Buclaw
On 6 July 2013 22:41, Jonathan M Davis jmdavisp...@gmx.com wrote: On Saturday, July 06, 2013 14:13:29 H. S. Teoh wrote: Shouldn't the frame pointer be generated only if f() actually tries to access something outside of the definition of T? Probably, but that's arguably an optimization.

Re: Feature request: assert expressions should live inside version(assert)

2013-07-07 Thread Denis Shelomovskij
07.07.2013 17:12, Tommi пишет: On Sunday, 7 July 2013 at 12:30:28 UTC, Andrej Mitrovic wrote: On 7/7/13, Tommi tommitiss...@hotmail.com wrote: Sometimes you need to have some extra data to check against in the assert expression. That data isn't needed in release mode when assertions are

Re: Feature request: assert expressions should live inside version(assert)

2013-07-07 Thread Tommi
On Sunday, 7 July 2013 at 13:12:06 UTC, Tommi wrote: But would it be possible to implement it something like: [..] Although, I don't know if the best possible behaviour is to silently compile the following assert out of existence in release mode: version (assert) { enum cond = false; }

Re: Feature request: assert expressions should live inside version(assert)

2013-07-07 Thread Tommi
On Sunday, 7 July 2013 at 13:42:52 UTC, Tommi wrote: Then, yet another solution (a code breaking one) would be to make it so that only literally saying: assert(0); or assert(false); or assert(null); ...would exhibit that special assert behaviour. Anything else would be semantically

Re: Feature request: Path append operators for strings

2013-07-07 Thread Andrei Alexandrescu
On 7/7/13 3:07 AM, Walter Bright wrote: On 7/7/2013 1:30 AM, Andrei Alexandrescu wrote: On 7/7/13 1:26 AM, Walter Bright wrote: On 7/6/2013 11:11 PM, TommiT wrote: I can see machine translation that is based on statistical correlation with a sufficiently large corpus of human translations,

Re: Emacs D Mode and __vector

2013-07-07 Thread Russel Winder
On Sun, 2013-07-07 at 13:53 +0200, Peter Alexander wrote: On Sunday, 7 July 2013 at 11:11:54 UTC, Russel Winder wrote: Is __vector part of D? Yep, it's officially in the list of keywords and in the language spec. If so what type of thing is it? It's kind of a type constructor, like

Re: Poll: how long have you been into D

2013-07-07 Thread 1100110
On 07/06/2013 02:20 PM, Nick Sabalausky wrote: On Fri, 05 Jul 2013 23:48:40 -0700 Jonathan M Davis jmdavisp...@gmx.com wrote: On Saturday, July 06, 2013 08:36:31 Joseph Rushton Wakeling wrote: Typing replies on a smartphone seems to carry a bit of a cost in textual accuracy :-( Typing on

Re: Poll: how long have you been into D

2013-07-07 Thread Dicebot
On Sunday, 7 July 2013 at 17:37:37 UTC, 1100110 wrote: Please, I still have a physical keyboard on my new smartphone. Put your money where your mouth is. I must admit it becomes increasingly harder to find ones. I am not ware of a single new model that has both physical keyboard and less

Re: Fun with templates

2013-07-07 Thread Dicebot
On Saturday, 6 July 2013 at 18:54:16 UTC, TommiT wrote: He's talking about changing the semantics only on POD types, like int, struct of ints, static array of ints... only types that can implicitly convert from immutable to mutable. Than it does not really solve anything. Have you measured

Re: Poll: how long have you been into D

2013-07-07 Thread Joakim
On Sunday, 7 July 2013 at 17:37:37 UTC, 1100110 wrote: On 07/06/2013 02:20 PM, Nick Sabalausky wrote: Anyway, typing on a mobile device was more or less a solved problem until that sack of shit Steve Jobs moronically convinced everyone that physical buttons and styluses were bad things

Re: Poll: how long have you been into D

2013-07-07 Thread John Colvin
On Sunday, 7 July 2013 at 17:44:20 UTC, Dicebot wrote: On Sunday, 7 July 2013 at 17:37:37 UTC, 1100110 wrote: Please, I still have a physical keyboard on my new smartphone. Put your money where your mouth is. I must admit it becomes increasingly harder to find ones. I am not ware of a

Re: Poll: how long have you been into D

2013-07-07 Thread Dicebot
On Sunday, 7 July 2013 at 17:56:58 UTC, John Colvin wrote: I guess none of them count as that new though. Yeah, Android 2.3 has some legacy smell :) Looks nice, wish they released something similar but with fresh h/w and OS. Still may work with some cyanogen magic, thanks!

Re: Poll: how long have you been into D

2013-07-07 Thread MattCoder
On Sunday, 7 July 2013 at 17:44:20 UTC, Dicebot wrote: I must admit it becomes increasingly harder to find ones. I am not ware of a single new model that has both physical keyboard and less than 4.5 screen. Any hints? Blackberry Q10 = 3.1 with 720 x 720 resolution:

Re: Poll: how long have you been into D

2013-07-07 Thread Dicebot
On Sunday, 7 July 2013 at 18:09:24 UTC, MattCoder wrote: Blackberry Q10 = 3.1 with 720 x 720 resolution: Any piece of hardware I can't install some custom tweaked OS on is not an option and RIM attitude has always sucked hard in that regard. That is not something I will support with my

Re: Anybody using D's COM objects?

2013-07-07 Thread Sönke Ludwig
Am 06.07.2013 05:00, schrieb Andrej Mitrovic: On 6/26/13, Sönke Ludwig slud...@outerproduct.org wrote: Am 25.06.2013 20:29, schrieb Walter Bright: Any projects using AddRef() and Release()? I'm currently using it for Direct2D and Direct3D 9/10/11. Also, I have an MIDL - D translator for

Re: Fun with templates

2013-07-07 Thread Tommi
On Sunday, 7 July 2013 at 17:48:17 UTC, Dicebot wrote: On Saturday, 6 July 2013 at 18:54:16 UTC, TommiT wrote: He's talking about changing the semantics only on POD types, like int, struct of ints, static array of ints... only types that can implicitly convert from immutable to mutable. Than

Re: Feature request: Path append operators for strings

2013-07-07 Thread Walter Bright
On 7/7/2013 8:38 AM, Andrei Alexandrescu wrote: All Siri does is recognize a set of stock patterns, just like Eliza. Step out of that, even slightly, and it reverts to a default, again, just like Eliza. Of course, Siri had a much larger set of patterns it recognized, but with a bit of

Re: Feature request: Path append operators for strings

2013-07-07 Thread Walter Bright
On 7/7/2013 5:41 AM, John Colvin wrote: On Sunday, 7 July 2013 at 10:07:51 UTC, Walter Bright wrote: Ask Watson what its favorite color is. Oh well. That's asking for an awful lot more than good natural language processing. Is it? Yes, that's a serious question. I don't presume that human

Re: Feature request: Path append operators for strings

2013-07-07 Thread John Colvin
On Sunday, 7 July 2013 at 20:38:31 UTC, Walter Bright wrote: On 7/7/2013 5:41 AM, John Colvin wrote: On Sunday, 7 July 2013 at 10:07:51 UTC, Walter Bright wrote: Ask Watson what its favorite color is. Oh well. That's asking for an awful lot more than good natural language processing. Is

Re: Struct hidden context pointers

2013-07-07 Thread Jonathan M Davis
On Sunday, July 07, 2013 14:30:12 Iain Buclaw wrote: On 6 July 2013 22:41, Jonathan M Davis jmdavisp...@gmx.com wrote: On Saturday, July 06, 2013 14:13:29 H. S. Teoh wrote: Shouldn't the frame pointer be generated only if f() actually tries to access something outside of the definition of

Re: Feature request: Path append operators for strings

2013-07-07 Thread Jonathan M Davis
On Sunday, July 07, 2013 13:38:33 Walter Bright wrote: On 7/7/2013 5:41 AM, John Colvin wrote: On Sunday, 7 July 2013 at 10:07:51 UTC, Walter Bright wrote: Ask Watson what its favorite color is. Oh well. That's asking for an awful lot more than good natural language processing.

Re: Feature request: Path append operators for strings

2013-07-07 Thread Adam D. Ruppe
On Sunday, 7 July 2013 at 10:07:51 UTC, Walter Bright wrote: Ask Watson what its favorite color is. Ask /me/ what my favorite color is. I always hate questions like that because, and this might sound silly, but it bothers me because if I pick one, I think the others will feel left out, and

Re: Feature request: Path append operators for strings

2013-07-07 Thread Andrei Alexandrescu
On 7/7/13 1:35 PM, Walter Bright wrote: A mailman can (will) also do things like pretend to know, make up a plausible answer, ask clarifying questions, figure it out, etc. Siri can also reply by doing a google search and reading the result. Computers don't, for example, figure it out. They

Re: Feature request: Path append operators for strings

2013-07-07 Thread Walter Bright
On 7/7/2013 2:11 PM, Andrei Alexandrescu wrote: On 7/7/13 1:35 PM, Walter Bright wrote: A mailman can (will) also do things like pretend to know, make up a plausible answer, ask clarifying questions, figure it out, etc. Siri can also reply by doing a google search and reading the result.

Re: Feature request: Path append operators for strings

2013-07-07 Thread Walter Bright
On 7/7/2013 2:05 PM, Adam D. Ruppe wrote: On Sunday, 7 July 2013 at 10:07:51 UTC, Walter Bright wrote: Ask Watson what its favorite color is. Ask /me/ what my favorite color is. I always hate questions like that because, and this might sound silly, but it bothers me because if I pick one, I

Re: Feature request: Path append operators for strings

2013-07-07 Thread Andrei Alexandrescu
On 7/7/13 2:44 PM, Walter Bright wrote: This started with you claiming that Siri is just Eliza with more memory. That's inaccurate to say the least. I argue it is dead on. I don't see a fundamental difference. Consider someone at a 1970s level of compiler technology coming to you and

Re: Poll: how long have you been into D

2013-07-07 Thread H. S. Teoh
On Sun, Jul 07, 2013 at 02:38:15AM -0400, Nick Sabalausky wrote: On Sat, 6 Jul 2013 14:08:20 -0700 H. S. Teoh hst...@quickfur.ath.cx wrote: I resisted upgrading to a smartphone for many years (people used to laugh at me for carrying around such a prehistoric antique -- to a point I took

Re: Feature request: Path append operators for strings

2013-07-07 Thread H. S. Teoh
On Sun, Jul 07, 2013 at 04:03:39PM -0700, Andrei Alexandrescu wrote: On 7/7/13 2:44 PM, Walter Bright wrote: This started with you claiming that Siri is just Eliza with more memory. That's inaccurate to say the least. I argue it is dead on. I don't see a fundamental difference. Consider

Re: Feature request: Path append operators for strings

2013-07-07 Thread Walter Bright
On 7/7/2013 4:03 PM, Andrei Alexandrescu wrote: Similarly, it would be an ignorant thing to say that Siri is just a larger Eliza. There is a world of difference between Eliza's and Siri's approaches. In fact the difference is even larger than between 1970s compilers and today's ones. I don't

Re: Fun with templates

2013-07-07 Thread Manu
On 7 July 2013 22:31, Dmitry Olshansky dmitry.o...@gmail.com wrote: 06-Jul-2013 05:34, Manu пишет: Okay, so I feel like this should be possible, but I can't make it work... I want to use template deduction to deduce the argument type, but I want the function arg to be Unqual!T of the deduced

Re: Feature request: Path append operators for strings

2013-07-07 Thread Timothee Cour
On Sun, Jul 7, 2013 at 6:11 PM, Walter Bright newshou...@digitalmars.comwrote: On 7/7/2013 4:03 PM, Andrei Alexandrescu wrote: Similarly, it would be an ignorant thing to say that Siri is just a larger Eliza. There is a world of difference between Eliza's and Siri's approaches. In fact the

Re: Fun with templates

2013-07-07 Thread Martin Nowak
On 07/07/2013 01:19 PM, Marco Leise wrote: If you wanted to save on template instantiations for every possible attribute combination, you are doing it wrong. Those are already 3 duplicate templates with binary identical functions foo(int a) in them, which makes me cry on the inside. There is a

Re: Feature request: Path append operators for strings

2013-07-07 Thread Andrei Alexandrescu
On 7/7/13 6:11 PM, Walter Bright wrote: On 7/7/2013 4:03 PM, Andrei Alexandrescu wrote: Similarly, it would be an ignorant thing to say that Siri is just a larger Eliza. There is a world of difference between Eliza's and Siri's approaches. In fact the difference is even larger than between

Typeinfo.compare and opCmp woes

2013-07-07 Thread H. S. Teoh
I have a partial fix for issues 8435 and 10118, but it's being blocked by issue 10567. Basically, the problem is that opCmp *must* be declared as: struct T { int opCmp(ref const T t) const { ... } } Only when it's declared this way, will T's typeinfo.compare pick

Re: Typeinfo.compare and opCmp woes

2013-07-07 Thread H. S. Teoh
On Sun, Jul 07, 2013 at 09:44:59PM -0700, H. S. Teoh wrote: I have a partial fix for issues 8435 and 10118, but it's being blocked by issue 10567. Basically, the problem is that opCmp *must* be declared as: struct T { int opCmp(ref const T t) const { ... } }

Re: Typeinfo.compare and opCmp woes

2013-07-07 Thread Jonathan M Davis
On Sunday, July 07, 2013 22:13:59 H. S. Teoh wrote: since due to the bug that we can't have both a template and non-template method of the same name I believe that Kenji fixed that bug recently. - Jonathan M Davis

Re: Variadic template arguments unpacking

2013-07-07 Thread Artur Skawina
On 07/06/13 21:39, Max Strakhov wrote: If anyine has any ideas how make this implementation simplier, bring it on :) Well, you could just use the pseudo-code version that you posted, almost verbatim: string res = ; for(i, rev v; args) res ~= string.format(, f(args[%d]).val());

Building from source for ubuntu

2013-07-07 Thread monarch_dodra
I'm building a nix environment for dmd, and am having problems buiding dmd from source on it. I'm following the instructions on the wiki: http://wiki.dlang.org/Building_DMD The first thing I've run into seems that the X64 instructions are out of date? it says to do make -f posix.mak MODEL=64,

Re: Building from source for ubuntu

2013-07-07 Thread Jonathan M Davis
On Sunday, July 07, 2013 12:25:50 monarch_dodra wrote: I'm building a nix environment for dmd, and am having problems buiding dmd from source on it. I'm following the instructions on the wiki: http://wiki.dlang.org/Building_DMD The first thing I've run into seems that the X64 instructions

How to create RDM sockets?

2013-07-07 Thread Andrey Derzhavin
Hello! I try to create a RDM socket, but all my attempts fails by Unable to create socket: Socket type not supported error. How can I create a RDM socket using std.socket module? Thanks.

Re: Building from source for ubuntu

2013-07-07 Thread David
http://packages.ubuntu.com/de/precise/libcurl-dev Should do it, on Ubuntu/Debian you always need the -dev or -devel packages if you want to link against something or use the header files

Re: Building from source for ubuntu

2013-07-07 Thread monarch_dodra
On Sunday, 7 July 2013 at 10:57:08 UTC, David wrote: http://packages.ubuntu.com/de/precise/libcurl-dev Should do it, on Ubuntu/Debian you always need the -dev or -devel packages if you want to link against something or use the header files Most awesome. Got it to work installing libcurl-dev.

  1   2   >