[Issue 15579] extern(C++) interfaces/multiple-inheritance

2016-01-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15579 --- Comment #10 from Walter Bright --- (In reply to Manu from comment #7) > 3>Building bin\Debug_x64\dplug.dll... > 3>libdep.lib(component_344_d5.obj) : fatal error LNK1179: invalid or corrupt > file: duplicate COMDAT

Re: [dlang.org] new forum design

2016-01-24 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 22 January 2016 at 16:58:56 UTC, Jacob Carlborg wrote: On 2016-01-21 22:21, Vladimir Panteleev wrote: OK, I added it back. The "Replies" column is still wider than it needs to be. Here's an example [1]. The green part is the padding, which looks fine. But why is there some much

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread default0 via Digitalmars-d
On Sunday, 24 January 2016 at 02:51:43 UTC, Jonathan M Davis wrote: On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag Regardless, I for one,

Re: Dmd sc.ini and VS do not work well together!

2016-01-24 Thread Igor via Digitalmars-d
On Sunday, 24 January 2016 at 05:34:18 UTC, Brad Anderson wrote: On Saturday, 23 January 2016 at 21:38:19 UTC, Igor wrote: I feel like I am in the cave man times. I installed Dmd2 from scratch. VisualD x64 project would not compile due to libucrt.lib not being found. Sorry you are having

[Issue 15600] New: Missing functions in a template struct cause linker errors instead of being caught by compiler.

2016-01-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15600 Issue ID: 15600 Summary: Missing functions in a template struct cause linker errors instead of being caught by compiler. Product: D Version: D2 Hardware: x86_64

[Issue 15579] extern(C++) interfaces/multiple-inheritance

2016-01-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15579 --- Comment #9 from Walter Bright --- Trying again: https://github.com/D-Programming-Language/dmd/pull/5364 --

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Jonathan M Davis via Digitalmars-d
On Sunday, 24 January 2016 at 10:14:53 UTC, default0 wrote: On Sunday, 24 January 2016 at 02:51:43 UTC, Jonathan M Davis wrote: On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1]

Re: Templates, templates, templates...

2016-01-24 Thread Voitech via Digitalmars-d-learn
On Saturday, 23 January 2016 at 13:19:34 UTC, anonymous wrote: On 23.01.2016 12:30, Voitech wrote: Ok so i want to hold different types in LogicRule maybe Algebraic implementation would do? private alias ControllTemplate(T) =Rule!(T,ControllFlag); private alias SymbolRule

Re: extern(C++) multiple inheritence

2016-01-24 Thread Walter Bright via Digitalmars-d
On 1/22/2016 5:46 PM, Manu via Digitalmars-d wrote: I brought a work laptop home this weekend in anticipation ;) Here ya go: https://github.com/D-Programming-Language/dmd/pull/5364 Be wary of: https://issues.dlang.org/show_bug.cgi?id=15589 and use the workaround as necessary. This is

Vision for the first semester of 2016

2016-01-24 Thread Andrei Alexandrescu via Digitalmars-d-announce
Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei

Re: Last revision of phobos and druntime that actually compile with cdmd

2016-01-24 Thread Daniel Murphy via Digitalmars-d
On 25/01/2016 2:55 AM, Benjamin Thaut wrote: I tried using a commit which was the same date as the cdmd -> ddmd switch but that didn't work. That's the only way I know to do it, it should work.

Re: Vision 2016 H1

2016-01-24 Thread tcak via Digitalmars-d
On Monday, 25 January 2016 at 03:14:47 UTC, Andrei Alexandrescu wrote: In case you missed it from the announce forum: http://wiki.dlang.org/Vision/2016H1 -- Andrei Is there a list or a proper place to put the list of desired/asked/necessary tools together with their purpose?

Re: Collapsing n-dimensional array to linear (1 dimensional)

2016-01-24 Thread Solomon E via Digitalmars-d-learn
On Saturday, 23 January 2016 at 07:57:55 UTC, Ali Çehreli wrote: auto collapse(R)(R r) if (isArray!R) { return r.joiner.collapse.joiner; } auto collapse(R)(R r) if (!isArray!R) { return r; } Ali, that code only passed the one test it had for collapsing a three level

Re: Vision for the first semester of 2016

