Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-16 Thread Sönke Ludwig
Am 15.10.2013 23:17, schrieb 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

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-16 Thread simendsjo
On Wednesday, 16 October 2013 at 07:52:06 UTC, Sönke Ludwig wrote: Am 15.10.2013 23:17, schrieb 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:

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 10:01, simendsjo wrote: Another funny thing: I couldn't get the page to work in Chromium and had to use FF :) Did you try Chrome :) -- /Jacob Carlborg

Re: Pragmatic D Tutorial

2013-10-16 Thread Tourist
On Sunday, 13 October 2013 at 08:23:16 UTC, Tourist wrote: On Saturday, 12 October 2013 at 23:34:11 UTC, qznc wrote: On Monday, 7 October 2013 at 22:39:26 UTC, qznc wrote: On Monday, 7 October 2013 at 20:36:46 UTC, Andrei Alexandrescu OP: any chance to adjust that page? Then we'll announce to

Re: Unstandard, a general purpose library

2013-10-16 Thread ilya-stromberg
On Saturday, 12 October 2013 at 14:21:12 UTC, Denis Shelomovskij wrote: *Unstandard* is a library for general purpose usage aimed to be an addition to the *D* standard runtime library *Phobos*. The author would like to pull as much functionality as possible to Phobos but it's a rather

Re: Mono-D 0.5.4.1 - Build, completion other fixes + Unittests via rdmd

