Re: Will std.experimental be shipped with DMD zip package?

2014-06-05 Thread ed via Digitalmars-d
On Thursday, 5 June 2014 at 16:57:53 UTC, Andrei Alexandrescu wrote: On 6/5/14, 1:08 PM, uri wrote: I assume it will but thought I'd ask all the same... I only use the latest official release and would still like to bash on std.experimental modules so I hope it will be in 2.066.zip. Thanks,

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Marco Leise via Digitalmars-d
Am Thu, 05 Jun 2014 14:30:40 + schrieb "Dicebot" : > On Thursday, 5 June 2014 at 14:01:43 UTC, bioinfornatics wrote: > > On Thursday, 5 June 2014 at 06:40:17 UTC, Walter Bright wrote: > >> On 6/4/2014 9:25 AM, Iain Buclaw via Digitalmars-d wrote: > >>> This likewise gdc too. All you need to d

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread nazriel via Digitalmars-d
On Thursday, 5 June 2014 at 14:30:46 UTC, Dicebot wrote: On Thursday, 5 June 2014 at 14:01:43 UTC, bioinfornatics wrote: On Thursday, 5 June 2014 at 06:40:17 UTC, Walter Bright wrote: On 6/4/2014 9:25 AM, Iain Buclaw via Digitalmars-d wrote: This likewise gdc too. All you need to do is look at

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Kai Nacke via Digitalmars-d
On Thursday, 5 June 2014 at 22:12:04 UTC, John wrote: On Thursday, 5 June 2014 at 06:40:17 UTC, Walter Bright wrote: On 6/4/2014 9:25 AM, Iain Buclaw via Digitalmars-d wrote: This likewise gdc too. All you need to do is look at the downloads page on dlang.org ! It still says nothing about d

Re: [OT] Extra time spent

2014-06-05 Thread deadalnix via Digitalmars-d
On Friday, 6 June 2014 at 02:21:45 UTC, Nick Sabalausky wrote: On 6/5/2014 6:08 PM, deadalnix wrote: On Thursday, 5 June 2014 at 14:11:32 UTC, H. S. Teoh via Digitalmars-d wrote: Ha! Though, truth be told, I can't stand modern pop music. My (completely unfounded) belief is that nobody *trul

Re: Issue 9148

2014-06-05 Thread Kenji Hara via Digitalmars-d
2014-04-26 19:27 GMT+09:00 bearophile via Digitalmars-d < digitalmars-d@puremagic.com>: > Jonathan M Davis: > > > However, I'm not sure that treating it as weakly pure buys >> us anything except in the case where we're trying to make >> the outer function pure as well. >> > > Here is a bit more r

Digital Mars purchase trouble?

2014-06-05 Thread K.K. via Digitalmars-d
Hey I know this isn't the perfect place to ask this but... Has anyone else had trouble ordering from Digital Mars? I particularly ordered the Utility package. The site took my order on paypal fine but then I never got anything after that. So I tried emailing wgma...@digitalmars.com about it, and

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Walter Bright via Digitalmars-d
Jonathan, every one of your postings starts a new thread rather than staying in the one you reply to.

Re: [OT] Extra time spent

2014-06-05 Thread Nick Sabalausky via Digitalmars-d
On 6/5/2014 6:08 PM, deadalnix wrote: On Thursday, 5 June 2014 at 14:11:32 UTC, H. S. Teoh via Digitalmars-d wrote: Ha! Though, truth be told, I can't stand modern pop music. My (completely unfounded) belief is that nobody *truly* likes that stuff. ;) I always go for metal, goa trance and

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Jonathan M Davis via Digitalmars-d
On Fri, 06 Jun 2014 03:30:19 +0200 Artur Skawina via Digitalmars-d wrote: > On 06/06/14 02:34, Jonathan M Davis via Digitalmars-d wrote: > And you get an API which looks like this: > >auto r = d.split!q{ days, seconds, msecs }; >// access r.days etc You can already do that with what I ha

cannot allocate memory in static TLS block

