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

2016-02-10 Thread Suliman via Digitalmars-d
On Tuesday, 9 February 2016 at 18:02:50 UTC, Andrei Alexandrescu wrote: On 02/09/2016 10:34 AM, ixid wrote: On Tuesday, 9 February 2016 at 12:46:34 UTC, Jakob Ovrum wrote: I'm not a fan of non-trivial string mixins except in extenuating circumstances. This is something Steven Schveighoffer

Re: Visual studio official d support

2016-02-10 Thread bitwise via Digitalmars-d
On Wednesday, 10 February 2016 at 14:15:26 UTC, Steven Schveighoffer wrote: On 2/9/16 7:15 PM, bitwise wrote: 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

Re: code-debug 0.3.0 released (GDB for vscode)

2016-02-10 Thread Daniel Kozak via Digitalmars-d-announce
Dne 9.2.2016 v 23:31 WebFreak001 via Digitalmars-d-announce napsal(a): ext install debug How can I install it? Where I should put this command? ext install debug

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

2016-02-10 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 10 February 2016 at 14:06:02 UTC, Suliman wrote: Sorry, but where dump! function can be helpful? What's wrong with writeln? Formatting complex data automatically makes it a lot easier to see what you're getting. Makes debugging so much easier when your data is actually

Re: code-debug 0.3.0 released (GDB for vscode)

2016-02-10 Thread Daniel Kozak via Digitalmars-d-announce
On Wednesday, 10 February 2016 at 14:09:43 UTC, Daniel Kozak wrote: Dne 9.2.2016 v 23:31 WebFreak001 via Digitalmars-d-announce napsal(a): ext install debug How can I install it? Where I should put this command? ext install debug OK I found it :). I cant just put ext install debug and hit

[Issue 13501] [REG2.052] Crash with throwing in scope(failure) after throwing in scope(success)

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13501 Vladimir Panteleev changed: What|Removed |Added Keywords||spec ---

Re: Visual studio official d support

2016-02-10 Thread Steven Schveighoffer via Digitalmars-d
On 2/9/16 7:15 PM, bitwise wrote: 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

[Issue 13501] [REG2.052] Crash with throwing in scope(failure) after throwing in scope(success)

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13501 Mathias Lang changed: What|Removed |Added CC|

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

2016-02-10 Thread Daniel Kozak via Digitalmars-d
Dne 10.2.2016 v 15:06 Suliman via Digitalmars-d napsal(a): On Tuesday, 9 February 2016 at 18:02:50 UTC, Andrei Alexandrescu wrote: On 02/09/2016 10:34 AM, ixid wrote: On Tuesday, 9 February 2016 at 12:46:34 UTC, Jakob Ovrum wrote: I'm not a fan of non-trivial string mixins except in

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

2016-02-10 Thread Andrei Alexandrescu via Digitalmars-d
On 02/10/2016 09:22 AM, Daniel Kozak via Digitalmars-d wrote: It is something else. Same as php has echo and var_dump. writeln just output value of some variable, but dump will print names and values of variables, so you can see structure of your data. Oh btw one nice thing about dump would be

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread tsbockman via Digitalmars-d
On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: Can I get more opinions on increasing the logo size on the website please. See here for an example: https://github.com/D-Programming-Language/dlang.org/pull/1227 Destroy! It's too big. I like the menu bar the size it is

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread Nick Sabalausky via Digitalmars-d
On 02/09/2016 09:11 PM, Laeeth Isharc wrote: My email is inevitably met not with acceptance, nor with constructive discussion, but with some attempt to derail the entire enterprise. Here are some real examples, paraphrased by yours truly: I think it should be done some other way, even

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Eugene Wissner via Digitalmars-d
On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: Can I get more opinions on increasing the logo size on the website please. See here for an example: https://github.com/D-Programming-Language/dlang.org/pull/1227 Destroy! I like the big one, it looks more solid. But I

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread H. S. Teoh via Digitalmars-d
On Wed, Feb 10, 2016 at 12:17:40PM -0500, Nick Sabalausky via Digitalmars-d wrote: > On 02/09/2016 09:11 PM, Laeeth Isharc wrote: > > > >My email is inevitably met not with acceptance, nor with constructive > >discussion, but with some attempt to derail the entire enterprise. > >Here are some

Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Gary Willoughby via Digitalmars-d
Can I get more opinions on increasing the logo size on the website please. See here for an example: https://github.com/D-Programming-Language/dlang.org/pull/1227 Destroy!

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: Can I get more opinions on increasing the logo size on the website please. See here for an example: https://github.com/D-Programming-Language/dlang.org/pull/1227 It takes up a bit much vertical space. If you guys are

