Re: D-Day for DMD is today!

2015-08-23 Thread Daniel Murphy via Digitalmars-d-announce
BBasile wrote in message news:rljvemqjfvnnqqnnc...@forum.dlang.org... Excellent. I guess it's also time to clean the wiki page that explained how to build under win32 with DMC. It's obsolete now. Nope! The glue layer and backend are still in C++, and still need to be built with DMC.

Re: D-Day for DMD is today!

2015-08-23 Thread Nick Sabalausky via Digitalmars-d-announce
On 08/23/2015 01:17 AM, Walter Bright wrote: We have made the switch from C++ DMD to D DMD! http://semitwist.com/download/av/you-did-it.mp4

Re: Digger 2.3 verstr.h problem

2015-08-23 Thread John Colvin via Digitalmars-d-learn
On Sunday, 23 August 2015 at 11:27:32 UTC, Robert M. Münch wrote: Hi, just trying to build the latest DMD with Digger 2.3 and get this: uffer.d root/port.d root/response.d root/rmem.d root/rootobject.d root/speller.d root/stringtable.d newdelete.o glue.a backend.a globals.d(293): Error: file

Re: Trying to compile weather program

2015-08-23 Thread Gerald Jansen via Digitalmars-d-learn
On Sunday, 23 August 2015 at 16:00:19 UTC, Tony wrote: /usr/bin/ld: cannot find -lcurl Just the other day I had a similar problem (compiling vibenews, ld complained of missing -levent and -lssl), which I managed to solve simply by installing the development versions of the libraries (i.e.

Re: Object.factory() and exe file size bloat

2015-08-23 Thread Walter Bright via Digitalmars-d
On 8/23/2015 6:17 AM, Benjamin Thaut wrote: How do you implement weak linking? It would be really usefull for my DLL work as well, but I couldn't find any way to make it work with the microsoft linker. I've always had trouble with linker bugs when using weak linking, to the point where I

Re: D-Day for DMD is today!

2015-08-23 Thread Sönke Ludwig via Digitalmars-d-announce
Am 23.08.2015 um 07:17 schrieb Walter Bright: https://github.com/D-Programming-Language/dmd/pull/4923 We have made the switch from C++ DMD to D DMD! Many, many thanks to Daniel Murphy for slaving away for 2.5 years to make this happen. More thanks to Martin Nowak for helping shepherd it

Re: D-Day for DMD is today!

2015-08-23 Thread Nick Sabalausky via Digitalmars-d-announce
On 08/23/2015 01:37 AM, Martin Nowak wrote: On 08/23/2015 07:22 AM, Rikki Cattermole wrote: Now lets hope the next stage is smooth in the transition. Here is a small guide on how to update a PR. https://github.com/D-Programming-Language/dmd/pull/4922#issuecomment-133776696 # convert all

Re: How to use ranges?

2015-08-23 Thread Gary Willoughby via Digitalmars-d-learn
On Sunday, 23 August 2015 at 17:58:44 UTC, Doolan wrote: ... Read this for a nice introduction: http://ddili.org/ders/d.en/ranges.html Then watch this: https://www.youtube.com/watch?v=A8Btr8TPJ8c

Re: How to use ranges?

2015-08-23 Thread John Colvin via Digitalmars-d-learn
Generally, dynamic arrays / slices are random-access ranges. Narrow strings (string/wstring/char[]/wchar[]/...) are a notable exception to this. They are dynamic arrays of UTF-8/UTF-16 code units. But they're not random-access ranges of Unicode code units. Instead, they're _forward_ ranges of

Re: dmd codegen improvements

2015-08-23 Thread Walter Bright via Digitalmars-d
On 8/23/2015 11:42 AM, deadalnix wrote: No, x32 is basically amd64 with 32 bits pointers. You can use all other functions of amd64, like the extended number of registers. Makes sense.

[Issue 14951] Win64: Invalid C++ mangling for __gshared pointer variables

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14951 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d16e409431c6a73af8f4a92f512de1976f615b51 Merge pull request #4935

[Issue 14896] x64 synchronized problem when using -O

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14896 ponce alil...@gmail.com changed: What|Removed |Added Summary|x64 codegen problem when|x64 synchronized problem

Re: Trying to compile weather program

2015-08-23 Thread Tony via Digitalmars-d-learn
On Sunday, 23 August 2015 at 16:00:19 UTC, Tony wrote: Thanks for the replies. It compiles OK with just. However, it isn't linking: /usr/bin/ld: cannot find -lcurl I do have some versions of libcurl on my system: /usr/lib/x86_64-linux-gnu/libcurl.so.3

Re: post on using go 1.5 and GC latency

2015-08-23 Thread Atila Neves via Digitalmars-d-learn
On Saturday, 22 August 2015 at 06:54:43 UTC, Ola Fosheim Grøstad wrote: On Saturday, 22 August 2015 at 06:48:48 UTC, Russel Winder wrote: But one that Google are entirely happy to fully fund. Yes, they have made Go fully supported on Google Cloud now, so I think it is safe to say that Google

[Issue 14951] Win64: Invalid C++ mangling for __gshared pointer variables

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14951 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added Keywords||C++, pull --- Comment

[Issue 14951] Win64: Invalid C++ mangling for __gshared pointer variables

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14951 --- Comment #2 from Rainer Schuetze r.sagita...@gmx.de --- extern(C++) ClassDeclaration* foo(); This is wrong, should not have the '*': extern(C++) ClassDeclaration foo(); --

[Issue 14896] x64 codegen problem when using -O

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14896 --- Comment #5 from ponce alil...@gmail.com --- Can't reproduce on Mac OS X, odd. --

Re: How to use ranges?

2015-08-23 Thread anonymous via Digitalmars-d-learn
On Sunday 23 August 2015 19:58, Doolan wrote: You can use typeof to get the type of a range expression when typing it out is impractical/impossible. What if I want to save a range in a struct? Or is a range more of a verb than a noun..? Can still use typeof then: struct S { import

Re: post on using go 1.5 and GC latency

2015-08-23 Thread via Digitalmars-d-learn
On Sunday, 23 August 2015 at 12:49:35 UTC, Russel Winder wrote: You are mixing too many factors here. General purpose has nothing to do with performance, it is to do with can the language describe most if not all forms of computation. Go is a general purpose programming language just like C,

[Issue 14896] x64 codegen problem when using -O

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14896 --- Comment #6 from ponce alil...@gmail.com --- Removing the synchronized(this) in font.d:L118 removes the bug. It doesn't seem related to codegen afterall. --

Re: D-Day for DMD is today!

2015-08-23 Thread BBasile via Digitalmars-d-announce
On Sunday, 23 August 2015 at 06:08:54 UTC, Daniel Murphy wrote: BBasile wrote in message news:rljvemqjfvnnqqnnc...@forum.dlang.org... Excellent. I guess it's also time to clean the wiki page that explained how to build under win32 with DMC. It's obsolete now. Nope! The glue layer and

Re: Trying to compile weather program

2015-08-23 Thread anonymous via Digitalmars-d-learn
On Sunday 23 August 2015 11:54, Tony wrote: weather_report.d(32): Error: undefined identifier centerJustifier `centerJustifier` is new in 2.068. You're probably using an older version of D. You can replace `centerJustifier` with `center` here.

[Issue 14911] Compiler found indexing in code new MyStruct[2].ptr

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14911 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c1d8b528477bdda68128826454b92be643760e53 fix Issue 14911 - Compiler

Re: Trying to compile weather program

2015-08-23 Thread BBasile via Digitalmars-d-learn
On Sunday, 23 August 2015 at 09:54:37 UTC, Tony wrote: I found this weather program on the main page (it seems to rotate what it here): [...] try with `center()` or update the compiler. centerJustifier() was added on 25 Apr 2015 so after 2.066.1 release:

[Issue 14900] 2.068.0 change log example does not compile

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14900 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14889] ICE: Assertion `o-dyncast() == DYNCAST_DSYMBOL' failed.

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14889 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/107567b721f90ccea5fc5c2ffeea77039de10d4a fix Issue 14889 - ICE:

Re: D-Day for DMD is today!

2015-08-23 Thread Mike via Digitalmars-d-announce
On Sunday, 23 August 2015 at 05:17:33 UTC, Walter Bright wrote: We have made the switch from C++ DMD to D DMD! Very Cool! And thank you to all who worked towards it. There are still a number of .h files in the front end. What will happen with those? Do they need to be maintained?

Re: Object.factory() and exe file size bloat

2015-08-23 Thread Rikki Cattermole via Digitalmars-d
On 8/24/2015 1:09 AM, Benjamin Thaut wrote: The good news is, once I'm done with my windows DLL work the code can be trivialy reused to make export control the visibility of symbols on linux as well. Kind Regards Benjamin Thaut Wait we are getting almost full blown DLL support on Windows?

[Issue 14951] New: Win64: Invalid C++ mangling for __gshared pointer variables

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14951 Issue ID: 14951 Summary: Win64: Invalid C++ mangling for __gshared pointer variables Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW

Re: Trying to compile weather program

2015-08-23 Thread Tony via Digitalmars-d-learn
Thanks for the replies. It compiles OK with just. However, it isn't linking: /usr/bin/ld: cannot find -lcurl I do have some versions of libcurl on my system: /usr/lib/x86_64-linux-gnu/libcurl.so.3 /usr/lib/x86_64-linux-gnu/libcurl.so.4.3.0 /usr/lib/x86_64-linux-gnu/libcurl.so.4 I see there

[Issue 14877] std.net.curl needs PATCH http method

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14877 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/ceb29a91c0c4afd3b502ab3c0e163b1fd27b4d39 fix Issue 14877 -

Re: D-Day for DMD is today!

2015-08-23 Thread Martin Nowak via Digitalmars-d-announce
On 08/23/2015 06:35 PM, Nick Sabalausky wrote: I haven't worked with the conversion tool before. How is this part done? It's the exact command below that line, we've incorporated that into the makefile.

Re: How to use ranges?

2015-08-23 Thread Doolan via Digitalmars-d-learn
On Sunday, 23 August 2015 at 13:46:30 UTC, anonymous wrote: On Sunday 23 August 2015 12:17, Doolan wrote: And the use of auto everywhere makes it really hard to tell what types I should be using for anything. My compiler talks about RangeT!(whatever) but you try to use RangeT!(whatever) and

Re: string - null/bool implicit conversion

2015-08-23 Thread ponce via Digitalmars-d
On Thursday, 20 August 2015 at 16:45:18 UTC, Márcio Martins wrote: Hi! string a = ; string b; writeln(a ? a : null); writeln(b ? b : null); This program outputs: a null What? I suppose this is by design, but are there any plans to deprecate this? Sounds correct to me.

Re: How to use ranges?

2015-08-23 Thread ZombineDev via Digitalmars-d-learn
On Sunday, 23 August 2015 at 17:58:44 UTC, Doolan wrote: ... Ali's book has a very nice chapter about ranges: http://ddili.org/ders/d.en/ranges.html

Re: D-Day for DMD is today!

2015-08-23 Thread Nick Sabalausky via Digitalmars-d-announce
On 08/23/2015 01:08 PM, Martin Nowak wrote: On 08/23/2015 06:35 PM, Nick Sabalausky wrote: I haven't worked with the conversion tool before. How is this part done? It's the exact command below that line, we've incorporated that into the makefile. Ah, ok, I misunderstood that part.

Re: dmd codegen improvements

2015-08-23 Thread deadalnix via Digitalmars-d
On Sunday, 23 August 2015 at 08:01:27 UTC, Walter Bright wrote: On 8/22/2015 5:03 PM, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 17:10:36 UTC, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 12:37:37 UTC, Vladimir Panteleev wrote: I suggest that we revamp the compiler

Re: Digger 2.3 verstr.h problem

2015-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 23 August 2015 at 20:07:39 UTC, Robert M. Münch wrote: On 2015-08-23 17:01:07 +, Vladimir Panteleev said: [...] Ok, good. So it should be fixable on my side. [...] Not really sure what's going on there... If I could reproduce it, I'd try building DMD manually - if it still

Re: Digger 2.3 verstr.h problem

2015-08-23 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 23 August 2015 at 11:27:32 UTC, Robert M. Münch wrote: Hi, just trying to build the latest DMD with Digger 2.3 and get this: uffer.d root/port.d root/response.d root/rmem.d root/rootobject.d root/speller.d root/stringtable.d newdelete.o glue.a backend.a globals.d(293): Error: file

Re: D-Day for DMD is today!

2015-08-23 Thread Martin Nowak via Digitalmars-d-announce
On 08/23/2015 07:08 PM, Martin Nowak wrote: On 08/23/2015 06:35 PM, Nick Sabalausky wrote: I haven't worked with the conversion tool before. How is this part done? It's the exact command below that line, we've incorporated that into the makefile. In case it doesn't work b/c you added a

Re: Digger 2.3 verstr.h problem

2015-08-23 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-08-23 17:01:07 +, Vladimir Panteleev said: Can't reproduce this on Windows, Linux or OS X 10.10.3. Ok, good. So it should be fixable on my side. Can you include more of the build log (specifically, the entire failing command line)? It should have a -J. in it. CC=g++

Re: dmd codegen improvements

2015-08-23 Thread Iain Buclaw via Digitalmars-d
On 23 August 2015 at 05:33, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sun, Aug 23, 2015 at 12:03:25AM +, Vladimir Panteleev via Digitalmars-d wrote: On Tuesday, 18 August 2015 at 17:10:36 UTC, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 12:37:37

[Issue 8973] core.cpuid.coresPerCPU returning incorrect value.

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8973 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/f3d9ec7008578c366e543c74006959da1b3c5a23 Merge pull request

Re: D-Day for DMD is today!

2015-08-23 Thread BBasile via Digitalmars-d-announce
On Sunday, 23 August 2015 at 08:56:14 UTC, Daniel Murphy wrote: BBasile wrote in message news:fmoabuqgvlztgmqyj...@forum.dlang.org... By the way, currently under win32 it's not possible to build DDMD unless the line --- #HOST_DC=dmd --- is uncommented. Because there is a bunch of commands

Re: Object.factory() and exe file size bloat

2015-08-23 Thread Benjamin Thaut via Digitalmars-d
On Saturday, 22 August 2015 at 20:22:58 UTC, David Nadlinger wrote: On Saturday, 22 August 2015 at 20:14:59 UTC, Walter Bright wrote: I'm not sure how export would help on Linux. One of the use cases for export on Linux would be to set the ELF visibility based on it. Emitting all the symbols

[Issue 13007] Wrong x86 code: long negate

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13007 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/83d93a0a1113aeec60c196db2dc338abadb1f3c5 fix Issue 13007 - Wrong x86

Re: dmd codegen improvements

2015-08-23 Thread Walter Bright via Digitalmars-d
On 8/22/2015 5:03 PM, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 17:10:36 UTC, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 12:37:37 UTC, Vladimir Panteleev wrote: I suggest that we revamp the compiler download page again. The lead should be a select your compiler which

Re: dmd codegen improvements

2015-08-23 Thread Iain Buclaw via Digitalmars-d
On 23 August 2015 at 10:11, Liam McSherry via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sunday, 23 August 2015 at 08:01:27 UTC, Walter Bright wrote: On 8/22/2015 5:03 PM, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 17:10:36 UTC, Vladimir Panteleev wrote: On Tuesday,

Re: (De)Serializing interfaces

2015-08-23 Thread nims via Digitalmars-d-learn
On Sunday, 23 August 2015 at 03:09:03 UTC, Rikki Cattermole wrote: Anyway to summise why D doesn't yet have something akin to Java or C#. Simply put, we generally work with the actual type not an interface. So libraries like Orange can serialize/deserialize with great certainty that it got

Re: Object.factory() and exe file size bloat

2015-08-23 Thread Dicebot via Digitalmars-d
On Saturday, 22 August 2015 at 20:14:59 UTC, Walter Bright wrote: Marking them all as export will be inconvenient but is possible - but I'd like to get something useful in return, like well-defined and working export for example. I'm not sure how export would help on Linux. I have always

How to use ranges?

2015-08-23 Thread Doolan via Digitalmars-d-learn
I keep running into areas of my code where it looks like I'd benefit from using ranges, and then I try to do some range stuff and my compiler tells me I'm using the wrong types, or there's this problem, or that problem... so I'm scared off and I just figure ways to work around using ranges.

Re: (De)Serializing interfaces

2015-08-23 Thread nims via Digitalmars-d-learn
On Sunday, 23 August 2015 at 08:38:14 UTC, Rikki Cattermole wrote: What I was thinking was having a serialize method take an output range which you will just pass in a value. I'm not really sure what you mean. Replacing the operator by a range function or serializing everything automatically?

Re: Object.factory() and exe file size bloat

2015-08-23 Thread Rikki Cattermole via Digitalmars-d
On Friday, 21 August 2015 at 06:24:34 UTC, Rikki Cattermole wrote: On 8/21/2015 5:06 PM, Walter Bright wrote: This function: http://dlang.org/phobos/object.html#.Object.factory enables a program to instantiate any class defined in the program. To make it work, though, every class in the

Re: (De)Serializing interfaces

2015-08-23 Thread nims via Digitalmars-d-learn
On Sunday, 23 August 2015 at 03:25:27 UTC, Kapps wrote: I've never used Orange, but one thing you could try is casting your object from MyInterface to Object, and registering the type Foobar like in http://dsource.org/projects/orange/wiki/Tutorials/SerializeBase, then serializing/deserializing

Re: dmd codegen improvements

2015-08-23 Thread Joakim via Digitalmars-d
On Sunday, 23 August 2015 at 00:03:27 UTC, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 17:10:36 UTC, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 12:37:37 UTC, Vladimir Panteleev wrote: I suggest that we revamp the compiler download page again. The lead should be a

Re: D-Day for DMD is today!

2015-08-23 Thread Walter Bright via Digitalmars-d-announce
On 8/23/2015 12:48 AM, Joakim wrote: Can we look forward to a complete ddmd, ie backend and everything ported to D too, anytime soon? Once this all settles down and we're comfortable with it, I'd like to port the rest of dmd to D. No schedule for now.

Re: D-Day for DMD is today!

2015-08-23 Thread Dicebot via Digitalmars-d-announce
Great! Daniel, does that mean that I can remove DDMD testing job from my CI? :)

Re: Object.factory() and exe file size bloat

2015-08-23 Thread Dicebot via Digitalmars-d
On Friday, 21 August 2015 at 21:50:21 UTC, Walter Bright wrote: As with everything, it's cost/benefit. Changing isnan to isNaN is an example of all cost and no benefit. I've explained the benefits of changing factory() a couple times in this thread. I believe the benefits are significant,

Re: dmd codegen improvements

2015-08-23 Thread Vladimir Panteleev via Digitalmars-d
On Sunday, 23 August 2015 at 03:37:17 UTC, H. S. Teoh wrote: On Sun, Aug 23, 2015 at 12:03:25AM +, Vladimir Panteleev via Digitalmars-d wrote: On Tuesday, 18 August 2015 at 17:10:36 UTC, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 12:37:37 UTC, Vladimir Panteleev wrote: I

Re: post on using go 1.5 and GC latency

2015-08-23 Thread Russel Winder via Digitalmars-d-learn
On Sun, 2015-08-23 at 11:26 +, rsw0x via Digitalmars-d-learn wrote: […] https://groups.google.com/forum/#!msg/golang -dev/pIuOcqAlvKU/C0wooVzXLZwJ 25-50% performance decrease across the board in 1.4 with the addition of write barriers, to an already slow language. Garbage collection

Re: D-Day for DMD is today!

2015-08-23 Thread Daniel Murphy via Digitalmars-d-announce
Mike wrote in message news:hkyvytmqbstkelkum...@forum.dlang.org... There are still a number of .h files in the front end. What will happen with those? Do they need to be maintained? For now they must be maintained by hand, if there is any possibility of the glue layers or backends needing

Re: D-Day for DMD is today!

2015-08-23 Thread Iain Buclaw via Digitalmars-d-announce
On 23 August 2015 at 07:42, rsw0x via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Sunday, 23 August 2015 at 05:17:33 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/dmd/pull/4923 We have made the switch from C++ DMD to D DMD! Many, many thanks

Re: D-Day for DMD is today!

2015-08-23 Thread via Digitalmars-d-announce
On Sunday, 23 August 2015 at 05:17:33 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/dmd/pull/4923 We have made the switch from C++ DMD to D DMD! Congratulations!! :)

Re: Object.factory() and exe file size bloat

2015-08-23 Thread Walter Bright via Digitalmars-d
On 8/23/2015 2:27 AM, Dicebot wrote: Changing isnan to isNaN is a small benefit (better internal structure and consistency is important) but it also comes at tiny, almost insignificant costs. It doesn't cause any immediate breakage and can be adjusted to at any moment with 1 simple

Re: D-Day for DMD is today!

2015-08-23 Thread Walter Bright via Digitalmars-d-announce
On 8/23/2015 2:36 AM, BBasile wrote: On Sunday, 23 August 2015 at 08:56:14 UTC, Daniel Murphy wrote: BBasile wrote in message news:fmoabuqgvlztgmqyj...@forum.dlang.org... By the way, currently under win32 it's not possible to build DDMD unless the line --- #HOST_DC=dmd --- is uncommented.

Re: (De)Serializing interfaces

2015-08-23 Thread Rikki Cattermole via Digitalmars-d-learn
On 8/23/2015 10:17 PM, nims wrote: On Sunday, 23 August 2015 at 08:38:14 UTC, Rikki Cattermole wrote: What I was thinking was having a serialize method take an output range which you will just pass in a value. I'm not really sure what you mean. Replacing the operator by a range function or

Re: How to use ranges?

2015-08-23 Thread Rikki Cattermole via Digitalmars-d-learn
On 8/23/2015 10:17 PM, Doolan wrote: I keep running into areas of my code where it looks like I'd benefit from using ranges, and then I try to do some range stuff and my compiler tells me I'm using the wrong types, or there's this problem, or that problem... so I'm scared off and I just figure

Re: (De)Serializing interfaces

2015-08-23 Thread Rikki Cattermole via Digitalmars-d-learn
On 8/23/2015 8:15 PM, nims wrote: On Sunday, 23 August 2015 at 03:09:03 UTC, Rikki Cattermole wrote: Anyway to summise why D doesn't yet have something akin to Java or C#. Simply put, we generally work with the actual type not an interface. So libraries like Orange can serialize/deserialize

Re: D-Day for DMD is today!

2015-08-23 Thread Daniel Murphy via Digitalmars-d-announce
Joakim wrote in message news:sfhycfhmabpfxxuxn...@forum.dlang.org... Great work, thanks to Daniel and others who helped out, can't wait to use ddmd and see all the changes that come with it in the next couple releases. I can't wait to use foreach internally! No more manual for loops! Can

[Issue 10042] std.range.inits and tails

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10042 ZombineDev petar.p.ki...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 14889] ICE: Assertion `o-dyncast() == DYNCAST_DSYMBOL' failed.

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14889 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14900] 2.068.0 change log example does not compile

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14900 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e68741604f64b3e0173fd9ffd2125d6c1e4e65ae fix Issue 14900 - 2.068.0

