Re: GoingNative 6: The D Episode with Walter Bright and Andrei Alexandrescu

2012-02-23 Thread Walter Bright
On 2/22/2012 7:51 PM, bearophile wrote: Andrei says that some new languages suffer because they have a poor implementation, because creating the base for a language is a lot of work. Today this is issue is much less of a problem, new languages are implemented on the JavaVM, Using the JVM

Re: GoingNative 6: The D Episode with Walter Bright and Andrei Alexandrescu

2012-02-23 Thread MattCodr
On Wednesday, 22 February 2012 at 00:39:17 UTC, Walter Bright wrote: http://channel9.msdn.com/Shows/C9-GoingNative/GoingNative-6-The-D-Episode-with-Walter-Bright-and-Andrei-Alexandrescu You want 1 million users? Simple... is just Andrei start saying that he use D on FB and you will get it 10

Re: GoingNative 6: The D Episode with Walter Bright and Andrei Alexandrescu

2012-02-23 Thread Alex Rønne Petersen
On 23-02-2012 07:51, Walter Bright wrote: On 2/22/2012 7:51 PM, bearophile wrote: Andrei says that some new languages suffer because they have a poor implementation, because creating the base for a language is a lot of work. Today this is issue is much less of a problem, new languages are

Re: D forums now live!

2012-02-23 Thread James Miller
On 23 February 2012 04:26, Stewart Gordon smjg_1...@yahoo.com wrote: On 21/02/2012 00:53, James Miller wrote: snip There are a potentially infinite number of possible configurations, and sites need to be aimed at the lowest-common denominator. Doesn't look right with an enlarged font size?

Re: Inheriting purity DDJ blog by Walter on reddit

2012-02-23 Thread deadalnix
Le 23/02/2012 18:27, Andrei Alexandrescu a écrit : http://www.reddit.com/r/programming/comments/q2pmd/inheriting_purity_in_the_d_programming_language/ Andrei I'm still not convinced by const (this can lead to very confusing cases), but for everything else, this is great job.

Re: D Conference 2012 - Sep 26-29 at the Banker's Suite and Ballroom in Astoria, Oregon

2012-02-23 Thread Walter Bright
On 2/23/2012 5:33 AM, James Miller wrote: Question: Can I save enough money by September to pay for return flights from NZ and accomodation for a week? Answer: Probably not, but I can try! On the plus side, Astoria isn't an expensive place to stay at, and in September there won't be the

Re: D Conference 2012 - Sep 26-29 at the Banker's Suite and Ballroom in Astoria, Oregon

2012-02-23 Thread Paul D. Anderson
On Thursday, 23 February 2012 at 19:54:00 UTC, Walter Bright wrote: On 2/23/2012 5:33 AM, James Miller wrote: Question: Can I save enough money by September to pay for return flights from NZ and accomodation for a week? Answer: Probably not, but I can try! On the plus side, Astoria isn't an

Re: D Conference 2012 - Sep 26-29 at the Banker's Suite and Ballroom in Astoria, Oregon

2012-02-23 Thread James Miller
I just realised that I'll be 21 by then too, I wont have to be annoyed by not being able to drink. James Miller -- On The Go

Re: Inheriting purity DDJ blog by Walter on reddit

2012-02-23 Thread Jason House
On Thursday, 23 February 2012 at 19:48:11 UTC, deadalnix wrote: Le 23/02/2012 18:27, Andrei Alexandrescu a écrit : http://www.reddit.com/r/programming/comments/q2pmd/inheriting_purity_in_the_d_programming_language/ Andrei I'm still not convinced by const (this can lead to very confusing

Re: GoingNative 6: The D Episode with Walter Bright and Andrei Alexandrescu