[Issue 15666] Grammar does not allow member function attributes on static constructors

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15666 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 10 February 2016 at 18:09:57 UTC, Joakim wrote: Pretty funny that he chose Stallman as his example of a guy who gets stuff done, whose Hurd microkernel never actually got done, :) though certainly ambitious, so Stallman would never have had a FOSS OS on which to run his GNU tools

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread Joakim via Digitalmars-d
On Wednesday, 10 February 2016 at 18:31:22 UTC, Nick Sabalausky wrote: On 02/10/2016 01:09 PM, Joakim wrote: Pretty funny that he chose Stallman as his example of a guy who gets stuff done, whose Hurd microkernel never actually got done, :) though certainly ambitious, so Stallman would never

Re: Sublime Text 3 Gets Better D Support

2016-02-10 Thread sigod via Digitalmars-d-announce
On Tuesday, 9 February 2016 at 21:08:37 UTC, Brian Schott wrote: On Wednesday, 27 January 2016 at 17:34:35 UTC, Jack Stouffer wrote: Sublime Text is a very popular text editor, and for a while now it's had marginal D support. What has changed recently is updated syntax highlighting to support

[Issue 10233] [Tracker] Grammar issues

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233 Issue 10233 depends on issue 15666, which changed state. Issue 15666 Summary: Grammar does not allow member function attributes on static constructors https://issues.dlang.org/show_bug.cgi?id=15666 What|Removed

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread Nick Sabalausky via Digitalmars-d
On 02/09/2016 09:11 PM, Laeeth Isharc wrote: http://sealedabstract.com/rants/conduct-unbecoming-of-a-hacker/ (His particular suggestion about accept patches by default is not why I post this). Just read the rest of the article. That's a REALLY good article. Especially these bits:

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

2016-02-10 Thread Andrei Alexandrescu via Digitalmars-d
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 substantiate? -- Andrei

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread Joakim via Digitalmars-d
On Wednesday, 10 February 2016 at 02:11:25 UTC, Laeeth Isharc wrote: http://sealedabstract.com/rants/conduct-unbecoming-of-a-hacker/ (His particular suggestion about accept patches by default is not why I post this). ' We’re all talk [...] Pretty funny that he chose Stallman as his example

Re: reduce -> fold?

2016-02-10 Thread Jakob Ovrum via Digitalmars-d
On Saturday, 30 January 2016 at 18:08:00 UTC, David Nadlinger wrote: Currying is turning (A, B, C) -> D into A -> (B -> (C -> D)), i.e. a function with multiple arguments into a sequence of functions that each take a single argument to apply each. I think I've implemented something like that

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

2016-02-10 Thread H. S. Teoh via Digitalmars-d
On Wed, Feb 10, 2016 at 06:51:21PM +, w0rp via Digitalmars-d wrote: > I wonder if the addition of another function for printing will confuse > some new users. Currently I don't see much value in it to justify the costs. BUT, there might be a case for it if: 1) It's clear that it's only

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Wyatt via Digitalmars-d
On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: Can I get more opinions on increasing the logo size on the website please. See here for an example: https://github.com/D-Programming-Language/dlang.org/pull/1227 Destroy! I agree it's too tall in that PR. Maybe go for a

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

2016-02-10 Thread Andrei Alexandrescu via Digitalmars-d
On 02/10/2016 01:51 PM, w0rp wrote: I wonder if the addition of another function for printing will confuse some new users. In my experience: * two names for the same exact thing => annoyance (not only in D, e.g. dual use of "class" and "typename" in C++) * two different names that do the

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

