Re: Start of dmd 2.064 beta program

2013-10-15 Thread deadalnix
On Saturday, 12 October 2013 at 22:16:13 UTC, Walter Bright wrote: http://ftp.digitalmars.com/dmd2beta.zip Current list of regressions: http://d.puremagic.com/issues/buglist.cgi?query_format=advancedbug_severity=regressionbug_status=NEWbug_status=ASSIGNEDbug_status=REOPENED This isn't a

Re: Start of dmd 2.064 beta program

2013-10-15 Thread Jacob Carlborg
On 2013-10-15 07:16, deadalnix wrote: This is for that very reason that I prefers to work with timestamps UTC as much as possible. No timzone hell, no format hell, no nothing. Just convert from user input directly, and convert back to text just before output. Agree. Always work with universal

Re: Start of dmd 2.064 beta program

2013-10-15 Thread Nick Sabalausky
On Mon, 14 Oct 2013 23:13:25 +0200 monarch_dodra monarchdo...@gmail.com wrote: On Monday, 14 October 2013 at 13:25:23 UTC, Benjamin Thaut wrote: I'm also getting random missing symbol linker errors with both dmd 2.063.2 and dmd 2.064. But only on 32-bit windows. On 64-bit windows it

Re: Start of dmd 2.064 beta program

2013-10-15 Thread Jacob Carlborg
On 2013-10-13 00:16, Walter Bright wrote: http://ftp.digitalmars.com/dmd2beta.zip Current list of regressions: Another one: http://d.puremagic.com/issues/show_bug.cgi?id=11268 -- /Jacob Carlborg

Re: Start of dmd 2.064 beta program

2013-10-15 Thread Benjamin Thaut
Am 14.10.2013 23:19, schrieb Walter Bright: On 10/14/2013 6:25 AM, Benjamin Thaut wrote: I'm also getting random missing symbol linker errors with both dmd 2.063.2 and dmd 2.064. But only on 32-bit windows. On 64-bit windows it works fine. This is really frustrating... Is it possible you are

Re: Start of dmd 2.064 beta program

2013-10-15 Thread Walter Bright
On 10/15/2013 1:50 AM, Benjamin Thaut wrote: Am 14.10.2013 23:19, schrieb Walter Bright: On 10/14/2013 6:25 AM, Benjamin Thaut wrote: I'm also getting random missing symbol linker errors with both dmd 2.063.2 and dmd 2.064. But only on 32-bit windows. On 64-bit windows it works fine. This is

Re: Start of dmd 2.064 beta program

2013-10-15 Thread Benjamin Thaut
Am 15.10.2013 11:25, schrieb Walter Bright: On 10/15/2013 1:50 AM, Benjamin Thaut wrote: Am 14.10.2013 23:19, schrieb Walter Bright: On 10/14/2013 6:25 AM, Benjamin Thaut wrote: I'm also getting random missing symbol linker errors with both dmd 2.063.2 and dmd 2.064. But only on 32-bit

Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread Andrei Alexandrescu
http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it Andrei

LDC 0.12.0 beta 1 released, please help test!

