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
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;
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
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
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
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){
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.
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
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);
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
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
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])
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 =
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
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,
0.8.0-beta.2 and 0.7.31-beta.2 have been tagged now and fix the issues
found so far.
https://issues.dlang.org/show_bug.cgi?id=5548
Jon Degenhardt changed:
What|Removed |Added
CC|
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
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
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
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
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
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
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
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
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
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
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" :)
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" :)
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
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,
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
>>
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
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
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
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
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
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:
https://issues.dlang.org/show_bug.cgi?id=15290
Ivan Kazmenko changed:
What|Removed |Added
CC||ga...@mail.ru
--- Comment #1
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
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,
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
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
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
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
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
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
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?
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
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
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
https://issues.dlang.org/show_bug.cgi?id=17139
Walter Bright changed:
What|Removed |Added
Keywords||rejects-valid
--
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
(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?
Where can i get library reference for offline reading
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
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
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.
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
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
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.
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
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
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
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
https://issues.dlang.org/show_bug.cgi?id=5813
Jack Stouffer changed:
What|Removed |Added
CC||j...@jackstouffer.com
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:
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
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
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
https://issues.dlang.org/show_bug.cgi?id=5548
Jack Stouffer changed:
What|Removed |Added
Keywords||performance
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
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
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
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]
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
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:
>
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
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
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.
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
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,
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()
83 matches
Mail list logo