[Issue 14897] shared linux libraries from zip package don't work

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14897 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/installer https://github.com/D-Programming-Language/installer/commit/5b4a867e98fb90b6d6301cb1d29af9c98ff5f3e3 fix Issue 14897

[Issue 14897] shared linux libraries from zip package don't work

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14897 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14911] Compiler found indexing in code new MyStruct[2].ptr

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14911 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: post on using go 1.5 and GC latency

2015-08-23 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2015-08-22 at 11:06 +, Laeeth Isharc via Digitalmars-d -learn wrote: […] Builds in Go 1.5 will be slower by a factor of about two. The automatic translation of the compiler and linker from C to Go resulted in unidiomatic Go code that performs poorly compared to well-written

Re: post on using go 1.5 and GC latency

2015-08-23 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2015-08-22 at 09:27 +, rsw0x via Digitalmars-d-learn wrote: […] The performance decrease has been there since 1.4 and there is no way to remove it - write barriers are the cost you pay for concurrent collection. Go was already much slower than other compiled languages, now it

Re: dmd codegen improvements

2015-08-23 Thread Martin Nowak via Digitalmars-d
On 08/18/2015 10:28 PM, Walter Bright wrote: On 8/18/2015 12:38 PM, deadalnix wrote: And honestly, there is no way DMD can catch up. I find your lack of faith disturbing. I don't doubt we can catch up, and it might be worth for the very low hanging fruit. But our real problem isn't the

