[Issue 12680] isIterable fails for types with disabled postblit

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12680 --- Comment #2 from ZombineDev --- @Lars T. Kyllingstad The OP is not trying to iterate over the struct, but over an array of structs with @disabled this(this). --

Re: Offering Access to Parser

2016-02-11 Thread Jacob Carlborg via Digitalmars-d
On 2016-02-11 05:22, cy wrote: Well yes, that's my point. AST macros don't need any new special syntax or language support, just access to the compiler's syntax parser. Then you can use normal mixins to get the code you want. Well, language support _is_ required. Perhaps not new syntax

Re: DMD compilation speed

2016-02-11 Thread Andrea Fontana via Digitalmars-d
On Thursday, 11 February 2016 at 05:38:54 UTC, Andrew Godfrey wrote: I just upgraded from DMD 2.065.0 (so about 2 years old) to 2.070.0, and noticed a difference in compilation speed. I'll detail what I see, in case it's interesting, but really I just want to ask: What should I expect? I know

Re: Wannabe contributor frustrations

2016-02-11 Thread Walter Bright via Digitalmars-d
On 2/10/2016 11:18 PM, Daniel Kozak via Digitalmars-d wrote: Dne 11.2.2016 v 05:52 Walter Bright via Digitalmars-d napsal(a): On 2/10/2016 6:07 PM, Etienne wrote: It took me way more than 2 hours to grasp how this build process works. It wasn't until I had read through the whole source code

Re: DMD compilation speed

2016-02-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 11 February 2016 at 08:37:29 UTC, Andrea Fontana wrote: Check this: http://digger.k3.1azy.net/trend/ Cool, why did the peak heap size during compilation drop from approx. 180MB to 30MB?

Re: DMD compilation speed

2016-02-11 Thread Andrea Fontana via Digitalmars-d
On Thursday, 11 February 2016 at 08:46:19 UTC, Ola Fosheim Grøstad wrote: On Thursday, 11 February 2016 at 08:37:29 UTC, Andrea Fontana wrote: Check this: http://digger.k3.1azy.net/trend/ Cool, why did the peak heap size during compilation drop from approx. 180MB to 30MB? Zooming on graph

Re: How to allocate arrays of objects?

2016-02-11 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-02-11 05:34, Adam D. Ruppe wrote: On Thursday, 11 February 2016 at 04:31:12 UTC, cy wrote: as[0..$] = new A(); before accessing .stuff on as[0]. Loop through it and allocate each one rather than trying to do it in a one liner like that. What about this? as[] = new A(); Or will

Re: Wannabe contributor frustrations

