Re: DIP10005: Dependency-Carrying Declarations is now available for community feedback

2017-01-01 Thread Chris Wright via Digitalmars-d
On Mon, 02 Jan 2017 00:47:41 +, pineapple wrote: > On Saturday, 31 December 2016 at 17:02:55 UTC, Chris Wright wrote: >>> This extension removes an unforced limitation of the current with >>> syntax (allows it to occur at top level) >> >> In other words, another aspect of this DIP is that I

Re: Terminix Year In Review

2017-01-01 Thread Joakim via Digitalmars-d-announce
On Monday, 2 January 2017 at 00:53:04 UTC, Gerald wrote: Terminix is a GTK 3 tiling terminal emulator that has been designed following the GNOME Human Interface Guidelines. The project started just over a year ago at the start of 2016 and I thought it would be fun to look back at the project

Re: It is still not possible to use D on debian/ubuntu

2017-01-01 Thread Walter Bright via Digitalmars-d
On 1/1/2017 3:55 PM, deadalnix wrote: But it is not clear if anyone cares at this stage... I use Ubuntu as my development system for D on Linux.

Re: Databases and the D Standard Library

2017-01-01 Thread Adam Wilson via Digitalmars-d
rikki cattermole wrote: On 01/01/2017 5:19 PM, Adam D. Ruppe wrote: On Sunday, 1 January 2017 at 03:51:52 UTC, rikki cattermole wrote: Which is fine if all you use is c's sockets or only that database connection for a thread. The C drivers typically offer handles of some sort (Windows

Re: It is still not possible to use D on debian/ubuntu

2017-01-01 Thread H. S. Teoh via Digitalmars-d
On Sun, Jan 01, 2017 at 11:55:37PM +, deadalnix via Digitalmars-d wrote: > But it is not clear if anyone cares at this stage... I care. But I've been using custom-built DMD on Debian, and it has been working so far. Of course, I don't know about the .deb distribution. A fix was recently

[Issue 16965] changed.d compile error

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

Dub build for x86_64 on windows

2017-01-01 Thread Andrey via Digitalmars-d-learn
Hello! it is possible to build my application for x86_64 platform? In С++ I can settings mingw_w64 for this.

Re: Dub build for x86_64 on windows

2017-01-01 Thread rikki cattermole via Digitalmars-d-learn
On 02/01/2017 5:12 PM, Andrey wrote: Hello! it is possible to build my application for x86_64 platform? In С++ I can settings mingw_w64 for this. When using dub: $ dub build --arch=x86_64 For Windows you will need to have Visual Studio installed for linker + libc.

Terminix Year In Review

2017-01-01 Thread Gerald via Digitalmars-d-announce
Terminix is a GTK 3 tiling terminal emulator that has been designed following the GNOME Human Interface Guidelines. The project started just over a year ago at the start of 2016 and I thought it would be fun to look back at the project history, highlights, low-lights and goals for 2017.

dub: make ~>x.y.z mean >=x.y.z <(x+1).0.0 instead of >=x.y.z <x.(y+1).z

