Re: TDPL in Russian

2010-11-10 Thread Max Samukha
On 11/10/2010 12:22 AM, Andrei Alexandrescu wrote: Just got word from my editor that TDPL has been approved for translation in Russian. Andrei Поздравляю! Надеюсь, что перевод будут делать долго, дорого и о..енно.

Re: TDPL in Russian

2010-11-10 Thread Eldar Insafutdinov
#1054;#1090;#1083;#1080;#1095;#1085;#1099;#1077; #1085;#1086;#1074;#1086;#1089;#1090;#1080;! #1058;#1077;#1084; #1085;#1077; #1084;#1077;#1085;#1077;#1077;, #1084;#1085;#1086;#1075;#1080;#1077; #1089;#1086;#1075;#1083;#1072;#1089;#1103;#1090;#1089;#1103; #1089;#1086; #1084;#1085;#1086;#1081;

Re: TDPL in Russian

2010-11-10 Thread Denis Koroskin
On Wed, 10 Nov 2010 14:34:46 +0300, Eldar Insafutdinov e.insafutdi...@gmail.com wrote: #1054;#1090;#1083;#1080;#1095;#1085;#1099;#1077; #1085;#1086;#1074;#1086;#1089;#1090;#1080;! #1058;#1077;#1084; #1085;#1077; #1084;#1077;#1085;#1077;#1077;, #1084;#1085;#1086;#1075;#1080;#1077;

Re: [OT] DVCS