2016-01-24 Thread Rikki Cattermole via Digitalmars-d-announce
On 25/01/16 3:37 PM, Andrei Alexandrescu wrote: Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei There is a couple of things I want on there. 1. scope to be fixed and fully implemented (I'll bring some use cases to the table) 2. @assumenogc or something similar. That way

Re: When is the Win API supported?

2016-01-24 Thread Rikki Cattermole via Digitalmars-d
On 25/01/16 2:46 PM, Igor wrote: When will the proper Win API be included in D? About how long(months, years?)? Does it support seamless narrow and wide characters? I am not referring to the defunct win32 support already included. You mean the MingW based bindings that is in 2.070?

Vision 2016 H1

2016-01-24 Thread Andrei Alexandrescu via Digitalmars-d
In case you missed it from the announce forum: http://wiki.dlang.org/Vision/2016H1 -- Andrei

Re: Vision for the first semester of 2016

2016-01-24 Thread Rikki Cattermole via Digitalmars-d-announce
On 25/01/16 4:13 PM, Andrei Alexandrescu wrote: On 01/24/2016 10:07 PM, Rikki Cattermole wrote: 1. scope to be fixed and fully implemented (I'll bring some use cases to the table) 2. @assumenogc or something similar. That way IAllocator can be @nogc. Which to me is a requirement before

Re: Vision for the first semester of 2016

2016-01-24 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 01/24/2016 10:07 PM, Rikki Cattermole wrote: 1. scope to be fixed and fully implemented (I'll bring some use cases to the table) 2. @assumenogc or something similar. That way IAllocator can be @nogc. Which to me is a requirement before it is out of experimental. Both are under the

Re: Vision for the first semester of 2016

2016-01-24 Thread tsbockman via Digitalmars-d-announce
On Monday, 25 January 2016 at 02:37:40 UTC, Andrei Alexandrescu wrote: Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei Something went wrong here: We fell short of our 2000 pull requests goal in H2 2015. We have had only 1 1378 pull requests. In addition to the extraneous

Re: Vision for the first semester of 2016

2016-01-24 Thread Puming via Digitalmars-d-announce
On Monday, 25 January 2016 at 02:37:40 UTC, Andrei Alexandrescu wrote: Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei For PRs, I suggest the goal to be number of PRs MERGED instead of created. That may provide the core team a subconsious incentive to look at long pending

When is the Win API supported?

2016-01-24 Thread Igor via Digitalmars-d
When will the proper Win API be included in D? About how long(months, years?)? Does it support seamless narrow and wide characters? I am not referring to the defunct win32 support already included.

Re: Vision for the first semester of 2016

2016-01-24 Thread Rikki Cattermole via Digitalmars-d-announce
On 25/01/16 4:21 PM, Puming wrote: On Monday, 25 January 2016 at 02:37:40 UTC, Andrei Alexandrescu wrote: Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei For PRs, I suggest the goal to be number of PRs MERGED instead of created. That may provide the core team a subconsious

Downtime of gdc ftp, bugzilla, site, et. al.

2016-01-24 Thread Iain Buclaw via Digitalmars-d
Hi, I will be doing some long overdue maintenance to all services hosted on gdcproject.org. This is starting with a backup of all data / configuration, followed by a complete rebuild. First service that I'll try to bring up in a timely manner is the FTP site, though that largely depends on

What are the real GUI toolkits for D?

2016-01-24 Thread nbro via Digitalmars-d
Except for GtkD and DWT, D does not seem to be supported by a really nice GUI toolkit. Anyway, a serious programming language nowadays should have a lot more support in that area. I have not tried GtkD yet, but it seems the most promising. Many projects have started to create a GUI toolkit (or

Re: What's the real support that D offers for web development?

2016-01-24 Thread nbro via Digitalmars-d
On Sunday, 24 January 2016 at 12:27:57 UTC, WebFreak001 wrote: On Sunday, 24 January 2016 at 12:20:44 UTC, nbro wrote: I have heard about vibe.d, but I am not convinced. I think that many people do not start using D because it lacks of many serious tools for real life applications development.

Re: [dlang.org] Let's talk about the logo

2016-01-24 Thread Ola Fosheim Grøstad via Digitalmars-d
On Saturday, 23 January 2016 at 18:58:21 UTC, Artur Skawina wrote: On 01/23/16 02:11, ronaldmc via Digitalmars-d wrote: Linux development works because Linus is right often enough. It really is that simple. But I also think Linus weighs different solutions (and implementations and

Re: Templates, templates, templates...

2016-01-24 Thread anonymous via Digitalmars-d-learn
On 24.01.2016 10:02, Voitech wrote: I added base class for Rule -> BaseRule. But this class is just a shell without implementation. Is there any way to avoid this ? What's the problem with BaseRule not having any implementation? When the different Rule instantiations don't have any common

Re: vibe.d 0.7.27-beta.1

2016-01-24 Thread Sönke Ludwig via Digitalmars-d-announce
Am 24.01.2016 um 14:14 schrieb Robert M. Münch: On 2016-01-24 12:49:25 +, Snke Ludwig said: I didn't build libevent for win64 so far and I'd rather not want to invest that time. Instead, I'd recommend to just use the "win32" configuration of vibe-d(:core) on that platform. Just to be

Re: Define "createXXX" functions for the constructors of class XXX

2016-01-24 Thread Johan Engelen via Digitalmars-d-learn
Thanks for the rapid explanations and code! Such a great forum :-) Much obliged, Johan

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread default0 via Digitalmars-d
On Sunday, 24 January 2016 at 11:20:20 UTC, Gary Willoughby wrote: Please, no more new syntax! This can be done using templates and Flag is not an ugly hack! Why no more new syntax? I agree that keeping the language simple is a good idea, but new syntax isn't usually hard to learn,

Re: What's the real support that D offers for web development?

2016-01-24 Thread WebFreak001 via Digitalmars-d
On Sunday, 24 January 2016 at 12:32:16 UTC, nbro wrote: Ok, but I would like to see concrete real world examples created with vide.d. Are there any? Its really difficult to find projects using vibe.d randomly. I have seen a few sites where it said in the footer that the website is powered by

Output range for file?

2016-01-24 Thread Tofu Ninja via Digitalmars-d-learn
I tried looking for this in phobos but cant seem to find it which is really annoying. For my uses this works: struct fileOutRange { File f; void put(ubyte[] a) { f.rawWrite(a); } } But was just wondering if there was a real output range for files

Re: New D book available for pre-order: D Web Development

2016-01-24 Thread notna via Digitalmars-d-announce
On Thursday, 17 December 2015 at 08:08:26 UTC, Kai Nacke wrote: Hi Kai. Any news? Just some days left until "January 2016" is over ;) Regards Anton On Monday, 30 November 2015 at 03:36:29 UTC, Nick B wrote: On Sunday, 29 November 2015 at 18:24:38 UTC, Kai Nacke wrote: On Wednesday, 25

Re: [dlang.org] Let's talk about the logo

2016-01-24 Thread Ola Fosheim Grøstad via Digitalmars-d
On Saturday, 23 January 2016 at 00:30:17 UTC, H. S. Teoh wrote: got this strange notion from. Walter is the one who invented this language, and he has been generous enough to let the rest of us participate in its development. Yes, I agree with this. If anything, bringing too much democracy

Re: vibe.d 0.7.27-beta.1

2016-01-24 Thread Robert M. Münch via Digitalmars-d-announce
On 2016-01-24 12:49:25 +, Snke Ludwig said: I didn't build libevent for win64 so far and I'd rather not want to invest that time. Instead, I'd recommend to just use the "win32" configuration of vibe-d(:core) on that platform. Just to be sure I get it. On Win32 I could use "libevent" or

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-24 14:24, Michel Fortin wrote: On further thought, how do you make templates with specialization take named arguments? template TFoo(T){ ... } // #1 template TFoo(T : T[]) { ... } // #2 template TFoo(T : char) { ... } // #3 My guess would be this:

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-24 14:16, Michel Fortin wrote: Have you considered supporting separate variable names? Like this: void login(string username: name, string password:) { writeln(name ~ ": " ~ password); } No, not really. -- /Jacob Carlborg

Re: What's the real support that D offers for web development?

2016-01-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.01.2016 um 14:57 schrieb krzaq: On Sunday, 24 January 2016 at 12:20:44 UTC, nbro wrote: I was wondering if D is a good language for web development. Which serious with an active community web frameworks are there? I have heard about vibe.d, but I am not convinced. I think that many

Re: alias template parameter

2016-01-24 Thread Marc Schütz via Digitalmars-d-learn
On Friday, 21 June 2013 at 14:08:43 UTC, Sergei Nosov wrote: If I have a function auto apply(alias fun, T...)(T args) { return fun(args); } And then I have int y = 2; apply!(x => y)(1); How in the world does this work? Is the context address known at compile-time? No, but because

Re: First project: questions on how-to, and on language features

2016-01-24 Thread Marc Schütz via Digitalmars-d-learn
On Sunday, 24 January 2016 at 06:07:13 UTC, Alex Vincent wrote: (1) It's not clear how to specify certain parts of a module or library as non-exportable. Is that possible? Is it desirable? (It's not that important, yet, but still...) Yes, definitely. By default symbols in a module are

Re: What's the real support that D offers for web development?

2016-01-24 Thread WebFreak001 via Digitalmars-d
On Sunday, 24 January 2016 at 12:20:44 UTC, nbro wrote: I have heard about vibe.d, but I am not convinced. I think that many people do not start using D because it lacks of many serious tools for real life applications development. vibe.d is a really good one. In my opinion its basically a

very simple pure CPU raymarching demo

2016-01-24 Thread ketmar via Digitalmars-d-announce
the following[1] is the demo of pure CPU implementation of the famous "raymarching" algorithm[2]. of course, doing that in GLSL shader will be many times faster (10x? 20x? dunno), but i'm too lazy to port the necessary gl headers (and don't want to use derelict for some random reason ;-), so i

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Michel Fortin via Digitalmars-d
On 2016-01-23 14:19:03 +, Jacob Carlborg said: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag On further thought, how do you make templates with specialization take named arguments?

Re: What's the real support that D offers for web development?

2016-01-24 Thread karabuta via Digitalmars-d
On Sunday, 24 January 2016 at 13:57:35 UTC, krzaq wrote: On Sunday, 24 January 2016 at 12:20:44 UTC, nbro wrote: [...] I'm afraid not, not for anything serious at least. The documentation is okay, but not great; greatly lacking examples. There is no built-in support for any real database

Re: very simple pure CPU raymarching demo

2016-01-24 Thread ketmar via Digitalmars-d-announce
ok, just4fun, mulththreaded renderer[1]. set ThreadCount to number of your CPU cores to get some speedup. note: this is not how `std.concurrency` should be used! please, don't do wroker queues as i did! [1] http://ketmar.no-ip.org/dmd/zrm3_adam_trd_x4.d

Re: Dub needs some additions

2016-01-24 Thread Gary Willoughby via Digitalmars-d
On Saturday, 23 January 2016 at 20:24:05 UTC, Igor wrote: Some simple extensions to dub are required for proper windows support: 1. The Ability to generate full build selections for Visual D. I only get Win32 when using `dub generate VisualD`. Win64 support should be added, along with

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Gary Willoughby via Digitalmars-d
On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 "A new syntax is added to be used when declaring a function that should be callable with named parameters:" Please, no more new syntax! This

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread default0 via Digitalmars-d
On Sunday, 24 January 2016 at 10:40:10 UTC, Jonathan M Davis wrote: On Sunday, 24 January 2016 at 10:14:53 UTC, default0 wrote: Anyone who wrote a function like that is just plain writing bad code. With that many parameters, they should be creating a struct to hold the values. Named arguments

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-23 19:27, Chris Wright wrote: One huge usecase for this is methods with many optional parameters. You've missed that. For instance, I wrote a method with six optional parameters recently. It's unusable without named parameters. I switched to a parameter struct, but it's still not

Re: vibe.d 0.7.27-beta.1

2016-01-24 Thread Sönke Ludwig via Digitalmars-d-announce
Am 23.01.2016 um 16:42 schrieb Robert M. Münch: Error: Error reading file 'C:\Users\robby\AppData\Roaming\dub\packages\vibe-d-0.7.27-beta.1\lib\win-amd64\event2.lib' I didn't build libevent for win64 so far and I'd rather not want to invest that time. Instead, I'd recommend to just use the

Re: What's the real support that D offers for web development?

2016-01-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.01.2016 um 13:32 schrieb nbro: On Sunday, 24 January 2016 at 12:27:57 UTC, WebFreak001 wrote: On Sunday, 24 January 2016 at 12:20:44 UTC, nbro wrote: I have heard about vibe.d, but I am not convinced. I think that many people do not start using D because it lacks of many serious tools

Re: What's the real support that D offers for web development?

2016-01-24 Thread krzaq via Digitalmars-d
On Sunday, 24 January 2016 at 12:20:44 UTC, nbro wrote: I was wondering if D is a good language for web development. Which serious with an active community web frameworks are there? I have heard about vibe.d, but I am not convinced. I think that many people do not start using D because it

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Andrej Mitrovic via Digitalmars-d
On 1/24/16, Jonathan M Davis via Digitalmars-d wrote: > I would strongly argue that anyone who feels the need for named > parameters should rethink how they're designing their functions. Another example where they become useful is with functions that take source and

Re: Choosing D over C++, Go, Rust, Swift

2016-01-24 Thread Dibyendu Majumdar via Digitalmars-d
On Thursday, 14 January 2016 at 13:47:39 UTC, Dibyendu Majumdar wrote: I wrote recently that I am looking at an alternative to C++ for a project currently being coded in C++. I am pleased to say based on preliminary investigations I have chosen D over Go, Rust, and Swift. 1. D appears to

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-24 12:20, Gary Willoughby wrote: This can be done using templates and Flag is not an ugly hack! It's one of the most ugly things I've seen in D. -- /Jacob Carlborg

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-24 11:14, default0 wrote: As for this DIP I don't know - it seems to be well-thought-out, albeit with a focus on ease of implementation rather than usefulness for a language user, so I don't really have a conclusive opinion on that. It's focused on having a realistic chance of

What's the real support that D offers for web development?

2016-01-24 Thread nbro via Digitalmars-d
I was wondering if D is a good language for web development. Which serious with an active community web frameworks are there? I have heard about vibe.d, but I am not convinced. I think that many people do not start using D because it lacks of many serious tools for real life applications

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Michel Fortin via Digitalmars-d
On 2016-01-23 14:19:03 +, Jacob Carlborg said: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag Interesting. This is somewhat similar to an experiment of mine from 5 years ago. My

Re: Choosing D over C++, Go, Rust, Swift

2016-01-24 Thread maik klein via Digitalmars-d
On Sunday, 24 January 2016 at 12:04:58 UTC, Dibyendu Majumdar wrote: On Thursday, 14 January 2016 at 13:47:39 UTC, Dibyendu Majumdar wrote: I wrote recently that I am looking at an alternative to C++ for a project currently being coded in C++. I am pleased to say based on preliminary

Re: New D book available for pre-order: D Web Development

2016-01-24 Thread Kai Nacke via Digitalmars-d-announce
On Sunday, 24 January 2016 at 13:03:42 UTC, notna wrote: Any news? Just some days left until "January 2016" is over ;) I am checking the pre-final PDFs of the last chapters right now. Publishing date will be very soon Regards, Kai