2012-02-23 Thread Alex Rønne Petersen
On 24-02-2012 05:06, Jeff Nowakowski wrote: On 02/23/2012 11:57 AM, Alex Rønne Petersen wrote: I still cannot fathom how the Scala guys thought using the JVM was a good idea. It gave them a good garbage collector (an area that has held D's performance back for years), a large library via

Re: wxd does not build

2012-02-23 Thread James Miller
On 23 February 2012 18:19, dolive doliv...@sina.com wrote: c:\wxdset WXDIR=c:\wxWidgets-2.8.12 c:\wxdmake COMPILER=DMD LIBRARY=Phobos DFLAGS+=-d make -C wxc WX_RELEASE make[1]: Entering directory `/wxd/wxc' g++ -D__DMD__  `wx-config --cxxflags` -O2 -Wall -c -o wx-release.o wx-release.cp p

Re: Questions about windows support

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 06:02:30PM +1300, James Miller wrote: [...] And I've been playing with trying to write my own terminal emulator. I actually kinda have one working, in C. I just need to wrap all the C code in functions and do all the interesting stuff in D. [...] But I have plans for

Re: new std.variant (was Re: The Right Approach to Exceptions)

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 04:00:04AM +0100, Juan Manuel Cabo wrote: [...] I'm sorry. I went over the top. I apollogize. I apologize too, for some of the inflammatory things I said in the heat of the moment in some of my replies to this thread. ..I won't post for a while. This thread is almost

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread Benjamin Thaut
Am 22.02.2012 22:32, schrieb H. S. Teoh: On Wed, Feb 22, 2012 at 07:56:15PM +0100, Benjamin Thaut wrote: [...] 2) Tracking references on the stack: The D compiler always needs to emit a full stack frame so that the GC can walk up the stack at any time in the program. The stack frame of every

Rvalue forwarding

2012-02-23 Thread Martin Nowak
Is it possible to forward rvalues through variadic templates? Having to move the value for every layer is suboptimal. What am I doing wrong? -- import std.algorithm : move; void foo(Unique!Handle uniq) { auto val = uniq.extract; assert(val._fd == 1); val.close(); } void

Re: The Right Approach to Exceptions

2012-02-23 Thread Jim Hewes
On 2/21/2012 2:29 PM, Ali Çehreli wrote: On 02/18/2012 09:09 PM, Jim Hewes wrote: I think of exception handling as tied to contract programming. I think your use of the word 'contract' is colliding with the contract programming feature. What you describe later does not match with the

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Jacob Carlborg
On 2012-02-22 22:37, David Nadlinger wrote: On Wednesday, 22 February 2012 at 21:36:10 UTC, David Nadlinger wrote: -oq, anyone? ;) Whoops, forgot the link: https://github.com/D-Programming-Language/dmd/pull/563. David I've tried to implement that several times but something always fails on

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread Jacob Carlborg
On 2012-02-22 20:40, H. S. Teoh wrote: On Wed, Feb 22, 2012 at 07:56:15PM +0100, Benjamin Thaut wrote: As I'm not satisfied with the current GC D has and don't see the situation improving in the future without significant changes to the compiler I wrote the following document that points out

Re: Questions about windows support

2012-02-23 Thread Christopher Nicholson-Sauls
On 02/20/2012 09:31 PM, H. S. Teoh wrote: On Tue, Feb 21, 2012 at 04:24:44AM +0100, Adam D. Ruppe wrote: On Tuesday, 21 February 2012 at 03:13:10 UTC, H. S. Teoh wrote: for x in *; mv $x dest/$x; done Easy. :) And wrong! What if the filename has a space in it? You can say $x, with quotes,

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Sönke Ludwig
Am 23.02.2012 00:03, schrieb Jonathan M Davis: On Wednesday, February 22, 2012 23:50:53 Bernard Helyer wrote: Except DMD is faster by a factor of 10 when passing it all at once. Then maybe there _should_ be a flag to tell it to use/generate the appropriate directory structure. You

Re: Why is there no or or and ?

2012-02-23 Thread F i L
H. S. Teoh wrote: So for example, here's a function that computes the average of an array: }efas erup tsnoc a f~a+z!~ni z@# b! $ a c)0= hcaerof~d=b! $c^)d=% nruter c(b{htgnel= % Here's an example of how to use it: tropmi

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread Sean Kelly
On Feb 22, 2012, at 8:07 PM, Martin Nowak d...@dawgfoto.de wrote: 4) Thread local / global memory A callback into the runtime needs to happen in the following cases: - a __gshared variable is assigned - a reference / pointer is casted to immutable - a reference / pointer is casted to

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Jacob Carlborg
On 2012-02-22 23:42, Brad Roberts wrote: On Wed, 22 Feb 2012, David Nadlinger wrote: On Wednesday, 22 February 2012 at 21:36:10 UTC, David Nadlinger wrote: -oq, anyone? ;) Whoops, forgot the link: https://github.com/D-Programming-Language/dmd/pull/563. David If only one of the attempts

Re: DustMite updated

2012-02-23 Thread Iain Buclaw
On 23 February 2012 02:25, Vladimir Panteleev vladi...@thecybershadow.net wrote: I played with some algorithms today and got about a 7x improvement in reduction time for my test case. The data is now arranged into a binary tree, and the progress indicator was changed to reflect that. Let me

Re: The Right Approach to Exceptions

2012-02-23 Thread Jonathan M Davis
On Wednesday, February 22, 2012 22:33:47 Jim Hewes wrote: On 2/21/2012 2:29 PM, Ali Çehreli wrote: On 02/18/2012 09:09 PM, Jim Hewes wrote: I think of exception handling as tied to contract programming. I think your use of the word 'contract' is colliding with the contract

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Jacob Carlborg
On 2012-02-22 23:05, Jonathan M Davis wrote: On Wednesday, February 22, 2012 22:33:35 Bernard Helyer wrote: A discussion on the Mono-D IRC channel just made me realise something. dmd -c foo/a.d bar/a.d The second module overwrites the first. This makes using 'pass everything at once' with

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread Manu
On 22 February 2012 20:56, Benjamin Thaut c...@benjamin-thaut.de wrote: 2) Tracking references on the stack: The D compiler always needs to emit a full stack frame so that the GC can walk up the stack at any time in the program. You say every function needs a stack frame. Can you comment on

Re: Questions about windows support

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 03:56:49AM +0100, Adam D. Ruppe wrote: I started the dshell just to waste a little time: http://arsdnet.net/dcode/dshell.d dmd dshell.d -L-lreadline -L-lncurses It doesn't do much here, but there's a few things I think are cool: 1) D reflection rox.

Re: DustMite updated

2012-02-23 Thread Trass3r
I played with some algorithms today and got about a 7x improvement in reduction time for my test case. The data is now arranged into a binary tree, and the progress indicator was changed to reflect that. Let me know if I broke anything in the process. Hooray, DustMite ftw!

Re: DustMite updated

2012-02-23 Thread Trass3r
Unfortunately plenty of 64Bit errors again :/

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Jacob Carlborg
On 2012-02-22 23:43, Jonathan M Davis wrote: On Wednesday, February 22, 2012 23:33:57 Bernard Helyer wrote: On Wednesday, 22 February 2012 at 22:05:51 UTC, Jonathan M Davis wrote: Then what happens when you have dmc -c foo/a.d foo_a.d Good point. Regardless, I really wouldn't like the

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Jacob Carlborg
On 2012-02-22 23:33, Bernard Helyer wrote: On Wednesday, 22 February 2012 at 22:05:51 UTC, Jonathan M Davis wrote: Then what happens when you have dmc -c foo/a.d foo_a.d Good point. Regardless, I really wouldn't like the idea of screwing with the object file names to try and avoid

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Jacob Carlborg
On 2012-02-23 00:03, Jonathan M Davis wrote: On Wednesday, February 22, 2012 23:50:53 Bernard Helyer wrote: Except DMD is faster by a factor of 10 when passing it all at once. Then maybe there _should_ be a flag to tell it to use/generate the appropriate directory structure. You already

Re: DustMite updated

2012-02-23 Thread Vladimir Panteleev
On Thursday, 23 February 2012 at 11:52:17 UTC, Trass3r wrote: Unfortunately plenty of 64Bit errors again :/ I can't test for these easily (I wish DMD on Windows had -m64 working with -o-).

Setting a deadline for setting up shared ?

2012-02-23 Thread deadalnix
Shared in D2 has been a stub for ages now. I'm affraid it will never get implemented if we don't define any priority for it. D2 is supposed to provide a very elegant way to handle concurency, but, in the current state of the language, it is unusable. If we want that language to succeed (and

Re: wxd does not build

2012-02-23 Thread dolive
James Miller дµ½: On 23 February 2012 18:19, dolive doliv...@sina.com wrote: c:\wxdset WXDIR=c:\wxWidgets-2.8.12 c:\wxdmake COMPILER=DMD LIBRARY=Phobos DFLAGS+=-d make -C wxc WX_RELEASE make[1]: Entering directory `/wxd/wxc' g++ -D__DMD__  `wx-config --cxxflags` -O2 -Wall -c -o

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread Robert Jacques
On Wed, 22 Feb 2012 15:32:37 -0600, H. S. Teoh hst...@quickfur.ath.cx wrote: On Wed, Feb 22, 2012 at 07:56:15PM +0100, Benjamin Thaut wrote: [...] 2) Tracking references on the stack: The D compiler always needs to emit a full stack frame so that the GC can walk up the stack at any time in the