2010-11-10 Thread Jérôme M. Berger
Bruno Medeiros wrote: On 28/10/2010 18:51, Jérôme M. Berger wrote: Bruno Medeiros wrote: But isn't the staging area similar, if not identical to SVN? I mean, in svn you also have to do a command svn add to add new files to the sandbox. They won't get commit otherwise, right? (note: im

Re: TDPL in Russian

2010-11-10 Thread Stanislav Blinov
10.11.2010 1:22, Andrei Alexandrescu пишет: Just got word from my editor that TDPL has been approved for translation in Russian. Andrei Congratulations! Though I only can second Max's hopes. I'd hate it if it results in yet another unreadable do-no-good stuff, as is too often with Russian

Re: TDPL in Russian

2010-11-10 Thread Stanislav Blinov
10.11.2010 3:22, Walter Bright пишет: Andrei Alexandrescu wrote: Just got word from my editor that TDPL has been approved for translation in Russian. Da, Tovarish! Aw come on! Where did you ever get that stuff?..

Re: TDPL in Russian

2010-11-10 Thread Stanislav Blinov
10.11.2010 14:34, Eldar Insafutdinov пишет: Отличные новости! Тем не менее, многие согласятся со мной что при должном владении английским языком, технические книги лучше читать в оригинале. Но русский перевод будет отличным выходом для многих программистов, которые еще не так хорошо знают

Re: TDPL in Russian

2010-11-10 Thread Simen kjaeraas
Stanislav Blinov bli...@loniir.ru wrote: P.S. Guys, let's be polite, please! Yes, the news are great, but let's not cause eyestrain to non-Russian speaking people. Но Россия это весело! (But russian is fun!) -- Simen

Re: TDPL in Russian

2010-11-10 Thread Eldar Insafutdinov
Come on, this thread gives us a great excuse!

Re: TDPL in Russian

2010-11-10 Thread digited
Eldar Insafutdinov Wrote: #1054;#1090;#1083;#1080;#1095;#1085;#1099;#1077; #1085;#1086;#1074;#1086;#1089;#1090;#1080;! #1058;#1077;#1084; #1085;#1077; #1084;#1077;#1085;#1077;#1077;, #1084;#1085;#1086;#1075;#1080;#1077; #1089;#1086;#1075;#1083;#1072;#1089;#1103;#1090;#1089;#1103;

Re: TDPL in Russian

2010-11-10 Thread Eldar Insafutdinov
This was in reply to http://article.gmane.org/gmane.comp.lang.d.announce/5763 . I should probably start use a proper client instead of web-interface for replying to these news groups.

Re: TDPL in Russian

2010-11-10 Thread Stanislav Blinov
10.11.2010 18:54, Eldar Insafutdinov пишет: This was in reply to http://article.gmane.org/gmane.comp.lang.d.announce/5763 . I should probably start use a proper client instead of web-interface for replying to these news groups. It's probably because of me: I post via mailing list, and

Re: TDPL in Russian

2010-11-10 Thread Walter Bright
Stanislav Blinov wrote: 10.11.2010 3:22, Walter Bright пишет: Andrei Alexandrescu wrote: Just got word from my editor that TDPL has been approved for translation in Russian. Da, Tovarish! Aw come on! Where did you ever get that stuff?.. The movies, naturally!

Re: TDPL in Russian

2010-11-10 Thread Dmitry Olshansky
On 10.11.2010 1:22, Andrei Alexandrescu wrote: Just got word from my editor that TDPL has been approved for translation in Russian. Andrei Awesome! P.S. God, if you hear me, please, send us some _adequate_ Russian translators/reviewers. -- Dmitry Olshansky

Re: TDPL in Russian

2010-11-10 Thread Max Samukha
On 11/10/2010 08:25 PM, Dmitry Olshansky wrote: On 10.11.2010 1:22, Andrei Alexandrescu wrote: Just got word from my editor that TDPL has been approved for translation in Russian. Andrei Awesome! P.S. God, if you hear me, please, send us some _adequate_ Russian translators/reviewers. It

Re: TDPL in Russian

2010-11-10 Thread Stanislav Blinov
Walter Bright wrote: Stanislav Blinov wrote: 10.11.2010 3:22, Walter Bright пишет: Andrei Alexandrescu wrote: Just got word from my editor that TDPL has been approved for translation in Russian. Da, Tovarish! Aw come on! Where did you ever get that stuff?.. The movies, naturally! I

Re: TDPL in Russian

2010-11-10 Thread Stanislav Blinov
Simen kjaeraas wrote: Stanislav Blinov bli...@loniir.ru wrote: P.S. Guys, let's be polite, please! Yes, the news are great, but let's not cause eyestrain to non-Russian speaking people. Но Россия это весело! (But russian is fun!) Oh, it certainly is. Sadly, the language nowadays suffers

Re: TDPL in Russian

2010-11-10 Thread Nick Sabalausky
Stanislav Blinov stanislav.bli...@gmail.com wrote in message news:ibf3dm$29e...@digitalmars.com... Simen kjaeraas wrote: Stanislav Blinov bli...@loniir.ru wrote: P.S. Guys, let's be polite, please! Yes, the news are great, but let's not cause eyestrain to non-Russian speaking people. ??

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Don
so wrote: Sean took all the code he had written. The other minor contributors did not yet give permission for their code to be used, so of course it could not be included. This is the single big thing on this tango vs phobos issue i never understand. What are the reasons/motives behind this

Re: Passing dynamic arrays

2010-11-10 Thread Jens Mueller
I see your point. You argue that the behavior is consistent. My point is that this consistency can lead to bugs. I may forget the ref. But I'll keep in mind to never forget the ref if it is needed. Jens Well, in the case of classes, I don't think it would be very common. For

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread klickverbot
On 11/10/10 12:00 AM, Walter Bright wrote: […] Producing another incompatible split with D2 will not be of an advantage to anyone, and will just give people reasons not to use D at all. I probably wouldn't get the problem anyway, and I have been using both D1/Tango and, recently, D2/Phobos,

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Jacob Carlborg
On 2010-11-09 23:04, Don wrote: Jacob Carlborg wrote: On 2010-11-09 17:43, Andrei Alexandrescu wrote: I wouldn't be surprised if Tango chose to turn away from compatibility for the second time (be it theoretical compatibility for now since there is no Tango for D2). The technical reasons are

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Jacob Carlborg
On 2010-11-09 22:45, Andrei Alexandrescu wrote: On 11/9/10 12:33 PM, Jacob Carlborg wrote: On 2010-11-09 17:43, Andrei Alexandrescu wrote: On 11/9/10 1:42 AM, Jacob Carlborg wrote: On 2010-11-08 20:55, Andrei Alexandrescu wrote: It is my perception (though I might be wrong) that the

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Jacob Carlborg
On 2010-11-10 01:25, Nick Sabalausky wrote: Eric Poggeldnewsgro...@yage3d.net wrote in message news:ibcn72$2u3...@digitalmars.com... On 11/9/2010 12:17 AM, Nick Sabalausky wrote: Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message news:ibaepi$vf...@digitalmars.com... People

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Jacob Carlborg
On 2010-11-10 03:28, Eric Poggel wrote: On 11/9/2010 7:25 PM, Nick Sabalausky wrote: I could probably live with that as long as the PHP template stayed view-only and didn't grow too much logic. Are there any web-friendly languages that are mature, offer the sanity and static typing of C#, and

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Jacob Carlborg
On 2010-11-10 00:00, Walter Bright wrote: Tobias Pfaff wrote: 1. Bitter fighting about a possible non-nullable type for D3(!). Discussion style: Noone will take away my right to write unsafe code ! vs. Down with the reckless cowboy coders. Are we discussing guns or coding here? That, and

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Jacob Carlborg
On 2010-11-10 00:57, Eric Poggel wrote: On 11/9/2010 12:17 AM, Nick Sabalausky wrote: Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message news:ibaepi$vf...@digitalmars.com... People at Facebook told me that the adoption of D inside the company might be helped if they could

Pls. bury this damned hatchet very deep (was Re: why a part of D community do not want go to D2 ?)

2010-11-10 Thread Gour
On Wed, 10 Nov 2010 11:51:19 +0100 Jacob == Jacob Carlborg wrote: Jacob Of course that would be the preferred way, there should have Jacob been some kind of agreement for this (maybe there was but never Jacob fulfilled?) But you also have to look at it from Tangos point of Jacob view. Why would

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread retard
Wed, 10 Nov 2010 11:56:18 +0100, Jacob Carlborg wrote: On 2010-11-10 00:00, Walter Bright wrote: I agree. The reasons for the Tango split long ago, whatever the merit of those reasons was, have long since passed. Producing another incompatible split with D2 will not be of an advantage to

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread sybrandy
On 11/09/2010 06:57 PM, Eric Poggel wrote: I've always felt the opposite way. It's been a while since I've worked with Asp.net controls, but I remember something like this: ul id=List/ul . // Later, in C# for (int i=0; i10; i++) List.innerHtml += li + sanitize(someArray[i]) + /li While php

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread klickverbot
On 11/10/10 1:38 PM, klickverbot wrote: I probably wouldn't get the problem anyway, and[…] Whoops, s/and/as/ there…

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Roman Ivanov
== Quote from Nick Sabalausky (a...@a.a)'s article Eric Poggel dnewsgro...@yage3d.net wrote in message news:ibd00s$dl...@digitalmars.com... On 11/9/2010 7:25 PM, Nick Sabalausky wrote: I could probably live with that as long as the PHP template stayed view-only and didn't grow too much

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Adam Ruppe
Eric Poggel wrote: Are there any web-friendly languages that are mature, offer the sanity and static typing of C#, and the immediate mode of php? We could do it in D, somewhat easily. Here's an implementation with only mild bugginess: === import std.file; import std.string; import std.stdio;

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Radu
On 11/8/2010 11:45 PM, JFD wrote: A potential mod_d Apache module would go a long way to promote D language to the web application world. But it seems that implementing a mod_d Apache module may require that C instantiates a D language interpreter (similar to Py_NewInterpreter() for Python), or

Call to immutable method during immutable construction

2010-11-10 Thread Jens Mueller
Hi, according to TDPL p. 294 the following call to fun should not be allowed. But it compiles and I see not why that shouldn't be allowed. I think it's a bug in TDPL but I'm unsure. class A { int a; int[] b; this() immutable { a = 5; b = [ 1, 2, 3 ]; fun();

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Adam Ruppe
Nick Sabalausky wrote: (but I've done worse - I once tried to build HTML buy manually adding nodes to an XML DOM...it seemed like a good idea until I actually started doing it). This is actually one of the methods I've been using in my D web apps throughout the year. It's not that bad if you

Re: Passing dynamic arrays

2010-11-10 Thread Steven Schveighoffer
On Tue, 09 Nov 2010 15:13:55 -0500, Pillsy pillsb...@gmail.com wrote: Steven Schveighoffer Wrote: On Tue, 09 Nov 2010 08:14:40 -0500, Pillsy pillsb...@gmail.com wrote: [...] Ah! This is a lot of what was confusing me about arrays; I still thought they had this behavior. The fact that

Re: datetime review part 2 [Update 4]

2010-11-10 Thread Steven Schveighoffer
On Tue, 09 Nov 2010 18:48:30 -0500, bearophile bearophileh...@lycos.com wrote: Yao G.: Ugh. The datetime.d file is 1.5 MB? 0_o So it will be very well tested :) Look, the huge benefit of unit tests are that they are inline with the code. Either you want that or you want small files,

Re: What every D programmer really wants

2010-11-10 Thread Steven Schveighoffer
On Wed, 10 Nov 2010 00:37:49 -0500, Yao G. yao.go...@spam.gmail.com wrote: On Tue, 09 Nov 2010 23:28:09 -0600, Andrew Wiley debio...@gmail.com wrote: Please do not feed the trolls. But he's the same troll :/ Using a bunch of socket puppets. Are those IPV4 or V6 socket puppets? -Steve

Is Walter tired of D?

2010-11-10 Thread casualobserver
His post seem reactionary rather that driving. Perhaps bearophile, who seems to have quite some verve for D, should take the reigns? What I'd like to see is Walter's and Bearophile's views on the direction of D... the language, the process.. everything.

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Steven Schveighoffer
On Wed, 10 Nov 2010 05:51:19 -0500, Jacob Carlborg d...@me.com wrote: Of course that would be the preferred way, there should have been some kind of agreement for this (maybe there was but never fulfilled?) But you also have to look at it from Tangos point of view. Why would Tango drop

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Jacob Carlborg
On 2010-11-10 12:43, retard wrote: Wed, 10 Nov 2010 11:56:18 +0100, Jacob Carlborg wrote: On 2010-11-10 00:00, Walter Bright wrote: I agree. The reasons for the Tango split long ago, whatever the merit of those reasons was, have long since passed. Producing another incompatible split with D2

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Walter Bright
Jacob Carlborg wrote: I don't want to increase any separation in the D community and would hope peoeple could agree more. I have no problems what so ever contributing both to Tango and Phobos/druntime. And I'm happy to license any of my code to whatever license would be need for a give D

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Walter Bright
retard wrote: A dual licensing scheme for all code might help a bit (since both parties refuse to switch licensing). There are also Releasing under the Boost license will make it compatible with both. Such is kinda the point with the Boost license, and why we chose it. It's not a big

Re: What every D programmer really wants

2010-11-10 Thread Yao G.
On Wed, 10 Nov 2010 09:13:31 -0600, Steven Schveighoffer schvei...@yahoo.com wrote: But he's the same troll :/ Using a bunch of socket puppets. Are those IPV4 or V6 socket puppets? -Steve He he he. s/socket/sock On a serious note, I think that they are IPV6 sockets. -- Yao G.

Re: datetime review part 2 [Update 4]

2010-11-10 Thread bearophile
Steven Schveighoffer: Well, I'm not certain that this is the reason, but calendars are riddled with corner cases. I would expect a well-tested date/time library to test all those corner cases. I have never suggested to remove unit tests. But in several languages and projects there is

Re: Is Walter tired of D?

2010-11-10 Thread Yao G.
On Wed, 10 Nov 2010 09:27:16 -0600, casualobserver c...@bigcorp.com wrote: His post seem reactionary rather that driving. Perhaps bearophile, who seems to have quite some verve for D, should take the reigns? What I'd like to see is Walter's and Bearophile's views on the direction of D... the

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread lurker #5
As a long time lurker I witnessed the last, rather infamous event when this topic was brought up. The way I see it the situation has only deteriorated further since then. There are still resources spent on managing the political situation, to avoid license infringement, supporting two libraries,

Re: Call to immutable method during immutable construction

2010-11-10 Thread Jonathan M Davis
On Wednesday, November 10, 2010 06:14:07 Jens Mueller wrote: Hi, according to TDPL p. 294 the following call to fun should not be allowed. But it compiles and I see not why that shouldn't be allowed. I think it's a bug in TDPL but I'm unsure. class A { int a; int[] b;

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Daniel Gibson
lurker #5 schrieb: As a long time lurker I witnessed the last, rather infamous event when this topic was brought up. The way I see it the situation has only deteriorated further since then. There are still resources spent on managing the political situation, to avoid license infringement,

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread FeepingCreature
thank you oldtimer Wrote: oldtimer Wrote: Is it a coincidence that all the complaints seem to come from a single person? Let's take a look at my killfile: ankh, anonymous troll, another lurker, anton smith, arnoldsschwartz, bjarne yesterday, blaise pascal, cal, chmod+x, crap, darth

Re: datetime review part 2 [Update 4]

2010-11-10 Thread Dmitry Olshansky
On 10.11.2010 4:52, Jonathan M Davis wrote: On Tuesday, November 09, 2010 17:34:15 Jonathan M Davis wrote: On Tuesday, November 09, 2010 16:23:56 Yao G. wrote: On Tue, 09 Nov 2010 18:11:59 -0600, Jonathan M Davis jmdavisp...@gmx.com wrote: I think that the real question here is how good the

Build Linux shared library from DMD

2010-11-10 Thread Steve Teale
In the Apache mod_d thread I saw: gcc -shared -Wl,-soname,libhello.so.0 -o libhello.so.0.0 libhello.a Has anyone tried this with libphobos2.a?

std.crypto

2010-11-10 Thread Steve Teale
Has anyone got something that would be a nucleus for this?

Re: std.crypto

2010-11-10 Thread Daniel Gibson
Steve Teale schrieb: Has anyone got something that would be a nucleus for this? I've used http://www.dsource.org/projects/dcrypt with D1 (just simple HMAC-SHA1 signing, so I can't tell how well the other stuff works).

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread dsimcha
== Quote from so (s...@so.do)'s article But a question comes to mind. For library development (or just everything if that matters) is the top down OOP approach ideal/right way? It is just an idiom that might have elegant solutions for certain tasks. Frankly, for a library, I hate it in most

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Nick Sabalausky
Radu r...@foo.bar wrote in message news:ibe95h$gl...@digitalmars.com... On 11/8/2010 11:45 PM, JFD wrote: A potential mod_d Apache module would go a long way to promote D language to the web application world. But it seems that implementing a mod_d Apache module may require that C