2013-10-15 Thread David Nadlinger
As always, please see the announcement over at digitalmars.D.ldc for more information and the download links: http://forum.dlang.org/post/mailman.2211.1381859316.1719.digitalmars-d-...@puremagic.com Cheers, David

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread Tourist
On Tuesday, 15 October 2013 at 17:47:54 UTC, Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it Andrei Google shows a rise in interest as well: http://www.google.com/trends/explore?q=d+language#q=d%20languagecmpt=q

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread Walter Bright
On 10/15/2013 10:48 AM, Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it geeky optimism (!) And a companion article: http://www.fastcolabs.com/3019887/facebook-adds-5000-lines-of-d-language-code-whats-that-mean

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread qznc
On Tuesday, 15 October 2013 at 17:59:38 UTC, Tourist wrote: On Tuesday, 15 October 2013 at 17:47:54 UTC, Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it Andrei Google shows a rise in interest as well:

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread Iain Buclaw
On 15 October 2013 18:59, Tourist grava...@gravatar.com wrote: On Tuesday, 15 October 2013 at 17:47:54 UTC, Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it Andrei Google shows a rise in interest as well:

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread Andrei Alexandrescu
On 10/15/13 2:08 PM, qznc wrote: On Tuesday, 15 October 2013 at 17:59:38 UTC, Tourist wrote: On Tuesday, 15 October 2013 at 17:47:54 UTC, Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it Andrei Google shows a rise

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread Andrei Alexandrescu
On 10/15/13 2:08 PM, qznc wrote: On Tuesday, 15 October 2013 at 17:59:38 UTC, Tourist wrote: On Tuesday, 15 October 2013 at 17:47:54 UTC, Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it Andrei Google shows a rise

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread Tourist
On Tuesday, 15 October 2013 at 21:17:15 UTC, Andrei Alexandrescu wrote: On 10/15/13 2:08 PM, qznc wrote: On Tuesday, 15 October 2013 at 17:59:38 UTC, Tourist wrote: On Tuesday, 15 October 2013 at 17:47:54 UTC, Andrei Alexandrescu wrote:

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread qznc
On Tuesday, 15 October 2013 at 21:18:27 UTC, Andrei Alexandrescu wrote: Oh, could you please make a pull request to add a link to the tutorial on the front page? Probably right under Documentation before Book. Requested a pull. Further discussion over there:

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread Jesse Phillips
On Tuesday, 15 October 2013 at 17:59:38 UTC, Tourist wrote: On Tuesday, 15 October 2013 at 17:47:54 UTC, Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is-experimenting-with-it Andrei Google shows a rise in interest as well:

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-15 Thread Ali Çehreli
On 10/15/2013 02:18 PM, Andrei Alexandrescu wrote: And, Ali, Ali, Ali, when's your book going to be ready? I am guessing another two months. (I have valid excuses. :-/) Ali

Re: Start of dmd 2.064 beta program

2013-10-15 Thread Andrei Alexandrescu
On 10/15/13 7:15 PM, Andrej Mitrovic wrote: On 10/13/13, Tourist grava...@gravatar.com wrote: I'm wondering whether there will be the nifty changelog like it was for 2.063? Andrej? :D We'll see if someone else volunteers to do it. I'm not doing it out of protest. What are you protesting

Re: Help needed testing automatic win64 configuration

2013-10-15 Thread Brad Anderson
On Tuesday, 15 October 2013 at 05:48:07 UTC, evilrat wrote: On Tuesday, 15 October 2013 at 05:31:51 UTC, Brad Anderson wrote: On Tuesday, 15 October 2013 at 05:07:19 UTC, evilrat wrote: On Tuesday, 15 October 2013 at 04:42:27 UTC, Brad Anderson wrote: This version should fix that.

Re: Help needed testing automatic win64 configuration

2013-10-15 Thread dnewbie
VS 2010 Express/Windows SDK 7.0: dmd -m64 hello.d Can't run 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\link.exe', check PATH with dmd-2.064-beta-new-sc.ini-2.exe

Re: Help needed testing automatic win64 configuration

2013-10-15 Thread evilrat
On Tuesday, 15 October 2013 at 06:24:28 UTC, Brad Anderson wrote: I'm at a loss for how I would anyway. My only option might be to add execution of vcvars to the D2 Command Prompt shortcut I make. I'm going to sleep on this and think about it some more. ah ok, i've never used dmd prompt

Re: dmd 2.063 generated code a lot slower then dmd 2.062

2013-10-15 Thread Nick Sabalausky
On Mon, 14 Oct 2013 16:19:23 +0200 Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 10/14/13, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: And any sane editor There's your problem right there. I'd say a sane diff view would make it obvious that CRLF or tabs were

Re: Help needed testing automatic win64 configuration

2013-10-15 Thread Brad Anderson
On Tuesday, 15 October 2013 at 06:37:52 UTC, evilrat wrote: On Tuesday, 15 October 2013 at 06:24:28 UTC, Brad Anderson wrote: I'm at a loss for how I would anyway. My only option might be to add execution of vcvars to the D2 Command Prompt shortcut I make. I'm going to sleep on this and

Re: draft proposal for ref counting in D

2013-10-15 Thread Rainer Schuetze
On 14.10.2013 21:42, Michel Fortin wrote: Indeed. The current garbage collector makes it easy to have shared pointers to shared objects. But the GC can also interrupt real-time threads for an unpredictable duration, how do you cope with that in a real-time thread? The work I was talking

Re: Early review of std.logger