Re: (De)Serializing interfaces

2015-08-23 Thread Rikki Cattermole via Digitalmars-d-learn
On Sunday, 23 August 2015 at 10:37:11 UTC, Rikki Cattermole wrote: On 8/23/2015 10:17 PM, nims wrote: On Sunday, 23 August 2015 at 08:38:14 UTC, Rikki Cattermole wrote: What I was thinking was having a serialize method take an output range which you will just pass in a value. I'm not really

Re: How to use ranges?

2015-08-23 Thread anonymous via Digitalmars-d-learn
On Sunday 23 August 2015 12:17, Doolan wrote: And the use of auto everywhere makes it really hard to tell what types I should be using for anything. My compiler talks about RangeT!(whatever) but you try to use RangeT!(whatever) and you find out RangeT is private... You can use typeof to get

Re: How to use ranges?

2015-08-23 Thread welkam via Digitalmars-d-learn
There was a talk on ranges in Dconf 2015 https://www.youtube.com/watch?v=A8Btr8TPJ8clist=PLEDeq48KhndP-mlE-0Bfb_qPIMA4RrrKoindex=10

Re: D-Day for DMD is today!

2015-08-23 Thread Robert burner Schadek via Digitalmars-d-announce
Awesome job Daniel!

Re: dmd codegen improvements