Re: Ruling out arbitrary cost copy construction?

2010-11-10 Thread Emil Madsen
Make the syntax ugly? - so you cant avoid seeing it? On 29 October 2010 19:40, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 10/29/10 12:18 CDT, dsimcha wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article To recap: 1. Arbitrary cost copy

Re: Build Linux shared library from DMD

2010-11-10 Thread Jacob Carlborg
On 2010-11-10 20:12, Steve Teale wrote: In the Apache mod_d thread I saw: gcc -shared -Wl,-soname,libhello.so.0 -o libhello.so.0.0 libhello.a Has anyone tried this with libphobos2.a? Phobos cannot currently be used as a dynamic library. DMD cannot produce correct PIC for building dynamic

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Walter Bright
dsimcha wrote: Libraries need to make the simple use cases sufficiently simple that people aren't tempted to roll their own. Hear hear. For example, one of the goals with D strings was to make them so good that people wouldn't invent their own string classes.

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Jacob Carlborg
On 2010-11-10 21:42, Eric Poggel wrote: On 11/10/2010 3:16 PM, dsimcha wrote: Don't make it a class if it can be a free function. I agree with most of the others except for this one. I can type Math. and instantly see my choices. It also helps namespace conflicts without having to do

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Eric Poggel
On 11/10/2010 3:16 PM, dsimcha wrote: Don't make it a class if it can be a free function. I agree with most of the others except for this one. I can type Math. and instantly see my choices. It also helps namespace conflicts without having to do selective imports or use the slightly longer

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Nick Sabalausky
Nick Sabalausky a...@a.a wrote in message news:ibev09$1vf...@digitalmars.com... Radu r...@foo.bar wrote in message news:ibe95h$gl...@digitalmars.com... On 11/8/2010 11:45 PM, JFD wrote: A potential mod_d Apache module would go a long way to promote D language to the web application world.

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread so
I agree with most of the others except for this one. I can type Math. and instantly see my choices. It also helps namespace conflicts without having to do selective imports or use the slightly longer std.math.log You can get the same thing with a namespace/module named math, after all