Re: DustMite updated

2012-02-23 Thread Robert Clipsham
On 23/02/2012 13:05, Vladimir Panteleev wrote: On Thursday, 23 February 2012 at 11:52:17 UTC, Trass3r wrote: Unfortunately plenty of 64Bit errors again :/ I can't test for these easily (I wish DMD on Windows had -m64 working with -o-). Fixed - https://github.com/CyberShadow/DustMite/pull/7

FP in D (today)

2012-02-23 Thread Gour
Hello! After posting about how to resolve object-relational impedance mismatch using D dilemma, I did some more homework and today finally (after being advised in sqlite group) went through The Vietnam of Computer Science

Unable to post via forum web interface.

2012-02-23 Thread Dawid Ciężarkiewicz
Hi, FYI. I'm getting: NNTP error: 441 From: address not in Internet syntax when trying to post via http://forum.dlang.org/ . It's often for me to hit bugs regarding my email address ending with info. Surpringly, posting using Pan (Gnome NNTP client) works OK. Regards, -- Dawid Ciężarkiewicz

ARM targetting cross-toolchain with GDC

2012-02-23 Thread Dawid Ciężarkiewicz
Hi, # Introduction I've started some initial work to get a working GDC crosscompiler targeting ARM platforms. Currently I'm able to compile the toolchain and produce a working Hello World! binary that I'm able to execute on my BeagleBoard developement platform with ArchLinux installed. The

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread deadalnix
Le 22/02/2012 20:53, Benjamin Thaut a écrit : If you have a better idea for percise stack scanning I'm open for suggestions. This is the problem with your proposal. It doesn't consider pro and cons and actual data. It doesn't consider the alternatives. You go straight to « How can we do