2013-10-15 Thread Jacob Carlborg
On 2013-10-14 23:22, Dicebot wrote: If we need to care about that, D module system is a failure. But I don't think it is a valid concern. People already complain about conflict function names in Phobos. -- /Jacob Carlborg

Re: draft proposal for ref counting in D

2013-10-15 Thread Jacob Carlborg
On 2013-10-15 05:11, Michel Fortin wrote: mprotect isn't available at all with the iOS SDK. So making this collector work on iOS (and the iOS Simulator) would require a different codegen. I haven't tried compiling anything and I don't know if I'm looking in the correct file but this file:

Re: Early review of std.logger

2013-10-15 Thread Sönke Ludwig
Am 15.10.2013 09:08, schrieb Jacob Carlborg: On 2013-10-14 23:22, Dicebot wrote: If we need to care about that, D module system is a failure. But I don't think it is a valid concern. People already complain about conflict function names in Phobos. And I'd agree with them. At least inside

Re: Early review of std.logger

2013-10-15 Thread Sönke Ludwig
Am 14.10.2013 20:24, schrieb Robert Schadek: On 10/14/2013 04:44 PM, Sönke Ludwig wrote: Am 14.10.2013 15:12, schrieb Robert Schadek: On 10/14/2013 02:39 PM, Sönke Ludwig wrote: - The static methods in LogManager should be made global and the class be removed. It's not for objects so it

Re: Early review of std.logger

2013-10-15 Thread ilya-stromberg
On Monday, 14 October 2013 at 12:48:14 UTC, Martin Drasar wrote: 1) MultiLogger class that takes references to other loggers and just forwards the call to the log function. +1 Also, we should support a few loggers whith same type. For example, I can use 2 file loggers: the 1-st only for

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 04:06 AM, Eric Anderton wrote: On Monday, 14 October 2013 at 11:39:52 UTC, Dicebot wrote: Lets unleash the forces of constructive destruction. So, not to be too heavy-handed with criticism on this library, but I think this should come up to par with solutions like log4j,

Re: GDC vs dmd speed

2013-10-15 Thread Paul Jurczak
On Monday, 14 October 2013 at 19:24:27 UTC, Spacen Jasset wrote: Hello, Whilst porting some C++ code I have discovered that the compiled output from the gdc compiler seems to be 47% quicker than the dmd compiler. Here is a few more data points for microbenchmarks of simple functions

Re: GDC vs dmd speed

2013-10-15 Thread John Colvin
On Monday, 14 October 2013 at 19:24:27 UTC, Spacen Jasset wrote: gdc 4.6 (0.29.1-4.6.4-1ubuntu4) Which I assume might be v2.020? with flags: [-O2] That's a really old gdc. If you can, upgrade to ubuntu 13.10 and you'll get a more up-to-date version. Alternatively, build from source:

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 02:44 AM, Kapps wrote: A few concerns: There doesn't seem to be a debug or trace log level. This is quite a useful thing to have once your program is deployed. there is a LogLevel.debug and a LogLevel.info I don't like the returning by ref for log methods. For example, it

Re: dmd 2.063 generated code a lot slower then dmd 2.062

2013-10-15 Thread PauloPinto
On Tuesday, 15 October 2013 at 06:38:22 UTC, Nick Sabalausky wrote: On Mon, 14 Oct 2013 16:19:23 +0200 Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 10/14/13, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: And any sane editor There's your problem right there. I'd say a

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 09:32 AM, Sönke Ludwig wrote: Am 15.10.2013 09:08, schrieb Jacob Carlborg: On 2013-10-14 23:22, Dicebot wrote: If we need to care about that, D module system is a failure. But I don't think it is a valid concern. People already complain about conflict function names in Phobos.

Re: Early review of std.logger

2013-10-15 Thread ponce
What are the philosophy behind errors vs fatal errors vs critical errors? When should we use each of these?

Re: Early review of std.logger