Re: Call to immutable method during immutable construction

2010-11-10 Thread Jens Mueller
Jonathan M Davis wrote: On Wednesday, November 10, 2010 06:14:07 Jens Mueller wrote: Hi, according to TDPL p. 294 the following call to fun should not be allowed. But it compiles and I see not why that shouldn't be allowed. I think it's a bug in TDPL but I'm unsure. class A {

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Sean Kelly
Jacob Carlborg Wrote: On 2010-11-09 23:04, Don wrote: Jacob Carlborg wrote: On 2010-11-09 17:43, Andrei Alexandrescu wrote: I wouldn't be surprised if Tango chose to turn away from compatibility for the second time (be it theoretical compatibility for now since there is no Tango for

Re: Call to immutable method during immutable construction

2010-11-10 Thread Jonathan M Davis
On Wednesday 10 November 2010 13:01:55 Jens Mueller wrote: You mean alter A's state. It could change something outside of A, couldn't it? I suppose that it could. I forgot about that. It's certainly not something that I'd ever think of doing. It would be bizarre to alter global state from a

Re: The D Scripting Language

2010-11-10 Thread Tomek Sowiński
Andrei Alexandrescu napisał: I'm having trouble thinking of something that would go in this module that wouldn't be a better fit somewhere else. What do you envision? I thought of it for a bit, but couldn't come up with anything :o). I think you're right! Yeah, I think std.all would be