2015-08-23 Thread Liam McSherry via Digitalmars-d
On Sunday, 23 August 2015 at 08:01:27 UTC, Walter Bright wrote: On 8/22/2015 5:03 PM, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 17:10:36 UTC, Vladimir Panteleev wrote: On Tuesday, 18 August 2015 at 12:37:37 UTC, Vladimir Panteleev wrote: I suggest that we revamp the compiler

Re: D-Day for DMD is today!

2015-08-23 Thread Martin Nowak via Digitalmars-d-announce
On 08/23/2015 08:48 AM, Iain Buclaw via Digitalmars-d-announce wrote: It should do with whatever is in master at least. But until I'm able to release new binaries, there is at least new TravisCI integration testing of PRs that test building ddmd with ldc and gdc. But it currently fails.

[Issue 14950] Setting enum value to the last member of another enum causes int overflow error

2015-08-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14950 ag0ae...@gmail.com changed: What|Removed |Added Keywords||rejects-valid CC|

Re: D-Day for DMD is today!

2015-08-23 Thread jmh530 via Digitalmars-d-announce
On Sunday, 23 August 2015 at 05:17:33 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/dmd/pull/4923 We have made the switch from C++ DMD to D DMD! Congratulations.

Re: post on using go 1.5 and GC latency

2015-08-23 Thread via Digitalmars-d-learn
On Saturday, 22 August 2015 at 12:48:31 UTC, rsw0x wrote: The problem with D's GC is that there's no scaffolding there for it, so you can't really improve it. At best you could make the collector parallel. If I had the runtime hooks and language guarantees I needed I'd begin work on a