2017-01-01 Thread Timothee Cour via Digitalmars-d
I often run into breakages when building dub packages due to a dependency that uses "foo": "~>x.y.z" that prevents using minor version bumps of "foo" (only patch bumps). According to Semantic versioning [http://semver.org/], minor version bumps should be allowed (only major version bumps would be

[Issue 8107] Float literals are not specified as they are implemented

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

Re: DIP10005: Dependency-Carrying Declarations is now available for community feedback

2017-01-01 Thread Timon Gehr via Digitalmars-d
On 02.01.2017 01:47, pineapple wrote: On Saturday, 31 December 2016 at 17:02:55 UTC, Chris Wright wrote: This extension removes an unforced limitation of the current with syntax (allows it to occur at top level) In other words, another aspect of this DIP is that I can write: module foo;

Re: It is still not possible to use D on debian/ubuntu

2017-01-01 Thread Nordlöw via Digitalmars-d
On Sunday, 1 January 2017 at 23:55:37 UTC, deadalnix wrote: But it is not clear if anyone cares at this stage... 2.072.2 was released yesterday. Doesn't that work on Ubuntu 16.10?

Re: Databases and the D Standard Library

2017-01-01 Thread Adam Wilson via Digitalmars-d
Mark wrote: On Sunday, 1 January 2017 at 03:24:31 UTC, Adam Wilson wrote: 2. There are so many different types of data storage systems, how do you design a system generic enough for all of them? My answer: You don't. Nobody else has bothered trying, and I believe that our worry over that

Re: Databases and the D Standard Library

2017-01-01 Thread Adam Wilson via Digitalmars-d
Chris Wright wrote: On Sat, 31 Dec 2016 19:24:31 -0800, Adam Wilson wrote: My idea: Each data store has it's own implementation with it's own naming convention. For example (ADO.NET): - SqlConnection (MSSQL) - NpgsqlConnection (Npgsql) Yes, this means that you have to change

Re: Databases and the D Standard Library

2017-01-01 Thread Adam Wilson via Digitalmars-d
Chris Wright wrote: On Sun, 01 Jan 2017 10:29:28 +0100, Jacob Carlborg wrote: On 2017-01-01 04:24, Adam Wilson wrote: My idea: Each data store has it's own implementation with it's own naming convention. For example (ADO.NET): - SqlConnection (MSSQL) - NpgsqlConnection (Npgsql)

Re: Databases and the D Standard Library

2017-01-01 Thread Adam Wilson via Digitalmars-d
Chris Wright wrote: On Sat, 31 Dec 2016 19:24:31 -0800, Adam Wilson wrote: My idea: Split the data storage systems out by category of data-store. For example: - SQL: std.database.sql (PostgreSQL, MySQL, MSSQL, etc.) This is doable; SQL is an ANSI and ISO standard, and it strongly

Re: Databases and the D Standard Library

2017-01-01 Thread Adam Wilson via Digitalmars-d
Adam D. Ruppe wrote: On Sunday, 1 January 2017 at 03:24:31 UTC, Adam Wilson wrote: interface(s) to a data-store an essential component of the D Standard Library. Eh, I count it as would-be-nice just because it isn't that hard to just use the C ones, or another third party lib; it doesn't have

Re: Databases and the D Standard Library

2017-01-01 Thread rikki cattermole via Digitalmars-d
On 02/01/2017 3:03 PM, Adam Wilson wrote: rikki cattermole wrote: On 01/01/2017 5:19 PM, Adam D. Ruppe wrote: On Sunday, 1 January 2017 at 03:51:52 UTC, rikki cattermole wrote: Which is fine if all you use is c's sockets or only that database connection for a thread. The C drivers typically

Re: Databases and the D Standard Library

2017-01-01 Thread Adam Wilson via Digitalmars-d
rikki cattermole wrote: On 02/01/2017 3:03 PM, Adam Wilson wrote: rikki cattermole wrote: On 01/01/2017 5:19 PM, Adam D. Ruppe wrote: On Sunday, 1 January 2017 at 03:51:52 UTC, rikki cattermole wrote: Which is fine if all you use is c's sockets or only that database connection for a thread.

It is still not possible to use D on debian/ubuntu

2017-01-01 Thread deadalnix via Digitalmars-d
But it is not clear if anyone cares at this stage...

Re: It is still not possible to use D on debian/ubuntu

2017-01-01 Thread deadalnix via Digitalmars-d
On Monday, 2 January 2017 at 01:03:54 UTC, deadalnix wrote: On Monday, 2 January 2017 at 00:04:51 UTC, Walter Bright wrote: On 1/1/2017 3:55 PM, deadalnix wrote: But it is not clear if anyone cares at this stage... I use Ubuntu as my development system for D on Linux. Then you may want to

Re: Android Status

2017-01-01 Thread Joakim via Digitalmars-d-learn
On Sunday, 1 January 2017 at 09:34:24 UTC, Ignacious wrote: Can you try sudo apt-get install libconfig9 I don't know if that will install something different, but it's the command I see others using online. Otherwise, check if the libconfig++9 package you installed included

Re: DIP10005: Dependency-Carrying Declarations is now available for community feedback

2017-01-01 Thread pineapple via Digitalmars-d
On Saturday, 31 December 2016 at 17:02:55 UTC, Chris Wright wrote: This extension removes an unforced limitation of the current with syntax (allows it to occur at top level) In other words, another aspect of this DIP is that I can write: module foo; static import std.traits; static

Re: Databases and the D Standard Library

2017-01-01 Thread Mark via Digitalmars-d
On Sunday, 1 January 2017 at 03:24:31 UTC, Adam Wilson wrote: 2. There are so many different types of data storage systems, how do you design a system generic enough for all of them? My answer: You don't. Nobody else has bothered trying, and I believe that our worry over that question is a

Re: It is still not possible to use D on debian/ubuntu

2017-01-01 Thread deadalnix via Digitalmars-d
On Monday, 2 January 2017 at 00:04:51 UTC, Walter Bright wrote: On 1/1/2017 3:55 PM, deadalnix wrote: But it is not clear if anyone cares at this stage... I use Ubuntu as my development system for D on Linux. Then you may want to check that nothing DMD produces will link because of PIE.

Re: Databases and the D Standard Library

2017-01-01 Thread rikki cattermole via Digitalmars-d
On 02/01/2017 4:44 PM, Adam Wilson wrote: rikki cattermole wrote: On 02/01/2017 3:03 PM, Adam Wilson wrote: rikki cattermole wrote: On 01/01/2017 5:19 PM, Adam D. Ruppe wrote: On Sunday, 1 January 2017 at 03:51:52 UTC, rikki cattermole wrote: Which is fine if all you use is c's sockets or

[Issue 17054] New: Better Support Building on Windows.

2017-01-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17054 Issue ID: 17054 Summary: Better Support Building on Windows. Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal Priority:

Re: Databases and the D Standard Library

2017-01-01 Thread Jacob Carlborg via Digitalmars-d
On 2017-01-01 04:24, Adam Wilson wrote: My idea: Each data store has it's own implementation with it's own naming convention. For example (ADO.NET): - SqlConnection (MSSQL) - NpgsqlConnection (Npgsql) Yes, this means that you have to change names in your code if you switch

Re: Android Status

2017-01-01 Thread Ignacious via Digitalmars-d-learn
Can you try sudo apt-get install libconfig9 I don't know if that will install something different, but it's the command I see others using online. Otherwise, check if the libconfig++9 package you installed included libconfig.so.9, which is what ldc is linked against. If not, install the

[Issue 17051] New: [Programming in D for C Programmers]

2017-01-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17051 Issue ID: 17051 Summary: [Programming in D for C Programmers] Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW

[Issue 17052] New: [Programming in D for C Programmers]

2017-01-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17052 Issue ID: 17052 Summary: [Programming in D for C Programmers] Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW

[Issue 17053] New: [Programming in D for C Programmers]

2017-01-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17053 Issue ID: 17053 Summary: [Programming in D for C Programmers] Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW

Re: Standard output does not get flushed in cygwin?

2017-01-01 Thread rikki cattermole via Digitalmars-d-learn
On 02/01/2017 1:48 AM, Anonymouse wrote: Try this in a cygwin terminal: import std.stdio; import core.thread; void main() { foreach (i; 0..10) { writeln(i); Thread.sleep(1.seconds); } } This program will not output i, wait a second and then output i+1, etc. It will

[Issue 17053] [Programming in D for C Programmers] C supports array initialization; section is misleading

2017-01-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17053 Gavin Higham changed: What|Removed |Added Summary|[Programming in D for C |[Programming in D for

[Issue 17051] [Programming in D for C Programmers] C supports anonymous structs; section is misleading.

2017-01-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17051 Gavin Higham changed: What|Removed |Added Summary|[Programming in D for C |[Programming in D for

Re: Project Highlight: Voxelman

2017-01-01 Thread thedeemon via Digitalmars-d-announce
On Saturday, 31 December 2016 at 14:22:40 UTC, jkpl wrote: What I mean is that there's a compilation error related to dlib: What's your compiler version? Many libraries and projects are not building with dmd 2.072 yet, but they build fine with dmd 2.071.

Standard output does not get flushed in cygwin?

2017-01-01 Thread Anonymouse via Digitalmars-d-learn
Try this in a cygwin terminal: import std.stdio; import core.thread; void main() { foreach (i; 0..10) { writeln(i); Thread.sleep(1.seconds); } } This program will not output i, wait a second and then output i+1, etc. It will be silent for ten seconds and then spam

[Issue 17052] [Programming in D for C Programmers] C supports designated initialization; section is misleading

2017-01-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17052 Gavin Higham changed: What|Removed |Added Summary|[Programming in D for C |[Programming in D for

Re: Reducing visual clutter.

2017-01-01 Thread Nicholas Wilson via Digitalmars-d-learn
On Saturday, 31 December 2016 at 12:31:07 UTC, Nicholas Wilson wrote: On Saturday, 31 December 2016 at 11:39:39 UTC, Nicholas Wilson wrote: [...] Oh and `kernel` could be a template function that would need its args forwarded to it. It's worse than that `kernel` could be a qualified name

Re: DIP-1000 and return

2017-01-01 Thread Nordlöw via Digitalmars-d-learn
On Sunday, 1 January 2017 at 17:41:46 UTC, Nordlöw wrote: now fails on Git master (after DIP-1000 has been merged) as When compiled with `-transition=safe`, that is.

Re: Unittest hangs on completion

2017-01-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/30/16 9:32 PM, David Zhang wrote: On Saturday, 31 December 2016 at 02:03:07 UTC, rikki cattermole wrote: As it should, current is never reassigned. You only need one var, next. Of course I didn't read the entire thread chain so, I'm probably missing something. import

Re: Databases and the D Standard Library

2017-01-01 Thread Chris Wright via Digitalmars-d
On Sun, 01 Jan 2017 10:29:28 +0100, Jacob Carlborg wrote: > On 2017-01-01 04:24, Adam Wilson wrote: > >> My idea: Each data store has it's own implementation with it's own >> naming convention. For example (ADO.NET): >> - SqlConnection (MSSQL) >> - NpgsqlConnection (Npgsql) >> >> Yes,

Re: Databases and the D Standard Library

2017-01-01 Thread Chris Wright via Digitalmars-d
On Sat, 31 Dec 2016 19:24:31 -0800, Adam Wilson wrote: > My idea: Each data store has it's own implementation with it's own > naming convention. For example (ADO.NET): > - SqlConnection (MSSQL) > - NpgsqlConnection (Npgsql) > > Yes, this means that you have to change names in your

DIP-1000 and return

2017-01-01 Thread Nordlöw via Digitalmars-d-learn
The code auto asStatic(T, size_t length)(T[length] arr) { return arr; } @safe pure nothrow @nogc unittest { auto x = [1, 2, 3].asStatic; static assert(is(typeof(x) == int[x.length])); static assert(is(typeof([1, 2, 3].asStatic) == int[x.length])); } now fails on Git master

Re: DIP-1000 and return

2017-01-01 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 1 January 2017 at 17:41:46 UTC, Nordlöw wrote: The code auto asStatic(T, size_t length)(T[length] arr) { return arr; } @safe pure nothrow @nogc unittest { auto x = [1, 2, 3].asStatic; static assert(is(typeof(x) == int[x.length])); static assert(is(typeof([1, 2,

Re: DIP-1000 and return

2017-01-01 Thread Nordlöw via Digitalmars-d-learn
On Sunday, 1 January 2017 at 18:00:54 UTC, Stefan Koch wrote: Try: auto asStatic(T, size_t length)(scope T[length] arr) { return arr; } Fails as array_ex.d(72,10): Error: parameter arr is 'return' but function does not return any indirections array_ex.d(80,27): Error: template

Re: Project Highlight: Voxelman

2017-01-01 Thread MrSmith via Digitalmars-d-announce
On Saturday, 31 December 2016 at 14:22:40 UTC, jkpl wrote: dub build --build=release Performing "release" build using dmd for x86_64. dmd failed with exit code 1. I've fixed compilation on linux on 2.072. However you need to use --DRT-oncycle=ignore when starting, due to new cycle handling in