Re: Common makefile (gasp) stuff

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 1/14/15 3:29 AM, Daniel Murphy wrote: Andrei Alexandrescu wrote in message news:m95i3q$1t6$1...@digitalmars.com... I don't mind using include files, I mind adding more dependencies between projects. Why? Druntime depends on dmd. Phobos depends on dmd and druntime. Dlang.org and tools

Re: This Week in D, issue 1

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/14/15 1:07 PM, Dicebot wrote: On Wednesday, 14 January 2015 at 20:20:30 UTC, Adam D. Ruppe wrote: On Wednesday, 14 January 2015 at 20:18:55 UTC, Andrei Alexandrescu wrote: Wait, no subrepo under dlang.org? -- Andrei My thought was in-progress goes under something i can push to at any

Re: D Beginner Trying Manual Memory Management

2015-01-14 Thread Laeeth Isharc via Digitalmars-d-learn
I don't think you've read h5py source in enough detail :) You're right - I haven't done more than browsed it. It's based HEAVILY on duck typing. There is a question here about what to do in D. On the one hand, the flexibility of being able to open a foreign HDF5 file where you don't know

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-14 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 13 January 2015 at 17:41:53 UTC, Tobias Pankrath wrote: On Tuesday, 13 January 2015 at 17:19:42 UTC, Laeeth Isharc wrote: The GC is allowed to move structs around, as I undestand it. Under what circumstances do I get into trouble having a pointer to them? None, a GC that moves

Re: redirecting the unittests error output

2015-01-14 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 14 January 2015 at 18:50:04 UTC, ref2401 wrote: How can i redirect the unittests error output to a file? You redirect stderr to a file using whatever tools your shell provides you. In anything related to unix sh you would do something like this: ./run_unittests 2errorFile

Re: Common makefile (gasp) stuff

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 1/14/15 9:36 AM, H. S. Teoh via Digitalmars-d wrote: What stops us from adding said scripts to the dlang.org repo? Or tools, for that matter, which is probably more appropriate. Not everything needs to be shoehorned into the makefiles. As I explained in my previous message it's a sensible

Re: Common makefile (gasp) stuff

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 1/14/15 8:50 AM, Mathias LANG wrote: IMO helpers (such as git helpers) are not part of the build process, so they should not be part of the build files. Few people care about make rebase. I'm not saying we should delete them (they obviously are useful to you), but moving them to tools might

Re: no size yet for forward reference for nested structures

2015-01-14 Thread Ali Çehreli via Digitalmars-d
On 01/14/2015 07:39 AM, ketmar via Digitalmars-d wrote: On Wed, 14 Jan 2015 07:09:44 -0800 Ali Çehreli via Digitalmars-d digitalmars-d@puremagic.com wrote: Reduced: import std.container; class Node { SList!Node children; } void main() {} Error: class deneme.Node no size yet for

Re: Common makefile (gasp) stuff

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 1/14/15 9:36 AM, H. S. Teoh via Digitalmars-d wrote: Because it imposes a specific external directory structure which the casual user has no idea about. I think that's a given already and has been for a long time. -- Andrei

Re: Common makefile (gasp) stuff

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 1/14/15 9:36 AM, H. S. Teoh via Digitalmars-d wrote: What stops us from adding said scripts to the dlang.org repo? Or tools, for that matter, which is probably more appropriate. Oh, I just figured that would make everything dependent on dlang.org. That would be a new dependency :o). --

Re: Common makefile (gasp) stuff

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 1/14/15 9:36 AM, H. S. Teoh via Digitalmars-d wrote: I'm astonished this has to be spelled out in, of all places, a D forum. Surely, of all people, we D people must be all too familiar with exactly why things like #include ../../../mylib/mymod/myheader.h are evil? I think that would be

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-14 Thread via Digitalmars-d-learn
(( It follows from this that it will be challenging to achieve full memory safety without fixing the type system first. ))

Re: Why exceptions for error handling is so important