Re: D-Day for DMD is today!

2015-08-23 Thread Joakim via Digitalmars-d-announce
On Sunday, 23 August 2015 at 05:17:33 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/dmd/pull/4923 We have made the switch from C++ DMD to D DMD! Many, many thanks to Daniel Murphy for slaving away for 2.5 years to make this happen. More thanks to Martin Nowak for

Re: D-Day for DMD is today!

2015-08-23 Thread Daniel Murphy via Digitalmars-d-announce
BBasile wrote in message news:fmoabuqgvlztgmqyj...@forum.dlang.org... By the way, currently under win32 it's not possible to build DDMD unless the line --- #HOST_DC=dmd --- is uncommented. Because there is a bunch of commands using dmd compile and run (-run) in win32.mak. Is it a bug ?

Re: D-Day for DMD is today!

2015-08-23 Thread extrawurst via Digitalmars-d-announce
On Sunday, 23 August 2015 at 05:17:33 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/dmd/pull/4923 We have made the switch from C++ DMD to D DMD! Many, many thanks to Daniel Murphy for slaving away for 2.5 years to make this happen. More thanks to Martin Nowak for

Trying to compile weather program

2015-08-23 Thread Tony via Digitalmars-d-learn
I found this weather program on the main page (it seems to rotate what it here): // Get your local weather report pragma(lib, curl); import std.functional, std.json, std.net.curl, std.stdio, std.string; alias getJSON = pipe!(get, parseJSON); auto K2C = (float f) = f - 273.15; auto K2F =