2014-06-05 Thread Ellery Newcomer via Digitalmars-d
I have a ubuntu 12.04 spin in which I am running dmd hello.d -shared -defaultlib=libphobos2.so -ofhello.so on an empty hello.d. attempting to use it (python) results in Traceback (most recent call last): File "test.py", line 1, in import hello ImportError: /usr/lib/i386-linux-gnu/libphob

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Artur Skawina via Digitalmars-d
On 06/06/14 02:34, Jonathan M Davis via Digitalmars-d wrote: > On Thu, 05 Jun 2014 23:54:49 +0200 > Artur Skawina via Digitalmars-d wrote: > >> I'm just saying that encouraging that kind of >> return-by-weakly-typed-pointers-with-string-selectors interfaces >> is /not/ a good idea; there are othe

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Artur Skawina via Digitalmars-d
On 06/06/14 02:34, Jonathan M Davis via Digitalmars-d wrote: > On Thu, 05 Jun 2014 18:18:33 -0400 > Steven Schveighoffer via Digitalmars-d > wrote: > >> On Thu, 05 Jun 2014 18:06:01 -0400, monarch_dodra >> wrote: >> >>> On Thursday, 5 June 2014 at 08:49:18 UTC, Jonathan M Davis via >>> Digitalma

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Jonathan M Davis via Digitalmars-d
On Thu, 05 Jun 2014 18:15:11 -0400 Steven Schveighoffer via Digitalmars-d wrote: > Respectfully disagree, the API looks very good to me. And decidedly > not C-like. It's not even _possible_ to write a function like this in C or in C++98 (though - though maybe C++11/14 can). I don't know of any o

Re: What's going on with std.experimental.lexer?

2014-06-05 Thread Brian Schott via Digitalmars-d
On Wednesday, 4 June 2014 at 21:12:25 UTC, Brian Schott wrote: I've been looking at ways to optimize the D lexer's operation using SIMD instructions. I'm not yet sure if I'll need to change the lexer generator's API to do this. I'm going to wait until I have my proof-of-concept code and some be

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Jonathan M Davis via Digitalmars-d
On Thu, 05 Jun 2014 23:54:49 +0200 Artur Skawina via Digitalmars-d wrote: > I'm just saying that encouraging that kind of > return-by-weakly-typed-pointers-with-string-selectors interfaces > is /not/ a good idea; there are other, much better, options in D. There's no weak typing here at all. The

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Jonathan M Davis via Digitalmars-d
On Thu, 05 Jun 2014 18:18:33 -0400 Steven Schveighoffer via Digitalmars-d wrote: > On Thu, 05 Jun 2014 18:06:01 -0400, monarch_dodra > wrote: > > > On Thursday, 5 June 2014 at 08:49:18 UTC, Jonathan M Davis via > > Digitalmars-d > >> long days; > >> int seconds; > >> short msecs; > >

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Artur Skawina via Digitalmars-d
On 06/06/14 00:15, Steven Schveighoffer via Digitalmars-d wrote: > On Thu, 05 Jun 2014 17:54:49 -0400, Artur Skawina via Digitalmars-d > wrote: >> I'd say it is very C-ish and very unidiomatic. >> >> Why? Well, compare with: >> >>struct D { >> // In real code these methods would do the

Re: @safe inference fundamentally broken

2014-06-05 Thread Timon Gehr via Digitalmars-d
On 06/06/2014 01:15 AM, Walter Bright wrote: On 6/5/2014 11:09 AM, Steven Schveighoffer wrote: Thoughts? Please file bugzilla issue(s) for this. There already is one: https://issues.dlang.org/show_bug.cgi?id=8838

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Walter Bright via Digitalmars-d
On 6/4/2014 9:20 AM, Benjamin Thaut wrote: Ldc for example still does not support windows 64 bit. And that is just one of the things thats wrong with it on windows. On Windows, it needs to be more than just 64 bit. It needs to work with Visual Studio.

Re: @safe inference fundamentally broken

2014-06-05 Thread Walter Bright via Digitalmars-d
On 6/5/2014 11:09 AM, Steven Schveighoffer wrote: Thoughts? Please file bugzilla issue(s) for this.

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Walter Bright via Digitalmars-d
On 6/5/2014 7:01 AM, bioinfornatics wrote: On Thursday, 5 June 2014 at 06:40:17 UTC, Walter Bright wrote: On 6/4/2014 9:25 AM, Iain Buclaw via Digitalmars-d wrote: This likewise gdc too. All you need to do is look at the downloads page on dlang.org ! It still says nothing about doing: su

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Brad Anderson via Digitalmars-d
On Thursday, 5 June 2014 at 22:06:02 UTC, monarch_dodra wrote: On Thursday, 5 June 2014 at 08:49:18 UTC, Jonathan M Davis via Digitalmars-d long days; int seconds; short msecs; d.split!("days", "seconds", "msecs")(&days, &seconds, &msecs); Please don't use pass-by-pointer in D API

Re: @safe inference fundamentally broken

2014-06-05 Thread Andrei Alexandrescu via Digitalmars-d
On 6/5/14, 8:30 PM, Timon Gehr wrote: The fundamental issue seems to lie in methodology and it is that @safe is approximated by the DMD implementation from the wrong side. Instead of gradually banning usage of more and more constructs in @safe, the implementation should have started out with not

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 17:54:49 -0400, Artur Skawina via Digitalmars-d wrote: On 06/05/14 16:18, H. S. Teoh via Digitalmars-d wrote: On Thu, Jun 05, 2014 at 01:23:47AM -0700, Jonathan M Davis via Digitalmars-d wrote: Actually, after some further discussion, I think that we've decided to remov

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 18:06:01 -0400, monarch_dodra wrote: On Thursday, 5 June 2014 at 08:49:18 UTC, Jonathan M Davis via Digitalmars-d long days; int seconds; short msecs; d.split!("days", "seconds", "msecs")(&days, &seconds, &msecs); Please don't use pass-by-pointer in D A