2015-01-14 Thread Jeremy Powers via Digitalmars-d
On Wed, Jan 14, 2015 at 3:16 AM, Paulo Pinto via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 14 January 2015 at 10:37:31 UTC, Atila Neves wrote: That post, to me, only reinforces how much better using exceptions is. Atila They posted recently a blog post about error

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-14 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Jan 14, 2015 at 07:05:16PM +, Laeeth Isharc via Digitalmars-d-learn wrote: On Tuesday, 13 January 2015 at 17:41:53 UTC, Tobias Pankrath wrote: On Tuesday, 13 January 2015 at 17:19:42 UTC, Laeeth Isharc wrote: The GC is allowed to move structs around, as I undestand it. Under

Re: Common makefile (gasp) stuff

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 1/14/15 9:01 AM, H. S. Teoh via Digitalmars-d wrote: On Wed, Jan 14, 2015 at 04:27:10PM +0100, Jacob Carlborg via Digitalmars-d wrote: On 2015-01-14 00:20, Andrei Alexandrescu wrote: [...] I think it's time to reduce clutter and duplication by migrating such common stuff into one

Re: More recent work on GC

2015-01-14 Thread deadalnix via Digitalmars-d
On Wednesday, 14 January 2015 at 18:01:22 UTC, H. S. Teoh via Digitalmars-d wrote: Recently in one of my projects I found that I can gain a huge performance improvement just by calling GC.disable() at the beginning of the program and never calling GC.enable() again, but instead manually

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-14 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Jan 14, 2015 at 07:43:17PM +, via Digitalmars-d-learn wrote: On Wednesday, 14 January 2015 at 19:36:44 UTC, H. S. Teoh via Digitalmars-d-learn wrote: Moral of the story: don't have struct fields that point to the struct itself. This is almost always a bad idea. Structs have value

Re: Common makefile (gasp) stuff

2015-01-14 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 14, 2015 at 11:50:39AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/14/15 9:01 AM, H. S. Teoh via Digitalmars-d wrote: On Wed, Jan 14, 2015 at 04:27:10PM +0100, Jacob Carlborg via Digitalmars-d wrote: On 2015-01-14 00:20, Andrei Alexandrescu wrote: [...] I think

redirecting the unittests error output

2015-01-14 Thread ref2401 via Digitalmars-d-learn
How can i redirect the unittests error output to a file?

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-14 Thread via Digitalmars-d-learn
On Wednesday, 14 January 2015 at 19:36:44 UTC, H. S. Teoh via Digitalmars-d-learn wrote: Moral of the story: don't have struct fields that point to the struct itself. This is almost always a bad idea. Structs have value semantics, and the implicit copying around will almost certainly break any

Re: This Week in D, issue 1

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/14/15 8:21 AM, Adam D. Ruppe wrote: GitHub repo started: https://github.com/adamdruppe/This-Week-in-D Wait, no subrepo under dlang.org? -- Andrei

Re: idiomatic D: what to use instead of pointers in constructing a tree data structure?

2015-01-14 Thread via Digitalmars-d-learn
On Wednesday, 14 January 2015 at 20:23:26 UTC, H. S. Teoh via Digitalmars-d-learn wrote: Huh? ints have value semantics, yet you can take the address of a local int variable. What's your point? Strictly speaking the int looses its value semantics if you take the address of it, hold it and

Re: This Week in D, issue 1

2015-01-14 Thread Dicebot via Digitalmars-d-announce
On Wednesday, 14 January 2015 at 20:20:30 UTC, Adam D. Ruppe wrote: On Wednesday, 14 January 2015 at 20:18:55 UTC, Andrei Alexandrescu wrote: Wait, no subrepo under dlang.org? -- Andrei My thought was in-progress goes under something i can push to at any time, then I'd to a PR for the

DConf 2015 discounted hotel rooms now available

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d-announce
https://twitter.com/D_Programming/status/555471499893944323 They're available through May 12, but the number of rooms reserved is reserved and first-come-first-served, so book soon. Many thanks to Chuck Allison for facilitating this! Andrei

Re: Why exceptions for error handling is so important

2015-01-14 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 14, 2015 at 10:56:39AM -0800, Jeremy Powers via Digitalmars-d wrote: On Wed, Jan 14, 2015 at 3:16 AM, Paulo Pinto via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 14 January 2015 at 10:37:31 UTC, Atila Neves wrote: That post, to me, only reinforces how much

Re: Walter's DConf 2014 Talks - Topics in Finance

