Re: When will we have std.log?

2012-10-07 Thread José Armando García Sancio
On Sat, Oct 6, 2012 at 11:47 PM, domain do.m...@163.com wrote: It has been suspended for a long time. Any plan? I have been working on it in my spare time. I have fixed some basic API issues that were outlined during the review process but not enough to put it through another review process.

Re: RFC: DConf 2013

2012-10-06 Thread José Armando García Sancio
On Sat, Oct 6, 2012 at 4:20 PM, Era Scarecrow rtcv...@yahoo.com wrote: On Wednesday, 3 October 2012 at 17:08:25 UTC, Andrei Alexandrescu wrote: I hear you. We have a detailed budget model and we're not splurging in any way. Organizing a conference has quite a few odds and ends and weird

Re: It seems pure ain't so pure after all

2012-10-01 Thread José Armando García Sancio
On Mon, Oct 1, 2012 at 4:19 PM, Tommi tommitiss...@hotmail.com wrote: On Monday, 1 October 2012 at 22:23:51 UTC, Jonathan M Davis wrote: Keywords are considered to be incredibly expensive. Being able to use a name starting with @ rather than a keyword does reduce the cost, but you're still

Re: Rust and D

2012-09-28 Thread José Armando García Sancio
On Fri, Sep 28, 2012 at 3:21 PM, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: (My apologies if the article's author is reading this, no offense was intended.) Doubt it. I believe the author was Rob Pike.

Re: Embedded non-assignable containers

2012-09-04 Thread José Armando García Sancio
On Sun, Sep 2, 2012 at 12:39 AM, Philippe Sigaud philippe.sig...@gmail.comwrote: To make a type double linkable the developer needs to mixin the following mixin template: mixin template DoubleLinkable() { typeof(this) next; typeof(this) prev; } The next and prev pointer

Re: Embedded non-assignable containers

2012-09-04 Thread José Armando García Sancio
On Sat, Sep 1, 2012 at 6:40 PM, bearophile bearophileh...@lycos.com wrote: José Armando García Sancio: I recently read an interesting blog Why should I have written ZeroMQ in C, not C++ (part II) http://www.250bpm.com/blog:8 by Martin Sústrik. The title is misleading; to me its main

Re: modulename

2012-09-04 Thread José Armando García Sancio
On Tue, Sep 4, 2012 at 2:00 PM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Tuesday, September 04, 2012 22:40:19 Andrej Mitrovic wrote: On 9/4/12, Jonathan M Davis jmdavisp...@gmx.com wrote: But it looks like we now have std.traits.moduleName, so presumably that will do the trick.

Re: modulename

2012-09-04 Thread José Armando García Sancio
On Tue, Sep 4, 2012 at 1:36 PM, Andrej Mitrovic andrej.mitrov...@gmail.comwrote: 9/4/12, Ellery Newcomer ellery-newco...@utulsa.edu wrote: On 09/04/2012 12:41 PM, Andrej Mitrovic wrote: __FILE__? It doesn't necessarily have the exact package hierarchy. We could really use __MODULE__

Embedded non-assignable containers

2012-09-01 Thread José Armando García Sancio
Hey, I recently read an interesting blog Why should I have written ZeroMQ in C, not C++ (part II) http://www.250bpm.com/blog:8 by Martin Sústrik. The title is misleading; to me its main observation is that object oriented program may not lead to the most performant implementation. After reading

Re: The review of std.hash package

2012-08-15 Thread José Armando García Sancio
On Wed, Aug 15, 2012 at 2:40 AM, RivenTheMage riven-m...@id.ru wrote: Another example is a systematic error-correcting codes. The only difference between them and checksums is the ability to correct errors, not just detect them. CRC or MD5 can be viewed as systematic code with zero

Re: The review of std.hash package

2012-08-15 Thread José Armando García Sancio
On Wed, Aug 15, 2012 at 8:11 AM, ReneSac renedu...@yahoo.com.br wrote: Note that in the Python passlib, there is no mention to CRC, FNV, ROT13, etc. Their place is different. Thats because it is a password module and nobody or a small percentage of the population uses CRC for password digest.

Re: finish function for output ranges

2012-08-12 Thread José Armando García Sancio
On Sat, Aug 11, 2012 at 4:29 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: For files, finish() should close the file (or at least flush it - unclear on that). I also wonder whether there exists a better name than finish(), and how to handle cases in which e.g. you finish() an

Re: Why won't this compile using DMD?

2012-08-12 Thread José Armando García Sancio
On Sun, Aug 12, 2012 at 7:31 AM, Simen Kjaeraas simen.kja...@gmail.com wrote: On Sun, 12 Aug 2012 09:39:13 +0200, Ivan Trombley itromb...@dot-borg.org auto data = new Data(count); should be auto data = cast(shared)new Data(count); Or auto data = new shared(Data)(count);

Re: Why won't this compile using DMD?

2012-08-12 Thread José Armando García Sancio
On Sun, Aug 12, 2012 at 1:18 PM, Simen Kjaeraas simen.kja...@gmail.com wrote: On Sun, 12 Aug 2012 19:57:16 +0200, José Armando García Sancio jsan...@gmail.com wrote: On Sun, Aug 12, 2012 at 7:31 AM, Simen Kjaeraas simen.kja...@gmail.com wrote: On Sun, 12 Aug 2012 09:39:13 +0200, Ivan

Re: @property

2012-08-07 Thread José Armando García Sancio
On Sun, Aug 5, 2012 at 2:32 PM, Kapps opantm2+s...@gmail.com wrote: On Sunday, 5 August 2012 at 14:32:50 UTC, Adam D. Ruppe wrote: On Sunday, 5 August 2012 at 04:12:23 UTC, Jonathan M Davis wrote: I'd be very surprised if all that many people compile with -property. Indeed. Sometimes I try

Re: @property

2012-08-07 Thread José Armando García Sancio
On Mon, Aug 6, 2012 at 11:31 PM, Brad Anderson e...@gnuk.net wrote: On Mon, Aug 6, 2012 at 11:59 PM, José Armando García Sancio jsan...@gmail.com wrote: On Sun, Aug 5, 2012 at 2:32 PM, Kapps opantm2+s...@gmail.com wrote: On Sunday, 5 August 2012 at 14:32:50 UTC, Adam D. Ruppe wrote

Re: @property

2012-08-07 Thread José Armando García Sancio
On Tue, Aug 7, 2012 at 10:39 AM, Timon Gehr timon.g...@gmx.ch wrote: On 08/07/2012 07:59 AM, José Armando García Sancio wrote: On Sun, Aug 5, 2012 at 2:32 PM, Kappsopantm2+s...@gmail.com wrote: On Sunday, 5 August 2012 at 14:32:50 UTC, Adam D. Ruppe wrote: On Sunday, 5 August 2012 at 04

Re: @property

2012-08-07 Thread José Armando García Sancio
On Tue, Aug 7, 2012 at 12:27 PM, Timon Gehr timon.g...@gmx.ch wrote: On 08/07/2012 08:37 PM, José Armando García Sancio wrote: On Tue, Aug 7, 2012 at 10:39 AM, Timon Gehrtimon.g...@gmx.ch wrote: On 08/07/2012 07:59 AM, José Armando García Sancio wrote: On Sun, Aug 5, 2012 at 2:32 PM

Re: @property

2012-08-07 Thread José Armando García Sancio
On Tue, Aug 7, 2012 at 1:52 PM, José Armando García Sancio jsan...@gmail.com wrote: On Tue, Aug 7, 2012 at 12:27 PM, Timon Gehr timon.g...@gmx.ch wrote: On 08/07/2012 08:37 PM, José Armando García Sancio wrote: On Tue, Aug 7, 2012 at 10:39 AM, Timon Gehrtimon.g...@gmx.ch wrote: On 08/07

Re: std.d.lexer requirements

2012-08-02 Thread José Armando García Sancio
On Thu, Aug 2, 2012 at 1:26 PM, Jonathan M Davis jmdavisp...@gmx.com wrote: On Thursday, August 02, 2012 01:44:18 Walter Bright wrote: On 8/2/2012 1:38 AM, Jonathan M Davis wrote: On Thursday, August 02, 2012 01:14:30 Walter Bright wrote: On 8/2/2012 12:43 AM, Jonathan M Davis wrote: It is

Re: @trusted considered harmful

2012-07-27 Thread José Armando García Sancio
On Fri, Jul 27, 2012 at 5:08 PM, David Nadlinger s...@klickverbot.at wrote: 2) The first step is necessary, but mainly of cosmetic nature (think `pure`, `pure2`). We still need to address for the granularity and attribute inference problem. The obvious solution is to add a @trusted