2013-10-15 Thread ponce
On Monday, 14 October 2013 at 18:29:09 UTC, ilya-stromberg wrote: On Monday, 14 October 2013 at 18:00:12 UTC, Robert Schadek wrote: If you disagree, please tell why. If you want a logger with a particular feature, this module will allow to create a custom logger. It would be a mistake to

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 09:40 AM, Sönke Ludwig wrote: Am 14.10.2013 20:24, schrieb Robert Schadek: On 10/14/2013 04:44 PM, Sönke Ludwig wrote: The same could be said about the global log functions, which are tightly coupled to that state. I think this is already nicely grouped together by the logger

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 09:44 AM, ilya-stromberg wrote: On Monday, 14 October 2013 at 12:48:14 UTC, Martin Drasar wrote: 1) MultiLogger class that takes references to other loggers and just forwards the call to the log function. +1 Also, we should support a few loggers whith same type. For example, I

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 10:49 AM, ponce wrote: What are the philosophy behind errors vs fatal errors vs critical errors? When should we use each of these? fatal = the application is going down, I'm just letting you know critical = the application is maybe going down, I'm not sure yet, but this is a

Re: Qt bindings for D

2013-10-15 Thread Max Samukha
On Monday, 14 October 2013 at 09:45:18 UTC, Abdulhaq wrote: I recommend to dump it and start from scratch. A clang-based generator would be an interesting option to explore. Or, if you want to preserve your sanity, just write Qt applications in C++/QML. Hi Max, so why dump it? I can see a

Re: Qt bindings for D

2013-10-15 Thread Max Samukha
On Monday, 14 October 2013 at 11:35:05 UTC, Jacob Carlborg wrote: On 2013-10-14 11:03, Max Samukha wrote: I recommend to dump it and start from scratch. A clang-based generator would be an interesting option to explore. Or, if you want to preserve your sanity, just write Qt applications in

Re: Early review of std.logger

2013-10-15 Thread Dicebot
On Tuesday, 15 October 2013 at 07:33:15 UTC, Sönke Ludwig wrote: Am 15.10.2013 09:08, schrieb Jacob Carlborg: On 2013-10-14 23:22, Dicebot wrote: If we need to care about that, D module system is a failure. But I don't think it is a valid concern. People already complain about conflict

Re: [Proposal] Weak reference implementation for D

2013-10-15 Thread Denis Shelomovskij
14.10.2013 17:42, robert пишет: Damn it, you are right I did not think this through, somehow thought the use in addrOf is enough, which is of course crap. Thank's a lot for your time, I'll fix this ASAP. So, here are your revised version:

Re: draft proposal for ref counting in D

2013-10-15 Thread Michel Fortin
On 2013-10-15 02:20:49 +, deadalnix deadal...@gmail.com said: It will indeed cause trouble for code that mutate a large amount of shared pointers. I'd say that such code is probably asking for trouble in the first place, but as always, no silver bullet. I still think solution is the one

Re: draft proposal for ref counting in D

2013-10-15 Thread Michel Fortin
On 2013-10-15 07:28:16 +, Jacob Carlborg d...@me.com said: On 2013-10-15 05:11, Michel Fortin wrote: mprotect isn't available at all with the iOS SDK. So making this collector work on iOS (and the iOS Simulator) would require a different codegen. I haven't tried compiling anything and I

Re: Early review of std.logger

2013-10-15 Thread Sönke Ludwig
Am 15.10.2013 10:54, schrieb Robert Schadek: On 10/15/2013 09:40 AM, Sönke Ludwig wrote: Am 14.10.2013 20:24, schrieb Robert Schadek: On 10/14/2013 04:44 PM, Sönke Ludwig wrote: The same could be said about the global log functions, which are tightly coupled to that state. I think this is

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 02:54 PM, Sönke Ludwig wrote: What I meant is just that in Druntime there is something like this: struct LogManager { static void somefunc(); } instead of class LogManager { static void someFunc(); } In any case, such a struct/class should also have a member @disable

Re: Early review of std.logger

2013-10-15 Thread Sönke Ludwig
Am 15.10.2013 10:41, schrieb Robert Schadek: On 10/15/2013 02:44 AM, Kapps wrote: The simple act of logging a message is very verbose right now: log(LogLevel.trace, Creating new pool) is a lot of boiler plate. I'd prefer something like log.trace(Creating new pool) and log(Creating new pool)

Re: Early review of std.logger

