Request for conference talk

2017-02-02 Thread Chris Engelbert via Digitalmars-d
Hey guys, we organize a conference (TopConf) this year for the first time in Dusseldorf, Germany. I would like to see if there are interested speakers to give a talk about D. The conference is hold in English and is not specific to a single programming language but will feature multiple

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread Daniel Kozak via Digitalmars-d-learn
Even this one could works: import std.stdio; void main(string[] args) { auto range = File("text.txt").byLine(); foreach (line; range) { if (line != "") { writeln(line); range.popFront; char[] url = range.front().dup;

Re: The extent of trust in errors and error handling

2017-02-02 Thread Joakim via Digitalmars-d
On Thursday, 2 February 2017 at 09:14:43 UTC, Paolo Invernizzi wrote: On Wednesday, 1 February 2017 at 21:55:40 UTC, Dukc wrote: On Wednesday, 1 February 2017 at 19:25:07 UTC, Ali Çehreli Regarding that, I have trought that wouldn't it be better if it was bounds checking instead of debug vs

CI is broken

2017-02-02 Thread Jack Stouffer via Digitalmars-d
Trying to raise visibility on this issue. dscanner doesn't recognize the new DIP1000 syntax, so it errors out when running on CircleCI. All current PRs don't have either working style checks or coverage reports. If someone with knowledge of dscanner could take a look at this, it would be

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread John Doe via Digitalmars-d-learn
On Thursday, 2 February 2017 at 20:26:36 UTC, Daniel Kozak wrote: Dne 2. 2. 2017 20:35 napsal uživatel "John Doe via Digitalmars-d-learn" < digitalmars-d-learn@puremagic.com>: On Thursday, 2 February 2017 at 18:58:46 UTC, Daniel Kozak wrote: [...] Thanks readln is perfect. Since I am

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread Jack Stouffer via Digitalmars-d-learn
On Thursday, 2 February 2017 at 18:18:13 UTC, John Doe wrote: Let's say you're trying to parse a file format like: Name http://example.com 123234 Foo Bar http://dlang.org 88 with blocks separated by varying amount of blank lines. - import std.stdio; void main(string[] args){

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread Walter Bright via Digitalmars-d
On 2/2/2017 8:44 AM, Chris Wright wrote: Assuming you're writing cross-platform code. How common is that? Exactly. That's why Valgrind is not a substitute for a language that offers memory safety features.

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread Walter Bright via Digitalmars-d
On 2/2/2017 6:19 AM, Atila Neves wrote: Also, unless you're testing possible bugs in compiler backends or the C standard library, it mostly doesn't matter. Compile on regular x86/Linux and run valgrind/asan there. I've often been able to flush out difficult bugs by compiling on another

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread John Doe via Digitalmars-d-learn
On Thursday, 2 February 2017 at 18:58:46 UTC, Daniel Kozak wrote: Even this one could works: import std.stdio; void main(string[] args) { auto range = File("text.txt").byLine(); foreach (line; range) { if (line != "") { writeln(line);

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread Ali Çehreli via Digitalmars-d-learn
On 02/02/2017 11:30 AM, Daniel Kozak via Digitalmars-d-learn wrote: More range aproach, untested written on the fly from mobile phone import std.stdio : File; import std.range : chunks; import.std.algorithm : map, filter, array; void main() { auto r = File("text.txt").byLine

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread Random D user via Digitalmars-d
On Wednesday, 1 February 2017 at 23:49:29 UTC, H. S. Teoh wrote: We would love to change the defaults, but unfortunately that boat has already sailed a long time ago. What if d had a -safe-defaults switch? It should be ok, since safe is stricter than unsafe right? This way old/existing code

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread Daniel Kozak via Digitalmars-d-learn
More range aproach, untested written on the fly from mobile phone import std.stdio : File; import std.range : chunks; import.std.algorithm : map, filter, array; void main() { auto r = File("text.txt").byLine .filter!(a=>a.length) .chunks(2) .map!(a=>[a[0].dup, a[1].dup])

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread Daniel Kozak via Digitalmars-d-learn
Dne 2. 2. 2017 20:35 napsal uživatel "John Doe via Digitalmars-d-learn" < digitalmars-d-learn@puremagic.com>: On Thursday, 2 February 2017 at 18:58:46 UTC, Daniel Kozak wrote: > Even this one could works: > > import std.stdio; > > void main(string[] args) > { > auto range =

Re: mysql-native: API Refresh RC

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 03:23 AM, Suliman wrote: mydb.lockConnection() does create a new connection if it needs to. And that WILL throw an exception if there's a problem connecting to the DB server. So your code above WILL catch an exception if the connection information (server address/port/login/etc) is

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread Walter Bright via Digitalmars-d
On 2/2/2017 12:37 PM, Random D user wrote: I prefer flexible (fun), fast and debuggable (debugger/printing friendly) code. It seems that neither @safe or const are part of it. (I'm not writing life and death safety critical code anyway). One nice feature of D is you don't have to use const,

Re: vibe.d 0.8.0 and 0.7.31 beta releases

2017-02-02 Thread Sönke Ludwig via Digitalmars-d-announce
0.8.0-beta.2 and 0.7.31-beta.2 have been tagged now and fix the issues found so far.

[Issue 5548] Efficient std.conv.to conversions

2017-02-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5548 Jon Degenhardt changed: What|Removed |Added CC|

Re: capture stdout or stderr

2017-02-02 Thread sarn via Digitalmars-d-learn
On Wednesday, 1 February 2017 at 01:08:19 UTC, Emil wrote: is it possible to intercept the STDOUT or STDERR and capture the output into a variable ? some pseudocode to explain what I mean string[] output_buffer; stdout.capture_to(output_buffer); writeln("test 1"); # not printed

Re: capture stdout or stderr

2017-02-02 Thread Emil via Digitalmars-d-learn
On Wednesday, 1 February 2017 at 14:38:18 UTC, angel wrote: On Wednesday, 1 February 2017 at 01:08:19 UTC, Emil wrote: is it possible to intercept the STDOUT or STDERR and capture the output into a variable ? . writeln(output_buffer); # prints '["test 1","test 2"]' No. Please keep in

Re: CI is broken

2017-02-02 Thread Basile B. via Digitalmars-d
On Thursday, 2 February 2017 at 20:56:35 UTC, Jack Stouffer wrote: Trying to raise visibility on this issue. dscanner doesn't recognize the new DIP1000 syntax, so it errors out when running on CircleCI. All current PRs don't have either working style checks or coverage reports. If someone

Re: mysql-native: API Refresh RC

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 04:33 AM, Suliman wrote: ResultSet querySet(Connection conn, string sql, ColumnSpecialization[] csa = null) Could you explain last parameter? `ColumnSpecialization[] csa = null`. I can't understand how to use it. The vast majority of the time, you don't need to worry about

Re: mysql-native: preview2

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 02:22 AM, Suliman wrote: > Am I right understand that if I use pool I can create connection > instance one time in DB class constructor end every new connection > will be created on demand? No. You create the pool once (wherever/whenever you want to). Then, every time you want to

Re: mysql-native: preview2

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 09:46 AM, Suliman wrote: Could you explain real case if rangification of ResultSet http://semitwist.com/mysql-native-docs/v0.2.0-preview1/mysql/result/ResultSet.html Does it's mean that I can write foreach(x;result.empty) ? Or how to use it? .empty just checks whether the

Re: mysql-native: API Refresh RC

2017-02-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 04:04:15 UTC, Nick Sabalausky wrote: On 02/01/2017 01:54 PM, Suliman wrote: Also I can't understand what is SQL Command and what exec is doing if it's returning ulong? "struct Command" should not be used. It is old, and a bad design. This new release

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread Claude via Digitalmars-d
On Wednesday, 1 February 2017 at 21:16:30 UTC, Walter Bright wrote: 6. Valgrind isn't available on all platforms, like Windows, embedded systems, phones (?), etc. You can use valgrind on embedded systems as long as they run a GNU/Linux OS. I've used valgrind successfully many times on ARM

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread Walter Bright via Digitalmars-d
On 2/2/2017 1:21 AM, Claude wrote: On Wednesday, 1 February 2017 at 21:16:30 UTC, Walter Bright wrote: 6. Valgrind isn't available on all platforms, like Windows, embedded systems, phones (?), etc. You can use valgrind on embedded systems as long as they run a GNU/Linux OS. I've used valgrind

Re: The extent of trust in errors and error handling

2017-02-02 Thread Paolo Invernizzi via Digitalmars-d
On Wednesday, 1 February 2017 at 21:55:40 UTC, Dukc wrote: On Wednesday, 1 February 2017 at 19:25:07 UTC, Ali Çehreli Regarding that, I have trought that wouldn't it be better if it was bounds checking instead of debug vs release what determined if in contracts are called? If the contract had

Re: std.system reports win32 when running OS X

2017-02-02 Thread Bauss via Digitalmars-d-learn
On Thursday, 2 February 2017 at 08:42:44 UTC, Andrea Fontana wrote: On Wednesday, 1 February 2017 at 21:43:09 UTC, Ali Çehreli wrote: That's a local variable that you've defined. Since OS.init happens to be OS.win32, that's what you get. :) Maybe it should be "unknown" or "undefined" :)

Re: std.system reports win32 when running OS X

2017-02-02 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 1 February 2017 at 21:43:09 UTC, Ali Çehreli wrote: That's a local variable that you've defined. Since OS.init happens to be OS.win32, that's what you get. :) Maybe it should be "unknown" or "undefined" :)

Re: mysql-native: API Refresh RC

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 03:23 AM, Suliman wrote: mydb.lockConnection() does create a new connection if it needs to. And that WILL throw an exception if there's a problem connecting to the DB server. So your code above WILL catch an exception if the connection information (server address/port/login/etc) is

Re: mysql-native: API Refresh RC

2017-02-02 Thread Suliman via Digitalmars-d-announce
ResultSet querySet(Connection conn, string sql, ColumnSpecialization[] csa = null) Could you explain last parameter? `ColumnSpecialization[] csa = null`. I can't understand how to use it. Could you give me your skype? Also I think it's better to remove old deprecated methods at all,

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread Daniel Kozak via Digitalmars-d-announce
I belive arch would prefer flatpak ;) Dne 2. 2. 2017 11:06 AM napsal uživatel "qznc via Digitalmars-d-announce" < digitalmars-d-announce@puremagic.com>: > On Wednesday, 1 February 2017 at 12:47:51 UTC, Dicebot wrote: > >> As I have previously announced (http://forum.dlang.org/post/o >>

Re: mysql-native: API Refresh RC

2017-02-02 Thread Suliman via Digitalmars-d-announce
mydb.lockConnection() does create a new connection if it needs to. And that WILL throw an exception if there's a problem connecting to the DB server. So your code above WILL catch an exception if the connection information (server address/port/login/etc) is wrong. But it does not. I am

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread Paolo Invernizzi via Digitalmars-d
On Wednesday, 1 February 2017 at 23:49:29 UTC, H. S. Teoh wrote: On Wed, Feb 01, 2017 at 11:49:25PM +, Mike via We would love to change the defaults, but unfortunately that boat has already sailed a long time ago. If we could do it all over again, I'm sure a lot of defaults would be the

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread qznc via Digitalmars-d-announce
On Wednesday, 1 February 2017 at 12:47:51 UTC, Dicebot wrote: As I have previously announced (http://forum.dlang.org/post/o6fbbu$1qli$1...@digitalmars.com), I am stepping down from maintaining Arch Linux packages for D. That means there are 3 possibilities: - No one will adopt them and all

The reason of vibed slow down (request timeout)

2017-02-02 Thread Suliman via Digitalmars-d-learn
I have simple web-app. Server part is based on vibed http://194.87.235.42:8080/ I can't understand the reason of issue. after some days of work when I trying to open it in web-browser it's begin opening very slooowly, or like now does not opens at all. On mobile web-browser I am getting

Re: mysql-native: preview2

2017-02-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 22:59:38 UTC, Nick Sabalausky wrote: On 02/02/2017 09:46 AM, Suliman wrote: Could you explain real case if rangification of ResultSet http://semitwist.com/mysql-native-docs/v0.2.0-preview1/mysql/result/ResultSet.html Does it's mean that I can write

Re: Associative array literal: length wrong when duplicate keys found

2017-02-02 Thread Ivan Kazmenko via Digitalmars-d-learn
On Tuesday, 31 January 2017 at 19:45:33 UTC, Ivan Kazmenko wrote: On Tuesday, 31 January 2017 at 17:20:00 UTC, John Colvin wrote: It's a bug, please report it. The initializer should be statically disallowed. Anyway, I'll file a bug report. Hmm, found it:

[Issue 15290] length of associative array literal with duplicate keys is wrong

2017-02-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15290 Ivan Kazmenko changed: What|Removed |Added CC||ga...@mail.ru --- Comment #1

Re: GSoC Project Idea's Part 2

2017-02-02 Thread jmh530 via Digitalmars-d
On Friday, 3 February 2017 at 04:12:10 UTC, Craig Dillabaugh wrote: So new project ideas are welcome, and feel free to post any ideas you have here for comment. Also we need mentors so if you post a new project, or see one on the existing ideas page please feel free to offer your services

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread Daniel Kozak via Digitalmars-d-learn
Dne 2.2.2017 v 21:43 John Doe via Digitalmars-d-learn napsal(a): On Thursday, 2 February 2017 at 20:26:36 UTC, Daniel Kozak wrote: Dne 2. 2. 2017 20:35 napsal uživatel "John Doe via Digitalmars-d-learn" < digitalmars-d-learn@puremagic.com>: On Thursday, 2 February 2017 at 18:58:46 UTC,

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread Rory McGuire via Digitalmars-d-announce
On Thu, Feb 2, 2017 at 1:29 PM, Dicebot via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Wednesday, 1 February 2017 at 18:32:48 UTC, Rory McGuire wrote: > >> I use arch and D every day. I'm willing to volunteer. I keep up to date >> with all releases and keep

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread Dicebot via Digitalmars-d-announce
On Wednesday, 1 February 2017 at 18:32:48 UTC, Rory McGuire wrote: I use arch and D every day. I'm willing to volunteer. I keep up to date with all releases and keep multiple dmd versions. If I'm maintaining the packages I'd use them (if I can still switch versions of dmd). Are you familiar

Re: mysql-native: API Refresh RC

2017-02-02 Thread aberba via Digitalmars-d-announce
On Thursday, 2 February 2017 at 08:38:32 UTC, Nick Sabalausky wrote: On 02/02/2017 03:23 AM, Suliman wrote: [...] But it does not. I am getting Access Violation instead of the exception if connection credentials is wrong: Authentication failure: Access denied for user

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread Dicebot via Digitalmars-d-announce
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] https://forum.dlang.org/post/mzklrdgeyymuwmtqz...@forum.dlang.org There is

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

2017-02-02 Thread Adam D. Ruppe via Digitalmars-d
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. db.query("CALL my_procedure(args...)"); Should work with any

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

2017-02-02 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 2 February 2017 at 13:28:48 UTC, Shachar Shemesh wrote: Arguments should ALWAYS be passed out of line of the actual call command, so that the server has no chance of confusing arguments and commands. I know. That's exactly what my library does, and I assume all the others

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

2017-02-02 Thread aberba via Digitalmars-d
On Thursday, 2 February 2017 at 05:33:57 UTC, FrankLike wrote: A good language, powerful performance is on the one hand, but, first of all is practical. No language does not involve the database, because the database is the most widely used. Why C #, Java are better than D in practical?

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

2017-02-02 Thread Shachar Shemesh via Digitalmars-d
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, arsd, DDBC, etc. there is no result. db.query("CALL

Re: GSoC Project Idea's Part 2

2017-02-02 Thread rikki cattermole via Digitalmars-d
On 03/02/2017 5:12 PM, Craig Dillabaugh wrote: So the GSoC ideas page is now at least partially complete, you can find it here: https://wiki.dlang.org/GSOC_2017_Ideas In the previous thread some of you (Rikki, Adam) had suggested some improvements to dub/the code.dlang.org website. Either of

[Issue 17139] New: [BLOCKING] dscanner needs to handle 'scope' function attributes

2017-02-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17139 Issue ID: 17139 Summary: [BLOCKING] dscanner needs to handle 'scope' function attributes Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 17139] [BLOCKING] dscanner needs to handle 'scope' function attributes

2017-02-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17139 Walter Bright changed: What|Removed |Added Keywords||rejects-valid --

Re: How to write Good IDE?

2017-02-02 Thread unDEFER via Digitalmars-d
On Friday, 3 February 2017 at 01:31:03 UTC, Chris Wright wrote: It's awkward to use dmdfe as a library, mainly because it's not vetted to work with the GC. You *can* disable the GC, invoke dmdfe, copy out the data you need, and then enable the GC. Thank you Chris, really I don't want use dmd

Typo on the grammar section of the spec

2017-02-02 Thread FatalCatharsis via Digitalmars-d
(PLEASE) correct me if I'm wrong, but on the "Initializer" rule at the line with ExpInitializer should not have a colon after it. Just spent many hours troubleshooting and I believe my problem is that. Can someone confirm or show an example where the colon is correctly applied in the language?

offline library reference documentation

2017-02-02 Thread Soolayman via Digitalmars-d-learn
Where can i get library reference for offline reading

GSoC Project Idea's Part 2

2017-02-02 Thread Craig Dillabaugh via Digitalmars-d
So the GSoC ideas page is now at least partially complete, you can find it here: https://wiki.dlang.org/GSOC_2017_Ideas In the previous thread some of you (Rikki, Adam) had suggested some improvements to dub/the code.dlang.org website. Either of you interested in mentoring something around

Re: Typo on the grammar section of the spec

2017-02-02 Thread Ali Çehreli via Digitalmars-d
On 02/02/2017 07:46 PM, FatalCatharsis wrote: On Friday, 3 February 2017 at 02:57:07 UTC, FatalCatharsis wrote: (PLEASE) correct me if I'm wrong, but on the "Initializer" rule at the line with ExpInitializer should not have a colon after it. Just spent many hours troubleshooting and I believe

Re: offline library reference documentation

2017-02-02 Thread Soolayman via Digitalmars-d-learn
On Friday, 3 February 2017 at 03:59:17 UTC, Adam D. Ruppe wrote: On Friday, 3 February 2017 at 03:44:00 UTC, Soolayman wrote: Where can i get library reference for offline reading In the dmd zip there's a folder called "html" that contains a mirror of the website. Thanks.

Re: How to write Good IDE?

2017-02-02 Thread Chris Wright via Digitalmars-d
On Wed, 01 Feb 2017 15:12:42 +, unDEFER wrote: > And I think how easier may be implement such IDE? From zero, or maybe > possible to use parts of dmd/gdc? It's awkward to use dmdfe as a library, mainly because it's not vetted to work with the GC. You *can* disable the GC, invoke dmdfe, copy

Re: Typo on the grammar section of the spec

2017-02-02 Thread FatalCatharsis via Digitalmars-d
On Friday, 3 February 2017 at 02:57:07 UTC, FatalCatharsis wrote: (PLEASE) correct me if I'm wrong, but on the "Initializer" rule at the line with ExpInitializer should not have a colon after it. Just spent many hours troubleshooting and I believe my problem is that. Can someone confirm or

Re: offline library reference documentation

2017-02-02 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 3 February 2017 at 03:44:00 UTC, Soolayman wrote: Where can i get library reference for offline reading In the dmd zip there's a folder called "html" that contains a mirror of the website.

Re: mysql-native: preview2

2017-02-02 Thread Steven Schveighoffer via Digitalmars-d-announce
On 2/2/17 1:50 AM, Suliman wrote: On Thursday, 2 February 2017 at 05:28:10 UTC, Nick Sabalausky wrote: Made a couple more long-needed changes while I'm at it: https://github.com/Abscissa/mysql-native-experimental Tag: v0.2.0-preview2 - For better clarity, renamed `mysql.db.MysqlDB` to

Re: How to write Good IDE?

2017-02-02 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 1 February 2017 at 15:12:42 UTC, unDEFER wrote: And what important for you for Good IDE? Speed. That's the only reason I use sublimetext 3 and not an IDE. rant: I abhor any kind of lag, input or otherwise. I used to play tons of fighting games and character action games, and

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread Atila Neves via Digitalmars-d
On Thursday, 2 February 2017 at 09:28:15 UTC, Walter Bright wrote: On 2/2/2017 1:21 AM, Claude wrote: On Wednesday, 1 February 2017 at 21:16:30 UTC, Walter Bright wrote: 6. Valgrind isn't available on all platforms, like Windows, embedded systems, phones (?), etc. You can use valgrind on

[Issue 17138] New: Warn about superfluous "with" statements

2017-02-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17138 Issue ID: 17138 Summary: Warn about superfluous "with" statements Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 5813] [patch] std.array.Appender has severe performance and memory leak problems.

2017-02-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5813 Jack Stouffer changed: What|Removed |Added CC||j...@jackstouffer.com

Re: mysql-native: preview2

2017-02-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 14:08:19 UTC, Steven Schveighoffer wrote: On 2/2/17 1:50 AM, Suliman wrote: On Thursday, 2 February 2017 at 05:28:10 UTC, Nick Sabalausky wrote: Made a couple more long-needed changes while I'm at it: https://github.com/Abscissa/mysql-native-experimental Tag:

[Issue 17137] New: std.stdio.readln should provide an OutputRange overload

2017-02-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17137 Issue ID: 17137 Summary: std.stdio.readln should provide an OutputRange overload Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 8260] * used three or more times on an array inside std.format.formattedRead and not guarded by template constraint

2017-02-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8260 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/c34561b284efcf4eb54701e78f3a04813f710437 Fix issue #8260 - allow only pointers as formattedRead

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread David Nadlinger via Digitalmars-d
On Thursday, 2 February 2017 at 09:28:15 UTC, Walter Bright wrote: I seem to recall Valgrind wasn't on OSX, either, at one point. Maybe that has since been corrected. It nominally works on 10.10, if I recall correctly, but not to the same standard as on Linux. For C/C++, a combination of

[Issue 5548] Efficient std.conv.to conversions

2017-02-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5548 Jack Stouffer changed: What|Removed |Added Keywords||performance

array error msg improvement

2017-02-02 Thread Profile Anaysis via Digitalmars-d
Error Error: cannot append type int[] to type int[2][] This is because I tried to slice too small [0..1] when I was suppose to do [0..2](which passes). The error message is deceiving because it makes it look like the append can't happen when it can. Should be something

Re: array error msg improvement

2017-02-02 Thread David Nadlinger via Digitalmars-d
On Thursday, 2 February 2017 at 16:08:37 UTC, Profile Anaysis wrote: Should be something like […] Thanks for the suggestion. However, please use https://issues.dlang.org for bug reports and enhancement requests. They will just get lost here on the NG. — David

Re: Typo on the grammar section of the spec

2017-02-02 Thread FatalCatharsis via Digitalmars-d
On Friday, 3 February 2017 at 05:38:16 UTC, Ali Çehreli wrote: On 02/02/2017 07:46 PM, FatalCatharsis wrote: On Friday, 3 February 2017 at 02:57:07 UTC, FatalCatharsis wrote: (PLEASE) correct me if I'm wrong, but on the "Initializer" rule at the line with ExpInitializer should not have a colon

D at FOSDEM this weekend

2017-02-02 Thread David Nadlinger via Digitalmars-d
Hi all, This year's FOSDEM is taking place Saturday–Sunday in Brussels (registration-less open source software event). Any D heads in the area? Kai Nacke is going to give a talk on PGO in LDC in the LLVM dev room [1], and I'll also be around. — David [1]

Can you read the next line while iterating over byLine?

2017-02-02 Thread John Doe via Digitalmars-d-learn
Let's say you're trying to parse a file format like: Name http://example.com 123234 Foo Bar http://dlang.org 88 with blocks separated by varying amount of blank lines. - import std.stdio; void main(string[] args){ auto range = File("text.txt").byLine(); foreach( line; range

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread Daniel Kozak via Digitalmars-d-learn
There is a readln function, and this is not forum but just web frontend around mailing list. http://forum.dlang.org/help#about Dne 2. 2. 2017 7:20 PM napsal uživatel "John Doe via Digitalmars-d-learn" < digitalmars-d-learn@puremagic.com>: > Let's say you're trying to parse a file format like: >

Re: Can you read the next line while iterating over byLine?

2017-02-02 Thread Daniel Kozak via Digitalmars-d-learn
Dne 2. 2. 2017 7:24 PM napsal uživatel "Daniel Kozak" : There is a readln function, and this is not forum but just web frontend around mailing list. http://forum.dlang.org/help#about https://dlang.org/phobos/std_stdio.html#.File.readln

Re: std.system reports win32 when running OS X

2017-02-02 Thread Dave Chapman via Digitalmars-d-learn
On Wednesday, 1 February 2017 at 21:43:09 UTC, Ali Çehreli wrote: On 02/01/2017 01:34 PM, Dave Chapman wrote: I am running an iMac with OS X 10.11.5 (El Capitan) and dmd version 2.072.2 The following program prints out OS = win32. Is this the intended behavior? #!/usr/local/bin/rdmd import

Re: How to write Good IDE?

2017-02-02 Thread unDEFER via Digitalmars-d
On Thursday, 2 February 2017 at 15:04:10 UTC, Jack Stouffer wrote: Speed. Yes, speed it will one of the main characteristic of my IDE.

Re: memcpy() comparison: C, Rust, and D

2017-02-02 Thread Chris Wright via Digitalmars-d
On Thu, 02 Feb 2017 14:19:02 +, Atila Neves wrote: > Also, unless you're testing possible bugs in compiler backends or the C > standard library, it mostly doesn't matter. Compile on regular x86/Linux > and run valgrind/asan there. Assuming you're writing cross-platform code. How common is

Re: mysql-native: preview2

2017-02-02 Thread Chris Wright via Digitalmars-d-announce
On Thu, 02 Feb 2017 06:50:34 +, Suliman wrote: > On Thursday, 2 February 2017 at 05:28:10 UTC, Nick Sabalausky wrote: >> Made a couple more long-needed changes while I'm at it: >> >> https://github.com/Abscissa/mysql-native-experimental Tag: >> v0.2.0-preview2 >> >> - For better clarity,

Re: mysql-native: API Refresh RC

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 07:10 AM, aberba wrote: * Moreover, how do I close a connection or does it auto close? It closes in its destructor (although AIUI there are times when dtors don't get run). But it can be closed manually with Connection.close(); * Does it support mysql_real_escape_string()