Re: mysql-native: preview3 (docs)

2017-02-06 Thread Suliman via Digitalmars-d-announce
On Monday, 6 February 2017 at 20:32:24 UTC, Nick Sabalausky wrote: https://github.com/Abscissa/mysql-native-experimental Tag: v0.2.0-preview3 Just a few doc updates this time: - Docs now include the `mysql.db.MysqlDB` to `mysql.pool.MySqlPool` change from preview2 - Clarified "Prepared" vs

Re: Internal error on Wiki page

2017-02-06 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 7 February 2017 at 02:43:36 UTC, Luís Marques wrote: This page shows an error instead of displaying the Wiki content: [54c97baea4172eeabd69f522] 2017-02-06 13:47:44: Fatal exception of type "Error" Hi, I've updated the

Re: Array start index

2017-02-06 Thread WhatMeForget via Digitalmars-d-learn
On Saturday, 1 August 2015 at 09:35:53 UTC, DLearner wrote: Does the D language set in stone that the first element of an array _has_ to be index zero? Wouldn't starting array elements at one avoid the common 'off-by-one' logic error, it does seem more natural to begin a count at 1. Actually,

Re: Internal error on Wiki page

2017-02-06 Thread Joakim via Digitalmars-d
On Tuesday, 7 February 2017 at 02:43:36 UTC, Luís Marques wrote: This page shows an error instead of displaying the Wiki content: [54c97baea4172eeabd69f522] 2017-02-06 13:47:44: Fatal exception of type "Error" Just saw this yesterday

Re: Name That Technique!

2017-02-06 Thread TheGag96 via Digitalmars-d
On Monday, 6 February 2017 at 11:03:32 UTC, Walter Bright wrote: On 2/6/2017 12:45 AM, Dominikus Dittes Scherkl wrote: But is this really worth an article? It's ideally suited for an article. It's easy to grasp, and enables a very interesting idiom. I personally think the idiom is neato

Re: Natural sorted list of files

2017-02-06 Thread Dmitry via Digitalmars-d-learn
On Monday, 6 February 2017 at 18:57:17 UTC, Ali Çehreli wrote: I think it's now std.algorithm.chunkBy. Please fix Rosetta Thank you! I fixed, but anyway it works incorrect (it doesn't any changes): Code: https://rosettacode.org/wiki/Natural_sorting#D Result: http://pastebin.com/hhSB4Vpn

GSoC Needs Mentors

2017-02-06 Thread Craig Dillabaugh via Digitalmars-d
Hi All I want to put out a call for mentors for the 2017 Google Summer of Code. I've heard back from a few of you but still only have about 3 mentors officially confirmed. Perhaps some of the past mentors are assuming that I know you are willing to do it again, but I don't like to put

Re: Internal error on Wiki page

2017-02-06 Thread rikki cattermole via Digitalmars-d
On 07/02/2017 3:43 PM, Luís Marques wrote: This page shows an error instead of displaying the Wiki content: [54c97baea4172eeabd69f522] 2017-02-06 13:47:44: Fatal exception of type "Error" If you're logged in it will work fine. There is

Internal error on Wiki page

2017-02-06 Thread Luís Marques via Digitalmars-d
This page shows an error instead of displaying the Wiki content: [54c97baea4172eeabd69f522] 2017-02-06 13:47:44: Fatal exception of type "Error"

Re: Array start index

2017-02-06 Thread bachmeier via Digitalmars-d-learn
On Monday, 6 February 2017 at 18:55:19 UTC, pineapple wrote: One reason for zero-based indexes that isn't "it's what we're all used to" is that if you used one-based indexes, you would be able to represent one fewer index than zero-based, since one of the representable values - zero - could no

Re: Array start index

2017-02-06 Thread Ali Çehreli via Digitalmars-d-learn
On 02/06/2017 03:00 PM, Bastiaan Veelo wrote: > In "Numerical Recipes in C", section 1.2, Press et al. propose an easy > solution using an offset pointer: > > float b[4], *bb; > bb = b - 1; > > Thus bb[1] through bb[4] all exist, no space is wasted nor is there a > run-time overhead. > > I have