2013-10-15 Thread ilya-stromberg
On Tuesday, 15 October 2013 at 07:52:28 UTC, Robert Schadek wrote: On 10/15/2013 04:06 AM, Eric Anderton wrote: On Monday, 14 October 2013 at 11:39:52 UTC, Dicebot wrote: Here's what I think is missing: - System log support (as others have mentioned). This would be syslog or WEL, depending

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 03:21 PM, Sönke Ludwig wrote: Am 15.10.2013 10:41, schrieb Robert Schadek: On 10/15/2013 02:44 AM, Kapps wrote: The simple act of logging a message is very verbose right now: log(LogLevel.trace, Creating new pool) is a lot of boiler plate. I'd prefer something like

Re: Early review of std.logger

2013-10-15 Thread Dicebot
On Tuesday, 15 October 2013 at 13:31:40 UTC, ilya-stromberg wrote: ... I think such stuff should go as an extra module in same package with various useful out-of-the box logger implementations at the very best. Probably even dub package built on top of std.logger; Phobos has very specific

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 03:31 PM, ilya-stromberg wrote: On Tuesday, 15 October 2013 at 07:52:28 UTC, Robert Schadek wrote: On 10/15/2013 04:06 AM, Eric Anderton wrote: On Monday, 14 October 2013 at 11:39:52 UTC, Dicebot wrote: Here's what I think is missing: - System log support (as others have

Re: Early review of std.logger

2013-10-15 Thread Dicebot
But actual batteries - no, this does belong to Phobos. * does not belong

Re: Early review of std.logger

2013-10-15 Thread Dicebot
On Tuesday, 15 October 2013 at 13:52:17 UTC, Robert Schadek wrote: I think this is good, as it gives you a way to quite libraries down. The idea behind the free standing log function is to provide an ultra easy way to log. It is not meant to be used for the 231 line program. In that case you

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 03:54 PM, Dicebot wrote: On Tuesday, 15 October 2013 at 13:31:40 UTC, ilya-stromberg wrote: ... I think such stuff should go as an extra module in same package with various useful out-of-the box logger implementations at the very best. Probably even dub package built on top of

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 03:57 PM, Dicebot wrote: On Tuesday, 15 October 2013 at 13:52:17 UTC, Robert Schadek wrote: I think this is good, as it gives you a way to quite libraries down. The idea behind the free standing log function is to provide an ultra easy way to log. It is not meant to be used for

Re: Early review of std.logger

2013-10-15 Thread ilya-stromberg
On Tuesday, 15 October 2013 at 13:54:12 UTC, Dicebot wrote: On Tuesday, 15 October 2013 at 13:31:40 UTC, ilya-stromberg wrote: ... I think such stuff should go as an extra module in same package with various useful out-of-the box logger implementations at the very best. Probably even dub

Re: Inconsitency

2013-10-15 Thread Kagamin
On Sunday, 13 October 2013 at 17:01:15 UTC, Dicebot wrote: If single element access is needed, str.front yields decoded `dchar`. Or simple `foreach (dchar d; str)` - it won't hide the fact it is O(n) operation at least. As `str.front` yields dchar, most `std.algorithm` and `std.range`

Re: Early review of std.logger

2013-10-15 Thread Sönke Ludwig
Am 15.10.2013 15:52, schrieb Robert Schadek: On 10/15/2013 03:21 PM, Sönke Ludwig wrote: Am 15.10.2013 10:41, schrieb Robert Schadek: On 10/15/2013 02:44 AM, Kapps wrote: The simple act of logging a message is very verbose right now: log(LogLevel.trace, Creating new pool) is a lot of boiler

Re: Inconsitency

2013-10-15 Thread Kagamin
On Sunday, 13 October 2013 at 14:14:14 UTC, nickles wrote: Also, I understand, that there is the std.utf.count() function which returns the length that I was searching for. However, why - if D is so UTF-8-centric - isn't this function implemented in the core like .length? Most code doesn't

Re: Early review of std.logger

2013-10-15 Thread Dicebot
On Tuesday, 15 October 2013 at 14:09:36 UTC, ilya-stromberg wrote: I did not talk about additional external libraries. As I know, Vibe.d use OpenSSL to provide SSL streams. Since we haven't got encryption support in Phobos, we can provide only TCP streams. For example, sending mail is clearly

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 04:12 PM, Sönke Ludwig wrote: Believe it or not, for some reason I suspected as much. Yes, but the point is that when looking only at func1, you might expect that all messages are logged as debug messages, but the last one will be logged as a warning instead. func2 may be

Re: Early review of std.logger