Re: D support in Exuberant Ctags 5.8 for Windows

2012-07-26 Thread José Armando García Sancio
On Thu, Jul 26, 2012 at 3:34 PM, dnewbie r...@myopera.com wrote: There is --ctags output in Dscanner https://github.com/Hackerpilot/Dscanner Very interesting. Is this Dscanner pluggable? I would be interesting to use Dscanner for localization. For example it would be nice if it could generate a

Re: D support in Exuberant Ctags 5.8 for Windows

2012-07-26 Thread José Armando García Sancio
On Thu, Jul 26, 2012 at 4:59 PM, Brian Schott briancsch...@gmail.com wrote: On Thursday, 26 July 2012 at 23:51:34 UTC, José Armando García Sancio wrote: On Thu, Jul 26, 2012 at 3:34 PM, dnewbie r...@myopera.com wrote: There is --ctags output in Dscanner https://github.com/Hackerpilot

Re: Take and website

2012-07-24 Thread José Armando García Sancio
On Tue, Jul 24, 2012 at 11:47 AM, Russel Winder rus...@winder.org.uk wrote: On Tue, 2012-07-24 at 14:21 -0400, Andrei Alexandrescu wrote: […] Is the website documentation generated from the Phobos source or is it a separate repository? That particular example should be in the ddoc block for