Re: What are the real GUI toolkits for D?

2016-01-24 Thread karabuta via Digitalmars-d
On Sunday, 24 January 2016 at 12:16:09 UTC, nbro wrote: Except for GtkD and DWT, D does not seem to be supported by a really nice GUI toolkit. Anyway, a serious programming language nowadays should have a lot more support in that area. I have not tried GtkD yet, but it seems the most

Re: Vision for the first semester of 2016

2016-01-24 Thread Puming via Digitalmars-d-announce
On Monday, 25 January 2016 at 03:49:56 UTC, Rikki Cattermole wrote: On 25/01/16 4:21 PM, Puming wrote: On Monday, 25 January 2016 at 02:37:40 UTC, Andrei Alexandrescu wrote: Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei For PRs, I suggest the goal to be number of PRs

opIndex overload for slice not working...

2016-01-24 Thread Enjoys Math via Digitalmars-d-learn
class V(T) { public: this() {} V opIndex(size_t i, size_t j) { writeln("Hello, foo!"); return this; } } main() { auto v = new V!int(); auto u = v[3..4];// ERROR } Error: no [] operator overload for type the_module.V!int

Re: Vision for the first semester of 2016

2016-01-24 Thread Andrew Edwards via Digitalmars-d-announce
On Monday, 25 January 2016 at 03:21:51 UTC, Puming wrote: On Monday, 25 January 2016 at 02:37:40 UTC, Andrei Alexandrescu wrote: Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei [snip] For tooling, I suggest a look at GUI/IDEs, now that dlangui/dlangide seems a good

Re: Vision for the first semester of 2016

2016-01-24 Thread Russel Winder via Digitalmars-d-announce
On Mon, 2016-01-25 at 16:49 +1300, Rikki Cattermole via Digitalmars-d- announce wrote: > […] > That won't be happening anytime soon. > Until we have image and windowing in Phobos (I'm working on both) > there  > is no way a GUI toolkit is going in. And from what I know there will > be  > a LOT of