Re: Array start index

2017-02-06 Thread Bastiaan Veelo via Digitalmars-d-learn
(There is an honest question in the end, please read on.) All good reasons set aside, both in favour and against 0-based arrays, the only reason that is relevant to me right now is that we are seriously looking into translating close to a million lines of foreign code to D, from a language

Re: Call for arms: Arch Linux D package maintenance

2017-02-06 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Thursday, 2 February 2017 at 11:34:42 UTC, Dicebot wrote: On Thursday, 2 February 2017 at 10:01:04 UTC, qznc wrote: In another thread [0] Snap packages are discussed. What is the view of Arch? If Snap wins, there would be only one package to maintain for all distros. [0]

Re: vibe.d 0.8.0 and 0.7.31 beta releases

2017-02-06 Thread Sönke Ludwig via Digitalmars-d-announce
Am 06.02.2017 um 14:35 schrieb aberba: On Friday, 3 February 2017 at 13:21:18 UTC, Sönke Ludwig wrote: Am 03.02.2017 um 10:28 schrieb yazd: [...] Keeping the system overloads would break the safety guarantees at a relatively deep level and would render the whole effort rather useless (this

Where are bearophile and Kenji?

2017-02-06 Thread Ali Çehreli via Digitalmars-d-learn
On 02/06/2017 12:17 PM, Paolo Invernizzi wrote: > I'm missing Bearophile... > (and btw, Kenji) Anybody knows where they are? Rust? Haskell? Something else? :) Ali

Re: Initialization of dynamic multidimensional array

2017-02-06 Thread Ali Çehreli via Digitalmars-d-learn
On 02/05/2017 12:33 PM, berni wrote: With X not known at compile time: auto arr = new int[][](X,X); for (int i=0;i

Re: Why we need DIP25 and DIP1000

2017-02-06 Thread deadalnix via Digitalmars-d
On Monday, 6 February 2017 at 11:02:31 UTC, Walter Bright wrote: https://www.reddit.com/r/programming/comments/5sda9s/what_rust_can_do_that_other_languages_cant_in_six/ https://news.ycombinator.com/item?id=13576976 (On ycombinator, don't click on the link above, click on

Re: The extent of trust in errors and error handling

2017-02-06 Thread Chris Wright via Digitalmars-d
On Mon, 06 Feb 2017 18:12:38 +, Caspar Kielwein wrote: > I absolutely agree with Walter and Ali, that there are applications > where on Error anything but termination of the process is unacceptable. Sure, and it looks like you spend a ton of effort to make things work properly and to make

Re: Boston D Meetup 2/9: `shared` Experiences

2017-02-06 Thread Michael Coulombe via Digitalmars-d-announce
On Monday, 6 February 2017 at 11:58:40 UTC, Guillaume Piolat wrote: On Friday, 3 February 2017 at 21:25:48 UTC, bitwise wrote: On Monday, 30 January 2017 at 21:48:57 UTC, Steven Schveighoffer wrote: https://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/237324049/ -Steve

Re: mysql-native: preview3 (docs)

2017-02-06 Thread Nick Sabalausky via Digitalmars-d-announce
https://github.com/Abscissa/mysql-native-experimental Tag: v0.2.0-preview3 Just a few doc updates this time: - Docs now include the `mysql.db.MysqlDB` to `mysql.pool.MySqlPool` change from preview2 - Clarified "Prepared" vs "PreparedImpl" - Clarified "exec" vs "query" - Rewrite the docs for

Re: Initialization of dynamic multidimensional array

2017-02-06 Thread Daniel Kozak via Digitalmars-d-learn
One another way is use something like this: import std.array, std.algorithm, std.stdio; auto arr = uninitializedArray!(int[][])(ROWS,COLS); arr.each!"a[]=-1"; writeln(arr); Dne 6. 2. 2017 8:21 PM napsal uživatel "berni via Digitalmars-d-learn" < digitalmars-d-learn@puremagic.com>: > On Sunday, 5

Re: Natural sorted list of files

2017-02-06 Thread Paolo Invernizzi via Digitalmars-d-learn
On Monday, 6 February 2017 at 18:57:17 UTC, Ali Çehreli wrote: On 02/06/2017 08:43 AM, Dmitry wrote: Found this https://rosettacode.org/wiki/Natural_sorting#D but there is error on ".groupBy!isDigit" (Error: no property 'groupBy' for type 'string'). I think it's now std.algorithm.chunkBy.

Re: The extent of trust in errors and error handling

2017-02-06 Thread Walter Bright via Digitalmars-d
On 2/6/2017 9:10 AM, Chris Wright wrote: Assuming that crashing results in less loss of money or lives than marching on. Any application that must continue or lives are lost is a BADLY designed system and should not be tolerated.

Re: Initialization of dynamic multidimensional array

2017-02-06 Thread berni via Digitalmars-d-learn
On Sunday, 5 February 2017 at 21:14:33 UTC, Daniel Kozak wrote: http://stackoverflow.com/questions/24600796/d-set-default-value-for-a-struct-member-which-is-a-multidimensional-static-arr/24754361#24754361 Dne 5.2.2017 v 21:33 berni via Digitalmars-d-learn napsal(a): With X not known at

Re: Natural sorted list of files

2017-02-06 Thread Ali Çehreli via Digitalmars-d-learn
On 02/06/2017 08:43 AM, Dmitry wrote: Found this https://rosettacode.org/wiki/Natural_sorting#D but there is error on ".groupBy!isDigit" (Error: no property 'groupBy' for type 'string'). I think it's now std.algorithm.chunkBy. Please fix Rosetta Code as well. Thanks! :) Ali

Re: Array start index

2017-02-06 Thread Nemanja Boric via Digitalmars-d-learn
On Monday, 6 February 2017 at 18:55:19 UTC, pineapple wrote: One reason for zero-based indexes that isn't "it's what we're all used to" is that if you used one-based indexes, you would be able to represent one fewer index than zero-based, since one of the representable values - zero - could no

Re: Array start index

2017-02-06 Thread pineapple via Digitalmars-d-learn
One reason for zero-based indexes that isn't "it's what we're all used to" is that if you used one-based indexes, you would be able to represent one fewer index than zero-based, since one of the representable values - zero - could no longer be used to represent any index. Also, it's what

Re: The extent of trust in errors and error handling

2017-02-06 Thread Ali Çehreli via Digitalmars-d
On 02/06/2017 09:25 AM, Chris Wright wrote: > https://github.com/munificent/vigil is the programming language for you. Brilliant! :) Ali

Re: The extent of trust in errors and error handling

2017-02-06 Thread Caspar Kielwein via Digitalmars-d
On Monday, 6 February 2017 at 17:40:50 UTC, Chris Wright wrote: It works for every other programming language I've encountered. This issue is language agnostic. It works in D as well but at the same level of correctness and unknowns. I haven't heard anyone complaining about this elsewhere.

Re: Natural sorted list of files

2017-02-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, February 06, 2017 17:48:28 Dmitry via Digitalmars-d-learn wrote: > On Monday, 6 February 2017 at 17:35:02 UTC, Jonathan M Davis > > wrote: > > You have to import std.range to use groupBy. > > Of course, "import std.range" already done. Hmm. Well, the error your getting typically is the

Re: Natural sorted list of files

2017-02-06 Thread Dmitry via Digitalmars-d-learn
On Monday, 6 February 2017 at 17:35:02 UTC, Jonathan M Davis wrote: You have to import std.range to use groupBy. Of course, "import std.range" already done. I tested it also with full rosetta's code: import std.stdio, std.string, std.algorithm, std.array, std.conv, std.ascii, std.range;

Re: The extent of trust in errors and error handling

2017-02-06 Thread Chris Wright via Digitalmars-d
On Sun, 05 Feb 2017 22:23:19 -0800, Ali Çehreli wrote: > On 02/05/2017 10:08 PM, Chris Wright wrote: > > How do you recommend it leave behind enough data for me to > > investigate the next day when I see there was a problem? > > The current approach is to rely on the backtrace produced when

Re: Natural sorted list of files

2017-02-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, February 06, 2017 16:43:45 Dmitry via Digitalmars-d-learn wrote: > Hi. I'm need get list of files in the directory, with natural > sort, like: > file_2 > file_8 > file_10 > file_11 > file_20 > file_100 > etc. > > Found this https://rosettacode.org/wiki/Natural_sorting#D > but there is

Re: The extent of trust in errors and error handling

2017-02-06 Thread Chris Wright via Digitalmars-d
On Mon, 06 Feb 2017 09:09:31 +, Dominikus Dittes Scherkl wrote: > On Monday, 6 February 2017 at 06:08:22 UTC, Chris Wright wrote: >> On Sat, 04 Feb 2017 23:48:48 -0800, Ali Çehreli wrote: >>> What I and many others who say Errors should not be caught are saying >>> is, once the program is in

Re: The extent of trust in errors and error handling

2017-02-06 Thread Chris Wright via Digitalmars-d
On Sun, 05 Feb 2017 23:48:07 -0800, Walter Bright wrote: > This discussion has come up repeatedly on this forum. Many people > strongly disagree with me, and believe that they can recover from Errors > and continue executing the program. > > That's fine if the program's output is nothing one

Re: Database of practicality will be an important factor for development of D language in the future

2017-02-06 Thread Jack Applegame via Digitalmars-d
On Thursday, 2 February 2017 at 13:28:48 UTC, Shachar Shemesh wrote: On 02/02/17 14:50, Adam D. Ruppe wrote: On Thursday, 2 February 2017 at 05:33:57 UTC, FrankLike wrote: For example, I want to do the execution of stored procedure for MSSql、MySQL database. I found in Mysql-d, Mysql-Native,

Re: Array start index

2017-02-06 Thread Bastiaan Veelo via Digitalmars-d-learn
On Monday, 6 February 2017 at 14:26:35 UTC, Bastiaan Veelo wrote: The unit test didn't detect this because it was ambiguous. Sorry for that misinformation. I should have said that opIndexAssign wasn't tested. Here is a better test. unittest { OneBasedArray!int arr; arr =

Natural sorted list of files

2017-02-06 Thread Dmitry via Digitalmars-d-learn
Hi. I'm need get list of files in the directory, with natural sort, like: file_2 file_8 file_10 file_11 file_20 file_100 etc. Found this https://rosettacode.org/wiki/Natural_sorting#D but there is error on ".groupBy!isDigit" (Error: no property 'groupBy' for type 'string'). with deleted line

Re: Request for conference talk

2017-02-06 Thread Stefan Koch via Digitalmars-d
On Monday, 6 February 2017 at 15:56:26 UTC, Chris Engelbert wrote: On Friday, 3 February 2017 at 11:31:26 UTC, Stefan Koch wrote: Hello Chris, would you also be interested in a more compiler-internals related talk about D ? If so I am happy to volunteer. To me personally it would be

Re: Request for conference talk

2017-02-06 Thread Chris Engelbert via Digitalmars-d
On Friday, 3 February 2017 at 12:08:44 UTC, qznc wrote: I'm tempted and will think about it. Topic idea one: Dust off my "Functional Programming in D" [0] talk. However, it is tight in 40 minutes for an audience, which probably does not know D at all. Topic idea two: A more general talk

Re: Request for conference talk

2017-02-06 Thread Chris Engelbert via Digitalmars-d
On Friday, 3 February 2017 at 11:31:26 UTC, Stefan Koch wrote: Hello Chris, would you also be interested in a more compiler-internals related talk about D ? If so I am happy to volunteer. To me personally it would be extremely interesting but not sure about the audience overall. But maybe a

Re: Database of practicality will be an important factor for development of D language in the future

2017-02-06 Thread FrankLike via Digitalmars-d
On Monday, 6 February 2017 at 14:27:24 UTC, Adam D. Ruppe wrote: On Monday, 6 February 2017 at 14:17:39 UTC, FrankLike wrote: [Microsoft][ODBC SQL Server Driver]The connection is busy resulting in another hstmt Process one result before trying to do another query. If you need the data

Re: Database of practicality will be an important factor for development of D language in the future

2017-02-06 Thread FrankLike via Digitalmars-d
On Thursday, 2 February 2017 at 12:41:06 UTC, aberba wrote: On Thursday, 2 February 2017 at 05:33:57 UTC, FrankLike wrote: I use mysql with for vibe.d project and either mysql-lited or mysql-native works well for me. There seem to be no mssql package though (because few people will pay to

Re: Database of practicality will be an important factor for development of D language in the future

2017-02-06 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 6 February 2017 at 14:17:39 UTC, FrankLike wrote: [Microsoft][ODBC SQL Server Driver]The connection is busy resulting in another hstmt Process one result before trying to do another query. If you need the data stored, you can do foreach and save the parts you want to an array (it

Re: Array start index

2017-02-06 Thread Bastiaan Veelo via Digitalmars-d-learn
On Tuesday, 4 August 2015 at 08:18:50 UTC, Marc Schütz wrote: void opIndexAssign(U : T)(size_t index, auto ref U value) { Careful here, you've got the arguments reversed. The unit test didn't detect this because it was ambiguous. This one isn't: unittest {

Re: Database of practicality will be an important factor for development of D language in the future

2017-02-06 Thread FrankLike via Digitalmars-d
On Monday, 6 February 2017 at 14:04:37 UTC, Adam D. Ruppe wrote: On Monday, 6 February 2017 at 12:30:11 UTC, FrankLike wrote: Please help me,thank you. 1. arsd.database.ResultSet MSa = MSSqlCon.query(someCmd1); arsd.database.ResultSet MSb = MSSqlCon.query(someCmd2); int icolNumA =

Re: The extent of trust in errors and error handling

2017-02-06 Thread Jacob Carlborg via Digitalmars-d
On 2017-02-06 08:48, Walter Bright wrote: For example, if I feed a D source file to a C compiler and the C compiler crashes, the C compiler has a bug in it, which is an Error. If the C compiler instead writes a message "Error: D source code found instead of C source code, please upgrade to a D

Re: Database of practicality will be an important factor for development of D language in the future

2017-02-06 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 6 February 2017 at 12:30:11 UTC, FrankLike wrote: But mysqlnative.d is not good. idk, I have never used that one.

Re: vibe.d 0.8.0 and 0.7.31 beta releases

2017-02-06 Thread aberba via Digitalmars-d-announce
On Friday, 3 February 2017 at 13:21:18 UTC, Sönke Ludwig wrote: Am 03.02.2017 um 10:28 schrieb yazd: [...] Keeping the system overloads would break the safety guarantees at a relatively deep level and would render the whole effort rather useless (this is the case for non-scope callbacks

Re: Snap package for LDC 1.1.0 available to test

2017-02-06 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Monday, 6 February 2017 at 12:50:15 UTC, qznc wrote: Worked in my quick try. :) Great, thanks for trying it out :-) Why does it not show up with `snap find`? Because it is "edge"? Yes, I think so. Off the top of my head I can't remember what the command is to find snaps in non-stable

Re: Snap package for LDC 1.1.0 available to test

2017-02-06 Thread qznc via Digitalmars-d-announce
On Friday, 3 February 2017 at 22:56:33 UTC, Joseph Rushton Wakeling wrote: Please do let me know what your experience is trying the package! Worked in my quick try. :) Why does it not show up with `snap find`? Because it is "edge"?

Re: Database of practicality will be an important factor for development of D language in the future

2017-02-06 Thread FrankLike via Digitalmars-d
On Thursday, 2 February 2017 at 12:50:02 UTC, Adam D. Ruppe wrote: On Thursday, 2 February 2017 at 05:33:57 UTC, FrankLike wrote: For example, I want to do the execution of stored procedure for MSSql、MySQL database. I found in Mysql-d, Mysql-Native, arsd, DDBC, etc. there is no result.

Re: Boston D Meetup 2/9: `shared` Experiences

2017-02-06 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 3 February 2017 at 21:25:48 UTC, bitwise wrote: On Monday, 30 January 2017 at 21:48:57 UTC, Steven Schveighoffer wrote: https://www.meetup.com/Boston-area-D-Programming-Language-Meetup/events/237324049/ -Steve Will there be a recording of this? +1 some knowledge sharing about

Re: Name That Technique!

2017-02-06 Thread Mike Parker via Digitalmars-d
On Monday, 6 February 2017 at 09:39:25 UTC, Dominikus Dittes Scherkl wrote: On Monday, 6 February 2017 at 09:00:43 UTC, Mike Parker wrote: On Monday, 6 February 2017 at 08:45:45 UTC, Dominikus Dittes Scherkl wrote: But is this really worth an article? IMO, as something targeted at non-D

Re: Name That Technique!

2017-02-06 Thread Walter Bright via Digitalmars-d
On 2/6/2017 12:45 AM, Dominikus Dittes Scherkl wrote: But is this really worth an article? It's ideally suited for an article. It's easy to grasp, and enables a very interesting idiom.

Why we need DIP25 and DIP1000

2017-02-06 Thread Walter Bright via Digitalmars-d
https://www.reddit.com/r/programming/comments/5sda9s/what_rust_can_do_that_other_languages_cant_in_six/ https://news.ycombinator.com/item?id=13576976 (On ycombinator, don't click on the link above, click on https://news.ycombinator.com and looke for "What Rust Can Do That Other Languages

[Issue 15984] [REG2.071] Interface contracts retrieve garbage instead of parameters

2017-02-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15984 --- Comment #12 from anonymous4 --- AFAIK, normal nested function doesn't trigger closure allocation if it's only called and its delegate is not taken. --

Re: Name That Technique!

2017-02-06 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Monday, 6 February 2017 at 09:00:43 UTC, Mike Parker wrote: On Monday, 6 February 2017 at 08:45:45 UTC, Dominikus Dittes Scherkl wrote: But is this really worth an article? IMO, as something targeted at non-D users, yes. Oh yeah? For bragging about how D uses modules and doesn't need

Re: The extent of trust in errors and error handling

2017-02-06 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Monday, 6 February 2017 at 06:08:22 UTC, Chris Wright wrote: On Sat, 04 Feb 2017 23:48:48 -0800, Ali Çehreli wrote: What I and many others who say Errors should not be caught are saying is, once the program is in an unexpected state, attempting to do anything further is wishful thinking.

Re: Name That Technique!

2017-02-06 Thread Mike Parker via Digitalmars-d
On Monday, 6 February 2017 at 08:45:45 UTC, Dominikus Dittes Scherkl wrote: But is this really worth an article? IMO, as something targeted at non-D users, yes. A brief overview of D's module system, a description of the problem & how the DIP was brought up to address it, how the DIP was

Re: Name That Technique!

2017-02-06 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Friday, 3 February 2017 at 23:33:58 UTC, Walter Bright wrote: On 2/3/2017 11:14 AM, Andrei Alexandrescu wrote: On 2/3/17 10:41 AM, Daniel N wrote: On Friday, 3 February 2017 at 14:43:01 UTC, Dominikus Dittes Scherkl wrote: DIP 1005 provides new syntax to make it possible to avoid global

[Issue 17149] to!int("42", 16, LetterCase.lower) does not compile

2017-02-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17149 Jonathan M Davis changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17150] New: Add a trait to detect the linkage attribute of classes and interfaces

2017-02-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17150 Issue ID: 17150 Summary: Add a trait to detect the linkage attribute of classes and interfaces Product: D Version: D2 Hardware: All OS: All Status: