Re: Beta 2.079.0

2018-02-23 Thread psychoticRabbit via Digitalmars-d-announce
On Saturday, 24 February 2018 at 07:09:05 UTC, zabruk70 wrote: i don't understand whole theread. why all import must be written on one line? curent syntax very handy and readable. you must have understood the thread, cause you summarised it pretty well ;-)

Re: Beta 2.079.0

2018-02-23 Thread zabruk70 via Digitalmars-d-announce
i don't understand whole theread. why all import must be written on one line? curent syntax very handy and readable.

Re: Beta 2.079.0

2018-02-23 Thread psychoticRabbit via Digitalmars-d-announce
On Friday, 23 February 2018 at 16:03:56 UTC, Aurélien Plazzotta wrote: Perhaps, we could use Backus-Naur notation, as it is already widely known into formal documents all over the globe, like the following: import std.stdio, std.whatever{this, that}, std.somethingelse, std.grr{wtf}; That

Re: Beta 2.079.0

2018-02-23 Thread psychoticRabbit via Digitalmars-d-announce
On Friday, 23 February 2018 at 23:46:02 UTC, Norm wrote: Well, D is already a compiled scripting language :) technically (and otherwise) that is not correct...thank god! lets keep it that way.

Re: Beta 2.079.0

2018-02-23 Thread psychoticRabbit via Digitalmars-d-announce
On Friday, 23 February 2018 at 18:13:51 UTC, Patrick Schluter wrote: On Friday, 23 February 2018 at 13:42:45 UTC, psychoticRabbit wrote: On Friday, 23 February 2018 at 12:06:23 UTC, Patrick Schluter wrote: Absolutely. D scripting is the trojan horse that enables introduction of it in hostile

Re: Beta 2.079.0

2018-02-23 Thread Norm via Digitalmars-d-announce
On Friday, 23 February 2018 at 10:48:10 UTC, psychoticRabbit wrote: On Friday, 23 February 2018 at 09:48:33 UTC, Norm wrote: This import feature and surrounding discussion I couldn't care less about ... I actually spend far more time reading large chunks of code, than writing code, and I

Re: mysql-native v2.1.0-rc1: New features

2018-02-23 Thread aberba via Digitalmars-d-announce
On Friday, 23 February 2018 at 22:15:37 UTC, Nick Sabalausky (Abscissa) wrote: An all-D MySQL/MariaDB client library: https://github.com/mysql-d/mysql-native == [...] That's a very useful feature. Will simplify some code. As well as additional tools for

mysql-native v2.1.0-rc1: New features

2018-02-23 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
An all-D MySQL/MariaDB client library: https://github.com/mysql-d/mysql-native == Tagged 'v2.1.0-rc1', release candidate for v2.1.0, which mainly adds a few new features, inlcuding greatly simplified shortcut syntax for prepared statements (with

Re: Beta 2.079.0

2018-02-23 Thread Steven Schveighoffer via Digitalmars-d-announce
On 2/23/18 6:57 AM, Martin Nowak wrote: On Monday, 19 February 2018 at 15:58:57 UTC, Joakim wrote: 17. Allow multiple selective imports from different modules in a single import statement Let me hopefully conclude this discussion :). We have an existing ambiguity in the language since at

Re: lld-link.exe [in: Re: Beta 2.079.0]

2018-02-23 Thread Andre Pany via Digitalmars-d-announce
On Friday, 23 February 2018 at 19:06:42 UTC, Martin Nowak wrote: On Friday, 23 February 2018 at 18:13:01 UTC, Martin Nowak wrote: On Monday, 19 February 2018 at 20:17:05 UTC, Andre Pany wrote: You also need to install VC++ 2015 redistributable to run lld-link.exe. The x86 one btw. Also

Re: lld-link.exe [in: Re: Beta 2.079.0]

2018-02-23 Thread Martin Nowak via Digitalmars-d-announce
On Friday, 23 February 2018 at 18:13:01 UTC, Martin Nowak wrote: On Monday, 19 February 2018 at 20:17:05 UTC, Andre Pany wrote: You also need to install VC++ 2015 redistributable to run lld-link.exe. The x86 one btw. Also [18510 – [Beta 2.079] lld-link.exe fails to open obj file in

lld-link.exe [in: Re: Beta 2.079.0]

2018-02-23 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 19 February 2018 at 20:17:05 UTC, Andre Pany wrote: You also need to install VC++ 2015 redistributable to run lld-link.exe. Let's see if we can lift that requirement until the release. [18509 – [Beta 2.079] lld-link.exe needs

Re: Beta 2.079.0

2018-02-23 Thread Patrick Schluter via Digitalmars-d-announce
On Friday, 23 February 2018 at 13:42:45 UTC, psychoticRabbit wrote: On Friday, 23 February 2018 at 12:06:23 UTC, Patrick Schluter wrote: Absolutely. D scripting is the trojan horse that enables introduction of it in hostile environment. Runnable compiled source code is nice. scripting

d.godbolt.org now supports DMD

2018-02-23 Thread Seb via Digitalmars-d-announce
Thanks to the work of Rabs Rincon [1] DMD is now supported on https://d.godbolt.org A simple example of comparing DMD's object code with LDC's + GDC's output: https://godbolt.org/g/EQCTNy [1] https://github.com/mattgodbolt/compiler-explorer/issues/306

Re: Beta 2.079.0

2018-02-23 Thread Seb via Digitalmars-d-announce
On Friday, 23 February 2018 at 17:47:08 UTC, Kagamin wrote: auto result = foo(), bar(); Doesn't look like it works. --- int f(int a){ return a; } int main() { int a=f(0),f(1); //doesn't compile return 0; } --- int f(int a){ return a; } int main() { int a; a=f(0),f(1);

Re: Beta 2.079.0

2018-02-23 Thread Kagamin via Digitalmars-d-announce
auto result = foo(), bar(); Doesn't look like it works. --- int f(int a){ return a; } int main() { int a=f(0),f(1); //doesn't compile return 0; } --- int f(int a){ return a; } int main() { int a; a=f(0),f(1); assert(a==1); //fails return 0; } ---

Re: Beta 2.079.0

2018-02-23 Thread Aurélien Plazzotta via Digitalmars-d-announce
On Friday, 23 February 2018 at 02:20:41 UTC, psychotyicRabbit wrote: On Friday, 23 February 2018 at 01:57:37 UTC, Martin Nowak wrote: On Thursday, 22 February 2018 at 11:15:35 UTC, psychoticRabbit wrote: import std.rabbit [food, water], std.house, std.family [carer]; Also, D is pretty

Re: Beta 2.079.0

2018-02-23 Thread Kagamin via Digitalmars-d-announce
https://github.com/dlang/druntime/pull/1282 github shows me just two changes in makefiles and nothing else, need to find where the code comes from.

Re: Beta 2.079.0

2018-02-23 Thread Kagamin via Digitalmars-d-announce
On Friday, 23 February 2018 at 01:02:59 UTC, Martin Nowak wrote: Also https://en.wikipedia.org/wiki/Law_of_triviality, because this is certainly easier to grasp than https://github.com/dlang/druntime/pull/1282 (https://forum.dlang.org/post/mjsma6$196h$1...@digitalmars.com) If nobody opposes,

Re: dxml 0.2.0 released

2018-02-23 Thread Jesse Phillips via Digitalmars-d-announce
On Monday, 12 February 2018 at 05:36:51 UTC, Jonathan M Davis wrote: dxml 0.2.0 has now been released. Documentation: http://jmdavisprog.com/docs/dxml/0.2.0/ Github: https://github.com/jmdavis/dxml/tree/v0.2.0 Dub: http://code.dlang.org/packages/dxml - Jonathan M Davis This is absolutely

Re: Beta 2.079.0

2018-02-23 Thread Kagamin via Digitalmars-d-announce
On Friday, 23 February 2018 at 00:05:59 UTC, Martin Nowak wrote: The main use-case for craming multiple imports into a line is not libraries but scripting, examples, and maybe unit tests. Those are cases when selective imports shouldn't be used. experimental.scripting was introduced to reduce

Re: Beta 2.079.0

2018-02-23 Thread jmh530 via Digitalmars-d-announce
On Friday, 23 February 2018 at 13:38:25 UTC, Steven Schveighoffer wrote: On 2/23/18 8:13 AM, jmh530 wrote: What if you have something like import std.stdio, std.conv : to, parse; and there is a module at the top-level named parse? Then you have to import it on a separate line, or import it

Re: [Maybe OT] Hashcode with Google

2018-02-23 Thread psychoticRabbit via Digitalmars-d-announce
On Friday, 23 February 2018 at 14:07:03 UTC, Andrea Fontana wrote: It could be interesting if a D-team would win this :) tl;dr: Google gives a coding problem, you have to solve it. Any programming language is accepted. You have to register your team. Details:

Re: Beta 2.079.0

2018-02-23 Thread aberba via Digitalmars-d-announce
On Friday, 23 February 2018 at 11:24:24 UTC, Jonathan M Davis wrote: On Friday, February 23, 2018 10:57:21 Martin Nowak via Digitalmars-d- announce wrote: On Friday, 23 February 2018 at 10:48:10 UTC, psychoticRabbit wrote: > If D just wants to become a compiled scripting > language...good

[Maybe OT] Hashcode with Google

2018-02-23 Thread Andrea Fontana via Digitalmars-d-announce
It could be interesting if a D-team would win this :) tl;dr: Google gives a coding problem, you have to solve it. Any programming language is accepted. You have to register your team. Details: https://hashcode.withgoogle.com/overview.html Previous problems:

Re: Beta 2.079.0

2018-02-23 Thread aberba via Digitalmars-d-announce
On Friday, 23 February 2018 at 03:26:11 UTC, Seb wrote: On Friday, 23 February 2018 at 03:20:22 UTC, psychoticRabbit wrote: compared to the current change in beta. FWIW the change is almost gone from the beta: https://github.com/dlang/dmd/pull/7939 Glad its *almost* gone. That change

DConf 2018 Munich; The Venue

2018-02-23 Thread Mike Parker via Digitalmars-d-announce
A bit of info to help kick start sightseeing plans in Munich and plan your stay at the NH Munich Messe. Don't forget, the submission deadline is this weekend: Feb 25 at midnight AOE. The blog: https://dlang.org/blog/2018/02/23/dconf-2018-munich-the-venue/ Reddit:

Re: Beta 2.079.0

2018-02-23 Thread psychoticRabbit via Digitalmars-d-announce
On Friday, 23 February 2018 at 12:06:23 UTC, Patrick Schluter wrote: Absolutely. D scripting is the trojan horse that enables introduction of it in hostile environment. Runnable compiled source code is nice. scripting languages is reinventing computer science.. only really badly.

Re: Beta 2.079.0

2018-02-23 Thread Steven Schveighoffer via Digitalmars-d-announce
On 2/23/18 8:13 AM, jmh530 wrote: On Friday, 23 February 2018 at 11:57:05 UTC, Martin Nowak wrote: A newcomer to D could rightfully conclude that comma is a module separator and the following is the correct syntax to import multiple symbols.     import std.stdio, std.conv : to, std.conv :

Re: Beta 2.079.0

2018-02-23 Thread Paolo Invernizzi via Digitalmars-d-announce
On Friday, 23 February 2018 at 11:57:05 UTC, Martin Nowak wrote: On Monday, 19 February 2018 at 15:58:57 UTC, Joakim wrote: Given the effort required for a language change, it's seductive to streamline seemingly small changes, but it certainly increases the risk of design mistakes, thanks

Re: Beta 2.079.0

2018-02-23 Thread jmh530 via Digitalmars-d-announce
On Friday, 23 February 2018 at 11:57:05 UTC, Martin Nowak wrote: A newcomer to D could rightfully conclude that comma is a module separator and the following is the correct syntax to import multiple symbols. import std.stdio, std.conv : to, std.conv : parse; What if you have

Re: Beta 2.079.0

2018-02-23 Thread Martin Nowak via Digitalmars-d-announce
On Friday, 23 February 2018 at 11:57:05 UTC, Martin Nowak wrote: But certainly anything in that direction requires time and research, which I don't have for that topic. Also new syntax would likely be met with strong resistance due to the amount of induced churn.

Re: Beta 2.079.0

2018-02-23 Thread Patrick Schluter via Digitalmars-d-announce
On Friday, 23 February 2018 at 09:48:33 UTC, Norm wrote: [snip] On Friday, 23 February 2018 at 04:06:23 UTC, psychoticRabbit wrote: Third, making D more and more like a quick scripting/hacking language (by removing or hiding so called 'noise', is not a good idea in my opinion. That too

Re: Beta 2.079.0

2018-02-23 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 19 February 2018 at 15:58:57 UTC, Joakim wrote: 17. Allow multiple selective imports from different modules in a single import statement Let me hopefully conclude this discussion :). We have an existing ambiguity in the language since at least dmd 1.0. This is unfortunate but

Re: Beta 2.079.0

2018-02-23 Thread Jonathan M Davis via Digitalmars-d-announce
On Friday, February 23, 2018 10:57:21 Martin Nowak via Digitalmars-d- announce wrote: > On Friday, 23 February 2018 at 10:48:10 UTC, psychoticRabbit > > wrote: > > If D just wants to become a compiled scripting language...good > > luck to it. > > That's certainly not the goal, but as with every

Re: Beta 2.079.0

2018-02-23 Thread Martin Nowak via Digitalmars-d-announce
On Friday, 23 February 2018 at 10:48:10 UTC, psychoticRabbit wrote: If D just wants to become a compiled scripting language...good luck to it. That's certainly not the goal, but as with every tool people become very familiar with, it's used creatively for things other than initially

Re: Beta 2.079.0

2018-02-23 Thread psychoticRabbit via Digitalmars-d-announce
On Friday, 23 February 2018 at 09:48:33 UTC, Norm wrote: This import feature and surrounding discussion I couldn't care less about ... I actually spend far more time reading large chunks of code, than writing code, and I certainly do NOT want to spend extra time deciphering imports, due to

Re: Beta 2.079.0

2018-02-23 Thread Jonathan M Davis via Digitalmars-d-announce
On Friday, February 23, 2018 09:48:33 Norm via Digitalmars-d-announce wrote: > [snip] > On Friday, 23 February 2018 at 04:06:23 UTC, psychoticRabbit > > wrote: > > Third, making D more and more like a quick scripting/hacking > > language (by removing or hiding so called 'noise', is not a > > good

Re: Beta 2.079.0

2018-02-23 Thread Martin Nowak via Digitalmars-d-announce
On Friday, 23 February 2018 at 09:48:33 UTC, Norm wrote: Ability to quickly script in D was a big selling point for D at my workplace, I'd say *the* feature that got uninterested developers listening and trying the language. Being able to replace their Python scripts with a fast native

Re: Beta 2.079.0

2018-02-23 Thread Jonathan M Davis via Digitalmars-d-announce
On Friday, February 23, 2018 10:08:58 Mike Franklin via Digitalmars-d- announce wrote: > On Friday, 23 February 2018 at 09:18:33 UTC, Jacob Carlborg wrote: > > On 2018-02-19 11:49, Martin Nowak wrote: > >> Glad to announce the first beta for the 2.079.0 release, ♥ to > >> the 77 > >> contributors

Re: Beta 2.079.0

2018-02-23 Thread Mike Franklin via Digitalmars-d-announce
On Friday, 23 February 2018 at 09:18:33 UTC, Jacob Carlborg wrote: On 2018-02-19 11:49, Martin Nowak wrote: Glad to announce the first beta for the 2.079.0 release, ♥ to the 77 contributors for this release. The following is a regression that breaks DWT: extern (C) void foo(int) { } extern

Re: Beta 2.079.0

2018-02-23 Thread Norm via Digitalmars-d-announce
[snip] On Friday, 23 February 2018 at 04:06:23 UTC, psychoticRabbit wrote: Third, making D more and more like a quick scripting/hacking language (by removing or hiding so called 'noise', is not a good idea in my opinion. That too seemed to be a motivator for at some aspect of the change.

Re: Beta 2.079.0

2018-02-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-02-19 11:49, Martin Nowak wrote: Glad to announce the first beta for the 2.079.0 release, ♥ to the 77 contributors for this release. The following is a regression that breaks DWT: extern (C) void foo(int) { } extern (C) void foo(double) { } The above used to compile but now results