Re: Array bound checks removal increasing importance

2014-06-05 Thread deadalnix via Digitalmars-d
On Thursday, 5 June 2014 at 09:36:53 UTC, bearophile wrote: deadalnix: I think we should focus on solving problems that modern backend aren't capable to optimize.< I agree. But those D snippets I have written are not able to show what the backends are or aren't able to do. Generally if you

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread John via Digitalmars-d
On Thursday, 5 June 2014 at 06:40:17 UTC, Walter Bright wrote: On 6/4/2014 9:25 AM, Iain Buclaw via Digitalmars-d wrote: This likewise gdc too. All you need to do is look at the downloads page on dlang.org ! It still says nothing about doing: sudo apt-get install gdc on Ubuntu! Why keep

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread monarch_dodra via Digitalmars-d
On Thursday, 5 June 2014 at 08:49:18 UTC, Jonathan M Davis via Digitalmars-d long days; int seconds; short msecs; d.split!("days", "seconds", "msecs")(&days, &seconds, &msecs); Please don't use pass-by-pointer in D APIs. It makes it a real *nightmare* to ever use the code in a

Re: [OT] Extra time spent

2014-06-05 Thread deadalnix via Digitalmars-d
On Thursday, 5 June 2014 at 14:11:32 UTC, H. S. Teoh via Digitalmars-d wrote: Ha! Though, truth be told, I can't stand modern pop music. I always go for metal, goa trance and alike. That keep my lizard brain quiet while my higher cognitive capacity are at work. Right now Gamma Ray - Powerpla

Re: Optionally strongly typed array indexes

2014-06-05 Thread Mason McGill via Digitalmars-d
On Thursday, 5 June 2014 at 09:23:00 UTC, bearophile wrote: Sorry for my answers coming so slowly. Hah! I'm on these forums (selfishly) trying to understand/improve D for my own use at work, while you seem to be helping/teaching/contributing for the sake of it. I'm continually surprised by h

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Artur Skawina via Digitalmars-d
On 06/05/14 16:18, H. S. Teoh via Digitalmars-d wrote: > On Thu, Jun 05, 2014 at 01:23:47AM -0700, Jonathan M Davis via Digitalmars-d > wrote: >> Actually, after some further discussion, I think that we've decided to >> remove get/getOnly entirely. Instead, we'll have a function called >> split wh

Re: @safe inference fundamentally broken

2014-06-05 Thread deadalnix via Digitalmars-d
On Thursday, 5 June 2014 at 20:37:51 UTC, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 16:32:24 -0400, monarch_dodra wrote: On Thursday, 5 June 2014 at 19:57:08 UTC, Steven Schveighoffer wrote: A possible fix could be to reject the call to ptr at runtime if the slice is empty. I don't k