2016-02-10 Thread Andrei Alexandrescu via Digitalmars-d
On 02/10/2016 02:08 PM, H. S. Teoh via Digitalmars-d wrote: 1) It's clear that it's only intended for debugging (i.e., the name should make it clear it isn't for general output, so `dump` rather than `print` would be preferable); Those would be two different functions. -- Andrei

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread Nick Sabalausky via Digitalmars-d
On 02/10/2016 01:09 PM, Joakim wrote: Pretty funny that he chose Stallman as his example of a guy who gets stuff done, whose Hurd microkernel never actually got done, :) though certainly ambitious, so Stallman would never have had a FOSS OS on which to run his GNU tools if it weren't for Linus.

[Issue 15666] Grammar does not allow member function attributes on static constructors

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15666 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/2bff38b6d910a16d5aee8f2adfbfd73146673ffa Issue 15666

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

2016-02-10 Thread w0rp via Digitalmars-d
I wonder if the addition of another function for printing will confuse some new users.

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

2016-02-10 Thread jmh530 via Digitalmars-d
On Wednesday, 10 February 2016 at 18:51:21 UTC, w0rp wrote: I wonder if the addition of another function for printing will confuse some new users. I'm a relatively new D user. For the most part, all I use is writeln because that's what was used in the Hello World examples. I only bother

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

2016-02-10 Thread Nick Sabalausky via Digitalmars-d
On 02/10/2016 02:08 PM, H. S. Teoh via Digitalmars-d wrote: On Wed, Feb 10, 2016 at 06:51:21PM +, w0rp via Digitalmars-d wrote: I wonder if the addition of another function for printing will confuse some new users. I can't imagine it would in any significant way. Certainly not if it's

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread karabuta via Digitalmars-d
On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: Can I get more opinions on increasing the logo size on the website please. See here for an example: https://github.com/D-Programming-Language/dlang.org/pull/1227 Destroy! Making it big is more like a flat design, which

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

2016-02-10 Thread Andre Polykanine via Digitalmars-d-announce
JvDda> https://habrahabr.ru/post/276227/ It states that it actually is the translation of this one: http://dlang.org/ctod.html :) But thanks anyway! A ndre.

[Issue 15670] New: std.variant.Variant does not allow classes derived from templated classes

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15670 Issue ID: 15670 Summary: std.variant.Variant does not allow classes derived from templated classes Product: D Version: D2 Hardware: All OS: All

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

2016-02-10 Thread H. S. Teoh via Digitalmars-d
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 > substantiate? -- Andrei Sorry, I meant technical debt.

Re: Support for D in VSCode

2016-02-10 Thread WebFreak001 via Digitalmars-d
On Tuesday, 9 February 2016 at 23:17:48 UTC, bitwise wrote: Also, can you create an install-wizard or zip/package with the extension and all dependencies? I don't really have time to figure out how to install everything separately. Made a wizard which automatically clones, builds and copies

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 10 February 2016 at 20:25:05 UTC, anonymous wrote: The exact text on the site of the original author [1] is COPYRIGHT © SUKIMASHITA 2006 ALL FREE TO USE. ONLY SELLING THESE IMAGES IS PROHIBITED. I'd understand that to allow derivative works, but disallow selling them.

Re: why mkdir can't create tree of dirs?

2016-02-10 Thread Suliman via Digitalmars-d-learn
On Tuesday, 9 February 2016 at 23:23:10 UTC, Jonathan M Davis wrote: On Tuesday, February 09, 2016 20:20:59 Suliman via Digitalmars-d-learn wrote: It's look like that I can only create one nesting level sub folder, for example there is exists dir: D:\foo I can't create dir D:\foo\bar\baz I can

Re: Safe cast of arrays