Re: The D Scripting Language

2010-11-10 Thread Stanislav Blinov
Tomek Sowiński wrote: Andrei Alexandrescu napisał: foreach (line; File.byLine(args[1 .. $]) { ... } } I hypothetically made byLine a static method inside File to avoid confusing beginners (one might think on first read that byLine goes line by line through an array of strings). The

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Radu
On 11/10/2010 10:47 PM, Nick Sabalausky wrote: Nick Sabalauskya...@a.a wrote in message news:ibev09$1vf...@digitalmars.com... Radur...@foo.bar wrote in message news:ibe95h$gl...@digitalmars.com... On 11/8/2010 11:45 PM, JFD wrote: A potential mod_d Apache module would go a long way to

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread bearophile
Eric Poggel: On 11/10/2010 3:16 PM, dsimcha wrote: Don't make it a class if it can be a free function. I agree with most of the others except for this one. Object oriented programming is a way to think about code, so it may come more natural to you, or less natural, according to the way

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread Nick Sabalausky
sybrandy sybra...@gmail.com wrote in message news:ibbkh3$fv...@digitalmars.com... Ahh, I see that's written by the ANTLR/StringTemplate guy. I never read that paper, but the docs for his StringTemplate were a big part of what convinced me that template engines shouldn't try to be

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Andrew Wiley
On Wed, Nov 10, 2010 at 4:00 PM, bearophile bearophileh...@lycos.comwrote: Eric Poggel: On 11/10/2010 3:16 PM, dsimcha wrote: Don't make it a class if it can be a free function. I agree with most of the others except for this one. Object oriented programming is a way to think

