[Issue 16488] [spec][optimization] broadcast scalar to simd vector

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16488 --- Comment #1 from Илья Ярошенко --- Related issue: https://issues.dlang.org/show_bug.cgi?id=16489 --

[Issue 16489] New: [backend][optimizaton][registers] DMD is 10-20 times slower for GLAS

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16489 Issue ID: 16489 Summary: [backend][optimizaton][registers] DMD is 10-20 times slower for GLAS Product: D Version: D2 Hardware: All OS: All Status:

Re: @property Incorrectly Implemented?

2016-09-12 Thread Kagamin via Digitalmars-d
On Sunday, 11 September 2016 at 12:02:29 UTC, Ethan Watson wrote: But what if our @property function increments another variable inside a class whenever you access it? That's pretty dangerous if you start treating the property as an actual type instead of a function/delegate. You mean your

Re: @property Incorrectly Implemented?

2016-09-12 Thread Ethan Watson via Digitalmars-d
On Monday, 12 September 2016 at 09:25:40 UTC, Kagamin wrote: You mean your serialization library will break if @property changes behavior? Any serialisation library can break if a property is indistinguishable from an ordinary type, as a property is explicitly code that returns a value and

Re: Mysql-native with LAMPP

2016-09-12 Thread wobbles via Digitalmars-d-learn
On Monday, 12 September 2016 at 05:31:46 UTC, Geert wrote: Hi all! I tried the client driver for MySQL/MariaDB "mysql-native". https://github.com/mysql-d/mysql-native Everything works well with an individually installed version of MySql. But I would like to know if there is a way to make D

[Issue 16487] Add function to obtain the available disk space

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16487 --- Comment #1 from Sobirari Muhomori --- NTFS supports symbolic links too, so GetDiskFreeSpaceExW should receive the folder path because it can reside on a different partition than the disk it's accessed through. --

Re: DlangUI 0.9.0: Console backend added

2016-09-12 Thread Rory McGuire via Digitalmars-d-announce
On Fri, Sep 9, 2016 at 2:20 PM, Vadim Lopatin via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Friday, 9 September 2016 at 11:56:11 UTC, Adam D. Ruppe wrote: > >> On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote: >> >>> Now it's possible to build

Re: colour lib needs reviewers

2016-09-12 Thread Manu via Digitalmars-d
I thought about it, but it added (even more) complexity, and I'm not really sure it's the MO of a color lib to worry about the endian-ness of storage. I could support "_le"/"_be" suffix on the PackedRGB format string, but then you have to also specify the word size, ie, is the packed color 32bit

Re: colour lib needs reviewers

2016-09-12 Thread Ilya Yaroshenko via Digitalmars-d
On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. [...] Looks great! 1. packedrgb has not enough docs to understand what it is. 2. colorFromString should have scope argument. - Ilya

Re: Compiling vibe.d application for Amazon ec2 instance

2016-09-12 Thread wobbles via Digitalmars-d-learn
On Sunday, 11 September 2016 at 23:12:15 UTC, crimaniak wrote: Hi all! I made vibe-d application, and client give me already taken hosting for it on Amazon aws ec2, uname -a: Linux ip-xxx-xx-xx-xx 4.4.11-23.53.amzn1.x86_64 #1 SMP Wed Jun 1 22:22:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Re: DlangUI 0.9.0: Console backend added

2016-09-12 Thread Vadim Lopatin via Digitalmars-d-announce
On Monday, 12 September 2016 at 08:15:57 UTC, Steve Biedermann wrote: On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote: Now it's possible to build DlangUI apps to run in console (Linux, Windows). When DlangUI is built with version=USE_CONSOLE (dub subconfiguration "console" for

Re: colour lib needs reviewers

2016-09-12 Thread Basile B. via Digitalmars-d
On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. I'm not sure what else should be in the scope of this lib. PR: https://github.com/dlang/phobos/pull/2845 dub:

[Issue 16461] Using the fully qualified type of an object within its own scope causes an error

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16461 --- Comment #2 from Ethan Watson --- Just tested on 2.071.1. Error as described does not occur any more. There is, however, still a forward referencing error somewhere as the code that triggered the bug originally is still not