Re: FP in D (today)

2012-02-23 Thread deadalnix
Le 23/02/2012 15:50, Gour a écrit : Hello! After posting about how to resolve object-relational impedance mismatch using D dilemma, I did some more homework and today finally (after being advised in sqlite group) went through The Vietnam of Computer Science

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread deadalnix
You didn't mention what is the most important IMO. In D, most data are thread local. Shared data are either shared or immutable. Both thread local data and immutable data lead to very interesting GC optimisations. This is where we need language support.

Re: Inheritance of purity

2012-02-23 Thread Bruno Medeiros
On 17/02/2012 02:49, Walter Bright wrote: Given: class A { void foo() { } } class B : A { override pure void foo() { } } This works great, because B.foo is covariant with A.foo, meaning it can tighten, or place more restrictions, on foo. But: class A { pure void foo() { } } class B : A {

Re: Inheritance of purity

2012-02-23 Thread Bruno Medeiros
On 17/02/2012 05:08, Kapps wrote: On Friday, 17 February 2012 at 03:24:50 UTC, Jonathan M Davis wrote: On Thursday, February 16, 2012 18:49:40 Walter Bright wrote: Given: class A { void foo() { } } class B : A { override pure void foo() { } } This works great, because B.foo is covariant with

Re: Inheritance of purity

2012-02-23 Thread Walter Bright
On 2/23/2012 8:59 AM, Bruno Medeiros wrote: I would even add to this that it might be useful to have similar syntax that would allow to define an override method without having to specify the return type nor the parameters of the overridden method. Sometimes in class hierarchies there is a lot

Re: ARM targetting cross-toolchain with GDC

2012-02-23 Thread Johannes Pfau
Am Thu, 23 Feb 2012 15:25:59 + (UTC) schrieb Dawid Ciężarkiewicz d...@ucore.info: Hi, # Introduction I've started some initial work to get a working GDC crosscompiler targeting ARM platforms. Currently I'm able to compile the toolchain and produce a working Hello World! binary that

Re: FP in D (today)

2012-02-23 Thread Walter Bright
On 2/23/2012 6:50 AM, Gour wrote: I'm curious if anyone more experienced with using FP paradigm in D can comment what works nicely and is there anything important missing in today's implementation of D? The main issue with FP in D today is it needs to be pervasively used in Phobos. A large

Re: Rvalue forwarding

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 08:15:52AM +0100, Martin Nowak wrote: Is it possible to forward rvalues through variadic templates? Having to move the value for every layer is suboptimal. What am I doing wrong? -- import std.algorithm : move; void foo(Unique!Handle uniq) { auto

Re: The Right Approach to Exceptions

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 02:57:43AM -0800, Jonathan M Davis wrote: [...] DbC tends to work better with internal stuff where you control both the caller and the callee, whereas defensive programming works better with public APIs. But regardless, which is best to use depends on the situtation

Re: Why is there no or or and ?

2012-02-23 Thread James Miller
On 23 February 2012 19:28, F i L witte2...@gmail.com wrote: H. S. Teoh wrote: So for example, here's a function that computes the average of an array:        }efas erup tsnoc a f~a+z!~ni z@# b! $                a c)0=                hcaerof~d=b! $c^)d=%                nruter c(b{htgnel=  

Re: Questions about windows support

2012-02-23 Thread James Miller
On 23 February 2012 19:41, H. S. Teoh hst...@quickfur.ath.cx wrote: On Thu, Feb 23, 2012 at 06:02:30PM +1300, James Miller wrote: [...] And I've been playing with trying to write my own terminal emulator. I actually kinda have one working, in C. I just need to wrap all the C code in functions

Re: The Right Approach to Exceptions

2012-02-23 Thread James Miller
On 23 February 2012 05:09, Regan Heath re...@netmail.co.nz wrote: On Tue, 21 Feb 2012 14:19:17 -, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/21/12 5:55 AM, Regan Heath wrote: On Sun, 19 Feb 2012 23:04:59 -, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:

Re: ARM targetting cross-toolchain with GDC

2012-02-23 Thread Iain Buclaw
On 23 February 2012 18:03, Johannes Pfau nos...@example.com wrote: Am Thu, 23 Feb 2012 15:25:59 + (UTC) schrieb Dawid Ciężarkiewicz d...@ucore.info: Hi, # Introduction I've started some initial work to get a working GDC crosscompiler targeting ARM platforms. Currently I'm able to

Re: DustMite updated

2012-02-23 Thread Nick Sabalausky
Vladimir Panteleev vladi...@thecybershadow.net wrote in message news:mnaydzddphyxlgpsw...@forum.dlang.org... On Thursday, 23 February 2012 at 11:52:17 UTC, Trass3r wrote: Unfortunately plenty of 64Bit errors again :/ I can't test for these easily (I wish DMD on Windows had -m64 working with

Re: Setting a deadline for setting up shared ?

2012-02-23 Thread Brad Roberts
On 2/23/2012 5:32 AM, deadalnix wrote: Shared in D2 has been a stub for ages now. I'm affraid it will never get implemented if we don't define any priority for it. D2 is supposed to provide a very elegant way to handle concurency, but, in the current state of the language, it is

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 06:01:48PM +0100, deadalnix wrote: [...] Additionnaly, the stack is made like a linked list. Each function calling another one register the return address. With this information, we can have data about what is on the stack except for the very last function called with

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 01:51:31PM +0200, Manu wrote: [...] I wonder if there are alternative ways to detect a foreign stack. And I'm not sure why it even matters, you can't depend on the extern ABI, how do you unwind the stack reliably in the first place? [...] This is a bit off-topic, but

Re: The Right Approach to Exceptions

2012-02-23 Thread Jonathan M Davis
On Thursday, February 23, 2012 07:47:55 H. S. Teoh wrote: On Thu, Feb 23, 2012 at 02:57:43AM -0800, Jonathan M Davis wrote: [...] DbC tends to work better with internal stuff where you control both the caller and the callee, whereas defensive programming works better with public APIs.

Re: Inheritance of purity

2012-02-23 Thread so
If it can be applied to const, wouldn't it be like const by convention that you argued against? On Friday, 17 February 2012 at 02:49:40 UTC, Walter Bright wrote: Given: class A { void foo() { } } class B : A { override pure void foo() { } } This works great, because B.foo is

Re: A file reading benchmark

2012-02-23 Thread Andrei Alexandrescu
On 2/17/12 7:44 PM, bearophile wrote: A tiny little file lines reading benchmark I've just found on Reddit: http://www.reddit.com/r/programming/comments/pub98/a_benchmark_for_reading_flat_files_into_memory/ http://steve.80cols.com/reading_flat_files_into_memory_benchmark.html The Ruby code

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread Artur Skawina
On 02/23/12 20:58, H. S. Teoh wrote: On Thu, Feb 23, 2012 at 01:51:31PM +0200, Manu wrote: [...] I wonder if there are alternative ways to detect a foreign stack. And I'm not sure why it even matters, you can't depend on the extern ABI, how do you unwind the stack reliably in the first place?

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Jonathan M Davis
On Thursday, February 23, 2012 12:06:54 Jacob Carlborg wrote: On 2012-02-22 23:05, Jonathan M Davis wrote: If you're going to worry about modules when generating object files, then you really should be putting the object files in the same directory layout as the modules have. But that sort

Re: Inheritance of purity

2012-02-23 Thread so
On Thursday, 23 February 2012 at 18:32:12 UTC, Walter Bright wrote: Not a bad idea, but it would be problematic if there were any overloads. It is still applicable to return types. But i don't like the idea. If you omit arguments and return type, you force both yourself and the reader to

Re: ARM targetting cross-toolchain with GDC

2012-02-23 Thread Dawid Ciężarkiewicz
Dnia Thu, 23 Feb 2012 19:41:53 +, Iain Buclaw napisał(a): Does crosstools allow you to build a cross compiler for architecture X? Yes, exactly. Canadian cross-compilers too. So other architectures could potenatially work, too. I don't have equipement to test them. -- Dawid Ciężarkiewicz

Re: Inheritance of purity

2012-02-23 Thread so
On Friday, 17 February 2012 at 03:24:50 UTC, Jonathan M Davis wrote: No. Absolutely not. I hate the fact that C++ does this with virtual. It makes it so that you have to constantly look at the base classes to figure out what's virtual and what isn't. It harms maintenance and code

Re: ARM targetting cross-toolchain with GDC

2012-02-23 Thread Dawid Ciężarkiewicz
Dnia Thu, 23 Feb 2012 19:03:46 +0100, Johannes Pfau napisał(a): That's issue 120: https://bitbucket.org/goshawk/gdc/issue/120/fsection-anchors-broken-on- arm Thanks. Must try without -O2 now. Integrating GDC with crosstools is nice. If you find the time, could you please add a page to the GDC

Re: Questions about windows support

2012-02-23 Thread H. S. Teoh
On Fri, Feb 24, 2012 at 12:38:52AM +1300, James Miller wrote: On 23 February 2012 19:41, H. S. Teoh hst...@quickfur.ath.cx wrote: [...] Perhaps there's a way of detecting JPEG or PNG output, say some kind of magic number detection ala /usr/bin/file. Buffer the first few bytes at output at

Re: [RFC]Proposal for better garbage collection

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 09:18:22PM +0100, Artur Skawina wrote: On 02/23/12 20:58, H. S. Teoh wrote: [...] This is a bit off-topic, but what happens in the current implementation if you pass a D callback to a C function, and then throw an exception from the callback? Does it work? Or does it

Re: ARM targetting cross-toolchain with GDC

2012-02-23 Thread Andrew Wiley
2012/2/23 Dawid Ciężarkiewicz d...@ucore.info: Dnia Thu, 23 Feb 2012 19:03:46 +0100, Johannes Pfau napisał(a): That's issue 120: https://bitbucket.org/goshawk/gdc/issue/120/fsection-anchors-broken-on- arm Thanks. Must try without -O2 now. -O2 is fine as long as you also use

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 01:42:44PM +0100, Jacob Carlborg wrote: On 2012-02-23 00:03, Jonathan M Davis wrote: On Wednesday, February 22, 2012 23:50:53 Bernard Helyer wrote: Except DMD is faster by a factor of 10 when passing it all at once. Then maybe there _should_ be a flag to tell it to

Re: Questions about windows support

2012-02-23 Thread Adam D. Ruppe
On Thursday, 23 February 2012 at 21:17:35 UTC, H. S. Teoh wrote: Taking the idea of an in-terminal video player further, what about a general escape sequence for application-specific output? html. seriously, once you take the in-terminal stuff too far, you have a beast of a program that

Re: A file reading benchmark

2012-02-23 Thread Martin Nowak
On my machine (Mac OSX Lion), the Python code clocks around 1.2 seconds and the D code at a whopping 9.3 seconds. I looked around where the problem lies and sure enough the issue was with a slow loop in the generic I/O implementation of readln. The commit

Re: Inheritance of purity

2012-02-23 Thread so
On Thursday, 23 February 2012 at 22:01:43 UTC, F i L wrote: UTC, so wrote: If you are not using an IDE or a mouse, this would be hell. lol wut? This isn't the 80's. In all seriousness, I think you're decoupling inherently ingrained pieces: the language and it's tools. The same way you

Re: Questions about windows support

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 10:34:24PM +0100, Adam D. Ruppe wrote: On Thursday, 23 February 2012 at 21:17:35 UTC, H. S. Teoh wrote: Taking the idea of an in-terminal video player further, what about a general escape sequence for application-specific output? html. That gives you the funny

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Bernard Helyer
On Thursday, 23 February 2012 at 21:28:17 UTC, H. S. Teoh wrote: On Thu, Feb 23, 2012 at 01:42:44PM +0100, Jacob Carlborg wrote: On 2012-02-23 00:03, Jonathan M Davis wrote: On Wednesday, February 22, 2012 23:50:53 Bernard Helyer wrote: Except DMD is faster by a factor of 10 when passing it all

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Bernard Helyer
On Thursday, 23 February 2012 at 23:06:56 UTC, Bernard Helyer wrote: Did you not read what Jacob posted? my.module.A.o my_module_A.o my_module.A.o my.module_A.o No conflicts. Also, you can't have a package called module.

Re: Inheritance of purity

2012-02-23 Thread Jason House
On Thursday, 23 February 2012 at 17:10:58 UTC, Bruno Medeiros wrote: Sounds like a good idea. I would even add to this that it might be useful to have similar syntax that would allow to define an override method without having to specify the return type nor the parameters of the overridden

Re: The Right Approach to Exceptions

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 12:07:40PM -0800, Jonathan M Davis wrote: On Thursday, February 23, 2012 07:47:55 H. S. Teoh wrote: [...] The way I understand it, DbC is used for ensuring *program* correctness (ensure that program logic does not get itself into a bad state); defensive programming

Re: Inheritance of purity

2012-02-23 Thread H. S. Teoh
On Fri, Feb 24, 2012 at 12:06:19AM +0100, Jason House wrote: On Thursday, 23 February 2012 at 17:10:58 UTC, Bruno Medeiros wrote: I would even add to this that it might be useful to have similar syntax that would allow to define an override method without having to specify the return type nor

Re: Inheritance of purity

2012-02-23 Thread H. S. Teoh
On Thu, Feb 23, 2012 at 11:01:42PM +0100, F i L wrote: UTC, so wrote: If you are not using an IDE or a mouse, this would be hell. lol wut? This isn't the 80's. I still don't use an IDE or a mouse when I code. And I don't plan to. (In fact, I rather plan the *opposite*.) In all

Re: A file reading benchmark

2012-02-23 Thread Martin Nowak
On Fri, 24 Feb 2012 00:24:16 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/23/12 3:40 PM, Martin Nowak wrote: On my machine (Mac OSX Lion), the Python code clocks around 1.2 seconds and the D code at a whopping 9.3 seconds. I looked around where the problem lies and

Re: Inheritance of purity

2012-02-23 Thread so
On Thursday, 23 February 2012 at 23:40:28 UTC, H. S. Teoh wrote: Omitting argument names/types is very evil. It opens up the possibility of changing the base class and introducing nasty subtle bugs in the derived class without any warning. For example: Good catch.

Re: Inheritance of purity

2012-02-23 Thread F i L
UTC, so wrote: No one said you shouldn't use IDE or any other tool, but i don't think it is healthy to design a language with such assumptions. Walter himself was against this and stated why he doesn't like Java way of doing things, one of the reason was the language was relying on IDEs.

Re: The Right Approach to Exceptions

2012-02-23 Thread Jonathan M Davis
On Thursday, February 23, 2012 15:18:27 H. S. Teoh wrote: On Thu, Feb 23, 2012 at 12:07:40PM -0800, Jonathan M Davis wrote: In my book, a linked library shares equal status with the main program, therefore the definition of user input still sits at the internal-to-program and external

Re: A file reading benchmark

2012-02-23 Thread H. S. Teoh
On Fri, 24 Feb 2012 00:24:16 +0100, Andrei Alexandrescu [...] Yah, feel free to work opportunistically on this if you find the time. However, I think long-term we want to give byLine() the freedom of doing its own buffering. [...] And while we're working with byLine(), it would be nice if

Re: Inheritance of purity

2012-02-23 Thread F i L
H. S. Teoh wrote: In all seriousness, I think you're decoupling inherently ingrained pieces: the language and it's tools. The same way you *need* syntax highlighting to distinguish structure, I don't. wait... you don't even use Syntax Highlighting? Are you insane, you'll go blind! And

Re: Inheritance of purity

2012-02-23 Thread so
On Friday, 24 February 2012 at 00:01:52 UTC, F i L wrote: It's unrealistic to think people (at large) will be writing any sort of serious application outside of a modern IDE. You would be surprised or i should rather say shocked? :) I used to be an IDE fanatic as well, then i took an arrow...

Re: Inheritance of purity

2012-02-23 Thread H. S. Teoh
On Fri, Feb 24, 2012 at 01:01:51AM +0100, F i L wrote: UTC, so wrote: No one said you shouldn't use IDE or any other tool, but i don't think it is healthy to design a language with such assumptions. Walter himself was against this and stated why he doesn't like Java way of doing things, one

Re: Inheritance of purity

2012-02-23 Thread Andrei Alexandrescu
On 2/23/12 6:01 PM, F i L wrote: It's unrealistic to think people (at large) will be writing any sort of serious application outside of a modern IDE. You'd hate working for Facebook :o). Andrie

Re: Inheritance of purity

2012-02-23 Thread Jonathan M Davis
On Thursday, February 23, 2012 16:38:13 H. S. Teoh wrote: When you have a *real* text editor at your disposal, writing code is actually on par, if not better, than development in an IDE. I'd like to think that it's only because I'm a weirdo who lived past my generation and still haven't moved

Re: Questions about windows support

2012-02-23 Thread James Miller
On 24 February 2012 12:03, H. S. Teoh hst...@quickfur.ath.cx wrote: On Thu, Feb 23, 2012 at 10:34:24PM +0100, Adam D. Ruppe wrote: On Thursday, 23 February 2012 at 21:17:35 UTC, H. S. Teoh wrote: Taking the idea of an in-terminal video player further, what about a general escape sequence for

Re: Rvalue forwarding

2012-02-23 Thread Martin Nowak
On Thu, 23 Feb 2012 08:15:52 +0100, Martin Nowak d...@dawgfoto.de wrote: Is it possible to forward rvalues through variadic templates? Having to move the value for every layer is suboptimal. What am I doing wrong? A working solution was to let move return a proxy which defers the move until

Re: Inheritance of purity

2012-02-23 Thread James Miller
On 24 February 2012 13:15, F i L witte2...@gmail.com wrote: H. S. Teoh wrote: In all seriousness, I think you're decoupling inherently ingrained pieces: the language and it's tools. The same way you *need* syntax highlighting to distinguish structure, I don't. wait... you don't even use

Re: PyD

2012-02-23 Thread Ellery Newcomer
Well, I can't make any promises, but you can try this: https://bitbucket.org/ariovistus/pyd it seems not to be compiling with the 2.058 front end, but I think it should with the 2.057 front end and ldc. python headers are updated to support 2.5 thru 2.7, though I only tested with 2.7 good

Re: Inheritance of purity

2012-02-23 Thread H. S. Teoh
On Fri, Feb 24, 2012 at 06:05:20PM +1300, James Miller wrote: [...] My ongoing quest for productivity has led me to believe that, unless you want to be tied to a technology, back to basics is the best way. That's an interesting observation. I have to agree. I personally believe that any set

Re: PyD

2012-02-23 Thread Ellery Newcomer
On 02/23/2012 11:40 PM, Ellery Newcomer wrote: Well, I can't make any promises, but you can try this: https://bitbucket.org/ariovistus/pyd it seems not to be compiling with the 2.058 front end, but I think it should with the 2.057 front end and ldc. crumb, I take that back Anyone know why

Floating point failures on x64

2012-02-23 Thread Daniel Murphy
I've been trying to fix issue 4155, but it's a little difficult without the ability to test on x64 (I'm on win32). Could anybody compile the following code for me with 'dmd -m64' with this patch https://github.com/D-Programming-Language/dmd/pull/760 and send me the disassembly? Thanks.

Re: PyD

2012-02-23 Thread Jonathan M Davis
On Thursday, February 23, 2012 23:52:09 Ellery Newcomer wrote: On 02/23/2012 11:40 PM, Ellery Newcomer wrote: Well, I can't make any promises, but you can try this: https://bitbucket.org/ariovistus/pyd it seems not to be compiling with the 2.058 front end, but I think it should with

  1   2   >