2013-10-15 Thread ilya-stromberg
On Tuesday, 15 October 2013 at 14:12:38 UTC, Sönke Ludwig wrote: Am 15.10.2013 15:52, schrieb Robert Schadek: On 10/15/2013 03:21 PM, Sönke Ludwig wrote: Am 15.10.2013 10:41, schrieb Robert Schadek: On 10/15/2013 02:44 AM, Kapps wrote: The simple act of logging a message is very verbose right

Re: Early review of std.logger

2013-10-15 Thread ilya-stromberg
On Tuesday, 15 October 2013 at 14:20:15 UTC, Robert Schadek wrote: On 10/15/2013 04:12 PM, Sönke Ludwig wrote: Believe it or not, for some reason I suspected as much. Yes, but the point is that when looking only at func1, you might expect that all messages are logged as debug messages, but

Re: Early review of std.logger

2013-10-15 Thread Sönke Ludwig
Am 15.10.2013 15:31, schrieb ilya-stromberg: On Tuesday, 15 October 2013 at 07:52:28 UTC, Robert Schadek wrote: On 10/15/2013 04:06 AM, Eric Anderton wrote: On Monday, 14 October 2013 at 11:39:52 UTC, Dicebot wrote: Here's what I think is missing: - System log support (as others have

Re: Early review of std.logger

2013-10-15 Thread ilya-stromberg
On Tuesday, 15 October 2013 at 14:13:53 UTC, Dicebot wrote: On Tuesday, 15 October 2013 at 14:09:36 UTC, ilya-stromberg wrote: I did not talk about additional external libraries. As I know, Vibe.d use OpenSSL to provide SSL streams. Since we haven't got encryption support in Phobos, we can

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 04:17 PM, ilya-stromberg wrote: On Tuesday, 15 October 2013 at 14:12:38 UTC, Sönke Ludwig wrote: But if it's available people _will_ use it in complex contexts. Also if the writer of a 28 loc library uses it and the library is used by a large piece of software, that will also be

Re: Early review of std.logger

2013-10-15 Thread Robert Schadek
On 10/15/2013 04:23 PM, ilya-stromberg wrote: On Tuesday, 15 October 2013 at 14:20:15 UTC, Robert Schadek wrote: Logging is the most unpure functionality I can think of. It is side effect heaven. Yes, but we should minimise possible side effects. Of course, but having global state aka. a

Re: Early review of std.logger

2013-10-15 Thread Sönke Ludwig
Am 15.10.2013 16:33, schrieb Robert Schadek: On 10/15/2013 04:23 PM, ilya-stromberg wrote: On Tuesday, 15 October 2013 at 14:20:15 UTC, Robert Schadek wrote: Logging is the most unpure functionality I can think of. It is side effect heaven. Yes, but we should minimise possible side effects.

Re: Early review of std.logger

2013-10-15 Thread ilya-stromberg
On Tuesday, 15 October 2013 at 14:25:55 UTC, Robert Schadek wrote: On 10/15/2013 04:17 PM, ilya-stromberg wrote: On Tuesday, 15 October 2013 at 14:12:38 UTC, Sönke Ludwig wrote: But if it's available people _will_ use it in complex contexts. Also if the writer of a 28 loc library uses it and

Re: Early review of std.logger

2013-10-15 Thread Andrei Alexandrescu
On 10/15/13 12:52 AM, Robert Schadek wrote: On 10/15/2013 04:06 AM, Eric Anderton wrote: On Monday, 14 October 2013 at 11:39:52 UTC, Dicebot wrote: Lets unleash the forces of constructive destruction. So, not to be too heavy-handed with criticism on this library, but I think this should come

Structured logging (was Early review of std.logger)

2013-10-15 Thread Johannes Pfau
I think one increasingly important point for std.log is 'structured logging'. Structured logging is basically not simply logging textual messages, but also logging additional KEY/VALUE pairs of data. The idea is that logs should not only be readable by humans but also easy to parse and analyze.

Re: Structured logging (was Early review of std.logger)

2013-10-15 Thread Robert Schadek
On 10/15/2013 05:20 PM, Johannes Pfau wrote: I think one increasingly important point for std.log is 'structured logging'. Structured logging is basically not simply logging textual messages, but also logging additional KEY/VALUE pairs of data. The idea is that logs should not only be

Re: Structured logging (was Early review of std.logger)