Re: Beta D 2.071.2-b4

2016-09-12 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 12 September 2016 at 08:01:00 UTC, Johan Engelen wrote: http://dlang.org/changelog/2.071.2.html I think the changelog has not been updated yet? The PR is already merged. Anything wrong with the auto-deploy of dlang.org? https://github.com/dlang/dlang.org/pull/1471

[Issue 15071] filenames and module names with case-insensitive HFS+

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15071 --- Comment #10 from ag0ae...@gmail.com --- (In reply to Steve Biedermann from comment #9) > But then maybe there is something wrong with the file lookup from dub. > (Wrong case = link error, correct case = success) I don't know how dub works

[Issue 16488] New: [spec][optimization] broadcast scalar to simd vector

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16488 Issue ID: 16488 Summary: [spec][optimization] broadcast scalar to simd vector Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major

[Issue 9910] Scalar op vector is broken.

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9910 Илья Ярошенко changed: What|Removed |Added CC|

Re: cloning arrays

2016-09-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, September 12, 2016 07:56:26 Russel Winder via Digitalmars-d-learn wrote: > On Sat, 2016-09-10 at 15:54 -0700, Jonathan M Davis via Digitalmars-d- > > learn wrote: > > […] > > > > dup creates an array with mutable elements that are copies of what > > was in > > the original array. How

[Issue 15071] filenames and module names with case-insensitive HFS+

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15071 --- Comment #8 from ag0ae...@gmail.com --- (In reply to Steve Biedermann from comment #7) > main.d: > import Bug; [...] > bug.d: [...] > compiled with: > dmd main.d You have to compile with `dmd main.d bug.d` to see the issue. With just `dmd

Re: Virtual Methods hurting performance in the DMD frontend

2016-09-12 Thread Stefan Koch via Digitalmars-d
On Sunday, 11 September 2016 at 21:48:56 UTC, Stefan Koch wrote: Those are indirect class I meant indirect calls! @Jacob Yes that is my indented solution. Having a type-field in root-object.

Re: Beta D 2.071.2-b4

2016-09-12 Thread Johan Engelen via Digitalmars-d-announce
On Monday, 12 September 2016 at 07:47:19 UTC, Martin Nowak wrote: Fourth beta for the 2.071.2 release. This comes with a different fix for Issue 15907 than 2.071.2-b3. http://dlang.org/changelog/2.071.2.html I think the changelog has not been updated yet?

Re: Get all files imported by a D source file