Re: opIndex overload for slice not working...

2016-01-24 Thread Ali Çehreli via Digitalmars-d-learn
On 01/24/2016 10:37 PM, Enjoys Math wrote: > class V(T) { > public: > this() {} > V opIndex(size_t i, size_t j) { > writeln("Hello, foo!"); > return this; > } > } > > main() { > auto v = new V!int(); > auto u = v[3..4];// ERROR > } > > Error: > no []

Re: Vision for the first semester of 2016

2016-01-24 Thread tsbockman via Digitalmars-d-announce
On Monday, 25 January 2016 at 07:03:35 UTC, Russel Winder wrote: The strategy should be "get rid of anything in Phobos that can be put out as a separate library". This makes no sense as a standard: since neither DMD nor druntime is allowed to depend upon Phobos, everything in Phobos *could*

[Issue 15603] New: ICE in cgxmm.c 647

2016-01-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15603 Issue ID: 15603 Summary: ICE in cgxmm.c 647 Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1

Re: Vision for the first semester of 2016

2016-01-24 Thread Rikki Cattermole via Digitalmars-d-announce
On 25/01/16 7:39 PM, Andrew Edwards wrote: On Monday, 25 January 2016 at 03:21:51 UTC, Puming wrote: On Monday, 25 January 2016 at 02:37:40 UTC, Andrei Alexandrescu wrote: Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei [snip] For tooling, I suggest a look at GUI/IDEs, now

Re: Vision for the first semester of 2016

2016-01-24 Thread Rikki Cattermole via Digitalmars-d-announce
On 25/01/16 7:18 PM, Puming wrote: On Monday, 25 January 2016 at 05:50:34 UTC, Rikki Cattermole wrote: I want us to hold off on that as well. I agree that we need a more solid base. I want people to really have a go with making GUI toolkits in D without the worry about how to do the cross

Re: What are the real GUI toolkits for D?

2016-01-24 Thread Luis via Digitalmars-d
On Sunday, 24 January 2016 at 12:16:09 UTC, nbro wrote: Except for GtkD and DWT, D does not seem to be supported by a really nice GUI toolkit. Anyway, a serious programming language nowadays should have a lot more support in that area. I have not tried GtkD yet, but it seems the most

Re: opIndex overload for slice not working...

2016-01-24 Thread biozic via Digitalmars-d-learn
On Monday, 25 January 2016 at 06:37:13 UTC, Enjoys Math wrote: class V(T) { public: this() {} V opIndex(size_t i, size_t j) { writeln("Hello, foo!"); return this; } } main() { auto v = new V!int(); auto u = v[3..4];// ERROR } Error: no [] operator overload for

Re: Vision 2016 H1

2016-01-24 Thread Joakim via Digitalmars-d
On Monday, 25 January 2016 at 03:14:47 UTC, Andrei Alexandrescu wrote: In case you missed it from the announce forum: http://wiki.dlang.org/Vision/2016H1 -- Andrei Some comments: - I'm not sure number of PRs is worth measuring, maybe a better metric would be number of devs submitting a PR,

Re: Vision for the first semester of 2016

2016-01-24 Thread Chris Wright via Digitalmars-d-announce
On Sun, 24 Jan 2016 21:37:40 -0500, Andrei Alexandrescu wrote: > Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei I'm not fond of the militaristic terminology for participants. Novice, adept, master, maybe? The section on safety is pretty short. I'd like to see in it: *

Re: Vision for the first semester of 2016

2016-01-24 Thread Rikki Cattermole via Digitalmars-d-announce
On 25/01/16 6:47 PM, Puming wrote: On Monday, 25 January 2016 at 03:49:56 UTC, Rikki Cattermole wrote: On 25/01/16 4:21 PM, Puming wrote: On Monday, 25 January 2016 at 02:37:40 UTC, Andrei Alexandrescu wrote: Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei For PRs, I

Re: Vision for the first semester of 2016

2016-01-24 Thread Jack Stouffer via Digitalmars-d-announce
On Monday, 25 January 2016 at 02:37:40 UTC, Andrei Alexandrescu wrote: Hot off the press! http://wiki.dlang.org/Vision/2016H1 -- Andrei My biggest issue with these documents is that they have good ideas but rarely have plans to achieve them. As a consequence, most of these documents say how

Re: Vision for the first semester of 2016

2016-01-24 Thread Puming via Digitalmars-d-announce
On Monday, 25 January 2016 at 05:50:34 UTC, Rikki Cattermole wrote: I want us to hold off on that as well. I agree that we need a more solid base. I want people to really have a go with making GUI toolkits in D without the worry about how to do the cross platformy technical things. Is

Re: Localization (i18n) Options

2016-01-24 Thread Luis via Digitalmars-d
On Sunday, 24 January 2016 at 19:18:28 UTC, Gerald wrote: On Monday, 18 January 2016 at 09:04:48 UTC, Luis wrote: Please, write a HowTo some where. GtkD lack of documentation it's very anoying. I've gotten this going with Terminix and posted some information what it took to get it going

Re: [dlang.org] Let's talk about the logo

2016-01-24 Thread anonymous via Digitalmars-d
On 22.01.2016 00:46, anonymous wrote: http://i.imgur.com/eJaKFtx.png [...] For dlang.org, I'd choose the version with the wide background arc. I think it looks nice on the menu bar, and it puts a little more emphasis there than just the core shape. But just the core shape looks fine, too. I

Last revision of phobos and druntime that actually compile with cdmd

2016-01-24 Thread Benjamin Thaut via Digitalmars-d
I'm currently merging a pretty large change over the C++->D boundary within Dmd. This change includes many changes to druntime and phobos. So I need the last revision of druntime and phobos that still compile with cdmd exactly before the switch was made. Unfortunately there is no git tag for

Re: Possible to get Class of Interface at runtime

2016-01-24 Thread Josh Phillips via Digitalmars-d-learn
On Saturday, 23 January 2016 at 21:06:32 UTC, Adam D. Ruppe wrote: Are you sure you correctly casted first? Nope sorry. Thanks for the help!!

Re: Downtime of gdc ftp, bugzilla, site, et. al.

2016-01-24 Thread Iain Buclaw via Digitalmars-d
On Sunday, 24 January 2016 at 12:09:06 UTC, Iain Buclaw wrote: Hi, I will be doing some long overdue maintenance to all services hosted on gdcproject.org. This is starting with a backup of all data / configuration, followed by a complete rebuild. First service that I'll try to bring up in

Tutorial on using eclipse with D

2016-01-24 Thread Minas Mina via Digitalmars-d-announce
Another IDE tutorial! Reddit post: https://www.reddit.com/r/programming/comments/42gcxi/using_eclipse_ide_with_d/

Re: very simple pure CPU raymarching demo

2016-01-24 Thread karabuta via Digitalmars-d-announce
On Sunday, 24 January 2016 at 14:18:23 UTC, ketmar wrote: ok, just4fun, mulththreaded renderer[1]. set ThreadCount to number of your CPU cores to get some speedup. note: this is not how `std.concurrency` should be used! please, don't do wroker queues as i did! [1]

Re: very simple pure CPU raymarching demo

2016-01-24 Thread ketmar via Digitalmars-d-announce
This is the kind of maths I hoped I could try to understand. The spirit is not there :) it's very easy, actually. the basic idea is this: our "primitive" functions returns distance from a given point to the primitive. i.e. auto point(1, 2, 3); float dist = BoxPrimitive(point); now `dist` is

Re: [dlang.org] Let's talk about the logo

2016-01-24 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 24 January 2016 at 13:03:36 UTC, Ola Fosheim Grøstad wrote: Meritocracy is not a horrible concept though. Err, type. I meant to say that is a horrible concept. It is better than seniority, but makes no sense outside a hierarchical power structure IMO.

Re: Output range for file?

2016-01-24 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Jan 24, 2016 at 12:38:22PM +, Tofu Ninja via Digitalmars-d-learn wrote: > I tried looking for this in phobos but cant seem to find it which is > really annoying. For my uses this works: What kind of data do you need to write to file? If it's textual data, use File.lockingTextWriter,

Ever want to compile D on your Android phone? Well, now you can!

2016-01-24 Thread Joakim via Digitalmars-d-announce
An alpha release of ldc, the llvm-based D compiler, for Android devices is now available. It is best used with the excellent Termux app (https://play.google.com/store/apps/details?id=com.termux=en) and a bluetooth keyboard. ;) Updated test runners, that run most tests from the standard

Re: First project: questions on how-to, and on language features

2016-01-24 Thread Chris Wright via Digitalmars-d-learn
On Sun, 24 Jan 2016 06:07:13 +, Alex Vincent wrote: > Source code: > https://alexvincent.us/d-language/samples/intervalmap-rev1.d.txt There is no documentation, so I have no idea what you're trying to achieve here. So your questions about why this isn't in Phobos, whether there are any

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Chris Wright via Digitalmars-d
On Sun, 24 Jan 2016 11:20:20 +, Gary Willoughby wrote: > On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: >> This is mostly to prevent ugly hacks like Flag [1]. >> >> http://wiki.dlang.org/DIP88 > > "A new syntax is added to be used when declaring a function that should >

Re: Output range for file?

2016-01-24 Thread Tofu Ninja via Digitalmars-d-learn
On Sunday, 24 January 2016 at 15:08:33 UTC, H. S. Teoh wrote: On Sun, Jan 24, 2016 at 12:38:22PM +, Tofu Ninja via Digitalmars-d-learn wrote: I tried looking for this in phobos but cant seem to find it which is really annoying. For my uses this works: What kind of data do you need to

Re: What have I missed?

2016-01-24 Thread Era Scarecrow via Digitalmars-d
On Thursday, 7 August 2014 at 10:08:30 UTC, Marc Schütz wrote: I haven't looked at your rewrite, but from what I've seen the current implementation is indeed very awkward and full of bugs. There were also some discussions about the behavior on resizing with respect to stomping, IIRC. This

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Chris Wright via Digitalmars-d
On Sun, 24 Jan 2016 13:04:20 +0100, Jacob Carlborg wrote: > On 2016-01-23 19:27, Chris Wright wrote: >> I'd also add that this proposal doesn't affect UFCS. > > How would it affect UFCS? It shouldn't. However, it is another way to pass function arguments, so for thoroughness it would be better

[Issue 15601] New: version not allowed within enum declaration

2016-01-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15601 Issue ID: 15601 Summary: version not allowed within enum declaration Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Chris Wright via Digitalmars-d
On Sun, 24 Jan 2016 10:14:53 +, default0 wrote: > So given this method: > void M(int a, int b = 1, int c = 2, int d = 3, int e = 4, int f = > 5, int g = 6, int h = 7, int i = 8) > { > } > > You prefer calling it this way: > M(5, 1, 2, 3, 4, 5, 6, 7, 23); > As opposed to: > M(5, i: 23);

[Issue 15582] Slice returned by opSlice() not accepted as lvalue

2016-01-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15582 Marc Schütz changed: What|Removed |Added Severity|normal |enhancement --- Comment #6

[Issue 15599] Broken link here: https://dlang.org/features2.html

2016-01-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15599 Marc Schütz changed: What|Removed |Added Status|NEW |RESOLVED

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread Chris Wright via Digitalmars-d
On Sun, 24 Jan 2016 08:16:35 -0500, Michel Fortin wrote: > Have you considered supporting separate variable names? Like this: > > void login(string username: name, string password:) { > writeln(name ~ ": " ~ password); > } You mean: void login(string username:,

Re: Localization (i18n) Options

2016-01-24 Thread Gerald via Digitalmars-d
On Monday, 18 January 2016 at 09:04:48 UTC, Luis wrote: Please, write a HowTo some where. GtkD lack of documentation it's very anoying. I've gotten this going with Terminix and posted some information what it took to get it going here: http://gexperts.com/wp/gtkd-and-localization/

[Issue 15602] New: Write GC profiling summary to stderr rather than stdout (--DRT-gcopt=profile:1)

2016-01-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15602 Issue ID: 15602 Summary: Write GC profiling summary to stderr rather than stdout (--DRT-gcopt=profile:1) Product: D Version: D2 Hardware: x86 OS: Mac OS X

  1   2   >