Re: The D Scripting Language

2010-11-10 Thread Andrei Alexandrescu
On 11/10/10 1:45 PM, Tomek Sowiński wrote: Andrei Alexandrescu napisał: I'm having trouble thinking of something that would go in this module that wouldn't be a better fit somewhere else. What do you envision? I thought of it for a bit, but couldn't come up with anything :o). I think you're

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Jesse Phillips
Walter Bright Wrote: dsimcha wrote: Libraries need to make the simple use cases sufficiently simple that people aren't tempted to roll their own. Hear hear. For example, one of the goals with D strings was to make them so good that people wouldn't invent their own string classes.

Re: datetime review part 2 [Update 4]

2010-11-10 Thread Tomek Sowiński
Jonathan M Davis napisał: Latest: http://is.gd/gSwDv My 2 cents: Units of time are represented more naturally by an integer enum (could be anonymous) than a string. A problem recurring in many methods: /+ref+/ Date opOpAssign(string op, D)(in D duration) nothrow if((op == + ||

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Daniel Gibson
Andrew Wiley schrieb: One thought here: If Tango is still useful in the D world but there isn't too much enthusiasm about porting it to D2, why not break its functionality (that isn't already in Phobos 2) down into a set of supplemental libraries that can be included as needed? Or just

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Andrew Wiley
On Wed, Nov 10, 2010 at 5:27 PM, Daniel Gibson metalcae...@gmail.comwrote: Andrew Wiley schrieb: One thought here: If Tango is still useful in the D world but there isn't too much enthusiasm about porting it to D2, why not break its functionality (that isn't already in Phobos 2) down into

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Andrew Wiley
On Wed, Nov 10, 2010 at 5:27 PM, Daniel Gibson metalcae...@gmail.comwrote: Andrew Wiley schrieb: One thought here: If Tango is still useful in the D world but there isn't too much enthusiasm about porting it to D2, why not break its functionality (that isn't already in Phobos 2) down into

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Daniel Gibson
Andrew Wiley schrieb: On Wed, Nov 10, 2010 at 5:27 PM, Daniel Gibson metalcae...@gmail.com mailto:metalcae...@gmail.com wrote: Andrew Wiley schrieb: One thought here: If Tango is still useful in the D world but there isn't too much enthusiasm about porting it