2013-10-16 Thread Bruno Medeiros
On 08/10/2013 14:18, Alexander Bothe wrote: Are there any plans/tricks/hacks on how to get programs built with dmd debuggable with gdb? Then we also could release the addin for Windows as well! (Afaik I asked the same question some time ago, but well, perhaps something did change over the time

Re: Mono-D 0.5.4.1 - Build, completion other fixes + Unittests via rdmd

2013-10-16 Thread Dicebot
On Wednesday, 16 October 2013 at 12:38:40 UTC, Bruno Medeiros wrote: On 08/10/2013 14:18, Alexander Bothe wrote: Are there any plans/tricks/hacks on how to get programs built with dmd debuggable with gdb? Then we also could release the addin for Windows as well! (Afaik I asked the same question

Re: Start of dmd 2.064 beta program

2013-10-16 Thread Andrej Mitrovic
On 10/16/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: What are you protesting against? Walter.

Re: Start of dmd 2.064 beta program

2013-10-16 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-16 Thread Anthony Goins
On Wednesday, 16 October 2013 at 13:34:04 UTC, Andrej Mitrovic wrote: On 10/16/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: What are you protesting against? Walter. The last change log was awesome. I vote to get rid of Walter. :)

code.dlang.org now supports categories and search

2013-10-16 Thread Sönke Ludwig
The DUB package registry [1] has finally gained support for the text and category based search of packages. There is also a category for D standard library candidate modules, as has been suggested recently. If you already have any registered packages, please log in and add the proper

Re: Facebook is using D in production starting today

2013-10-16 Thread Pedro Rodrigues
On Friday, 11 October 2013 at 00:36:12 UTC, Andrei Alexandrescu wrote: Today I committed the first 5112 lines of D code to Facebook's repository. The project is in heavy daily use at Facebook. Compared to the original version (written in C++) we've measured massive wins in all of source code

Re: code.dlang.org now supports categories and search

2013-10-16 Thread ponce
On Wednesday, 16 October 2013 at 19:01:45 UTC, Sönke Ludwig wrote: If you already have any registered packages, please log in and add the proper categories to each of them (My packages - click on package name). Should there be no exact category match, and that specific category is likely to

Re: code.dlang.org now supports categories and search

2013-10-16 Thread ponce
On Wednesday, 16 October 2013 at 19:23:54 UTC, ponce wrote: Great! But I think the eloty categories must go until needed. I meant empty.

Re: code.dlang.org now supports categories and search

2013-10-16 Thread Sönke Ludwig
Am 16.10.2013 21:24, schrieb ponce: On Wednesday, 16 October 2013 at 19:23:54 UTC, ponce wrote: Great! But I think the eloty categories must go until needed. I meant empty. https://github.com/rejectedsoftware/dub-registry/issues/21

Re: code.dlang.org now supports categories and search

2013-10-16 Thread Andrej Mitrovic
On 10/16/13, Sönke Ludwig slud...@outerproduct.org wrote: It's still all a little rough around the edges. Any bugs can be reported on the issue tracker [3] or discussed in the forum [4]. [1]: http://code.dlang.org [2]:

Re: Start of dmd 2.064 beta program

2013-10-16 Thread Brad Roberts
On 10/16/13 6:33 AM, Andrej Mitrovic wrote: On 10/16/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: What are you protesting against? Walter. That's not a what, that's a who. Would you please elaborate on the what and why? I haven't seen any obstructionism coming from anyone

Re: Start of dmd 2.064 beta program

2013-10-16 Thread Jacob Carlborg
On Wednesday, 16 October 2013 at 20:19:17 UTC, Brad Roberts wrote: That's not a what, that's a who. Would you please elaborate on the what and why? I haven't seen any obstructionism coming from anyone in terms of repeating the previous style for this releases notes. Originally Walter

Re: Funny coverage of the recent reddit/hackernews chatter

2013-10-16 Thread Jonathan M Davis
On Tuesday, October 15, 2013 10:48:12 Andrei Alexandrescu wrote: http://www.fastcolabs.com/3019948/more-about-d-language-and-why-facebook-is- experimenting-with-it I was not expecting to be quoted from there. Well, it's sometimes surprising where stuff pops up. At least I didn't get quoted

Re: Start of dmd 2.064 beta program

2013-10-16 Thread Jonathan M Davis
On Wednesday, October 16, 2013 22:28:41 Jacob Carlborg wrote: On Wednesday, 16 October 2013 at 20:19:17 UTC, Brad Roberts wrote: That's not a what, that's a who. Would you please elaborate on the what and why? I haven't seen any obstructionism coming from anyone in terms of repeating the

Re: Start of dmd 2.064 beta program

2013-10-16 Thread John Colvin
On Wednesday, 16 October 2013 at 20:28:42 UTC, Jacob Carlborg wrote: On Wednesday, 16 October 2013 at 20:19:17 UTC, Brad Roberts wrote: That's not a what, that's a who. Would you please elaborate on the what and why? I haven't seen any obstructionism coming from anyone in terms of

Re: Facebook is using D in production starting today

2013-10-16 Thread Andrei Alexandrescu
On 10/16/13 12:12 PM, Pedro Rodrigues wrote: On Friday, 11 October 2013 at 00:36:12 UTC, Andrei Alexandrescu wrote: Today I committed the first 5112 lines of D code to Facebook's repository. The project is in heavy daily use at Facebook. Compared to the original version (written in C++) we've

Re: Mono-D 0.5.4.1 - Build, completion other fixes + Unittests via rdmd

2013-10-16 Thread Andrei Alexandrescu
On 10/16/13 5:38 AM, Bruno Medeiros wrote: On 08/10/2013 14:18, Alexander Bothe wrote: Are there any plans/tricks/hacks on how to get programs built with dmd debuggable with gdb? Then we also could release the addin for Windows as well! (Afaik I asked the same question some time ago, but well,

Re: Start of dmd 2.064 beta program

2013-10-16 Thread Andrei Alexandrescu
On 10/16/13 2:16 PM, Jonathan M Davis wrote: On Wednesday, October 16, 2013 22:28:41 Jacob Carlborg wrote: On Wednesday, 16 October 2013 at 20:19:17 UTC, Brad Roberts wrote: That's not a what, that's a who. Would you please elaborate on the what and why? I haven't seen any obstructionism

Re: Start of dmd 2.064 beta program

2013-10-16 Thread Tourist
On Wednesday, 16 October 2013 at 20:28:42 UTC, Jacob Carlborg wrote: On Wednesday, 16 October 2013 at 20:19:17 UTC, Brad Roberts wrote: That's not a what, that's a who. Would you please elaborate on the what and why? I haven't seen any obstructionism coming from anyone in terms of

Re: Start of dmd 2.064 beta program

2013-10-16 Thread Walter Bright
On 10/16/2013 6:33 AM, Andrej Mitrovic wrote: On 10/16/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: What are you protesting against? Walter. I'll go have myself flogged, then.

Re: Start of dmd 2.064 beta program

2013-10-16 Thread bearophile
Walter Bright: I'll go have myself flogged, then. But please be gentle and use something soft, like a fake snow leopard tail: http://img.photobucket.com/albums/v310/musta.surma/Hpim4850.jpg Bye, bearophile

NWCPP tonight!

2013-10-16 Thread Walter Bright
Date: Wednesday October 16, 2013 Time: 7:00 PM Location: Microsoft Eastside Campus, Bldg. 41, Room 1511 / Townsend (see our website www.nwcpp.org for directions). Title: New Adventures in C++ with Cinder and More Be there or be square.

Re: code.dlang.org now supports categories and search

2013-10-16 Thread Sönke Ludwig
Am 16.10.2013 21:58, schrieb Andrej Mitrovic: On 10/16/13, Sönke Ludwig slud...@outerproduct.org wrote: It's still all a little rough around the edges. Any bugs can be reported on the issue tracker [3] or discussed in the forum [4]. [1]: http://code.dlang.org [2]:

Git disaster recovery

2013-10-16 Thread Walter Bright
http://sethrobertson.github.io/GitFixUm/fixup.html I need to tape this to the wall!

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread simendsjo
On Tuesday, 15 October 2013 at 22:31:06 UTC, Paulo Pinto wrote: Am 16.10.2013 00:15, schrieb Walter Bright: http://www.reddit.com/r/programming/comments/1oi8wd/ruby_is_a_dying_language/ccs8yr8 Agree. While I do like dynamic languages for prototyping and small applications, I came to the

Re: Qt bindings for D

2013-10-16 Thread Jacob Carlborg
On 2013-10-15 17:55, w0rp wrote: This is a really interersting point, and the part of desiging the API I found the most difficult. How do you write an interface for Qt in D that is both polymorphic and avoids memory management problems? For instance, in PyQt and PySide, you can have objects

Re: Early review of std.logger

2013-10-16 Thread Jacob Carlborg
On 2013-10-15 16:13, Dicebot wrote: For example, sending mail is clearly relying on external stuff and should never be in Phobos (again, std.net.curl was a terrible mistake) I don't see why this couldn't be included in Phobos, if it doesn't have any external dependencies. -- /Jacob

Re: Help needed testing automatic win64 configuration

2013-10-16 Thread Rainer Schuetze
On 16.10.2013 04:45, Manu wrote: I just tried your '-3' version. It has problems. 1: VisualD installer still asks where you installed DMD; it should be able to know this since it's being invoked by the DMD installer.. I think that should be fixed. I have not yet updated the Visual D

Re: Early review of std.logger

2013-10-16 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: Here's what I think is missing: - System log support (as others have mentioned). This would be syslog or WEL, depending on environment. This is sort of the idea of the design, I

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 02:45, Adam Wilson wrote: +1 This is why I claw my eyes out every time I have to work with JavaScript. This is why I find statically typed languages to so much more powerful for the work I do One big difference between Ruby and JavaScript is that when something fails in Ruby

Re: Qt bindings for D

2013-10-16 Thread w0rp
On Wednesday, 16 October 2013 at 06:53:24 UTC, Jacob Carlborg wrote: In D, using the GC, you can call GC.addRoot to avoid that problem. Yes, I was thinking of using core.memory stuff to stop things from being collected, or perhaps scan inside Qt memory. For instance, you could store a class

Re: Early review of std.logger

2013-10-16 Thread Robert Schadek
On 10/16/2013 01:34 AM, Jeremy Powers wrote: On Tue, Oct 15, 2013 at 8:17 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org mailto:seewebsiteforem...@erdani.org wrote: One note - log4j, log4cxx, and log4cpp are not part of the respective languages' standards. That doesn't mean

Re: Inconsitency

2013-10-16 Thread qznc
On Tuesday, 15 October 2013 at 14:11:37 UTC, Kagamin wrote: 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

Re: Git disaster recovery

2013-10-16 Thread qznc
On Wednesday, 16 October 2013 at 06:47:52 UTC, Walter Bright wrote: http://sethrobertson.github.io/GitFixUm/fixup.html I need to tape this to the wall! Just remember, there is always reflog. ;) Git does not garbage collect anything, which is not at least 30 days old.

Re: Inconsitency

2013-10-16 Thread Chris
On Wednesday, 16 October 2013 at 08:03:26 UTC, qznc wrote: On Tuesday, 15 October 2013 at 14:11:37 UTC, Kagamin wrote: 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.

Re: Inconsitency

2013-10-16 Thread monarch_dodra
On Wednesday, 16 October 2013 at 08:48:30 UTC, Chris wrote: On Wednesday, 16 October 2013 at 08:03:26 UTC, qznc wrote: On Tuesday, 15 October 2013 at 14:11:37 UTC, Kagamin wrote: On Sunday, 13 October 2013 at 14:14:14 UTC, nickles wrote: Also, I understand, that there is the std.utf.count()

Re: D bindings for OpenCV

2013-10-16 Thread John Colvin
On Tuesday, 15 October 2013 at 21:51:06 UTC, Timothee Cour wrote: I've done it using swig, and using C++ api (not C api), as well as for other libs (sfml etc). it requires a bit of tweaking the '.i' file but is doable. Much better than hand maintaining c wrappers. Link? Or at least a

Re: Inconsitency

2013-10-16 Thread Chris
On Wednesday, 16 October 2013 at 09:00:01 UTC, monarch_dodra wrote: On Wednesday, 16 October 2013 at 08:48:30 UTC, Chris wrote: On Wednesday, 16 October 2013 at 08:03:26 UTC, qznc wrote: On Tuesday, 15 October 2013 at 14:11:37 UTC, Kagamin wrote: On Sunday, 13 October 2013 at 14:14:14 UTC,

Re: Inconsitency

2013-10-16 Thread Maxim Fomin
On Wednesday, 16 October 2013 at 09:00:01 UTC, monarch_dodra wrote: On Wednesday, 16 October 2013 at 08:48:30 UTC, Chris wrote: On Wednesday, 16 October 2013 at 08:03:26 UTC, qznc wrote: On Tuesday, 15 October 2013 at 14:11:37 UTC, Kagamin wrote: On Sunday, 13 October 2013 at 14:14:14 UTC,

Re: Qt bindings for D

2013-10-16 Thread Max Samukha
On Wednesday, 16 October 2013 at 07:25:08 UTC, w0rp wrote: On Wednesday, 16 October 2013 at 06:53:24 UTC, Jacob Carlborg wrote: In D, using the GC, you can call GC.addRoot to avoid that problem. Yes, I was thinking of using core.memory stuff to stop things from being collected, or perhaps

Re: [Proposal] Weak reference implementation for D

2013-10-16 Thread Denis Shelomovskij
16.10.2013 3:20, Sean Kelly пишет: On Tuesday, 15 October 2013 at 22:09:17 UTC, Robert wrote: The problem is that destructors and thus the registered hooks for the dispose events are called when threads are already resumed. If this wasn't the case there would actually be no problems. Gotcha.

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Timon Gehr
On 10/16/2013 08:46 AM, simendsjo wrote: No.. Give me a language that catches obvious bugs at compile-time, makes code self-documenting and doesn't let me worry about performance. ... Why just obvious bugs?

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread simendsjo
On Wednesday, 16 October 2013 at 10:37:28 UTC, Timon Gehr wrote: On 10/16/2013 08:46 AM, simendsjo wrote: No.. Give me a language that catches obvious bugs at compile-time, makes code self-documenting and doesn't let me worry about performance. ... Why just obvious bugs? Hehe. Sure -

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread John Colvin
On Wednesday, 16 October 2013 at 10:52:47 UTC, simendsjo wrote: On Wednesday, 16 October 2013 at 10:37:28 UTC, Timon Gehr wrote: On 10/16/2013 08:46 AM, simendsjo wrote: No.. Give me a language that catches obvious bugs at compile-time, makes code self-documenting and doesn't let me worry

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread PauloPinto
On Wednesday, 16 October 2013 at 10:52:47 UTC, simendsjo wrote: On Wednesday, 16 October 2013 at 10:37:28 UTC, Timon Gehr wrote: On 10/16/2013 08:46 AM, simendsjo wrote: No.. Give me a language that catches obvious bugs at compile-time, makes code self-documenting and doesn't let me worry

Re: Help needed testing automatic win64 configuration

2013-10-16 Thread Manu
On 16 October 2013 17:16, Rainer Schuetze r.sagita...@gmx.de wrote: On 16.10.2013 04:45, Manu wrote: 2: gcstub64.obj and phobos64.lib are still in D/dmd2/windows/lib. They should be moved to lib64/ We are trying to talk Walter into doing this but it seems there are topics that fail to

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread simendsjo
On Wednesday, 16 October 2013 at 10:58:04 UTC, John Colvin wrote: On Wednesday, 16 October 2013 at 10:52:47 UTC, simendsjo wrote: On Wednesday, 16 October 2013 at 10:37:28 UTC, Timon Gehr wrote: On 10/16/2013 08:46 AM, simendsjo wrote: No.. Give me a language that catches obvious bugs at

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread simendsjo
On Wednesday, 16 October 2013 at 11:05:25 UTC, PauloPinto wrote: On Wednesday, 16 October 2013 at 10:52:47 UTC, simendsjo wrote: On Wednesday, 16 October 2013 at 10:37:28 UTC, Timon Gehr wrote: On 10/16/2013 08:46 AM, simendsjo wrote: No.. Give me a language that catches obvious bugs at

Re: [Proposal] Weak reference implementation for D

2013-10-16 Thread Denis Shelomovskij
16.10.2013 3:20, Sean Kelly пишет: On Tuesday, 15 October 2013 at 22:09:17 UTC, Robert wrote: The problem is that destructors and thus the registered hooks for the dispose events are called when threads are already resumed. If this wasn't the case there would actually be no problems. Gotcha.

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread bearophile
PauloPinto: The problem, which I know well from other languages with annotations, is that eventually you reach annotation hell, specially in the enterprise world. There are research papers that explore the algebra of effects, and also contain better syntax and some better inference. With

Re: Qt bindings for D

2013-10-16 Thread Abdulhaq
On Tuesday, 15 October 2013 at 09:38:15 UTC, Max Samukha wrote: 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

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 12:52, simendsjo wrote: If @mutable and @impure existed, I could just add some annotations at the top of each module, but it wouldn't help on parameters. We need a general way to turn off attributes. This !@attribute has been proposed before. -- /Jacob Carlborg

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread simendsjo
On Wednesday, 16 October 2013 at 11:36:30 UTC, Jacob Carlborg wrote: On 2013-10-16 12:52, simendsjo wrote: If @mutable and @impure existed, I could just add some annotations at the top of each module, but it wouldn't help on parameters. We need a general way to turn off attributes. This

Optimizing a raytracer

2013-10-16 Thread Róbert László Páli
Hello! I am writing an unbiased raytrace renderer in D. I have good progress, but I want to make it as fast as possible where I can do it without compromises. I use a struct with three doubles for vector and color calculations and I have operator overloading for them. Many vectors and

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread bearophile
There are research papers that explore the algebra of effects, and also contain better syntax and some better inference. With such ideas the control of those effects seems to improve. An example, from the Koka language: http://research.microsoft.com/en-us/projects/koka/2012-overviewkoka.pdf

Re: Inconsitency

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 10:03, qznc wrote: Most code might be buggy then. An issue the often comes up is file names. A file called bär will be normalized differently depending on the operating system. In both cases it is one grapheme. However, on Linux it is one code point, but on OS X it is two code

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Dicebot
On Wednesday, 16 October 2013 at 11:47:44 UTC, simendsjo wrote: How would that relate to non-binary attributes like @system, @trusted, @safe? Seems like it would only work on binary built-in attributes. Still helpful. Problem with current built-in attribute design is that any attribute is

Re: Inconsitency

2013-10-16 Thread qznc
On Wednesday, 16 October 2013 at 12:18:40 UTC, Jacob Carlborg wrote: On 2013-10-16 10:03, qznc wrote: Most code might be buggy then. An issue the often comes up is file names. A file called bär will be normalized differently depending on the operating system. In both cases it is one

Re: Debugging support for D - wiki

2013-10-16 Thread Bruno Medeiros
On 23/09/2013 20:50, Bruno Medeiros wrote: I'm looking to begin adding integrated debugger support for the DDT IDE pretty soon. With this in mind it would be desirable to have a view of what level of D language debugger support is there for the various combinations of platform+compiler+debugger.

Re: Debugging support for D - wiki

2013-10-16 Thread Gary Willoughby
On Wednesday, 16 October 2013 at 12:33:07 UTC, Bruno Medeiros wrote: Feel free to add/modify the information in that page. I've added details for the DDD frontend and the WinDbg debugger supplied in the D compiler zip file.

Re: Optimizing a raytracer

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 14:02, Róbert László Páli wrote: Hello! I am writing an unbiased raytrace renderer in D. I have good progress, but I want to make it as fast as possible where I can do it without compromises. I use a struct with three doubles for vector and color calculations and I have operator

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 13:47, simendsjo wrote: How would that relate to non-binary attributes like @system, @trusted, @safe? Seems like it would only work on binary built-in attributes. No, !@safe would be mean the exact same thing as if you hadn't applied @safe. In this case, @system. -- /Jacob

Re: Optimizing a raytracer

2013-10-16 Thread finalpatch
I find it critical to ensure all loops are unrolled in basic vector ops (copy/arithmathc/dot etc.) On Wednesday, 16 October 2013 at 12:02:15 UTC, Róbert László Páli wrote: Hello! I am writing an unbiased raytrace renderer in D. I have good progress, but I want to make it as fast as possible

Re: Qt bindings for D

2013-10-16 Thread Andrej Mitrovic
On 10/16/13, w0rp devw...@gmail.com wrote: or perhaps scan inside Qt memory. I've never managed to make this work in some C++ libs I've tried to wrap. I think it's because the D GC probably knows which memory it allocated and will not scan pointers to memory it did not allocate. That's just a

Re: Inconsitency

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 14:33, qznc wrote: It is either [U+00E4] as one code point or [a,U+0308] for two code points. The second is combining diaeresis [0]. Not required, but possible. Those combining characters [1] provide a nearly infinite number of combinations. You can go crazy with it:

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread bearophile
Dicebot: Adding negation for most common ones will make it at least tolerable without any major language changes. I suggest to stop applying patches over patches over problems, and instead adopt a more principled approach to solve problems. The ideas of the Koka language could show a

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Dicebot
On Wednesday, 16 October 2013 at 14:59:19 UTC, bearophile wrote: I suggest to stop applying patches over patches over problems, and instead adopt a more principled approach to solve problems. The ideas of the Koka language could show a principled way to face the problem. tl; dr: we can't

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Sean Kelly
On Oct 15, 2013, at 5:30 PM, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: On Tue, 15 Oct 2013 15:15:45 -0700 Walter Bright newshou...@digitalmars.com wrote: http://www.reddit.com/r/programming/comments/1oi8wd/ruby_is_a_dying_language/ccs8yr8 Totally agree. 90+% of the

Re: Help needed testing automatic win64 configuration

2013-10-16 Thread evilrat
On Tuesday, 15 October 2013 at 02:17:39 UTC, Brad Anderson wrote: This installer also includes support for automatically downloading the Visual D installer and running it (another yet to be merged pull request[3]). with sc-2 config it is almost useless with VisualD, hope next version

Re: Help needed testing automatic win64 configuration

2013-10-16 Thread dnewbie
On Wednesday, 16 October 2013 at 01:15:20 UTC, Brad Anderson wrote: On Tuesday, 15 October 2013 at 06:38:30 UTC, dnewbie wrote: 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

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread H. S. Teoh
On Wed, Oct 16, 2013 at 09:19:56AM +0200, Jacob Carlborg wrote: On 2013-10-16 02:45, Adam Wilson wrote: +1 This is why I claw my eyes out every time I have to work with JavaScript. This is why I find statically typed languages to so much more powerful for the work I do One big

Re: draft proposal for ref counting in D

2013-10-16 Thread deadalnix
Yes and no. You obviously need to scan TL heaps at some point. When doing so you'll have a set of root that allow you to scan shared/immutable heap. What is going on in the TL heap become irrelevant once you have the root. And getting the roots from the TL heap is another problem altogether

Re: Inconsitency

2013-10-16 Thread monarch_dodra
On Wednesday, 16 October 2013 at 13:57:01 UTC, Jacob Carlborg wrote: On 2013-10-16 14:33, qznc wrote: It is either [U+00E4] as one code point or [a,U+0308] for two code points. The second is combining diaeresis [0]. Not required, but possible. Those combining characters [1] provide a nearly

Re: Early review of std.logger

2013-10-16 Thread Jeremy Powers
Short version of below: I want a powerful logging system. Maybe std.logging should provide the interface with some basic functionality, allow other solutions to fill in gaps. Should be able to always code against std.logging, complications added as needed w/o code calling log() caring or

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Andrei Alexandrescu
On 10/16/13 4:47 AM, simendsjo wrote: On Wednesday, 16 October 2013 at 11:36:30 UTC, Jacob Carlborg wrote: On 2013-10-16 12:52, simendsjo wrote: If @mutable and @impure existed, I could just add some annotations at the top of each module, but it wouldn't help on parameters. We need a

Re: Optimizing a raytracer

2013-10-16 Thread ponce
On Wednesday, 16 October 2013 at 12:02:15 UTC, Róbert László Páli wrote: I thought, using classes may require too much memory, because they are not destructed on scope end, and maybe speed reduction when GC kicks in. Is my assumptions that in this case struct are more wise? Yes, by all

Re: draft proposal for ref counting in D

2013-10-16 Thread Benjamin Thaut
Am 14.10.2013 22:59, schrieb Paulo Pinto: Well, if real time concurrent GC for Java systems is good enough for systems that control militar missile systems, maybe it is good enough for real-time audio as well. -- Paulo The problem is not that there are no GCs around in other languages which

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 20:38, Andrei Alexandrescu wrote: Seems like it would only work on binary built-in attributes. Yah. Why? enum foo; @foo: !@foo void bar (); Just as if @foo wasn't attached to bar. Although I don't know that to do with multiple attributes of the same type: @(foo, foo)

Re: draft proposal for ref counting in D

2013-10-16 Thread Sean Kelly
On Oct 16, 2013, at 11:54 AM, Benjamin Thaut c...@benjamin-thaut.de wrote: The problem is not that there are no GCs around in other languages which satisfy certain requirements. The problem is actually implementing them in D. I suggest that you read The Garbage Collection Handbook which

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 17:37, Sean Kelly wrote: I'm reasonably okay with dynamic languages so long as you can require a variable to be declared before it's used. Those that implicitly declare on first assignment are a nightmare however. I once spent an entire day debugging a Lua app that turned out

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread simendsjo
On Wednesday, 16 October 2013 at 19:00:07 UTC, Jacob Carlborg wrote: On 2013-10-16 20:38, Andrei Alexandrescu wrote: Seems like it would only work on binary built-in attributes. Yah. Why? enum foo; @foo: !@foo void bar (); You're right. That would be nice for generic code for instance

Re: draft proposal for ref counting in D

2013-10-16 Thread Paulo Pinto
Am 16.10.2013 20:54, schrieb Benjamin Thaut: Am 14.10.2013 22:59, schrieb Paulo Pinto: Well, if real time concurrent GC for Java systems is good enough for systems that control militar missile systems, maybe it is good enough for real-time audio as well. -- Paulo The problem is not that

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 19:26, H. S. Teoh wrote: Yeah, this is exactly what makes Javascript a royal pain in the neck to work with. I have the dubious pleasure of having to work on a large non-trivial JS codebase at work, and it has a reputation of simply displaying a blank page when something goes

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 21:08, simendsjo wrote: Remove all would probably be more in sync with getAttributes that returns all attributes, but removing only the first would allow greater flexibility. It's easy to remove all if you have a way to remove one, but the other way around isn't as easy :) How

Re: draft proposal for ref counting in D

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 21:05, Sean Kelly wrote: I think the short version is that D being able to directly call C code is a huge problem here. Incremental GCs all rely on the GC being notified when pointers are changed. We might be able to manage it for SafeD, but then SafeD would basically be its

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread simendsjo
On Wednesday, 16 October 2013 at 19:19:26 UTC, Jacob Carlborg wrote: On 2013-10-16 21:08, simendsjo wrote: Remove all would probably be more in sync with getAttributes that returns all attributes, but removing only the first would allow greater flexibility. It's easy to remove all if you have

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Jacob Carlborg
On 2013-10-16 21:23, simendsjo wrote: Yes, sorry. I was thinking about a new __trait and running a loop. Is this when we should be dreaming of the all-powerful AST macros again? Yes, AST macros will solve everything :) -- /Jacob Carlborg