Re: D-Day for DMD is today!

2015-08-23 Thread Martin Nowak via Digitalmars-d-announce
On 08/23/2015 11:09 AM, Dicebot wrote: Great! Daniel, does that mean that I can remove DDMD testing job from my CI? :) I think so.

Re: D-Day for DMD is today!

2015-08-23 Thread Daniel Murphy via Digitalmars-d-announce
Dicebot wrote in message news:jdgpeyxvdltshldnf...@forum.dlang.org... Great! Daniel, does that mean that I can remove DDMD testing job from my CI? :) Yes, thanks!

Digger 2.3 verstr.h problem

2015-08-23 Thread Robert M. Münch via Digitalmars-d-learn
Hi, just trying to build the latest DMD with Digger 2.3 and get this: uffer.d root/port.d root/response.d root/rmem.d root/rootobject.d root/speller.d root/stringtable.d newdelete.o glue.a backend.a globals.d(293): Error: file verstr.h cannot be found or not in a path specified with -J make:

Re: post on using go 1.5 and GC latency

2015-08-23 Thread rsw0x via Digitalmars-d-learn
On Sunday, 23 August 2015 at 11:06:20 UTC, Russel Winder wrote: On Sat, 2015-08-22 at 09:27 +, rsw0x via Digitalmars-d-learn wrote: […] The performance decrease has been there since 1.4 and there is no way to remove it - write barriers are the cost you pay for concurrent collection. Go