2016-09-12 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-09-09 18:10, Yuxuan Shui wrote: Also the output format seems to change between versions (or between compilers, I don't know). Because dmd 2.071 prefix lines with "depsImport", while ldc (based on dmd 2.070.2) doesn't. The -deps and -deps= will give you different output. See "dmd

[Issue 15071] filenames and module names with case-insensitive HFS+

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15071 Steve Biedermann changed: What|Removed |Added CC|

Re: cloning arrays

2016-09-12 Thread ag0aep6g via Digitalmars-d-learn
On 09/12/2016 08:56 AM, Russel Winder via Digitalmars-d-learn wrote: Which raises the question of whether: x[] and x.dup have the same result. No. x[] is a nop for dynamic arrays. Only the array struct (pointer and length) gets copied, as it always does. x.dup copies the

Beta D 2.071.2-b4

2016-09-12 Thread Martin Nowak via Digitalmars-d-announce
Fourth beta for the 2.071.2 release. This comes with a different fix for Issue 15907 than 2.071.2-b3. http://dlang.org/changelog/2.071.2.html http://dlang.org/download.html#dmd_beta Please report any bugs at https://issues.dlang.org -Martin

[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 --- Comment #8 from Jacob Carlborg --- (In reply to Martin Nowak from comment #7) > We also have that issue with GCC5's C++ ABI change > (http://developers.redhat.com/blog/2015/02/05/gcc5-and-the-c11-abi/), so > detecting the actual

Re: @property Incorrectly Implemented?

2016-09-12 Thread Ethan Watson via Digitalmars-d
On Sunday, 11 September 2016 at 23:31:54 UTC, Timon Gehr wrote: His property returns by ref. Irrelevant for the implementation details of properties. Ref in that context specifies a function property that makes the property function return by ref (wrap your head around that one). That

Re: Virtual Methods hurting performance in the DMD frontend

2016-09-12 Thread Jacob Carlborg via Digitalmars-d
On 2016-09-11 23:48, Stefan Koch wrote: Hi, As you may know I am currently optimizing template-related code inside of DMD. Inside DMD code quality is quite high, there is little low hanging fruit. However there is one thing that suspiciously often shows up the on profilers display. Those are

[Issue 16243] wrong C++ argument passing with empty struct and 6 integers

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16243 --- Comment #9 from Jacob Carlborg --- (In reply to kinke from comment #4) > clang doesn't pass empty structs at all for 32-bit, while GCC does. We have > such a special case in LDC too for 32-bit OSX, where we assume clang, but > not

Re: colour lib needs reviewers

2016-09-12 Thread Guillaume Chatelet via Digitalmars-d
On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. I added packed-RGB support, including weird micro-float and shared-exponent formats. They're important for interacting with any real-time

[Issue 15071] filenames and module names with case-insensitive HFS+

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15071 --- Comment #9 from Steve Biedermann --- I see. Thanks for the clarification. But then maybe there is something wrong with the file lookup from dub. (Wrong case = link error, correct case = success) I just tried

Re: DlangUI 0.9.0: Console backend added

2016-09-12 Thread Steve Biedermann via Digitalmars-d-announce
On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote: Now it's possible to build DlangUI apps to run in console (Linux, Windows). When DlangUI is built with version=USE_CONSOLE (dub subconfiguration "console" for dlangui library) - it works in terminal. I just tried to compiel

Re: cloning arrays

2016-09-12 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2016-09-10 at 15:54 -0700, Jonathan M Davis via Digitalmars-d- learn wrote: > […] > > dup creates an array with mutable elements that are copies of what > was in > the original array. How deep a copy that is depends on the type. It > does > exactly as deep a copy as simply copying the

[Issue 16487] Add function to obtain the available disk space

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16487 --- Comment #2 from Johan Engelen --- Indeed, I misread GetDiskFreeSpaceEx's documentation. Thanks. --

Re: colour lib needs reviewers

2016-09-12 Thread Guillaume Chatelet via Digitalmars-d
On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. I added packed-RGB support, including weird micro-float and shared-exponent formats. They're important for interacting with any real-time

Re: colour lib needs reviewers

2016-09-12 Thread Guillaume Chatelet via Digitalmars-d
On Monday, 12 September 2016 at 09:09:29 UTC, Manu wrote: I thought about it, but it added (even more) complexity, and I'm not really sure it's the MO of a color lib to worry about the endian-ness of storage. I could support "_le"/"_be" suffix on the PackedRGB format string, but then you

Re: colour lib needs reviewers

2016-09-12 Thread Marco Leise via Digitalmars-d
Am Mon, 12 Sep 2016 14:14:27 +1000 schrieb Manu via Digitalmars-d : > I think I'm about as happy with my colour lib as I'm going to be. > It really needs reviews. > > I added packed-RGB support, including weird micro-float and > shared-exponent formats. > They're

Re: colour lib needs reviewers

2016-09-12 Thread Marco Leise via Digitalmars-d
Am Mon, 12 Sep 2016 11:31:13 + schrieb Guillaume Chatelet : > On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: > > I think I'm about as happy with my colour lib as I'm going to > > be. It really needs reviews. > > > > I added packed-RGB support,

[Issue 16490] New: Usage of attributes in inline asm blocks is not documented

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16490 Issue ID: 16490 Summary: Usage of attributes in inline asm blocks is not documented Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: iasm, unexpectedly slower than DMD production

2016-09-12 Thread Basile B. via Digitalmars-d-learn
On Monday, 12 September 2016 at 00:46:16 UTC, Basile B. wrote: I have this function, written in iasm: ° T foo(T)(T x, T c) if (is(T == float) || is(T == double)) { version(none) { return x*x*x - x*x*c + x*c; } else asm {

UTF8 and unary encoding

2016-09-12 Thread Andrei Alexandrescu via Digitalmars-d
While looking at https://en.wikipedia.org/wiki/Unary_coding I found that UTF8 uses unary encoding for the length of multibyte sequences. Investigating further at https://en.wikipedia.org/wiki/UTF-8 reveals that indeed "The number of high-order 1s in the leading byte of a multi-byte sequence

Re: Mysql-native with LAMPP

2016-09-12 Thread Geert via Digitalmars-d-learn
On Monday, 12 September 2016 at 09:59:30 UTC, wobbles wrote: On Monday, 12 September 2016 at 05:31:46 UTC, Geert wrote: Hi all! I tried the client driver for MySQL/MariaDB "mysql-native". https://github.com/mysql-d/mysql-native Everything works well with an individually installed version of

Re: colour lib needs reviewers

2016-09-12 Thread Manu via Digitalmars-d
On 12 September 2016 at 19:30, Basile B. via Digitalmars-d wrote: > On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: >> >> I think I'm about as happy with my colour lib as I'm going to be. It >> really needs reviews. >> >> I'm not sure what else should be in

Re: Mysql-native with LAMPP

2016-09-12 Thread Daniel Kozak via Digitalmars-d-learn
And are you sure it is using tcp4 socket on port 3306? You can use netstat -tlnp to see if is running on tcpv4 3306 Dne 12.9.2016 v 15:25 Geert via Digitalmars-d-learn napsal(a): On Monday, 12 September 2016 at 09:59:30 UTC, wobbles wrote: On Monday, 12 September 2016 at 05:31:46 UTC, Geert

Re: colour lib needs reviewers

2016-09-12 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 12 September 2016 at 15:06:29 UTC, Manu wrote: So, the main reason I wanted to push for this in phobos is because it's an enabler. Indeed. I know there's a window library that was waiting on this work to try for Phobos. Also, worth noting that the one module I import more than

Re: Mysql-native with LAMPP

2016-09-12 Thread Geert via Digitalmars-d-learn
On Monday, 12 September 2016 at 15:02:50 UTC, Martin Krejcirik wrote: # netstat -npl | grep mysql unix 2 [ ACC ] STREAM LISTENING 239449 6293/mysqld /opt/lampp/var/mysql/mysql.sock Mysql defaults to unix socket, you need to add bind-address=127.0.0.1 to my.cnf

Re: colour lib needs reviewers

2016-09-12 Thread Edwin van Leeuwen via Digitalmars-d
On Monday, 12 September 2016 at 15:06:29 UTC, Manu wrote: One of my first port-of-calls after this work would be a graph/plot library... I'd use the hell out of that. I constantly want to output data visualisations! Just for your information. ggplotd currently uses an old version of your

Re: colour lib needs reviewers

2016-09-12 Thread John Colvin via Digitalmars-d
On Monday, 12 September 2016 at 13:04:49 UTC, Manu wrote: 2. Q: is there anything to convert a color to grey scale ? This isn't a short-answer question :) .. There are many ways depending on the job. A simple way might be: L8 grey = cast(L8)RGB8(r, g, b); // L8 is luminance only,

Berlin D Meetup September 2016

2016-09-12 Thread Ben Palmer via Digitalmars-d-announce
Hi All, The September Berlin D Meetup will be happening at 20:00 on Friday the 16th of September at Berlin Co-Op (http://co-up.de/) on the fifth floor. This month we will be having an open hackathon so feel free to bring along anything you are currently working on. Sociomantic have come

Re: colour lib needs reviewers

2016-09-12 Thread Guillaume Piolat via Digitalmars-d
On Monday, 12 September 2016 at 14:12:35 UTC, Manu wrote: Note also that I didn't do any YUV formats (this case you discuss is usually related to older broadcast formats)... didn't know if they'd be particularly useful to people. At least, it's not in my initial offering. As someone who had

[Issue 16486] Compiler see template alias like a separate type in template function definition

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16486 Steven Schveighoffer changed: What|Removed |Added CC|

Re: colour lib needs reviewers

2016-09-12 Thread Guillaume Piolat via Digitalmars-d
On Monday, 12 September 2016 at 19:59:58 UTC, Edwin van Leeuwen wrote: On Monday, 12 September 2016 at 19:55:57 UTC, Guillaume Piolat wrote: - I've wanted a function like colorFromString many times. It's especially nice with the added #RGBA and #RRGGBBAA syntax that eg. SVG lacks. What

Re: Copy a struct and its context

2016-09-12 Thread Ali Çehreli via Digitalmars-d-learn
On 09/10/2016 10:44 PM, Yuxuan Shui wrote: I recently noticed nested struct capture its context by reference (which, BTW, is not mentioned at all here: https://dlang.org/spec/struct.html#nested). And bliting a struct obviously doesn't do a deep copy of its context. So my question is, is there a

Re: colour lib needs reviewers

2016-09-12 Thread Guillaume Piolat via Digitalmars-d
On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. - Manu My thoughts: - I've wanted a function like colorFromString many times. It's especially nice with the added #RGBA and #RRGGBBAA syntax

Re: Is it possible to override the behavior of a type when used in a conditional expression?

2016-09-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/10/16 6:47 PM, Jonathan M Davis via Digitalmars-d-learn wrote: No. That's how it's been for years now - certainly well before TDPL was released - and I suspect that it was that way in D1 (though I've never really used D1, so I'm not sure). It's not that way in D1. I think it was added

Re: DIP1000

2016-09-12 Thread Stefan Koch via Digitalmars-d
On Monday, 12 September 2016 at 14:00:53 UTC, Andrei Alexandrescu wrote: On 08/31/2016 08:05 AM, Kagamin wrote: On Tuesday, 30 August 2016 at 16:12:19 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/DIP1000.html That link leads to to a grammar. Isn't DIP1000 the scope and @safe DIP ?

Re: UTF8 and unary encoding

2016-09-12 Thread Andrei Alexandrescu via Digitalmars-d
On 9/12/16 11:59 AM, Jonathan M Davis via Digitalmars-d wrote: Aren't we already doing that with stride? It reads the number of bytes in a code point from the first code unit and then if we're dealing with a random access range of char or an array of char, then we skip that many code units

Re: Fully-qualified symbol disambiguation is deprecated???

2016-09-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/9/16 11:32 AM, Nick Sabalausky wrote: On 09/08/2016 06:22 PM, Nick Sabalausky wrote: On 09/08/2016 06:13 PM, Steven Schveighoffer wrote: On 9/8/16 6:02 PM, Nick Sabalausky wrote: I'm getting deprecation messages ("Package...not accessible here, perhaps add static import") when simply

Re: Should debug{} allow GC?

2016-09-12 Thread Guillaume Piolat via Digitalmars-d
On Monday, 12 September 2016 at 15:14:19 UTC, Gary Willoughby wrote: Source: https://dpaste.dzfl.pl/8c5ec90c5b39 +1 this would be useful in Phobos, both for the logging case and when you find out some extern(C) function hasn't been marked @nogc.

Re: colour lib needs reviewers

2016-09-12 Thread Marco Leise via Digitalmars-d
Am Tue, 13 Sep 2016 00:37:22 +1000 schrieb Manu via Digitalmars-d : > I flip-flopped on this multiple times. > It's not so simple. > 1. Alpha doesn't necessarily mean transparently, that's just one > (extremely common) use > 2. 1 is the multiplication identity, but 0

Re: colour lib needs reviewers

2016-09-12 Thread Random D user via Digitalmars-d
On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. - Manu Hi. I'm just a random forum lurker, but here's my feedback. It needs more docs/examples for the basic usage cases (i.e. how to skip

Re: colour lib needs reviewers

2016-09-12 Thread John Colvin via Digitalmars-d
On Monday, 12 September 2016 at 19:59:58 UTC, Edwin van Leeuwen wrote: On Monday, 12 September 2016 at 19:55:57 UTC, Guillaume Piolat wrote: - I've wanted a function like colorFromString many times. It's especially nice with the added #RGBA and #RRGGBBAA syntax that eg. SVG lacks. What

pure functions

2016-09-12 Thread Ivy Encarnacion via Digitalmars-d-learn
Can pure functions throw exceptions on its arguments? Also, how can it perform impure operations?

Re: colour lib needs reviewers

2016-09-12 Thread Manu via Digitalmars-d
On 13 September 2016 at 12:05, Walter Bright via Digitalmars-d wrote: > On 9/12/2016 2:08 PM, John Colvin wrote: >> >> On Monday, 12 September 2016 at 19:59:58 UTC, Edwin van Leeuwen wrote: >>> >>> On Monday, 12 September 2016 at 19:55:57 UTC, Guillaume Piolat wrote:

Re: Usability of "allMembers and derivedMembers traits now only return visible symbols"

2016-09-12 Thread Martin Nowak via Digitalmars-d
On Wednesday, 7 September 2016 at 19:29:05 UTC, Ali Çehreli wrote: On 09/03/2016 09:37 AM, Martin Nowak wrote: > On Wednesday, 31 August 2016 at 21:12:54 UTC, Ali Çehreli wrote: >> The recommended solution of mixing in every template instance is not a >> viable solution because that would

[Issue 16061] [Reg 2.071.1-b1] dot template instance of imported template fails as overloadset

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16061 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu

[Issue 16486] Compiler see template alias like a separate type in template function definition

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16486 --- Comment #2 from Sky Thirteenth --- (In reply to ag0aep6g from comment #1) > Reduced to the core: > > > struct TestType(T) {} > alias TestAlias(T) = TestType!T; > void testFunction(T)(TestAlias!T arg) {} > > void

[Issue 16061] [Reg 2.071.1-b1] dot template instance of imported template fails as overloadset

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16061 Martin Nowak changed: What|Removed |Added Assignee|nob...@puremagic.com|c...@dawg.eu --

Re: Should debug{} allow GC?

2016-09-12 Thread Manu via Digitalmars-d
On 13 September 2016 at 01:14, Gary Willoughby via Digitalmars-d wrote: > On Sunday, 11 September 2016 at 07:46:09 UTC, Manu wrote: >> >> I'm having a lot of trouble debugging @nogc functions. I have a number of >> debug functions that use GC, but I can't call them

Re: colour lib needs reviewers

2016-09-12 Thread Edwin van Leeuwen via Digitalmars-d
On Monday, 12 September 2016 at 19:55:57 UTC, Guillaume Piolat wrote: - I've wanted a function like colorFromString many times. It's especially nice with the added #RGBA and #RRGGBBAA syntax that eg. SVG lacks. What happens when the string is invalid? Does it throw an error?

Re: iPhone vs Android

2016-09-12 Thread deadalnix via Digitalmars-d
On Tuesday, 13 September 2016 at 01:04:06 UTC, Joakim wrote: https://www.engadget.com/2016/08/19/smartphone-batteries-with-twice-the-life-may-arrive-in-2017/ https://www.engadget.com/2016/04/22/accidental-discovery-batteries-last-years-longer/ The battery industry is king to drum up various

Re: Copy a struct and its context

2016-09-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/12/16 4:11 PM, Ali Çehreli wrote: On 09/10/2016 10:44 PM, Yuxuan Shui wrote: I recently noticed nested struct capture its context by reference (which, BTW, is not mentioned at all here: https://dlang.org/spec/struct.html#nested). " It has access to the context of its enclosing scope (via

[Issue 12655] foldRange

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12655 John Hall changed: What|Removed |Added CC|

Re: colour lib needs reviewers

2016-09-12 Thread Manu via Digitalmars-d
On 13 September 2016 at 07:00, Marco Leise via Digitalmars-d wrote: > Am Tue, 13 Sep 2016 00:37:22 +1000 > schrieb Manu via Digitalmars-d : >> I flip-flopped on this multiple times. >> It's not so simple. >> 1. Alpha doesn't necessarily

Re: colour lib needs reviewers

2016-09-12 Thread Walter Bright via Digitalmars-d
On 9/12/2016 6:11 PM, Manu via Digitalmars-d wrote: Okay. I'll work on this feedback. Wonderful! My last comment is what can I do with a color library that would not require some additional library? With color, ndslice, and std.algorithm, you can do quite a lot of useful image processing

Re: colour lib needs reviewers

2016-09-12 Thread Walter Bright via Digitalmars-d
On 9/12/2016 2:08 PM, John Colvin wrote: On Monday, 12 September 2016 at 19:59:58 UTC, Edwin van Leeuwen wrote: On Monday, 12 September 2016 at 19:55:57 UTC, Guillaume Piolat wrote: - I've wanted a function like colorFromString many times. It's especially nice with the added #RGBA and

Re: colour lib needs reviewers

2016-09-12 Thread Manu via Digitalmars-d
On 13 September 2016 at 06:29, Random D user via Digitalmars-d wrote: > On Monday, 12 September 2016 at 04:14:27 UTC, Manu wrote: >> >> I think I'm about as happy with my colour lib as I'm going to be. It >> really needs reviews. >> >> - Manu > > > Hi. I'm just a

Re: iPhone vs Android

2016-09-12 Thread Joakim via Digitalmars-d
On Monday, 12 September 2016 at 22:57:23 UTC, Andrei Alexandrescu wrote: (a) it is likely that in the future more code will run on portable, battery-powered systems; Completely agree, it's why I've been working on the Android port. (b) battery power does not follow a Moore trajectory, so at

Re: colour lib needs reviewers

2016-09-12 Thread Manu via Digitalmars-d
On 13 September 2016 at 08:51, Walter Bright via Digitalmars-d wrote: > On 9/11/2016 9:14 PM, Manu via Digitalmars-d wrote: >> >> I think I'm about as happy with my colour lib as I'm going to be. >> It really needs reviews. > > > I have zero expertise in color

Re: colour lib needs reviewers

2016-09-12 Thread jmh530 via Digitalmars-d
On Monday, 12 September 2016 at 22:55:01 UTC, Walter Bright wrote: Thanks for the rationale. I'm glad to see you're planning follow-on libraries! I'd use a graph/plot library myself. Some of the rationale above should go into the documentation for the library. You might try

Re: colour lib needs reviewers

2016-09-12 Thread Walter Bright via Digitalmars-d
On 9/12/2016 7:03 PM, Walter Bright wrote: On 9/12/2016 6:11 PM, Manu via Digitalmars-d wrote: Okay. I'll work on this feedback. Wonderful! BTW, linking to authoritative reference material has the effect of reassuring the user that the library is designed by someone who knows his stuff. It

Re: Should debug{} allow GC?

2016-09-12 Thread Walter Bright via Digitalmars-d
On 9/11/2016 12:46 AM, Manu via Digitalmars-d wrote: I'm having a lot of trouble debugging @nogc functions. I have a number of debug functions that use GC, but I can't call them from @nogc code... should debug{} allow @nogc calls, the same as impure calls? Probably a great suggestion.

Re: colour lib needs reviewers

2016-09-12 Thread Walter Bright via Digitalmars-d
On 9/11/2016 9:14 PM, Manu via Digitalmars-d wrote: I think I'm about as happy with my colour lib as I'm going to be. It really needs reviews. I have zero expertise in color programming, and have no idea what a color library might do or what it would be used for. I looked at the front page

Re: colour lib needs reviewers

2016-09-12 Thread Walter Bright via Digitalmars-d
On 9/12/2016 8:06 AM, Manu via Digitalmars-d wrote: So, the main reason I wanted to push for this in phobos is because it's an enabler. There is no multimedia in phobos at all. I think that's a shame, and this is a starting point. Any conceivable image based work depends on this as foundation.

Re: iPhone vs Android

2016-09-12 Thread Rikki Cattermole via Digitalmars-d
On Monday, 12 September 2016 at 23:21:12 UTC, deadalnix wrote: RC itself is not panacea, it doesn't work well with exceptions, generate a huge amount of code bloat, hurt throughput, which you don't care in UI thread, but do care in the backend, and so on. But first and foremost, it is a

[Issue 16348] [REG 2.070.2] ICE with package visibility

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16348 j...@red.email.ne.jp changed: What|Removed |Added See Also||https://issues.dlang.org/sh

iPhone vs Android

2016-09-12 Thread Andrei Alexandrescu via Digitalmars-d
An interesting article written for laypeople: http://www.theverge.com/2016/9/12/12886058/iphone-7-specs-competition One quote that may be of relevance to us: "As to the iPhone’s memory, this is more of a philosophical distinction between Apple and Google. The former is neurotic about killing

Re: colour lib needs reviewers

2016-09-12 Thread Andrei Alexandrescu via Digitalmars-d
On 9/12/16 6:51 PM, Walter Bright wrote: My last comment is what can I do with a color library that would not require some additional library? Great question and well asked. It was mine as well but I could not put it as succinctly. -- Andrei

Re: iPhone vs Android

2016-09-12 Thread Rikki Cattermole via Digitalmars-d
On Monday, 12 September 2016 at 22:57:23 UTC, Andrei Alexandrescu wrote: An interesting article written for laypeople: http://www.theverge.com/2016/9/12/12886058/iphone-7-specs-competition One quote that may be of relevance to us: "As to the iPhone’s memory, this is more of a philosophical

Re: iPhone vs Android

2016-09-12 Thread deadalnix via Digitalmars-d
On Monday, 12 September 2016 at 22:57:23 UTC, Andrei Alexandrescu wrote: This may be interpreted as follows: the iPhone uses native apps with reference counting I think the native part is fair, but the RC part maybe not. I know first hand that they have a fair amount of problem on the side.

[Issue 16460] [REG2.071] ICE in local import for a package protection func

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16460 j...@red.email.ne.jp changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 16460] [REG2.071] ICE for package visibility check in function literal

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16460 Martin Nowak changed: What|Removed |Added Keywords||pull CC|

[Issue 16061] [Reg 2.071.1-b1] dot template instance of imported template fails as overloadset

2016-09-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16061 Martin Nowak changed: What|Removed |Added Status|NEW |RESOLVED

How to check member function for being @disable?

2016-09-12 Thread Uranuz via Digitalmars-d-learn
In my code I iterate in CT over class methods marked as @property and I have a probleme that one of methods is @disable. So I just want to skip @disable members. I found possible solution, but it's interesting to we if we have more clear and obvious way to test for @disable without using

Re: pure functions

2016-09-12 Thread sarn via Digitalmars-d-learn
On Tuesday, 13 September 2016 at 03:33:04 UTC, Ivy Encarnacion wrote: Can pure functions throw exceptions on its arguments? You can throw exceptions for whatever reasons from a function marked pure: void foo() pure { throw new Exception("nope"); } void main() { foo(); }

Re: Mysql-native with LAMPP

2016-09-12 Thread Geert via Digitalmars-d-learn
On Monday, 12 September 2016 at 14:00:18 UTC, Daniel Kozak wrote: And are you sure it is using tcp4 socket on port 3306? You can use netstat -tlnp to see if is running on tcpv4 3306 I get nothing with TCP option, only when i run this command: # netstat -npl | grep mysql unix 2 [

Re: Mysql-native with LAMPP

2016-09-12 Thread Martin Krejcirik via Digitalmars-d-learn
# netstat -npl | grep mysql unix 2 [ ACC ] STREAM LISTENING 239449 6293/mysqld /opt/lampp/var/mysql/mysql.sock Mysql defaults to unix socket, you need to add bind-address=127.0.0.1 to my.cnf [mysqld] section.

Re: colour lib needs reviewers

2016-09-12 Thread Manu via Digitalmars-d
On 13 September 2016 at 00:37, Andrei Alexandrescu via Digitalmars-d wrote: > On 09/12/2016 12:14 AM, Manu via Digitalmars-d wrote: >> >> I think I'm about as happy with my colour lib as I'm going to be. >> It really needs reviews. > > > Upon a quick look it seems to

Re: @property Incorrectly Implemented?

2016-09-12 Thread Gary Willoughby via Digitalmars-d
On Tuesday, 6 September 2016 at 19:18:11 UTC, John wrote: This is all you need to know: https://wiki.dlang.org/Property_Discussion_Wrap-up

Re: Should debug{} allow GC?

2016-09-12 Thread Gary Willoughby via Digitalmars-d
On Sunday, 11 September 2016 at 07:46:09 UTC, Manu wrote: I'm having a lot of trouble debugging @nogc functions. I have a number of debug functions that use GC, but I can't call them from @nogc code... should debug{} allow @nogc calls, the same as impure calls? We could with something like

  1   2   >