Re: Early review of std.logger

2013-10-16 Thread Robert Schadek
On 10/16/2013 08:18 PM, Jeremy Powers wrote: Short version of below: I want a powerful logging system. Maybe std.logging should provide the interface with some basic functionality, allow other solutions to fill in gaps. Should be able to always code against std.logging, complications added

Re: Inconsitency

2013-10-16 Thread qznc
On Wednesday, 16 October 2013 at 18:13:37 UTC, monarch_dodra wrote: On Wednesday, 16 October 2013 at 13:57:01 UTC, Jacob Carlborg wrote: On 2013-10-16 14:33, qznc wrote: It is either [U+00E4] as one code point or [a,U+0308] for two code points. The second is combining diaeresis [0]. Not

Re: Inconsitency

2013-10-16 Thread Dmitry Olshansky
16-Oct-2013 23:42, qznc пишет: On Wednesday, 16 October 2013 at 18:13:37 UTC, monarch_dodra wrote: On Wednesday, 16 October 2013 at 13:57:01 UTC, Jacob Carlborg wrote: On 2013-10-16 14:33, qznc wrote: It is either [U+00E4] as one code point or [a,U+0308] for two code points. The second is

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Walter Bright
On 10/16/2013 8:37 AM, Sean Kelly wrote: I'm reasonably okay with dynamic languages so long as you can require a variable to be declared before it's used. Those that implicitly declare on first assignment are a nightmare however. I once spent an entire day debugging a Lua app that turned out to

Re: draft proposal for ref counting in D

2013-10-16 Thread Benjamin Thaut
Am 16.10.2013 21:05, schrieb Sean Kelly: On Oct 16, 2013, at 11:54 AM, Benjamin Thaut c...@benjamin-thaut.de wrote: The problem is not that there are no GCs around in other languages which satisfy certain requirements. The problem is actually implementing them in D. I suggest that you read

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Nick Sabalausky
On Wed, 16 Oct 2013 10:26:37 -0700 H. S. Teoh hst...@quickfur.ath.cx wrote: (And don't get me started on IE6, which used to be the de facto standard demanded by every customer some years ago, which doesn't even *have* an error console. Fortunately, the world has moved on since.) I

Re: Eloquently sums up my feelings about the disadvantages of dynamic typing

2013-10-16 Thread Jacob Carlborg
On Wednesday, 16 October 2013 at 20:20:18 UTC, Nick Sabalausky wrote: I remember going through the same hell with Safari. (I assume that's been fixed by now, though.) It has similar developer tools like Chrome has. -- /Jacob Carlborg

  1   2   3   >