2013-10-15 Thread Dicebot
On Tuesday, 15 October 2013 at 15:53:34 UTC, Robert Schadek wrote: That been said, you can add it. The method Logger.logf is a variadic template. You can simple create your own Logger Class and overwrite that method and implemented your structured logging approach there. The only pitfall is

Re: Qt bindings for D

2013-10-15 Thread w0rp
On Tuesday, 15 October 2013 at 09:38:15 UTC, Max Samukha wrote: Long story short, D allows for two approaches to bindings like QtD: 1. The traditional one is to allocate shells on GC heap and have a set of manually specified rules for ownership transfers and reference count adjustments. 2.

Re: Qt bindings for D

2013-10-15 Thread Andrej Mitrovic
On 10/15/13, w0rp devw...@gmail.com wrote: I couldn't think of a way to do it myself which was elegant. Perhaps you can pin the object and hook into the C++ destructor somehow?

Fastest way to learn D?

2013-10-15 Thread ProgrammingGhost
What is the fastest way for me to learn D? I think what I want is a syntax reference manual and a good tutorial to learn how to find and use libs.

Re: Fastest way to learn D?

2013-10-15 Thread Craig Dillabaugh
On Tuesday, 15 October 2013 at 18:13:46 UTC, ProgrammingGhost wrote: What is the fastest way for me to learn D? I think what I want is a syntax reference manual and a good tutorial to learn how to find and use libs. The best way to learn D is to start by reading the API and code examples in

Re: Fastest way to learn D?

2013-10-15 Thread Dejan Lekic
On Tue, 15 Oct 2013 20:13:45 +0200, ProgrammingGhost wrote: What is the fastest way for me to learn D? I think what I want is a syntax reference manual and a good tutorial to learn how to find and use libs. I learned D by doing two things. 1) Downloading the bundled DMD in a ZIP file. 2)

Re: draft proposal for ref counting in D

2013-10-15 Thread deadalnix
On Tuesday, 15 October 2013 at 11:03:01 UTC, Michel Fortin wrote: On 2013-10-15 02:20:49 +, deadalnix deadal...@gmail.com said: It will indeed cause trouble for code that mutate a large amount of shared pointers. I'd say that such code is probably asking for trouble in the first place,

Re: Fastest way to learn D?

2013-10-15 Thread Craig Dillabaugh
On Tuesday, 15 October 2013 at 18:25:48 UTC, Dejan Lekic wrote: On Tue, 15 Oct 2013 20:13:45 +0200, ProgrammingGhost wrote: What is the fastest way for me to learn D? I think what I want is a syntax reference manual and a good tutorial to learn how to find and use libs. I learned D by

Re: Fastest way to learn D?

2013-10-15 Thread Brian Schott
On Tuesday, 15 October 2013 at 18:25:48 UTC, Dejan Lekic wrote: 2) Reading the language reference at http://www.dlang.org (back then it was on DigitalMars website...) If you want a more accurate version of the language grammar, take a look at this:

Re: Fastest way to learn D?

2013-10-15 Thread Dejan Lekic
You really learned D from the online language reference? Thats hard core! You must be much smarter than me. I suggested reading the Phobos docs online, but I was just joking. Well, that was ~10 years ago... Language reference is still pretty much okay, with more examples, plus we also

Re: Fastest way to learn D?

2013-10-15 Thread John Colvin
On Tuesday, 15 October 2013 at 18:32:59 UTC, Craig Dillabaugh wrote: On Tuesday, 15 October 2013 at 18:25:48 UTC, Dejan Lekic wrote: On Tue, 15 Oct 2013 20:13:45 +0200, ProgrammingGhost wrote: What is the fastest way for me to learn D? I think what I want is a syntax reference manual and a

Re: Fastest way to learn D?

2013-10-15 Thread Dicebot
On Tuesday, 15 October 2013 at 18:32:59 UTC, Craig Dillabaugh wrote: You really learned D from the online language reference? Thats hard core! You must be much smarter than me. You know, good old times when it was the only information available about D2, before even TDPL came out.. We

Re: [Proposal] Weak reference implementation for D

2013-10-15 Thread Sean Kelly
Perhaps I missed it from skimming, but why are we using atomic operations here anyway? Has testing revealed that it's necessary?

Re: Fastest way to learn D?