Creator of ZeroMQ and AMQP comments on error handling

2012-07-15 Thread José Armando García Sancio
Hey everyone, Apologies for sending this to the D mailing list but I just read a very interesting article on error handling and was interested in your opinion. I just read an article by Martin Sústrik, one of the creators of AMQP and ZeroMQ, on using C++ for writing infrastructure/system

Re: Creator of ZeroMQ and AMQP comments on error handling

2012-07-15 Thread José Armando García Sancio
On Sun, Jul 15, 2012 at 1:31 PM, José Armando García Sancio jsan...@gmail.com wrote: Why should I have written ZeroMQ in C, not C++ - http://www.250bpm.com/blog:4 Reddit thread if you are interested: http://www.reddit.com/r/programming/comments/tggnn/why_should_i_have_written_zeromq_in_c_not_c/

Re: Creator of ZeroMQ and AMQP comments on error handling

2012-07-15 Thread José Armando García Sancio
On Sun, Jul 15, 2012 at 3:00 PM, Tobias Pankrath tob...@pankrath.net wrote: What do you all think? All his arguments about C++ exceptions hold for plain return values, too. Yes but he would said that is not the point of his article. I think his point is that if you decide not to use

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-05-30 Thread José Armando García Sancio
On Wed, May 30, 2012 at 5:30 PM, Steven Schveighoffer schvei...@yahoo.com wrote: All deadlocks involving A and B mutexes.  Or if not, can you show how?  I can't see it. -Steve This can cause a deadlock because locking order is not guaranteed, no? synchronized class A { void delegate(B b) {