2016-02-11 Thread Daniel Murphy via Digitalmars-d
On 11/02/2016 3:37 PM, Jonathan M Davis wrote: It's also a pain to edit. It's been suggested several times that we change the build system (e.g. to use https://github.com/atilaneves/reggae), but IIRC, Walter and Andrei have generally been opposed to the idea of changing it. It's one of those

Re: DMD compilation speed

2016-02-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 11 February 2016 at 08:57:22 UTC, Andrea Fontana wrote: Zooming on graph you can see that the improvement was due to this: https://github.com/D-Programming-Language/dmd/pull/4923 But why? Is it using the GC, or what?

Weird issue with std.range.iota.length

2016-02-11 Thread Meta via Digitalmars-d
If you try to compile this code, it will currently not work: foreach (n; iota(1UL, 1000).parallel) { //... } This is because of how the length is calculated by iota: auto iota(B, E)(B begin, E end) if (isIntegral!(CommonType!(B, E)) || isPointer!(CommonType!(B, E))) { import

[Issue 10378] Local imports hide local symbols

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10378 Walter Bright changed: What|Removed |Added CC|

Re: Weird issue with std.range.iota.length

2016-02-11 Thread Meta via Digitalmars-d
On Friday, 12 February 2016 at 05:59:32 UTC, Rikki Cattermole wrote: So I assume if you compiled as 64bit this will work then? Yes, because `unsigned(begin - end)` will yield a ulong regardless, but size_t will then be a ulong as well.

Re: Weird issue with std.range.iota.length

2016-02-11 Thread Rikki Cattermole via Digitalmars-d
On 12/02/16 7:19 PM, Meta wrote: On Friday, 12 February 2016 at 05:59:32 UTC, Rikki Cattermole wrote: So I assume if you compiled as 64bit this will work then? Yes, because `unsigned(begin - end)` will yield a ulong regardless, but size_t will then be a ulong as well. So an edge case.

Re: Weird issue with std.range.iota.length

2016-02-11 Thread Meta via Digitalmars-d
On Friday, 12 February 2016 at 06:21:45 UTC, Rikki Cattermole wrote: On 12/02/16 7:19 PM, Meta wrote: On Friday, 12 February 2016 at 05:59:32 UTC, Rikki Cattermole wrote: So I assume if you compiled as 64bit this will work then? Yes, because `unsigned(begin - end)` will yield a ulong

Re: DMD compilation speed

2016-02-11 Thread Andrew Godfrey via Digitalmars-d
On Thursday, 11 February 2016 at 08:37:29 UTC, Andrea Fontana wrote: Check this: http://digger.k3.1azy.net/trend/ Very nice!

Re: Wannabe contributor frustrations

2016-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 11 February 2016 at 10:55:12 UTC, Márcio Martins wrote: Is there a practical reason why they are not in the same repo? No, other than trying to put them into one would grind everything to a halt for a while and would probably cost us more than we'd win. (All pull requests would

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Joakim via Digitalmars-d
On Thursday, 11 February 2016 at 10:52:31 UTC, Ola Fosheim Grøstad wrote: On Thursday, 11 February 2016 at 09:51:16 UTC, Joakim wrote: All of which are decades-old projects from the heyday of the GPL, when many mistakenly attributed linux's success to the GPL and copied its license blindly.

Re: String joining an array of structs or class instances implementing toString?

2016-02-11 Thread pineapple via Digitalmars-d-learn
Oh pardon the constructor I was playing with as a learning experience and forgot to get rid of.

[Issue 7176] Lambda => syntax for function and methods too

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7176 --- Comment #20 from Nick Treleaven --- Just noticed C# 6.0 has this syntax, they call it "Expression Body Definitions": https://msdn.microsoft.com/en-us/library/ms173114.aspx#Anchor_6 C# also has the same (x, y) => x ==

[Issue 12680] isIterable fails for types with disabled postblit

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12680 ZombineDev changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Does D optimize sqrt(2.0)?

2016-02-11 Thread crimaniak via Digitalmars-d-learn
On Thursday, 11 February 2016 at 07:41:55 UTC, Enjoys Math wrote: If I just type out sqrt(2.0) in D, is that automatically made into a constant for me? Thanks. for DMD -O : import std.math; immutable foo = sqrt(2.0); pure float precalculated() { return foo; } pure float

Re: D's equivalent to C++'s std::move?

2016-02-11 Thread Atila Neves via Digitalmars-d
On Thursday, 11 February 2016 at 00:32:11 UTC, Matt Elkins wrote: On Wednesday, 10 February 2016 at 20:42:29 UTC, w0rp wrote: [...] Maybe this is what you are referring to, but the primary use I get out of move semantics (in general, not language-specific) has little to do with

Re: Wannabe contributor frustrations

2016-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/11/16 9:08 AM, Atila Neves wrote: I'm still not 100% sure what I need to do to build the docs Does http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_and_build_dlang.org help? -- Andrei

Re: D's equivalent to C++'s std::move?

2016-02-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 11 February 2016 at 14:25:39 UTC, Atila Neves wrote: D has move semantics. Deep copies are done with post-blit. Fair enough if you just: auto foo = bar; Then it's a shallow copy. The only difference to a "true" move is that bar isn't T.init, but that's easily done with the move

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Joakim via Digitalmars-d
On Thursday, 11 February 2016 at 12:47:20 UTC, Ola Fosheim Grøstad wrote: On Thursday, 11 February 2016 at 11:46:44 UTC, Joakim wrote: That's why I differentiated between getting a team on the same page and high-quality coherent designs. The former may get more done, but usually not at high

[Issue 15294] receiveTimeout with negative value asserts

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15294 Vlad Levenfeld changed: What|Removed |Added CC||vlevenf...@gmail.com

Re: Wannabe contributor frustrations

2016-02-11 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 11 February 2016 at 11:49:35 UTC, Vladimir Panteleev wrote: Digger can do it in one command too, without any changes in the current build process. Yeah, digger is pretty cool. Does your command also build the PDF, CHM and eBook? No, I see negative value in supporting these

Re: Just because it's a slow Thursday on this forum

2016-02-11 Thread Nick Sabalausky via Digitalmars-d
On 02/10/2016 02:47 PM, H. S. Teoh via Digitalmars-d wrote: On Wed, Feb 10, 2016 at 02:32:37PM -0500, Andrei Alexandrescu via Digitalmars-d wrote: On 02/10/2016 02:25 PM, Nick Sabalausky wrote: I see no non-trivial cost. I, to, am not getting the cost story. H.S. Teoh, could you please

Re: Weird issue with std.range.iota.length

2016-02-11 Thread Rikki Cattermole via Digitalmars-d
On 12/02/16 6:51 PM, Meta wrote: If you try to compile this code, it will currently not work: foreach (n; iota(1UL, 1000).parallel) { //... } This is because of how the length is calculated by iota: auto iota(B, E)(B begin, E end) if (isIntegral!(CommonType!(B, E)) ||

Re: Berlin D Meetup February 2016

2016-02-11 Thread default0 via Digitalmars-d-announce
On Thursday, 11 February 2016 at 17:09:40 UTC, Ben Palmer wrote: Hi All, The February Berlin D Meetup will be happening at 19:30 on Friday the 19th at Berlin Co-Op (http://co-up.de/) on the fifth floor. This time Stefan Brus will be doing a talk titled "Intro to Game Development in D". The

Re: Just because it's a slow Thursday on this forum

2016-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 02/11/2016 11:22 AM, H. S. Teoh via Digitalmars-d wrote: Personally, though, I find a bunch of comma-separated values very unhelpful. It would be much better if they were labelled So wasn't this dump() as opposed to print()? Two different functions doing different things. -- Andrei

Re: String joining an array of structs or class instances implementing toString?

2016-02-11 Thread Ali Çehreli via Digitalmars-d-learn
On 02/11/2016 04:44 AM, pineapple wrote: It feels like there should be an out-of-the box way to do this but I haven't been able to find it? Help? This is the thing that I want to do: struct example{ const string str; //this(string str){ this.str = str; } string toString(){

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 11 February 2016 at 10:21:19 UTC, Joakim wrote: You heard them above. Sun is basically inbreeding. That tends to be good to bring out specific characteristics of a breed, and tends to be good for _specialization_. Linus is not a very good analyst. All the big iron corporations

Re: Found on twitter: a long comparison of C with D, in Russian

2016-02-11 Thread Dejan Lekic via Digitalmars-d-announce
This is probably the most complete C vs D comparison ever made. Really cool article! Thanks!

Re: Found on twitter: a long comparison of C with D, in Russian

2016-02-11 Thread Joakim via Digitalmars-d-announce
On Thursday, 11 February 2016 at 11:55:44 UTC, Dejan Lekic wrote: This is probably the most complete C vs D comparison ever made. Really cool article! Thanks! Well, it should be, as Andre noted above, Walter probably wrote it, ie turns out the Russian article is only a translation of an

Re: Wannabe contributor frustrations

2016-02-11 Thread Mengu via Digitalmars-d
On Thursday, 11 February 2016 at 05:02:40 UTC, Adam D. Ruppe wrote: On Thursday, 11 February 2016 at 04:37:39 UTC, Jonathan M Davis wrote: And building the documentation is that much worse. I'm fixing that at least! My docs: http://dpldocs.info/experimental-docs/std.stdio.html are built

Re: Wannabe contributor frustrations

2016-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 11 February 2016 at 05:02:40 UTC, Adam D. Ruppe wrote: On Thursday, 11 February 2016 at 04:37:39 UTC, Jonathan M Davis wrote: And building the documentation is that much worse. I'm fixing that at least! My docs: http://dpldocs.info/experimental-docs/std.stdio.html are built

Procedural drawing using ndslice

2016-02-11 Thread Claude via Digitalmars-d-learn
Hello, I come from the C world and try to do some procedural terrain generation, and I thought ndslice would help me to make things look clean, but I'm very new to those semantics and I need help. Here's my problem: I have a C-style rough implementation of a function drawing a disk into a

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Joakim via Digitalmars-d
On Thursday, 11 February 2016 at 09:51:16 UTC, Joakim wrote: Consensus is for getting everybody doing the same thing, which is not the road to technical quality. Linus has talked about the "wasteful" OSS approach, which he compares to evolution:

Re: Wannabe contributor frustrations

2016-02-11 Thread Márcio Martins via Digitalmars-d
On Thursday, 11 February 2016 at 07:23:26 UTC, Jonathan M Davis wrote: On Thursday, 11 February 2016 at 06:57:39 UTC, Daniel Kozak wrote: Dne 11.2.2016 v 01:20 Adam D. Ruppe via Digitalmars-d napsal(a): IMO it is a denial of reality to put them in three separate repositories since they are so

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Dejan Lekic via Digitalmars-d
I am sure nobody will disagree with this post. Thing is, whenever there are people, there will be disagreements. I remember "final by default" vs "virtual by default" thread. I remember people whining and leaving the D community for X various reasons. What made me personally stick to D is

[Issue 15668] [REG2.068.0] __LINE__ evaluated at declaration context

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15668 Kenji Hara changed: What|Removed |Added Status|NEW |RESOLVED

Re: Wannabe contributor frustrations

2016-02-11 Thread Daniel Kozak via Digitalmars-d
Dne 11.2.2016 v 09:44 Walter Bright via Digitalmars-d napsal(a): On 2/10/2016 11:18 PM, Daniel Kozak via Digitalmars-d wrote: Dne 11.2.2016 v 05:52 Walter Bright via Digitalmars-d napsal(a): On 2/10/2016 6:07 PM, Etienne wrote: It took me way more than 2 hours to grasp how this build

Re: Is this nogc? dmd and gdc disagree

2016-02-11 Thread rcorre via Digitalmars-d-learn
On Thursday, 11 February 2016 at 04:20:13 UTC, tsbockman wrote: On Thursday, 11 February 2016 at 03:09:51 UTC, rcorre wrote: I recently tried compiling enumap with GDC, and found that it disagrees with DMD on whether a function is @nogc. Here's a semi-reduced test-case: Here's an @nogc

Re: String joining an array of structs or class instances implementing toString?

2016-02-11 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Thursday, 11 February 2016 at 12:44:15 UTC, pineapple wrote: It feels like there should be an out-of-the box way to do this but I haven't been able to find it? Help? This is the thing that I want to do: struct example{ const string str; //this(string str){ this.str = str; }

Re: Is this nogc? dmd and gdc disagree

2016-02-11 Thread rcorre via Digitalmars-d-learn
On Thursday, 11 February 2016 at 12:41:16 UTC, rcorre wrote: On Thursday, 11 February 2016 at 04:20:13 UTC, tsbockman wrote: Using zip and slices guarantees that the structure returned will be only 5*size_t.sizeof bytes, regardless of the types of K and V. I'm on the DMD 2.070 release, so

Re: Wannabe contributor frustrations

2016-02-11 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 11 February 2016 at 12:08:53 UTC, Márcio Martins wrote: On Thursday, 11 February 2016 at 11:47:23 UTC, Vladimir Panteleev wrote: On Thursday, 11 February 2016 at 10:55:12 UTC, Márcio Martins wrote: Is there a practical reason why they are not in the same repo? No, other than

Re: Does D optimize sqrt(2.0)?

2016-02-11 Thread Johannes Pfau via Digitalmars-d-learn
On Thursday, 11 February 2016 at 07:41:55 UTC, Enjoys Math wrote: If I just type out sqrt(2.0) in D, is that automatically made into a constant for me? Thanks. For GDC the answer is yes:

String joining an array of structs or class instances implementing toString?

2016-02-11 Thread pineapple via Digitalmars-d-learn
It feels like there should be an out-of-the box way to do this but I haven't been able to find it? Help? This is the thing that I want to do: struct example{ const string str; //this(string str){ this.str = str; } string toString(){ return this.str; } } public void

Re: Babylon JS-like game engine or complete port

2016-02-11 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 10 February 2016 at 20:07:24 UTC, karabuta wrote: I like the feel when using Babylon JS(http://www.babylonjs.com/) and how the APIs are designed. It has glTF, STL & OBJ importers and many more cool features for game devs (http://www.babylonjs.com/#featuresdemossection). But, it

[Issue 3191] std.zlib.UnCompress errors if buffer is reused

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3191 Andre changed: What|Removed |Added CC||alver...@gmail.com --- Comment

Re: Wannabe contributor frustrations

2016-02-11 Thread Márcio Martins via Digitalmars-d
On Thursday, 11 February 2016 at 11:47:23 UTC, Vladimir Panteleev wrote: On Thursday, 11 February 2016 at 10:55:12 UTC, Márcio Martins wrote: Is there a practical reason why they are not in the same repo? No, other than trying to put them into one would grind everything to a halt for a while

Re: Wannabe contributor frustrations

2016-02-11 Thread Edwin van Leeuwen via Digitalmars-d
On Thursday, 11 February 2016 at 07:31:10 UTC, Daniel Kozak wrote: Dne 11.2.2016 v 08:23 Jonathan M Davis via Digitalmars-d napsal(a): On Thursday, 11 February 2016 at 06:57:39 UTC, Daniel Kozak wrote: Dne 11.2.2016 v 01:20 Adam D. Ruppe via Digitalmars-d napsal(a): IMO it is a denial of

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 11 February 2016 at 11:46:44 UTC, Joakim wrote: That's why I differentiated between getting a team on the same page and high-quality coherent designs. The former may get more done, but usually not at high quality. Read up more at the Linus links I gave to get the alternate

Re: String joining an array of structs or class instances implementing toString?

2016-02-11 Thread pineapple via Digitalmars-d-learn
On Thursday, 11 February 2016 at 12:53:20 UTC, Edwin van Leeuwen wrote: I'd do it like this: import std.algorithm : map; pars.map!((part) => part.toString) // Turn them to strings .join(" ").writeln; // Join them. Thanks! Does the map function iterate without constructing an extra list

Re: String joining an array of structs or class instances implementing toString?

2016-02-11 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Thursday, 11 February 2016 at 13:43:49 UTC, pineapple wrote: Thanks! Does the map function iterate without constructing an extra list in-memory? Yes, it is lazy, so it only calls toString when the result is actually used (by the join call). In case you do need to create an extra list

Re: Wannabe contributor frustrations

2016-02-11 Thread Atila Neves via Digitalmars-d
On Thursday, 11 February 2016 at 04:37:39 UTC, Jonathan M Davis wrote: On Thursday, 11 February 2016 at 02:07:54 UTC, Etienne wrote: On Wednesday, 10 February 2016 at 23:30:03 UTC, Márcio Martins wrote: [...] It took me way more than 2 hours to grasp how this build process works. It wasn't

Re: Wannabe contributor frustrations

2016-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/10/16 6:30 PM, Márcio Martins wrote: I decided to try a couple ideas in druntime and followed this http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_dmd_from_GitHub OK, I added this section: http://wiki.dlang.org/Starting_as_a_Contributor#Running_Independent_Programs Please let me

http://wiki.dlang.org/Starting_as_a_Contributor is still messed up with intermingled operating systems

2016-02-11 Thread Andrei Alexandrescu via Digitalmars-d
Bump on http://forum.dlang.org/post/mqjiwcqzzbyupxmwc...@forum.dlang.org - could somebody please separate docs per OS? -- Thanks! Andrei

Re: D's equivalent to C++'s std::move?

2016-02-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 11 February 2016 at 01:45:32 UTC, Matt Elkins wrote: True, but with unique_ptr the max count is enforced by the compiler and can only be subverted by a programmer explicitly choosing to do so -- if that is possible with normal reference counting, I don't know of a way. You

Re: Wannabe contributor frustrations

2016-02-11 Thread Andrei Alexandrescu via Digitalmars-d
On 2/10/16 6:30 PM, Márcio Martins wrote: I decided to try a couple ideas in druntime and followed this http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_dmd_from_GitHub Everything went fast and smooth - I have a custom built dmd version. Bootstrapping and building dmd was suspiciously fast

Re: Wannabe contributor frustrations

2016-02-11 Thread Atila Neves via Digitalmars-d
On Thursday, 11 February 2016 at 04:48:31 UTC, Laeeth Isharc wrote: On Wednesday, 10 February 2016 at 23:30:03 UTC, Márcio Martins wrote: [...] When you figure it out maybe you could draft a clear explanation of whats missing from the existing wiki instructions to append as a set of hints

Re: Is this nogc? dmd and gdc disagree

2016-02-11 Thread tsbockman via Digitalmars-d-learn
On Thursday, 11 February 2016 at 12:55:02 UTC, rcorre wrote: Though it appears (in 2.070 at least) that zip's range primitives aren't nogc: I took a look at the source code for `zip()`, and the cause of this deficiency is that `Zip` takes a `StoppingPolicy` as a runtime parameter, rather

Re: Found on twitter: a long comparison of C with D, in Russian

2016-02-11 Thread HaraldZealot via Digitalmars-d-announce
On Wednesday, 10 February 2016 at 09:49:07 UTC, Joakim wrote: From habrahabr.ru, a kind of Russian Slashdot: https://habrahabr.ru/post/276227/ I used Chrome's auto-translate to read it, he mentions some D features I'd never seen before. If you are interested in D topic on the habrahabr

Re: D's equivalent to C++'s std::move?

2016-02-11 Thread Atila Neves via Digitalmars-d
On Wednesday, 10 February 2016 at 22:32:54 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 10 February 2016 at 20:42:29 UTC, w0rp wrote: Back on the original topic, Scott Meyers often says "std::move doesn't move." It's more like std::rvalue_cast. C++ uses r-value references in order to be able

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 11 February 2016 at 14:53:37 UTC, Joakim wrote: It was not always high-profile, it started off with one guy and grew big through the same decentralized process. It was fairly popular among students even back when it was not so great. This is not so atypical. Someone fills a void,

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Nick Sabalausky via Digitalmars-d
On 02/11/2016 06:53 AM, Dejan Lekic wrote: I know some will disagree with me, but I will say it anyway: IT community, especially developers, are known for poor social skills... People tend to forget that... There may be a certain *small* level of truth to that, but most of it is nothing more

Re: Just because it's a slow Thursday on this forum

2016-02-11 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 11, 2016 at 09:55:49AM -0500, Nick Sabalausky via Digitalmars-d wrote: > On 02/10/2016 02:47 PM, H. S. Teoh via Digitalmars-d wrote: > >On Wed, Feb 10, 2016 at 02:32:37PM -0500, Andrei Alexandrescu via > >Digitalmars-d wrote: > >>On 02/10/2016 02:25 PM, Nick Sabalausky wrote: > >>>I

Re: Visual studio official d support

2016-02-11 Thread Tofu Ninja via Digitalmars-d
On Tuesday, 9 February 2016 at 22:11:12 UTC, Steven Schveighoffer wrote: A while ago there was a movement to get d included officially in visual studio. Just got this email: An idea you supported has been closed. Thank you for your feedback. Message: This is a great candidate for a

[Issue 7054] std.format.formattedWrite uses code units count as width instead of characters count

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7054 --- Comment #7 from hst...@quickfur.ath.cx --- Argh. Welcome to Unicode, where exceptions *are* the norm, and no simple algorithm is simple in practice. And this is a double-argh, because when it comes to double-width characters, whether or not the

Re: Berlin D Meetup February 2016

2016-02-11 Thread Dicebot via Digitalmars-d-announce
On 02/12/2016 12:35 AM, extrawurst wrote: > I will try to come, I just need to find a place to stay there. > > --Stephan Looking forward to seeing you there!

[Issue 15663] writefln("%#o", 0) should yield "0" instead of "00"

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15663 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --

[Issue 15669] Wrong line number in error message

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15669 --- Comment #2 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/0a496e2f825c02aef9c358dcc4fcce8af77ba9b3 fix Issue 15669 - Wrong

Re: Procedural drawing using ndslice

2016-02-11 Thread John Colvin via Digitalmars-d-learn
On Thursday, 11 February 2016 at 13:05:41 UTC, Claude wrote: Hello, I come from the C world and try to do some procedural terrain generation, and I thought ndslice would help me to make things look clean, but I'm very new to those semantics and I need help. Here's my problem: I have a

Re: Just because it's a slow Thursday on this forum

2016-02-11 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 11, 2016 at 03:38:42PM -0500, Nick Sabalausky via Digitalmars-d wrote: > On 02/11/2016 11:22 AM, H. S. Teoh via Digitalmars-d wrote: > > > >Fair enough. > > > >Personally, though, I find a bunch of comma-separated values very > >unhelpful. It would be much better if they were

Re: Just because it's a slow Thursday on this forum

2016-02-11 Thread Nick Sabalausky via Digitalmars-d
On 02/11/2016 11:22 AM, H. S. Teoh via Digitalmars-d wrote: Fair enough. Personally, though, I find a bunch of comma-separated values very unhelpful. It would be much better if they were labelled, e.g., if: int x, y, z; dump(x,y,z); outputs: x=1, y=2, z=3 it would

Re: Just because it's a slow Thursday on this forum

2016-02-11 Thread John Colvin via Digitalmars-d
On Thursday, 11 February 2016 at 21:38:42 UTC, H. S. Teoh wrote: On Thu, Feb 11, 2016 at 03:38:42PM -0500, Nick Sabalausky via Digitalmars-d wrote: On 02/11/2016 11:22 AM, H. S. Teoh via Digitalmars-d wrote: >[...] My understanding is that's the whole point of the "dump" function being

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread w0rp via Digitalmars-d
His article is way too long. It seems like an article about whining about how people whine too much.

Re: Berlin D Meetup February 2016

2016-02-11 Thread extrawurst via Digitalmars-d-announce
On Thursday, 11 February 2016 at 17:09:40 UTC, Ben Palmer wrote: Hi All, The February Berlin D Meetup will be happening at 19:30 on Friday the 19th at Berlin Co-Op (http://co-up.de/) on the fifth floor. This time Stefan Brus will be doing a talk titled "Intro to Game Development in D". The

[Issue 12680] isIterable fails for types with disabled postblit

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12680 --- Comment #3 from Lars T. Kyllingstad --- Ah, sorry, I didn't notice the brackets. Well, then I guess it's more a question of how you define "a foreach loop with a single loop variable of automatically inferred type", as

Re: Babylon JS-like game engine or complete port

2016-02-11 Thread Guillaume Piolat via Digitalmars-d
On Thursday, 11 February 2016 at 18:42:41 UTC, karabuta wrote: On Thursday, 11 February 2016 at 10:25:00 UTC, Guillaume Piolat wrote: On Wednesday, 10 February 2016 at 20:07:24 UTC, karabuta wrote: [...] Javascript world beat us easily in things being easy. The current D offering is not as

[Issue 15656] ddox should recognize special meaning of '_' in ddoc, else may generate broken links.

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15656 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx

[Issue 15638] no common type for const classes

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15638 --- Comment #2 from hst...@quickfur.ath.cx --- (Or exposed a latent bug in the common type code?) --

Re: Just because it's a slow Thursday on this forum

2016-02-11 Thread Nick Sabalausky via Digitalmars-d
On 02/11/2016 04:44 PM, John Colvin wrote: On Thursday, 11 February 2016 at 21:38:42 UTC, H. S. Teoh wrote: On Thu, Feb 11, 2016 at 03:38:42PM -0500, Nick Sabalausky via Digitalmars-d wrote: On 02/11/2016 11:22 AM, H. S. Teoh via Digitalmars-d wrote: >[...] My understanding is that's the

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Nick Sabalausky via Digitalmars-d
On 02/11/2016 04:54 PM, w0rp wrote: His article is way too long. It seems like an article about whining about how people whine too much. It's metawhine! :)

[Issue 15663] writefln("%#o", 0) should yield "0" instead of "00"

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15663 hst...@quickfur.ath.cx changed: What|Removed |Added Keywords||pull --- Comment #1 from

[Issue 15638] no common type for const classes

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15638 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment

Re: Procedural drawing using ndslice

2016-02-11 Thread Ali Çehreli via Digitalmars-d-learn
On 02/11/2016 05:05 AM, Claude wrote: Hello, I come from the C world and try to do some procedural terrain generation, and I thought ndslice would help me to make things look clean, but I'm very new to those semantics and I need help. Here's my problem: I have a C-style rough implementation of

Re: Berlin D Meetup February 2016

2016-02-11 Thread Stefan Koch via Digitalmars-d-announce
I'll also try to be there.

Re: D's equivalent to C++'s std::move?

2016-02-11 Thread Atila Neves via Digitalmars-d
On Thursday, 11 February 2016 at 14:38:24 UTC, Ola Fosheim Grøstad wrote: On Thursday, 11 February 2016 at 14:25:39 UTC, Atila Neves wrote: D has move semantics. Deep copies are done with post-blit. Fair enough if you just: auto foo = bar; Then it's a shallow copy. The only difference to a

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 11 February 2016 at 16:39:14 UTC, Joakim wrote: I wouldn't call Swift specialized, maybe only because it only runs on OS X, iOS and linux right now. So Linus would predict that Go and Rust may do well now because they're specialized, but will be hit hard if their niche collapses

Re: DMD compilation speed

2016-02-11 Thread Chris Wright via Digitalmars-d
On Thu, 11 Feb 2016 09:04:22 +, Ola Fosheim Grøstad wrote: > On Thursday, 11 February 2016 at 08:57:22 UTC, Andrea Fontana wrote: >> Zooming on graph you can see that the improvement was due to this: >> https://github.com/D-Programming-Language/dmd/pull/4923 > > But why? Is it using the GC,

Berlin D Meetup February 2016

2016-02-11 Thread Ben Palmer via Digitalmars-d-announce
Hi All, The February Berlin D Meetup will be happening at 19:30 on Friday the 19th at Berlin Co-Op (http://co-up.de/) on the fifth floor. This time Stefan Brus will be doing a talk titled "Intro to Game Development in D". The talk is intended to get you started with game development in D.

Re: Wannabe contributor frustrations

2016-02-11 Thread Márcio Martins via Digitalmars-d
On Thursday, 11 February 2016 at 14:19:13 UTC, Andrei Alexandrescu wrote: On 2/10/16 6:30 PM, Márcio Martins wrote: I decided to try a couple ideas in druntime and followed this http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_dmd_from_GitHub OK, I added this section:

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Joakim via Digitalmars-d
On Thursday, 11 February 2016 at 15:31:02 UTC, Ola Fosheim Grøstad wrote: People are not looking for a general purpose language. They are looking for a solution to their particular problem area... Go Rust Swift All fairly specialized and gaining ground. I wouldn't call Swift specialized,

Re: String joining an array of structs or class instances implementing toString?

2016-02-11 Thread Meta via Digitalmars-d-learn
On Thursday, 11 February 2016 at 12:53:20 UTC, Edwin van Leeuwen wrote: I'd do it like this: import std.algorithm : map; pars.map!((part) => part.toString) // Turn them to strings .join(" ").writeln; // Join them. You can shorten this by using std.conv.to. Also keep in mind that `join` will

Re: Wannabe contributor frustrations

2016-02-11 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 11 February 2016 at 12:59:52 UTC, Vladimir Panteleev wrote: On Thursday, 11 February 2016 at 12:08:53 UTC, Márcio Martins wrote: On a separate topic: are the official DMD releases compiled with the previous version of DMD or GDC? How does that work? Yes, with a previous DMD

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Joakim via Digitalmars-d
On Thursday, 11 February 2016 at 07:32:00 UTC, Ola Fosheim Grøstad wrote: On Thursday, 11 February 2016 at 06:20:33 UTC, Joakim wrote: Eh, there were always the BSDs and essentially nobody runs GNU code today. Uhm... Many do. And beyond GNU, the GPL/LGPL are the most common licenses in

Re: OT: 'conduct unbecoming of a hacker'

2016-02-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 11 February 2016 at 09:51:16 UTC, Joakim wrote: All of which are decades-old projects from the heyday of the GPL, when many mistakenly attributed linux's success to the GPL and copied its license blindly. Yes, it does take decades to create complicated productivity apps. The

Re: How to allocate arrays of objects?

2016-02-11 Thread Meta via Digitalmars-d-learn
On Thursday, 11 February 2016 at 09:02:30 UTC, Jacob Carlborg wrote: On 2016-02-11 05:34, Adam D. Ruppe wrote: On Thursday, 11 February 2016 at 04:31:12 UTC, cy wrote: as[0..$] = new A(); before accessing .stuff on as[0]. Loop through it and allocate each one rather than trying to do it in

  1   2   >