Re: D-Day for DMD is today!

2015-08-23 Thread Temtaime via Digitalmars-d-announce
On Sunday, 23 August 2015 at 09:44:55 UTC, Walter Bright wrote: On 8/23/2015 2:36 AM, BBasile wrote: On Sunday, 23 August 2015 at 08:56:14 UTC, Daniel Murphy wrote: BBasile wrote in message news:fmoabuqgvlztgmqyj...@forum.dlang.org... [...] The missing step is to set HOST_DC in the

Re: How to use ranges?

2015-08-23 Thread Rikki Cattermole via Digitalmars-d-learn
On 8/24/2015 12:52 AM, Doolan wrote: On Sunday, 23 August 2015 at 10:38:53 UTC, Rikki Cattermole wrote: On 8/23/2015 10:17 PM, Doolan wrote: Have a read of: https://github.com/rikkimax/twp-d/blob/master/manuscript/content/idioms/ranges.md Let me know what you think :) I think I'm a little

Re: How to use ranges?

2015-08-23 Thread Doolan via Digitalmars-d-learn
On Sunday, 23 August 2015 at 10:38:53 UTC, Rikki Cattermole wrote: On 8/23/2015 10:17 PM, Doolan wrote: Have a read of: https://github.com/rikkimax/twp-d/blob/master/manuscript/content/idioms/ranges.md Let me know what you think :) I think I'm a little more confused than before... this says

Re: Object.factory() and exe file size bloat

2015-08-23 Thread Benjamin Thaut via Digitalmars-d
On Saturday, 22 August 2015 at 09:44:48 UTC, Martin Nowak wrote: The export seems to be an arbitrary rule (and export is really broken currently). Let's just use every class that is linked into the binary (e.g. weakly referencing them), then it'll naturally work with all linker

Re: Object.factory() and exe file size bloat

2015-08-23 Thread Benjamin Thaut via Digitalmars-d
On Sunday, 23 August 2015 at 13:09:46 UTC, Benjamin Thaut wrote: The good news is, once I'm done with my windows DLL work the code can be trivialy reused to make export control the visibility of symbols on linux as well. Kind Regards Benjamin Thaut But then you have the same problem on

  1   2   >