2013-10-15 Thread Craig Dillabaugh
On Tuesday, 15 October 2013 at 18:36:19 UTC, John Colvin wrote: On Tuesday, 15 October 2013 at 18:32:59 UTC, Craig Dillabaugh wrote: On Tuesday, 15 October 2013 at 18:25:48 UTC, Dejan Lekic wrote: On Tue, 15 Oct 2013 20:13:45 +0200, ProgrammingGhost wrote: What is the fastest way for me to

Re: Fastest way to learn D?

2013-10-15 Thread Wyatt
On Tuesday, 15 October 2013 at 18:29:21 UTC, Craig Dillabaugh wrote: The is also an under construction tutorial: http://beza1e1.tuxen.de/d-tut-0.1/index.html which looks promising, but is far from complete. As an addendum, this one is a neat example of how things can come together in real

D bindings for OpenCV

2013-10-15 Thread TJSomething
I know this has been asked a few times before, but that was a few years ago. Are there any reasonably complete and up to date OpenCV bindings for D? If not, are there any reasonably easy ways to generate them? I tried SWIG and it choked on some of the macros they used, though that may have

Re: D bindings for OpenCV

2013-10-15 Thread John Colvin
On Tuesday, 15 October 2013 at 19:20:10 UTC, TJSomething wrote: I know this has been asked a few times before, but that was a few years ago. Are there any reasonably complete and up to date OpenCV bindings for D? If not, are there any reasonably easy ways to generate them? I tried SWIG and

Re: [Proposal] Weak reference implementation for D

2013-10-15 Thread John Colvin
On Tuesday, 15 October 2013 at 18:57:16 UTC, Sean Kelly wrote: Perhaps I missed it from skimming, but why are we using atomic operations here anyway? Has testing revealed that it's necessary? I presume you don't mean running some code and then seeing if it breaks as a test to see if atomic

Re: Fastest way to learn D?

2013-10-15 Thread Robert BuRnEr Schadek
On 10/15/2013 08:13 PM, ProgrammingGhost wrote: What is the fastest way for me to learn D? I think what I want is a syntax reference manual and a good tutorial to learn how to find and use libs. I would suggest to write a compiler for D in D. Helped me alot, but I still learning new stuff.

Re: dub repository for a C binding

2013-10-15 Thread Sebastian Graf
On Friday, 11 October 2013 at 10:57:38 UTC, Sönke Ludwig wrote: Am 11.10.2013 11:25, schrieb Sebastian Graf: On Thursday, 10 October 2013 at 01:51:09 UTC, Rikki Cattermole wrote: Take a look at copyFiles option. It copies files e.g. dll's into the bin directory when compiled. Although keep

Re: Fastest way to learn D?

2013-10-15 Thread deadalnix
On Tuesday, 15 October 2013 at 18:13:46 UTC, ProgrammingGhost wrote: What is the fastest way for me to learn D? I think what I want is a syntax reference manual and a good tutorial to learn how to find and use libs. Ali's book is especially targeted at beginners :

Re: dub repository for a C binding

2013-10-15 Thread Sebastian Graf
On Friday, 11 October 2013 at 10:57:56 UTC, Sebastian Graf wrote: On Friday, 11 October 2013 at 09:25:58 UTC, Sebastian Graf wrote: On Thursday, 10 October 2013 at 01:51:09 UTC, Rikki Cattermole wrote: Take a look at copyFiles option. It copies files e.g. dll's into the bin directory when

Re: [Proposal] Weak reference implementation for D

2013-10-15 Thread Sean Kelly
On Tuesday, 15 October 2013 at 19:51:00 UTC, John Colvin wrote: On Tuesday, 15 October 2013 at 18:57:16 UTC, Sean Kelly wrote: Perhaps I missed it from skimming, but why are we using atomic operations here anyway? Has testing revealed that it's necessary? I presume you don't mean running

Re: dub repository for a C binding

2013-10-15 Thread Sönke Ludwig
Am 15.10.2013 22:11, schrieb Sebastian Graf: On Friday, 11 October 2013 at 10:57:56 UTC, Sebastian Graf wrote: On Friday, 11 October 2013 at 09:25:58 UTC, Sebastian Graf wrote: On Thursday, 10 October 2013 at 01:51:09 UTC, Rikki Cattermole wrote: Take a look at copyFiles option. It copies

  1   2   3   >