2015-01-14 Thread jmh530 via Digitalmars-d
On Tuesday, 23 December 2014 at 03:07:10 UTC, Laeeth Isharc wrote: It would certainly be nice to have matrices, but I also don't think it would be right to say D is dead in water here because it is so far behind. It also seems like the cost of writing such a library is v small vs possible

Re: redirecting the unittests error output

2015-01-14 Thread ref2401 via Digitalmars-d-learn
Unfortunately i'm new to using shells. I use standard windows cmd. Here is my script: dmd main.d -debug -unittest -wi if %errorLevel% equ 0 ( start main.exe ) else ( echo --- Building failed! --- pause ) I wrote start main.exe 2 errorFile but it doesn't work.

Re: This Week in D, issue 1

2015-01-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 14 January 2015 at 20:18:55 UTC, Andrei Alexandrescu wrote: Wait, no subrepo under dlang.org? -- Andrei My thought was in-progress goes under something i can push to at any time, then I'd to a PR for the finished project. But it can move to dlang.org too, however you want it

Re: Common makefile (gasp) stuff

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 1/14/15 12:18 PM, H. S. Teoh via Digitalmars-d wrote: If you set up a super-repo, it would look something like this: dlang/ # root git repo dmd/# git submodule referencing the dmd repo druntime/ # git submodule

Re: auto return for some recursive functions in C++11

2015-01-14 Thread ketmar via Digitalmars-d
On Wed, 14 Jan 2015 22:29:08 + bearophile via Digitalmars-d digitalmars-d@puremagic.com wrote: According to Wikipedia: http://en.wikipedia.org/wiki/C%2B%2B14#Function_return_type_deduction C++14 is able to compile code like this: auto correct(int i) { if (i == 1)

Re: Anyone interested in embedding a JVM in their D app?

2015-01-14 Thread Rikki Cattermole via Digitalmars-d-announce
On 15/01/2015 3:26 a.m., Ben Boeckel via Digitalmars-d-announce wrote: On Wed, Jan 14, 2015 at 15:05:18 +1300, Rikki Cattermole via Digitalmars-d-announce wrote: Definitely need to get JNI support first class. It definitely will help with getting D on Android. My experience is that the D

Re: auto return for some recursive functions in C++11

2015-01-14 Thread Xinok via Digitalmars-d
On Wednesday, 14 January 2015 at 22:37:22 UTC, ketmar via Digitalmars-d wrote: On Wed, 14 Jan 2015 22:29:08 + bearophile via Digitalmars-d digitalmars-d@puremagic.com wrote: According to Wikipedia: http://en.wikipedia.org/wiki/C%2B%2B14#Function_return_type_deduction C++14 is able to

auto return for some recursive functions in C++11

2015-01-14 Thread bearophile via Digitalmars-d
According to Wikipedia: http://en.wikipedia.org/wiki/C%2B%2B14#Function_return_type_deduction C++14 is able to compile code like this: auto correct(int i) { if (i == 1) return i; else return correct(i - 1) + i; } But not like this: auto correct(int i) { if (i !=

Re: Common makefile (gasp) stuff

2015-01-14 Thread Rikki Cattermole via Digitalmars-d
On Wednesday, 14 January 2015 at 20:07:12 UTC, Andrei Alexandrescu wrote: On 1/14/15 8:50 AM, Mathias LANG wrote: IMO helpers (such as git helpers) are not part of the build process, so they should not be part of the build files. Few people care about make rebase. I'm not saying we should

Re: auto return for some recursive functions in C++11

2015-01-14 Thread ketmar via Digitalmars-d
On Wed, 14 Jan 2015 23:07:57 + bearophile via Digitalmars-d digitalmars-d@puremagic.com wrote: ketmar: the spec says that return type for `auto` function is taken from the first `return` operator parser met. so for the second `return` the return type is already known. Do you mean

Re: This Week in D, issue 1