Re: The D Scripting Language

2010-11-10 Thread Tomek Sowiński
Andrei Alexandrescu napisał: Speaking of getopt, when writing the 'grep' snippet I missed anonymous options a lot: bool h, i; string expr; string[] files; getopt(args, h,h, i,i,expr,files); They can be implemented with relatively little effort. Not getting the example. How would

Re: Build Linux shared library from DMD

2010-11-10 Thread JFD
== Quote from Jacob Carlborg (d...@me.com)'s article On 2010-11-10 20:12, Steve Teale wrote: In the Apache mod_d thread I saw: gcc -shared -Wl,-soname,libhello.so.0 -o libhello.so.0.0 libhello.a Has anyone tried this with libphobos2.a? Phobos cannot currently be used as a dynamic

Re: The D Scripting Language

2010-11-10 Thread Andrei Alexandrescu
On 11/10/10 3:58 PM, Tomek Sowiński wrote: Andrei Alexandrescu napisał: Speaking of getopt, when writing the 'grep' snippet I missed anonymous options a lot: bool h, i; string expr; string[] files; getopt(args, h,h, i,i,expr,files); They can be implemented with relatively little effort.

Re: Apache mod_d needs C to instantiate D interpreter?

2010-11-10 Thread JFD
== Quote from Jacob Carlborg (d...@me.com)'s article On 2010-11-09 01:37, JFD wrote: Yes, you're right. One should implement Apache module in D. One thing is that Apache module entry point expects a C function. I've figure that that one could just add extern(C) in front of D function

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Jonathan M Davis
On Wednesday, November 10, 2010 14:52:10 Jesse Phillips wrote: Walter Bright Wrote: dsimcha wrote: Libraries need to make the simple use cases sufficiently simple that people aren't tempted to roll their own. Hear hear. For example, one of the goals with D strings was to make them

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Andrew Wiley
On Wed, Nov 10, 2010 at 5:43 PM, Daniel Gibson metalcae...@gmail.comwrote: Andrew Wiley schrieb: On Wed, Nov 10, 2010 at 5:27 PM, Daniel Gibson metalcae...@gmail.commailto: metalcae...@gmail.com wrote: Andrew Wiley schrieb: One thought here: If Tango is still useful

Re: why a part of D community do not want go to D2 ?

2010-11-10 Thread Jonathan M Davis
On Wednesday, November 10, 2010 17:53:08 Andrew Wiley wrote: Well, my assumption was that Phobos 2 was pretty much complete. If more functionality is planned, then that's definitely a higher priority because long term, that's a much better solution than any supplemental library. Goodness, no.

Thoughts on parallel programming?