2016-02-10 Thread Chris Wright via Digitalmars-d
On Wed, 10 Feb 2016 08:49:21 +, w0rp wrote: > I think this should be addressed, as if you can't cast between pointer > types, you shouldn't be allowed to cast between slice types either. > Because slices are just a pointer plus a length. Another way to > demonstrate the problem is like this.

Babylon JS-like game engine or complete port

2016-02-10 Thread karabuta via Digitalmars-d
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 does give me the power and performance I need since it is based

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread anonymous via Digitalmars-d
On 10.02.2016 17:49, Ola Fosheim Grøstad wrote: If you guys are going to create a new logo based on the old one, you probably should clear it with the original creator. On his website he has give us use rights for non-commercial use, but not rights to create derivative works... The new logo is

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

2016-02-10 Thread Daniel Kozak via Digitalmars-d-announce
It is sad we still have official pages with something like this :( The D Way The length of an array is accessible through the property "length". int array[17]; foreach (i; 0 .. array.length) func(array[i]); or even better: int array[17]; foreach (int value; array)

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

2016-02-10 Thread w0rp via Digitalmars-d
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 to rip the guts out of objects and put them into other objects. D doesn't have a distinct r-value reference type, and postblit is

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 10 February 2016 at 20:57:41 UTC, Bubbasaur wrote: Even with music, you can make "remix" and distribute for free legally, but of course you can't sell. No. You cannot make a remix or use samples without a license.

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Brad Anderson via Digitalmars-d
On Wednesday, 10 February 2016 at 20:49:02 UTC, Bubbasaur wrote: On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: Can I get more opinions on increasing the logo size on the website please. See here for an example:

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Bubbasaur via Digitalmars-d
On Wednesday, 10 February 2016 at 21:00:10 UTC, Brad Anderson wrote: https://dlang.org :P (the forums just haven't updated yet) Ohh. Yes that's better. :) Bubba.

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Bubbasaur via Digitalmars-d
On Wednesday, 10 February 2016 at 21:01:11 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 10 February 2016 at 20:57:41 UTC, Bubbasaur wrote: Even with music, you can make "remix" and distribute for free legally, but of course you can't sell. No. You cannot make a remix or use samples without a

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 10 February 2016 at 19:44:50 UTC, Joakim wrote: Perhaps historically as a guinea pig, but its use is waning for more permissive licenses, which have been around for decades too. Well, they had been around for things like X11, which had a commercial consortium driving the

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

2016-02-10 Thread w0rp via Digitalmars-d
On Wednesday, 10 February 2016 at 19:30:26 UTC, Andrei Alexandrescu wrote: On 02/10/2016 01:51 PM, w0rp wrote: I wonder if the addition of another function for printing will confuse some new users. In my experience: * two names for the same exact thing => annoyance (not only in D, e.g.

[Issue 12680] isIterable fails for types with disabled postblit

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12680 Lars T. Kyllingstad changed: What|Removed |Added Status|NEW |RESOLVED

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Bubbasaur via Digitalmars-d
On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: Can I get more opinions on increasing the logo size on the website please. See here for an example: https://github.com/D-Programming-Language/dlang.org/pull/1227 Destroy! I'd prefer this version but smaller. The current

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Bubbasaur via Digitalmars-d
On Wednesday, 10 February 2016 at 20:25:05 UTC, anonymous wrote: ... COPYRIGHT © SUKIMASHITA 2006 ALL FREE TO USE. ONLY SELLING THESE IMAGES IS PROHIBITED. I'd understand that to allow derivative works, but disallow selling them. I'm not a lawyer, though. ... You're right, he would

[Issue 12893] Cannot create a SortedRange from inout array

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12893 Lars T. Kyllingstad changed: What|Removed |Added Keywords||spec

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

2016-02-10 Thread Ola Fosheim Grøstad via Digitalmars-d
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 to rip the guts out of objects and put them into other objects. Well. In

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread deadalnix via Digitalmars-d
On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: Can I get more opinions on increasing the logo size on the website please. See here for an example: https://github.com/D-Programming-Language/dlang.org/pull/1227 Destroy! It is better on large screen, worse on small

Re: Safe cast of arrays

2016-02-10 Thread Anon via Digitalmars-d
On Wednesday, 10 February 2016 at 20:14:29 UTC, Chris Wright wrote: Show a way to read or write outside allocated memory with this, or to cause a segmentation fault, and that will require a change in @safe. You're looking for something else, data safety rather than memory safety. You want to

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread CraigDillabaugh via Digitalmars-d
On Wednesday, 10 February 2016 at 21:37:29 UTC, CraigDillabaugh wrote: On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: clip Speaking of the logo, does anyone know where I can get my hands on a 256x256 PNG version of the logo (or at least larger than the website one).

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread anonymous via Digitalmars-d
On 10.02.2016 22:37, CraigDillabaugh wrote: I know I can take the logo from the website and blow it up, but it is pretty small and enlarging it so much will result in a pretty awful looking image. It's an SVG file, so enlarging should work beautifully. If you're having trouble with it, I can

[Issue 14478] isInputRange failed to recognize some ranges

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14478 Lars T. Kyllingstad changed: What|Removed |Added CC|

Re: code-debug 0.3.0 released (GDB for vscode)

2016-02-10 Thread Joel via Digitalmars-d-announce
On Wednesday, 10 February 2016 at 13:04:43 UTC, WebFreak001 wrote: On Wednesday, 10 February 2016 at 06:51:43 UTC, Joel wrote: Thanks Mike. But now what? when you have installed the extension, you can create the debug config as described in the README I've looked at the read me, but it

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Craig Dillabaugh via Digitalmars-d
On Wednesday, 10 February 2016 at 21:44:54 UTC, anonymous wrote: On 10.02.2016 22:37, CraigDillabaugh wrote: I know I can take the logo from the website and blow it up, but it is pretty small and enlarging it so much will result in a pretty awful looking image. It's an SVG file, so

[Issue 15671] New: The compiler should take into account inline pragmas when inlining

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15671 Issue ID: 15671 Summary: The compiler should take into account inline pragmas when inlining Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 15672] New: Casting from void[] to T[] is erroneously considered @safe

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15672 Issue ID: 15672 Summary: Casting from void[] to T[] is erroneously considered @safe Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 10 February 2016 at 21:20:35 UTC, Bubbasaur wrote: On Wednesday, 10 February 2016 at 21:01:11 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 10 February 2016 at 20:57:41 UTC, Bubbasaur wrote: Even with music, you can make "remix" and distribute for free legally, but of course you

Re: Safe cast of arrays

2016-02-10 Thread Iakh via Digitalmars-d
On Wednesday, 10 February 2016 at 20:14:29 UTC, Chris Wright wrote: @safe protects you from segmentation faults and reading and writing outside an allocated segment of memory. With array casts, @safety is assured Yes, @safe protects from direct cast to/from ref types but there still is a

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 10 February 2016 at 21:31:39 UTC, anonymous wrote: On 10.02.2016 21:38, Ola Fosheim Grøstad wrote: Ask for a Creative Commons license? I've shot him an email. Great, maybe also mention that it would be nice if it could be used on T-shirts and book covers?

Re: Safe cast of arrays

2016-02-10 Thread Chris Wright via Digitalmars-d
On Wed, 10 Feb 2016 21:40:21 +, Iakh wrote: > On Wednesday, 10 February 2016 at 20:14:29 UTC, Chris Wright wrote: >> @safe protects you from segmentation faults and reading and writing >> outside an allocated segment of memory. With array casts, @safety is >> assured > > Yes, @safe protects

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread anonymous via Digitalmars-d
On 10.02.2016 21:38, Ola Fosheim Grøstad wrote: Ask for a Creative Commons license? I've shot him an email.

Re: Can I get more opinions on increasing the logo size on the site please

2016-02-10 Thread CraigDillabaugh via Digitalmars-d
On Wednesday, 10 February 2016 at 16:26:33 UTC, Gary Willoughby wrote: Can I get more opinions on increasing the logo size on the website please. See here for an example: https://github.com/D-Programming-Language/dlang.org/pull/1227 Destroy! Speaking of the logo, does anyone know where I

Re: Safe cast of arrays

2016-02-10 Thread Chris Wright via Digitalmars-d
On Wed, 10 Feb 2016 22:49:33 +, Chris Wright wrote: > It should always be safe to cast from void[] to immutable(T)[] where T > doesn't contain pointers. > > I didn't see a bug for this, so I'm filing it. Filed https://issues.dlang.org/show_bug.cgi?id=15672

Re: Safe cast of arrays

2016-02-10 Thread w0rp via Digitalmars-d
Yeah, I think it should only allow the equivalent of a dynamic_cast for types in @safe code, and not allow the equivalent of a reinterpret_cast, for T, T*, or T[].

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

2016-02-10 Thread Matt Elkins via Digitalmars-d
On Tuesday, 9 February 2016 at 13:45:13 UTC, Hara Kenji wrote: On Tuesday, 9 February 2016 at 00:25:33 UTC, Matt Elkins wrote: On Thursday, 4 February 2016 at 02:33:06 UTC, Andrei Alexandrescu wrote: Got it, thanks. That's a bug in the implementation, no two ways about it. No copy should occur

Re: Wannabe contributor frustrations

2016-02-10 Thread tsbockman via Digitalmars-d
On Wednesday, 10 February 2016 at 23:30:03 UTC, Márcio Martins wrote: dmd should have a verbose mode where it outputs what it's trying to do and with which settings, so I could have a chance at seeing what I have messed up, and what linker command it is invoking, ... as it is, I felt totally

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

2016-02-10 Thread Matt Elkins via Digitalmars-d
On Wednesday, 10 February 2016 at 20:42:29 UTC, w0rp wrote: The only remaining time you need to avoid copies is when you take something already on the stack, and then put it into some other object, into some collection, etc. That's the other power that std::move affords you. The move functions

Re: Wannabe contributor frustrations

2016-02-10 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 10 February 2016 at 23:30:03 UTC, Márcio Martins wrote: I did my changes to druntime, rebuilt with make -f posix.mak You really need to build all three together to see changes effectively... IMO it is a denial of reality to put them in three separate repositories since they

[Issue 5351] Add template mixin for Range Primitives using random access

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5351 --- Comment #2 from Jesse Phillips --- (In reply to Infiltrator from comment #1) > Are you suggesting that this boilerplate mixin should be added to phobos? > It seems too inflexible for general use. Yes that is what's

Re: code-debug 0.3.0 released (GDB for vscode)

2016-02-10 Thread WebFreak001 via Digitalmars-d-announce
On Wednesday, 10 February 2016 at 21:57:49 UTC, Joel wrote: I get this with the debug gear button: { "version": "0.2.0", "configurations": [ { "name": "Debug", "type": "gdb", "request":

Re: Is this nogc? dmd and gdc disagree

2016-02-10 Thread tsbockman via Digitalmars-d-learn
On Thursday, 11 February 2016 at 03:09:51 UTC, rcorre wrote: GDC claims that byKeyValue() allocates a closure, but DMD is just fine with me calling it @nogc. I'm inclined to agree with GDC here, unless DMD is doing some magic so that actually doesn't allocate a closure. I cannot reproduce

Re: Safe cast of arrays

2016-02-10 Thread Chris Wright via Digitalmars-d
On Wed, 10 Feb 2016 22:39:20 -0500, Steven Schveighoffer wrote: > I think casting a mutable array to any array type is a recipe for memory > issues, no matter what is in the elements. Remember that you are casting > a reference that still has a mutable pointer to it. > > @safe should start from

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 10 February 2016 at 17:17:40 UTC, Nick Sabalausky wrote: Unfortunately, that sounds very similar to experiences I've had here in D-land :( Gets very frustrating. Yes - one trigger for posting it was the tone of some messages in some recent forum discussions (although it's really

Re: How to allocate arrays of objects?

2016-02-10 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 11 February 2016 at 04:07:18 UTC, cy wrote: The following program segfaults for me, compiling it with dmdv2.070 as well as the latest git. I must be doing it wrong. There's a way to specify class construction, or emplace, or something. But I can't find it! How do I deal with

Re: DMD compilation speed

2016-02-10 Thread Joakim 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

DMD compilation speed

2016-02-10 Thread Andrew Godfrey via Digitalmars-d
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 that DMD is now selfhosting, and I know there's a tradeoff between

[Issue 15669] Wrong line number in error message

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15669 Kenji Hara changed: What|Removed |Added Keywords||diagnostic, pull ---

[Issue 15664] [REG2.064] incorrect initialisation of member of an immutable struct

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15664 Kenji Hara changed: What|Removed |Added Keywords||pull --- Comment #2 from

Re: Wannabe contributor frustrations

2016-02-10 Thread Jonathan M Davis via Digitalmars-d
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 strongly coupled in practice - their makefiles reference each other!

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread Joakim via Digitalmars-d
On Wednesday, 10 February 2016 at 23:55:17 UTC, deadalnix wrote: Also because context switching got from a handful of cycle at the time to about 1000 cycles on modern CPU, making the idea of microkernel somewhat less attractive. But saying Stallman released nothing is unfair. If we can

Re: How to allocate arrays of objects?

2016-02-10 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 11 February 2016 at 04:31:12 UTC, cy wrote: Oh, I get it. `as` is an array of 2 pointers to A objects, both pointers set to null. So I need to say like: as[0..$] = new A(); before accessing .stuff on as[0]. Pedantically, no. It's an array of two class references. I don't

Re: Wannabe contributor frustrations

2016-02-10 Thread Walter Bright via Digitalmars-d
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 actually. These are opportunities to improve things. If you could issue PRs to improve the documentation at the pain points,

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread tsbockman via Digitalmars-d
On Thursday, 11 February 2016 at 04:50:04 UTC, Laeeth Isharc wrote: For the most difficult/contentious issues, writing a DIP is just another form of arguing. Well writing code might be better, but writing a DIP is a superior form of arguing to just plain grumbling as its more constructive.

Re: Wannabe contributor frustrations

2016-02-10 Thread Walter Bright via Digitalmars-d
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 actually. "Use the Source, Luke" -- Unix Documentation

Re: OT: 'conduct unbecoming of a hacker'

2016-02-10 Thread tsbockman via Digitalmars-d
On Thursday, 11 February 2016 at 06:20:33 UTC, Joakim wrote: On Thursday, 11 February 2016 at 05:31:54 UTC, tsbockman wrote: As of today, the "Study" group for safe reference-counting doesn't appear to be going much of anywhere, because Walter and Andrei have rejected the DIP69 approach

[Issue 15664] [REG2.064] incorrect initialisation of member of an immutable struct

2016-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15664 Kenji Hara changed: What|Removed |Added Hardware|x86_64 |All

Re: Wannabe contributor frustrations

2016-02-10 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 10 February 2016 at 23:30:03 UTC, 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

Re: Things that keep D from evolving?

2016-02-10 Thread tsbockman via Digitalmars-d-learn
On Thursday, 11 February 2016 at 04:51:39 UTC, Matt Elkins wrote: - Syntactic sugars (associtive arrays, powerful foreach, slices...) I'm still adjusting to the idea of AAs as part of the language rather than library. Not sure I like it, but on the other hand it doesn't really hurt. The

Re: Odd Associative Array Reference Behavior

2016-02-10 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/10/16 10:10 PM, Matt Elkins wrote: Consider the following definition of Foo and an accompanying unittest: [code] struct Foo { @property int[int] aa() {return m_aa;} @property ref int[int] aaRef() {return m_aa;} int[int] m_aa; } unittest { Foo foo; assert(5 !in

Re: Things that keep D from evolving?

2016-02-10 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 10 February 2016 at 20:21:22 UTC, Chris Wright wrote: On Wed, 10 Feb 2016 08:57:51 +, thedeemon wrote: Currently (at least last time I checked) GC pauses the world, then does all the marking in one thread, then all the sweeping. Right. We can do the marking in several

  1   2   >