2015-01-14 Thread Ben Boeckel via Digitalmars-d-announce
On Wed, Jan 14, 2015 at 23:02:47 +, Adam D. Ruppe via Digitalmars-d-announce wrote: On Wednesday, 14 January 2015 at 22:19:12 UTC, qznc wrote: Next medium: E-Mail newsletter. Aye, it is on my list (and actually trivial, I probably have just done it in the amount of time I've spent

Re: auto return for some recursive functions in C++11

2015-01-14 Thread bearophile via Digitalmars-d
Xinok: I played with it a bit and it seems to deduce a common type from all the return statements, Right, this works according to the D specs (but this is different from the feature I have suggested in the original post). Bye, bearophile

Re: auto return for some recursive functions in C++11

2015-01-14 Thread bearophile via Digitalmars-d
ketmar: the spec says that return type for `auto` function is taken from the first `return` operator parser met. so for the second `return` the return type is already known. Do you mean the C++14 spec or the D spec? The D specs I see are (from: http://dlang.org/function.html ): Auto

Re: Common makefile (gasp) stuff

2015-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 1/14/15 3:14 PM, Rikki Cattermole wrote: So a dub file for phobos is needed? And maybe druntime too? I'll see what I can do. That would be very interesting, thanks. Prolly druntime is easiest - one less dependency. Please share all discoveries you make with the core team here. -- Andrei

Re: auto return for some recursive functions in C++11

2015-01-14 Thread MattCoder via Digitalmars-d
On Wednesday, 14 January 2015 at 22:29:09 UTC, bearophile wrote: According to Wikipedia: http://en.wikipedia.org/wiki/C%2B%2B14#Function_return_type_deduction C++14 is able to compile code like this: auto correct(int i) { if (i == 1) return i; else return correct(i -

[Issue 13936] groupBy must be redone

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13936 --- Comment #40 from Andrei Alexandrescu and...@erdani.com --- RefCounted can be made observably pure (by means of casts) but making it safe must wait for the scoped work. Could you please file a bug against RefCounted? --

Re: auto return for some recursive functions in C++11

2015-01-14 Thread ketmar via Digitalmars-d
On Thu, 15 Jan 2015 00:05:30 + Xinok via Digitalmars-d digitalmars-d@puremagic.com wrote: Well, the error the compiler prints is: Error: forward reference to inferred return type of function call 'correct' I played with it a bit and it seems to deduce a common type from all the

Re: This Week in D, issue 1

2015-01-14 Thread Zach the Mystic via Digitalmars-d-announce
On Wednesday, 14 January 2015 at 14:43:51 UTC, Adam D. Ruppe wrote: Once the bugs are worked out, like half of this can be automated too and the other half can be written some time in advance. For example, I now have the next two tip of the week bits written already (and if something else

Re: auto return for some recursive functions in C++11

2015-01-14 Thread MattCoder via Digitalmars-d
On Thursday, 15 January 2015 at 00:24:09 UTC, Ola Fosheim Grøstad wrote: On Thursday, 15 January 2015 at 00:13:38 UTC, MattCoder wrote: So could you please tell me a good use case to for using return type deduction? Templates. Thanks! - In fact after posting I took a look and found this:

Re: This Week in D, issue 1

2015-01-14 Thread Adam D. Ruppe via Digitalmars-d-announce
Yeah, I'm already thinking of a special edition around the dconf time where it'll probably be much longer than the regular editions where we'll see about writing up summaries of the talks. Then as the videos hit youtube, we'll revisit the subject in more depth in writing. (by we i hope it

Re: NaCl/Emscripten

2015-01-14 Thread via Digitalmars-d
On Wednesday, 14 January 2015 at 03:11:41 UTC, Janus wrote: On Sunday, 11 January 2015 at 01:33:25 UTC, Ola Fosheim Grøstad wrote: On Sunday, 11 January 2015 at 01:05:59 UTC, Manu via Digitalmars-d wrote: With asm.js you are also stuck with a fixed size heap The heap can grow now, see

Re: Common makefile (gasp) stuff

2015-01-14 Thread Mathias LANG via Digitalmars-d
On Wednesday, 14 January 2015 at 23:58:45 UTC, Rikki Cattermole wrote: On 15/01/2015 12:24 p.m., Andrei Alexandrescu wrote: On 1/14/15 3:14 PM, Rikki Cattermole wrote: So a dub file for phobos is needed? And maybe druntime too? I'll see what I can do. That would be very interesting,

Re: auto return for some recursive functions in C++11

2015-01-14 Thread bearophile via Digitalmars-d
Xinok: auto one(int i) { if(i 0) return cast(int)i; else return cast(float)i; } With recent D2 compilers I suggest you to get used to write code like that like this: auto one(int i) { if(i 0) return int(i);

Re: Common makefile (gasp) stuff

2015-01-14 Thread Rikki Cattermole via Digitalmars-d
On 15/01/2015 1:15 p.m., Mathias LANG wrote: On Wednesday, 14 January 2015 at 23:58:45 UTC, Rikki Cattermole wrote: On 15/01/2015 12:24 p.m., Andrei Alexandrescu wrote: On 1/14/15 3:14 PM, Rikki Cattermole wrote: So a dub file for phobos is needed? And maybe druntime too? I'll see what I can

Re: auto return for some recursive functions in C++11

2015-01-14 Thread ketmar via Digitalmars-d
On Thu, 15 Jan 2015 00:24:07 + via Digitalmars-d digitalmars-d@puremagic.com wrote: On Thursday, 15 January 2015 at 00:13:38 UTC, MattCoder wrote: So could you please tell me a good use case to for using return type deduction? Templates. and returning voldemort types. signature.asc

Re: This Week in D, issue 1

2015-01-14 Thread qznc via Digitalmars-d-announce
On Tuesday, 13 January 2015 at 17:30:53 UTC, Adam D. Ruppe wrote: First draft of the rss feed: http://arsdnet.net/this-week-in-d/twid.rss Subscribed. Next medium: E-Mail newsletter. There are lots of people who prefer mail over RSS. Additionally, you get to collect mail addresses, which is

Re: Common makefile (gasp) stuff

2015-01-14 Thread Rikki Cattermole via Digitalmars-d
On 15/01/2015 12:24 p.m., Andrei Alexandrescu wrote: On 1/14/15 3:14 PM, Rikki Cattermole wrote: So a dub file for phobos is needed? And maybe druntime too? I'll see what I can do. That would be very interesting, thanks. Prolly druntime is easiest - one less dependency. Please share all

Re: auto return for some recursive functions in C++11

2015-01-14 Thread via Digitalmars-d
On Thursday, 15 January 2015 at 00:13:38 UTC, MattCoder wrote: So could you please tell me a good use case to for using return type deduction? Templates.

[Issue 13936] groupBy must be redone

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13936 --- Comment #39 from hst...@quickfur.ath.cx --- I've run into some roadblocks: RefCounted is @system which makes groupBy @system. This can be mostly swept under the carpet by making the GroupBy ctor @trusted, but there's a further problem: RefCounted

[Issue 13983] New: RefCounted needs to be pure, @safe, nothrow

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13983 Issue ID: 13983 Summary: RefCounted needs to be pure, @safe, nothrow Product: D Version: D2 Hardware: x86 OS: Linux Status: NEW Severity: major

[Issue 13936] groupBy must be redone

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13936 --- Comment #46 from bearophile_h...@eml.cc --- (In reply to Andrei Alexandrescu from comment #40) RefCounted can be made observably pure (by means of casts) Sounds like a trusted pure could be useful. --

[Issue 13936] groupBy must be redone

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13936 --- Comment #45 from Andrei Alexandrescu and...@erdani.com --- Guess that counts for a new bug or an addition to the one you added. Thanks! --

[Issue 13849] ulong - uint[2] cast, and invisible error messages

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13849 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7514 --- Comment #7 from Kenji Hara k.hara...@gmail.com --- *** Issue 13849 has been marked as a duplicate of this issue. *** --

Re: What is the D plan's to become a used language?

2015-01-14 Thread brian via Digitalmars-d
On Wednesday, 14 January 2015 at 05:10:05 UTC, Joakim wrote: Take a look at the official package registry, called dub: I love dub, who doesn't. It is evidence of a very active and large community. I don't think it's that unusual for a native compiled language: can you find C++ snippets to

Re: DConf 2015 Call for Submissions is now open

2015-01-14 Thread Jeremy DeHaan via Digitalmars-d-announce
On Wednesday, 14 January 2015 at 14:13:04 UTC, Daniel Murphy wrote: Brad Anderson wrote in message news:jcidebafygjtdsabn...@forum.dlang.org... Sounds like a good subject for Daniel Murphy to talk about. He spent a good hour explaining to me how a linker works in the Aloft bar after most

[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7514 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Blocks||13810 --

[Issue 13810] ICE in e2ir does not assert

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13810 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Depends on||7514 --

Re: Anyone interested in embedding a JVM in their D app?

2015-01-14 Thread james via Digitalmars-d-announce
I think the goal of this may be backwards of what most people are thinking. What I am trying for is not to write extensions to a java app in D through JNI. Anyone is welcome to use any of this work to achieve that if they'd like. The actual goal is to embed a JVM inside of a D program.

[Issue 13936] groupBy must be redone

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13936 --- Comment #44 from hst...@quickfur.ath.cx --- I didn't look further into it, but the current groupBy code was inferred nothrow, but the new code was inferred as throwing, so the nothrow unittests refused to compile. The compiler error indicated

Re: Common makefile (gasp) stuff

2015-01-14 Thread Rikki Cattermole via Digitalmars-d
On 15/01/2015 2:58 p.m., Mathias LANG wrote: On Thursday, 15 January 2015 at 01:48:29 UTC, Rikki Cattermole wrote: Druntime and phobos now can be built and even more importantly you can have druntime as a dependency to phobos. In fact it is. Phobos supports being built as a dynamic library

[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7514 --- Comment #9 from bearophile_h...@eml.cc --- (In reply to bearophile_hugs from comment #8) Your have asked me to aggregate two different problems: And now you have also aggregated: void main() @safe { immutable ulong x = 10; auto y1 =

Re: This Week in D, issue 1

2015-01-14 Thread Thomas Mader via Digitalmars-d-announce
On Tuesday, 13 January 2015 at 14:08:58 UTC, Adam D. Ruppe wrote: I've started writing a weekly D newsletter. Here's the first issue, any feedback welcome! http://arsdnet.net/this-week-in-d/jan-12.html In the future, I intend to have it written by Saturday for a weekend release, so if you

[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7514 bearophile_h...@eml.cc changed: What|Removed |Added Severity|minor |normal --- Comment #6 from

[Issue 13936] groupBy must be redone

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13936 --- Comment #43 from Andrei Alexandrescu and...@erdani.com --- Wouldn't nothrow be deduced? --

[Issue 8179] ICE(e2ir.c) with failed fixed size array cast

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8179 --- Comment #10 from Kenji Hara k.hara...@gmail.com --- (In reply to bearophile_hugs from comment #9) This reduction of the original example: void main() /*@nogc*/ { int[2][1] m = cast(int[2][1])[1, 2]; } still doesn't compile:

Re: Druntime and phobos with dub

2015-01-14 Thread Rikki Cattermole via Digitalmars-d
On 15/01/2015 4:35 p.m., Rikki Cattermole wrote: I'm currently working on getting dub package files for Druntime and phobos. It has been reasonably easy getting code to compile atleast for 2.066 branch. Problems: - Druntime contains assembly + c files requiring external compilers. To play

[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7514 --- Comment #10 from Kenji Hara k.hara...@gmail.com --- (In reply to bearophile_hugs from comment #8) Your have asked me to aggregate two different problems: - This issue originally was just asking to remove the e2ir in the error message. This is a

Re: D idioms list

2015-01-14 Thread Vlad Levenfeld via Digitalmars-d-announce
For optimal AA lookup, this idiom is also nice if you only need the result for one line: if (auto found = key in AA) do_stuff (found);

Re: Common makefile (gasp) stuff

2015-01-14 Thread Mathias LANG via Digitalmars-d
On Thursday, 15 January 2015 at 01:48:29 UTC, Rikki Cattermole wrote: Druntime and phobos now can be built and even more importantly you can have druntime as a dependency to phobos. In fact it is. Phobos supports being built as a dynamic library (there is a configuration for for it). So if you

[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast

2015-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7514 bearophile_h...@eml.cc changed: What|Removed |Added Severity|normal |minor --- Comment #8 from

Re: [std.traits] Detect complex numbers

2015-01-14 Thread Luc Bourhis via Digitalmars-d
It doesn't answer your question as such, but you should take a look at: http://dlang.org/phobos/std_complex.html The planned obsolescence of cdouble and consort is another issue I wanted to raise actually but better do it in a dedicated thread.

Re: This Week in D, issue 1

2015-01-14 Thread Adam D. Ruppe via Digitalmars-d-announce
Once the bugs are worked out, like half of this can be automated too and the other half can be written some time in advance. For example, I now have the next two tip of the week bits written already (and if something else comes up, I'll just put them to the backlog, there's no time

Re: The ANSI character set is very important for operating MSSQL, if no conversion,will attract more C# users

2015-01-14 Thread FrankLike via Digitalmars-d
On Wednesday, 14 January 2015 at 13:44:39 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 13 January 2015 at 16:47:33 UTC, FrankLike wrote: The ANSI character set is very important for operating MSSQL, if no conversion, will expand the scope of D users, that can attract more C# users. MSSQL

Re: rdmd Broken

2015-01-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-14 02:18, Chuck Allison wrote: Hi all, I have no idea what happened, but rdmd gives me the strangest error: /usr/local/bin/dmd: failed to launch executable at /Library/Compilers/dmd2/osx/bin/dmd.Failed: I uninstalled dmd (using Jacob Carlsberg's uninstall shell script) and

Re: DConf 2015 Call for Submissions is now open

2015-01-14 Thread Daniel Murphy via Digitalmars-d-announce
Jonathan M Davis via Digitalmars-d-announce wrote in message news:mailman.4595.1421160931.9932.digitalmars-d-annou...@puremagic.com... On Tuesday, January 13, 2015 14:39:42 Iain Buclaw via Digitalmars-d-announce wrote: Daniel prefers to talk through other peoples talks. :o) Or to work on

Re: Anyone interested in embedding a JVM in their D app?

2015-01-14 Thread Ben Boeckel via Digitalmars-d-announce
On Wed, Jan 14, 2015 at 15:05:18 +1300, Rikki Cattermole via Digitalmars-d-announce wrote: Definitely need to get JNI support first class. It definitely will help with getting D on Android. My experience is that the D runtime needed some work to accept that there are Linux machines without

Re: Binutils 2.25 Released - New D demangling support

2015-01-14 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-01-14 09:46, Iain Buclaw via Digitalmars-d-announce wrote: I can't comment on that. Maybe via Macports? Otherwise if BSD have their own linker, someone will need to go and get friendly with the developers up their toolchain. Right, forgot about that the toolchain is BSD based. --

Re: This Week in D, issue 1

2015-01-14 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 14 January 2015 at 13:19:58 UTC, Iain Buclaw via Digitalmars-d-announce wrote: On the other hand, it's easy to loose track of things going on. Yeah, I'll forget about things then. A monthly one might be a wrap-up made by editing the weekly ones to the biggest bits and maybe

Re: rdmd Broken

2015-01-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-14 02:18, Chuck Allison wrote: Hi all, I have no idea what happened, but rdmd gives me the strangest error: /usr/local/bin/dmd: failed to launch executable at /Library/Compilers/dmd2/osx/bin/dmd.Failed: I uninstalled dmd (using Jacob Carlsberg's uninstall shell script) and

Re: no size yet for forward reference for nested structures

2015-01-14 Thread Ali Çehreli via Digitalmars-d
On 01/14/2015 02:53 AM, ketmar via Digitalmars-d wrote: On Wed, 14 Jan 2015 10:41:07 + qqiang via Digitalmars-d digitalmars-d@puremagic.com wrote: template PowerHeap(T) { import std.container : SList; private alias PowerForest = SList!PowerNode; private final class

Re: casting SysTime to ubyte[]

2015-01-14 Thread Laeeth Isharc via Digitalmars-d-learn
I really wouldn't advise doing that. SysTime contains a long which represents the time in hnsecs since midnight, January 1st, 1 A.D., and that could be written to a file quite easily. But it also contains a reference to a TimeZone object, so what you're doing would just be writing its

Re: vibe.d Subdirectory?

2015-01-14 Thread Laeeth Isharc via Digitalmars-d-learn
Actually I want to serve some JSON packed weather data (heck I also wrote my Global Climate Model partially in D and in C) - so I guess, I can use vibe.d to build a cgi. Cool. Do you incorporate the influence of solar activity via galactic rays / cloud formation and via volcanic activity?

Re: Anyone interested in embedding a JVM in their D app?

2015-01-14 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-01-14 03:00, james wrote: I've been playing with jni.h and D. I think I've got a fully working jni.d and I have the start of a nicer D wrapper around it with djvm.d. https://github.com/jamesmahler/djvm There is an example usage in the README.md. There's also why I'd do such a thing

Re: D Beginner Trying Manual Memory Management

2015-01-14 Thread Laeeth Isharc via Digitalmars-d-learn
In the hierarchy example above (c++ hdf hierarchy link), by using UFCS to implement the shared methods (which are achieved by multiple inheritance in the c++ counterpart) did you mean something like this? // id.d struct ID { int id; ... } // location.d struct Location { ID _id; alias _id

Re: Common makefile (gasp) stuff

2015-01-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-14 00:20, Andrei Alexandrescu wrote: Hey folks, Over the time a number of stuff has become quite duplicated across our makefiles for dmd, druntime, and phobos. These include fetching OS and model but (newer) general-purpose macros for e.g. rebasing repos, see

Re: no size yet for forward reference for nested structures

2015-01-14 Thread ketmar via Digitalmars-d
On Wed, 14 Jan 2015 07:09:44 -0800 Ali Çehreli via Digitalmars-d digitalmars-d@puremagic.com wrote: Reduced: import std.container; class Node { SList!Node children; } void main() {} Error: class deneme.Node no size yet for forward reference I wonder why an SList of a

Re: Common makefile (gasp) stuff

2015-01-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-15 02:48, Rikki Cattermole wrote: Dub can run external processes but its best to leave it up to the end dev to run the c/assembly generation. When they want it regenerated. I think its best we commit most of the binary outputs. Mostly c/assembly generation. Not the D stuff. Why

Re: What is the D plan's to become a used language?

2015-01-14 Thread Joakim via Digitalmars-d
On Thursday, 15 January 2015 at 03:19:10 UTC, brian wrote: On Wednesday, 14 January 2015 at 05:10:05 UTC, Joakim wrote: I don't think it's that unusual for a native compiled language: can you find C++ snippets to write tweets? I doubt it. A compiled languages is just not the tool people

Re: Druntime and phobos with dub

2015-01-14 Thread Rikki Cattermole via Digitalmars-d
On 15/01/2015 7:34 p.m., NVolcz wrote: On Thursday, 15 January 2015 at 03:42:39 UTC, Rikki Cattermole wrote: Personally I believe we should move towards a model where every library is represented by JSON (maybe with help of e.g. markdown) that gets e.g. parsed by client side technologies such

Re: Druntime and phobos with dub

2015-01-14 Thread NVolcz via Digitalmars-d
On Thursday, 15 January 2015 at 03:42:39 UTC, Rikki Cattermole wrote: Personally I believe we should move towards a model where every library is represented by JSON (maybe with help of e.g. markdown) that gets e.g. parsed by client side technologies such as json. Benefits: - We can have

Re: Walter's DConf 2014 Talks - Topics in Finance

2015-01-14 Thread NVolcz via Digitalmars-d
On Friday, 21 March 2014 at 21:14:15 UTC, TJB wrote: Walter, I see that you will be discussing High Performance Code Using D at the 2014 DConf. This will be a very welcomed topic for many of us. I am a Finance Professor. I currently teach and do research in computational finance. Might I

Re: Common makefile (gasp) stuff

2015-01-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-14 21:54, Andrei Alexandrescu wrote: I hear you but The Internet says submodules are a kind of a bummer. Most issues I have read about is because they don't know how submodules work. It's the same thing with most tools, if you don't know how to use it the experience is going to

My LLVM talk @ FOSDEM'15

2015-01-14 Thread Kai Nacke via Digitalmars-d-announce
Hi everybody! Like last year I am a speaker in the LLVM toolchain devroom @ FOSDEM'15. This time it is not D related but more about LLVM internals. (For sure, it is related to my work on LDC!) Read the announcement at https://fosdem.org/2015/schedule/event/llvm_internal_asm/. FOSDEM is a

Re: Common makefile (gasp) stuff

2015-01-14 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-14 20:50, Andrei Alexandrescu wrote: Currently there must be a place where druntime finds dmd for building purposes. Also phobos needs to find druntime. Also dlang.ord needs to find the source of both phobos and druntime. There's no specific setup of one person as much as a boring:

  1   2   >