2010-11-10 Thread jfd
Any thoughts on parallel programming. I was looking at something about Chapel and X10 languages etc. for parallelism, and it looks interesting. I know that it is still an area of active research, and it is not yet (far from?) done, but anyone have thoughts on this as future direction? Thank

Kill implicit joining of adjacent strings

2010-11-10 Thread bearophile
Do you seen anything wrong in this code? It compiles with no errors: enum string[5] data = [green, magenta, blue red, yellow]; static assert(data[4] == yellow); void main() {} Yet that code asserts. it's an excellent example of why a sloppy compiler/language sooner or later comes back to bite

Re: Thoughts on parallel programming?

2010-11-10 Thread bearophile
jfd: Any thoughts on parallel programming. I was looking at something about Chapel and X10 languages etc. for parallelism, and it looks interesting. I know that it is still an area of active research, and it is not yet (far from?) done, but anyone have thoughts on this as future direction?

Re: Kill implicit joining of adjacent strings

2010-11-10 Thread Brad Roberts
Nagging is one way to accomplish change, but it's sure annoying. If you feel the feature is import, you know where to get the source. Give it a shot. Contribution of code is oh so much more valuable than a constant stream of you should change... Repeatedly claiming that Walter ignores 'X' is

Re: Kill implicit joining of adjacent strings

2010-11-10 Thread Yao G.
On Wed, 10 Nov 2010 20:34:07 -0600, bearophile bearophileh...@lycos.com wrote: Do you seen anything wrong in this code? It compiles with no errors: enum string[5] data = [green, magenta, blue red, yellow]; static assert(data[4] == yellow); void main() {} Yet that code asserts. it's an

Re: Thoughts on parallel programming?

2010-11-10 Thread dsimcha
== Quote from jfd (j...@nospam.com)'s article Any thoughts on parallel programming. I was looking at something about Chapel and X10 languages etc. for parallelism, and it looks interesting. I know that it is still an area of active research, and it is not yet (far from?) done, but anyone

Re: Kill implicit joining of adjacent strings

2010-11-10 Thread Jonathan M Davis
On Wednesday 10 November 2010 18:56:02 Brad Roberts wrote: Nagging is one way to accomplish change, but it's sure annoying. If you feel the feature is import, you know where to get the source. Give it a shot. Contribution of code is oh so much more valuable than a constant stream of you

Re: Kill implicit joining of adjacent strings

2010-11-10 Thread Vladimir Panteleev
On Thu, 11 Nov 2010 04:34:07 +0200, bearophile bearophileh...@lycos.com wrote: So please kill automatic joining of adjacent strings in D with fire. Yes please. I didn't even know this feature existed in D, but I was recently bitten by a bug in a C++ program - also due to a missing comma

Re: Kill implicit joining of adjacent strings

2010-11-10 Thread so
blue red I guess it exists because of a few use cases other than this one. For this particular example, you are right i couldn't see it and i checked two times! -- Using Opera's revolutionary email client: http://www.opera.com/mail/

Re: Kill implicit joining of adjacent strings

2010-11-10 Thread bearophile
Brad Roberts: Nagging is one way to accomplish change, but it's sure annoying. Right. I was a little too much nervous, sometimes I need to control myself a little more :-) If you feel the feature is import, you know where to get the source. Give it a shot. There is already a partial

Re: Kill implicit joining of adjacent strings

2010-11-10 Thread bearophile
Yao G.: Stop blaming the compiler for your own carelessness. If a simple common human error is avoidable at compile-time then it's the duty of the compiler to avoid it. Blaming the programmer is just silly (and it's against one of the main philosophical differences between C and D). I suggest

Re: Kill implicit joining of adjacent strings

2010-11-10 Thread Pillsy
so wrote: blue red I guess it exists because of a few use cases other than this one. It's sometimes nice to be able to break up really long string literals, but it looks like it's mostly a C holdover. In C it helps with some preprocessor macros, but D doesn't have preprocessor macros, so

Re: Kill implicit joining of adjacent strings

2010-11-10 Thread bearophile
so: For 3 lines yes but how about a long file? Not everyone using vim! There is very little D2 code around... and I don't think very large amounts of concatenated strings in the source code are a good programming practice. What about this one? red blue = error red blue = pass That's

  1   2   >