Re: Using up-to-date GDC [was Re: Swift is based LLVM,what will the D's LDC do?]

2014-06-05 Thread Johannes Pfau via Digitalmars-d
Am Thu, 05 Jun 2014 14:29:38 + schrieb "Dicebot" : > On Thursday, 5 June 2014 at 12:48:04 UTC, John Colvin wrote: > >> While I respect your point of view on the matter (and agree > >> with it to a large extent), it's not your head on the line > >> here. > >> Do the mirror owners even know th

Re: Is Bug 5710 likely to get fixed?

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 16:37:14 -0400, Timon Gehr wrote: On 06/05/2014 08:42 PM, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 14:16:06 -0400, Russel Winder via Digitalmars-d wrote: https://issues.dlang.org/show_bug.cgi?id=5710 Is this likely to get fixed or is it more likely to drift along

Re: @safe inference fundamentally broken

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 16:32:24 -0400, monarch_dodra wrote: On Thursday, 5 June 2014 at 19:57:08 UTC, Steven Schveighoffer wrote: A possible fix could be to reject the call to ptr at runtime if the slice is empty. I don't know why you'd ever do "arr.ptr" in the first place, other than to a

Re: [OT] Extra time spent

2014-06-05 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 5 June 2014 at 20:29:14 UTC, Meta wrote: There is a version of this with vocals that has been done several times by the Royal Stockholm Philharmonic Orchestra, the World Festival Symphony Orchestra, and the Kanagawa Philharmonic Orchestra for the Distant Worlds recordings, and th

Re: Is Bug 5710 likely to get fixed?

2014-06-05 Thread Timon Gehr via Digitalmars-d
On 06/05/2014 08:42 PM, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 14:16:06 -0400, Russel Winder via Digitalmars-d wrote: https://issues.dlang.org/show_bug.cgi?id=5710 Is this likely to get fixed or is it more likely to drift along as an unfixed issue? If Kenji cannot fix it, it doesn'

Re: @safe inference fundamentally broken

2014-06-05 Thread monarch_dodra via Digitalmars-d
On Thursday, 5 June 2014 at 19:57:08 UTC, Steven Schveighoffer wrote: A possible fix could be to reject the call to ptr at runtime if the slice is empty. I don't know why you'd ever do "arr.ptr" in the first place, other than to avoid the bounds check. So I think the call should just be unsaf

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Iain Buclaw via Digitalmars-d
On 5 June 2014 19:59, Jacob Carlborg via Digitalmars-d wrote: > On 2014-06-05 12:27, Iain Buclaw via Digitalmars-d wrote: > >> I haven't tried hammering the server - it's a VM hosted on linode. >> But if you mean if the compiler builds are reliable, then that answer >> is yes. >> >> I know that th

Re: [OT] Extra time spent

2014-06-05 Thread Meta via Digitalmars-d
On Thursday, 5 June 2014 at 17:45:00 UTC, Adam D. Ruppe wrote: Second best opera ever: https://www.youtube.com/watch?v=ZbGw3A9Dg-Q lololol (first best opera? https://www.youtube.com/watch?v=nEuf9ZSJrdg oh yeah ff6!) There is a version of this with vocals that has been done several times by

Re: @safe inference fundamentally broken

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 15:54:33 -0400, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 15:48:09 -0400, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 15:34:13 -0400, monarch_dodra wrote: On Thursday, 5 June 2014 at 19:27:56 UTC, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 14:47:5

Re: @safe inference fundamentally broken

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 15:48:09 -0400, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 15:34:13 -0400, monarch_dodra wrote: On Thursday, 5 June 2014 at 19:27:56 UTC, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 14:47:54 -0400, deadalnix T[] arr = [ ... ]; arr = arr[$ .. $]; auto garbag

Re: @safe inference fundamentally broken

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 15:34:13 -0400, monarch_dodra wrote: On Thursday, 5 June 2014 at 19:27:56 UTC, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 14:47:54 -0400, deadalnix T[] arr = [ ... ]; arr = arr[$ .. $]; auto garbage = *(arr.ptr); Believe it or not, this is actually safe. What do

Re: @safe inference fundamentally broken

2014-06-05 Thread monarch_dodra via Digitalmars-d
On Thursday, 5 June 2014 at 19:27:56 UTC, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 14:47:54 -0400, deadalnix T[] arr = [ ... ]; arr = arr[$ .. $]; auto garbage = *(arr.ptr); Believe it or not, this is actually safe. -Steve What do you mean by "is actually safe" ? In the "can you actu

Re: @safe inference fundamentally broken

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 14:52:39 -0400, Timon Gehr wrote: On 06/05/2014 08:35 PM, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 14:30:49 -0400, Timon Gehr wrote: The fundamental issue seems to lie in methodology and it is that @safe is approximated by the DMD implementation from the wrong s

Re: @safe inference fundamentally broken

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 14:47:54 -0400, deadalnix wrote: On Thursday, 5 June 2014 at 18:33:22 UTC, Timon Gehr wrote: On 06/05/2014 08:17 PM, deadalnix wrote: @safe is fundamentally broken. What's the "fundamental" problem? The construct seems perfectly fit to specify memory safety in at least

Re: @safe inference fundamentally broken

2014-06-05 Thread Jonathan M Davis via Digitalmars-d
On Thu, 05 Jun 2014 18:17:10 + deadalnix via Digitalmars-d wrote: > @safe is fundamentally broken. @safe as a concept is fine. It's what the compiler currently thinks is or isn't @safe which is broken. If we can fix that, we should be fine. - Jonathan M Davis

Re: @safe inference fundamentally broken

2014-06-05 Thread Jonathan M Davis via Digitalmars-d
On Thu, 05 Jun 2014 14:09:44 -0400 Steven Schveighoffer via Digitalmars-d wrote: > I propose that we start migrating towards making slicing of stack > data un-@safe, first by making it a warning, enabled with -w. Then > making it an error. I reported this quite some time ago, but unfortunately,

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-05 Thread Jacob Carlborg via Digitalmars-d
On 2014-06-05 19:14, Remo wrote: Exceptions make a lot of other thing expensive and complicated. IMHO Exceptions should only be used in really really exceptional cases and not all the way and for control flow. Fortunately it is not really necessary to use Exceptions in C++. A great example for

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Jonathan M Davis via Digitalmars-d
On Thu, 5 Jun 2014 14:35:16 + (UTC) Byron Heads via Digitalmars-d wrote: > On Thu, 05 Jun 2014 07:18:59 -0700, H. S. Teoh via Digitalmars-d > wrote: > > > On Thu, Jun 05, 2014 at 01:23:47AM -0700, Jonathan M Davis via > > Digitalmars-d wrote: > >> > >> { > >> auto d = dur!"days"(12) + dur

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Jacob Carlborg via Digitalmars-d
On 2014-06-05 12:27, Iain Buclaw via Digitalmars-d wrote: I haven't tried hammering the server - it's a VM hosted on linode. But if you mean if the compiler builds are reliable, then that answer is yes. I know that the Native Linux and ARM builds are passing the testsuite/library unittests (as

Re: @safe inference fundamentally broken

2014-06-05 Thread Timon Gehr via Digitalmars-d
On 06/05/2014 08:35 PM, Steven Schveighoffer wrote: On Thu, 05 Jun 2014 14:30:49 -0400, Timon Gehr wrote: The fundamental issue seems to lie in methodology and it is that @safe is approximated by the DMD implementation from the wrong side. Instead of gradually banning usage of more and more co

Re: @safe inference fundamentally broken

2014-06-05 Thread Timon Gehr via Digitalmars-d
On 06/05/2014 08:47 PM, deadalnix wrote: On Thursday, 5 June 2014 at 18:33:22 UTC, Timon Gehr wrote: On 06/05/2014 08:17 PM, deadalnix wrote: @safe is fundamentally broken. What's the "fundamental" problem? The construct seems perfectly fit to specify memory safety in at least the following c

Re: @safe inference fundamentally broken

2014-06-05 Thread deadalnix via Digitalmars-d
On Thursday, 5 June 2014 at 18:33:22 UTC, Timon Gehr wrote: On 06/05/2014 08:17 PM, deadalnix wrote: @safe is fundamentally broken. What's the "fundamental" problem? The construct seems perfectly fit to specify memory safety in at least the following context: void main()@safe{} :o) Many

Re: Is Bug 5710 likely to get fixed?

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 14:16:06 -0400, Russel Winder via Digitalmars-d wrote: https://issues.dlang.org/show_bug.cgi?id=5710 Is this likely to get fixed or is it more likely to drift along as an unfixed issue? If Kenji cannot fix it, it doesn't look good for getting fixed... It would be nice,

Re: @safe inference fundamentally broken

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 05 Jun 2014 14:30:49 -0400, Timon Gehr wrote: The fundamental issue seems to lie in methodology and it is that @safe is approximated by the DMD implementation from the wrong side. Instead of gradually banning usage of more and more constructs in @safe, the implementation should hav

Re: @safe inference fundamentally broken

2014-06-05 Thread Timon Gehr via Digitalmars-d
On 06/05/2014 08:17 PM, deadalnix wrote: @safe is fundamentally broken. What's the "fundamental" problem? The construct seems perfectly fit to specify memory safety in at least the following context: void main()@safe{} :o)

Re: @safe inference fundamentally broken

2014-06-05 Thread Timon Gehr via Digitalmars-d
On 06/05/2014 08:09 PM, Steven Schveighoffer wrote: A quick example: T[] getBuf(T)() @safe { T[100] ret; auto r = ret[]; return r; } void main() @safe { auto buf = getBuf!int(); } Note, the above compiles. An interesting thing here is that we have explicitly marked getBuf as

Re: @safe inference fundamentally broken

2014-06-05 Thread deadalnix via Digitalmars-d
@safe is fundamentally broken.

Is Bug 5710 likely to get fixed?

2014-06-05 Thread Russel Winder via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=5710 Is this likely to get fixed or is it more likely to drift along as an unfixed issue? I am not discommoded by this, it is a matter of codebase style. Thanks. -- Russel. = D

Re: What can I do?

2014-06-05 Thread Benjamin Thaut via Digitalmars-d
Am 05.06.2014 20:01, schrieb Jeremy DeHaan: Hey all, I've been using D for a while now and I would very much like to contribute to the development of the language. Here's the problem: I know next to nothing about compilers or anything related to language design. So, my question is, how can someo

Re: What can I do?

2014-06-05 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 05, 2014 at 06:01:32PM +, Jeremy DeHaan via Digitalmars-d wrote: > Hey all, > > I've been using D for a while now and I would very much like to contribute > to the development of the language. Here's the problem: I know next to > nothing about compilers or anything related to langu

@safe inference fundamentally broken

2014-06-05 Thread Steven Schveighoffer via Digitalmars-d
I was just viewing an interesting pull request. The pull wanted to change a line like this (buf is a fixed-size stack allocated array): auto x = buf.ptr[0..buf.len]; To this: auto trustedBuffer(ref typeof(buf) b) @trusted { return b.ptr[0..buf.len]; } for the sake of allowing the enclosin

What can I do?

2014-06-05 Thread Jeremy DeHaan via Digitalmars-d
Hey all, I've been using D for a while now and I would very much like to contribute to the development of the language. Here's the problem: I know next to nothing about compilers or anything related to language design. So, my question is, how can someone like me help? Jeremy

Re: Make std.container.Array an output range

2014-06-05 Thread Rene Zwanenburg via Digitalmars-d
On Thursday, 5 June 2014 at 16:29:09 UTC, monarch_dodra wrote: On Thursday, 5 June 2014 at 16:21:21 UTC, monarch_dodra wrote: Well, one issue is that for a "Range", "put" really just means overwrite the front element, and pop it. So... I see. I wasn't aware of that. That said, having an expl

Re: [OT] Extra time spent

2014-06-05 Thread Adam D. Ruppe via Digitalmars-d
Second best opera ever: https://www.youtube.com/watch?v=ZbGw3A9Dg-Q lololol (first best opera? https://www.youtube.com/watch?v=nEuf9ZSJrdg oh yeah ff6!)

Re: [OT] Extra time spent

2014-06-05 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 05, 2014 at 10:07:59AM -0700, Walter Bright via Digitalmars-d wrote: > On 6/5/2014 2:49 AM, Jacob Carlborg wrote: > >On 2014-06-04 21:02, H. S. Teoh via Digitalmars-d wrote: > > > >>It's strange, I find that even ambient music distracts me, yet the > >>loud noise of an occasional passin

Re: [OT] Extra time spent

2014-06-05 Thread Nick Sabalausky via Digitalmars-d
On 6/5/2014 4:56 AM, Walter Bright wrote: On 6/5/2014 1:46 AM, Jonathan M Davis via Digitalmars-d wrote: I don't know how they ever got the job or how they've kept it beyond a reluctance to fire people on the part of management (especially when the poor coder is a really nice person). I'd alwa

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-05 Thread Remo via Digitalmars-d
On Thursday, 5 June 2014 at 09:55:21 UTC, Jacob Carlborg wrote: On 2014-06-04 23:21, Walter Bright wrote: On 6/3/2014 2:44 PM, Remo wrote: No exceptions (!) so this is at least something that this language do better as C++ and D :D Not everyone think that exceptions are necessary or there is

Re: [OT] Extra time spent

2014-06-05 Thread Walter Bright via Digitalmars-d
On 6/5/2014 2:49 AM, Jacob Carlborg wrote: On 2014-06-04 21:02, H. S. Teoh via Digitalmars-d wrote: It's strange, I find that even ambient music distracts me, yet the loud noise of an occasional passing train doesn't. Similarly, even whispers will distract me, but birds chirping, trees rustling

Re: Will std.experimental be shipped with DMD zip package?

2014-06-05 Thread Andrei Alexandrescu via Digitalmars-d
On 6/5/14, 1:08 PM, uri wrote: I assume it will but thought I'd ask all the same... I only use the latest official release and would still like to bash on std.experimental modules so I hope it will be in 2.066.zip. Thanks, uri std.experimental should come with the default installation. -- And

Re: Make std.container.Array an output range

2014-06-05 Thread monarch_dodra via Digitalmars-d
On Thursday, 5 June 2014 at 16:21:21 UTC, monarch_dodra wrote: Well, one issue is that for a "Range", "put" really just means overwrite the front element, and pop it. So... Array!int myArray = ...: copy([1, 2, 3], myArray); //(1) copy([1, 2, 3], myArray[]); //(2) In this situation, (1) and (

Re: Make std.container.Array an output range

2014-06-05 Thread monarch_dodra via Digitalmars-d
On Thursday, 5 June 2014 at 13:51:35 UTC, Rene Zwanenburg wrote: I depend heavily on RAII in a project I'm working on. Since structs in dynamic arrays never have their destructors called I'm using Array!T instead. A pattern that comes up often is that I have some input range of T's which need t

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Chris Cain via Digitalmars-d
On Wednesday, 4 June 2014 at 15:51:58 UTC, John Colvin wrote: On Wednesday, 4 June 2014 at 14:16:31 UTC, Meta wrote: On Wednesday, 4 June 2014 at 11:28:52 UTC, Kagamin wrote: Does one really needs only one component, but not the others? Maybe it should provide full computed broken form instead

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread Byron Heads via Digitalmars-d
On Thu, 05 Jun 2014 07:18:59 -0700, H. S. Teoh via Digitalmars-d wrote: > On Thu, Jun 05, 2014 at 01:23:47AM -0700, Jonathan M Davis via > Digitalmars-d wrote: >> >> { >> auto d = dur!"days"(12) + dur!"minutes"(7) + dur!"usecs"(501223); >> long days; >> int seconds; >> short msecs

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Dicebot via Digitalmars-d
On Thursday, 5 June 2014 at 14:01:43 UTC, bioinfornatics wrote: On Thursday, 5 June 2014 at 06:40:17 UTC, Walter Bright wrote: On 6/4/2014 9:25 AM, Iain Buclaw via Digitalmars-d wrote: This likewise gdc too. All you need to do is look at the downloads page on dlang.org ! It still says nothi

Re: Using up-to-date GDC [was Re: Swift is based LLVM,what will the D's LDC do?]

2014-06-05 Thread Dicebot via Digitalmars-d
On Thursday, 5 June 2014 at 12:48:04 UTC, John Colvin wrote: While I respect your point of view on the matter (and agree with it to a large extent), it's not your head on the line here. Do the mirror owners even know that - if they charge for their services - it could be argued that they are co

Re: (git HEAD) std.datetime spewing deprecation messages

2014-06-05 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 05, 2014 at 01:23:47AM -0700, Jonathan M Davis via Digitalmars-d wrote: > On Wed, 04 Jun 2014 09:12:06 +0200 > Sönke Ludwig via Digitalmars-d wrote: > > > Just a minor note: What about just .only!"minutes", analogous > > .total!"minutes"? Removing both the .minutes shortcut and the s

Re: [OT] Extra time spent

2014-06-05 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 05, 2014 at 11:49:38AM +0200, Jacob Carlborg via Digitalmars-d wrote: > On 2014-06-04 21:02, H. S. Teoh via Digitalmars-d wrote: > > >It's strange, I find that even ambient music distracts me, yet the > >loud noise of an occasional passing train doesn't. Similarly, even > >whispers wi

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread bioinfornatics via Digitalmars-d
On Thursday, 5 June 2014 at 06:40:17 UTC, Walter Bright wrote: On 6/4/2014 9:25 AM, Iain Buclaw via Digitalmars-d wrote: This likewise gdc too. All you need to do is look at the downloads page on dlang.org ! It still says nothing about doing: sudo apt-get install gdc on Ubuntu! Why keep

Make std.container.Array an output range

2014-06-05 Thread Rene Zwanenburg via Digitalmars-d
I depend heavily on RAII in a project I'm working on. Since structs in dynamic arrays never have their destructors called I'm using Array!T instead. A pattern that comes up often is that I have some input range of T's which need to be stored in a member Array!T. However Array is not an output r

Re: Using up-to-date GDC [was Re: Swift is based LLVM,what will the D's LDC do?]

2014-06-05 Thread John Colvin via Digitalmars-d
On Thursday, 5 June 2014 at 11:35:23 UTC, Dicebot wrote: On Thursday, 5 June 2014 at 11:24:47 UTC, John Colvin wrote: On Thursday, 5 June 2014 at 06:50:04 UTC, Iain Buclaw via Digitalmars-d wrote: Don't quote me, but the only way distributions can ship DMD is via a script that does a download f

Re: Using up-to-date GDC [was Re: Swift is based LLVM,what will the D's LDC do?]

2014-06-05 Thread John Colvin via Digitalmars-d
On Thursday, 5 June 2014 at 12:45:06 UTC, John Colvin wrote: On Thursday, 5 June 2014 at 11:35:23 UTC, Dicebot wrote: On Thursday, 5 June 2014 at 11:24:47 UTC, John Colvin wrote: On Thursday, 5 June 2014 at 06:50:04 UTC, Iain Buclaw via Digitalmars-d wrote: Don't quote me, but the only way dist

Re: Using up-to-date GDC [was Re: Swift is based LLVM,what will the D's LDC do?]

2014-06-05 Thread Dicebot via Digitalmars-d
On Thursday, 5 June 2014 at 11:24:47 UTC, John Colvin wrote: On Thursday, 5 June 2014 at 06:50:04 UTC, Iain Buclaw via Digitalmars-d wrote: Don't quote me, but the only way distributions can ship DMD is via a script that does a download from dlang.org, extract, install process (like eg: flashp

Re: Using up-to-date GDC [was Re: Swift is based LLVM,what will the D's LDC do?]

2014-06-05 Thread John Colvin via Digitalmars-d
On Thursday, 5 June 2014 at 06:50:04 UTC, Iain Buclaw via Digitalmars-d wrote: Don't quote me, but the only way distributions can ship DMD is via a script that does a download from dlang.org, extract, install process (like eg: flashplayer). Unless I'm misunderstanding how the arch repositorie

Will std.experimental be shipped with DMD zip package?

2014-06-05 Thread uri via Digitalmars-d
I assume it will but thought I'd ask all the same... I only use the latest official release and would still like to bash on std.experimental modules so I hope it will be in 2.066.zip. Thanks, uri

Re: What's going on with std.experimental.lexer?

2014-06-05 Thread Dicebot via Digitalmars-d
On Wednesday, 4 June 2014 at 21:12:25 UTC, Brian Schott wrote: I've been looking at ways to optimize the D lexer's operation using SIMD instructions. I'm not yet sure if I'll need to change the lexer generator's API to do this. I'm going to wait until I have my proof-of-concept code and some be

Re: Array bound checks removal increasing importance

2014-06-05 Thread bearophile via Digitalmars-d
Dmitry Olshansky: It would be interesting if you could point to a precedent of expression-level attribute used for enforcing that compiler does elide bounds checking Perhaps that's a little invention of mine :-) In the last years I've seen that while optimizations are important, there are s

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Iain Buclaw via Digitalmars-d
On 5 June 2014 10:47, Jacob Carlborg via Digitalmars-d wrote: > On 2014-06-04 21:25, Iain Buclaw via Digitalmars-d wrote: > >> I have an OSX box to start porting. But there's a couple druntime >> related problems I need to have a proper sit down about. These are >> mostly TLS-related problems.

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-05 Thread Jacob Carlborg via Digitalmars-d
On 2014-06-04 23:21, Walter Bright wrote: On 6/3/2014 2:44 PM, Remo wrote: No exceptions (!) so this is at least something that this language do better as C++ and D :D Not everyone think that exceptions are necessary or there is no other way to handle errors. Exceptions make ARC expensive, so

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-05 Thread Jacob Carlborg via Digitalmars-d
On 2014-06-05 11:04, Russel Winder via Digitalmars-d wrote: This is very much the Java model: exceptions are for exceptional events that can be handled or not. In Python of course exceptions are just control flow. Ruby has both "raise", for exceptions, and "throw", for control flow. But I su

Re: [OT] Extra time spent

2014-06-05 Thread Jacob Carlborg via Digitalmars-d
On 2014-06-04 21:02, H. S. Teoh via Digitalmars-d wrote: It's strange, I find that even ambient music distracts me, yet the loud noise of an occasional passing train doesn't. Similarly, even whispers will distract me, but birds chirping, trees rustling, etc., don't. It's something about intellig

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Jacob Carlborg via Digitalmars-d
On 2014-06-04 21:25, Iain Buclaw via Digitalmars-d wrote: I have an OSX box to start porting. But there's a couple druntime related problems I need to have a proper sit down about. These are mostly TLS-related problems. DMD insists on doing something wildly different for each target. I insis

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread Jacob Carlborg via Digitalmars-d
On 2014-06-04 21:34, David Nadlinger wrote: On Wednesday, 4 June 2014 at 18:06:08 UTC, Mattcoder wrote: I think it would be a nice for learning experience and contributing more with community. It's always great to see new people interested in helping out with compiler development. Just follow

Re: Concurrent GC (for Windows)

2014-06-05 Thread Jacob Carlborg via Digitalmars-d
On 2014-06-04 22:37, Rainer Schuetze wrote: All more sophisticated GCs have write or read barriers. That makes it much easier to keep track of modifications during concurrent collection. Right, now I start to remember. -- /Jacob Carlborg

Re: Array bound checks removal increasing importance

2014-06-05 Thread bearophile via Digitalmars-d
deadalnix: I think we should focus on solving problems that modern backend aren't capable to optimize.< I agree. But those D snippets I have written are not able to show what the backends are or aren't able to do. Generally if you compile D code even with LDC2 you see a significant performan

Re: Array bound checks removal increasing importance

2014-06-05 Thread bearophile via Digitalmars-d
Sorry for my slow answering, I'm trying to catch up. Kagamin: Shouldn't optimization go a different route? 1. Get annoying performance problem. 2. Diagnose it. 3. Optimize the hot spot. Do you have 1? That's a good strategy if you are optimizing user code. But even when you write library c

Re: Optionally strongly typed array indexes

2014-06-05 Thread bearophile via Digitalmars-d
Sorry for my answers coming so slowly. Mason McGill: Is this considered idiomatic? Time ago I have asked here to make this index 'i' immutable on default, because the literal "0 .. 10" defines an immutable range of values: void main() { import std.stdio; foreach (i; 0 .. 10) {

Re: What's going on with std.experimental.lexer?

2014-06-05 Thread Philpax via Digitalmars-d
I've been meaning to mention this, but I use std.experimental.lexer in a code generation tool for our project; it's worked well so far, and I'd happily recommend its use. Looking forward to further updates.

  1   2   >