On Tuesday, 16 October 2018 at 07:09:05 UTC, Vijay Nayar wrote:
D has multiple compilers, but for the speed of the finished
binary, LDC2 is generally recommended. I used version 1.11.0.
https://github.com/ldc-developers/ldc/releases/tag/v1.11.0
I was using DUB to manage the project, but to b
On Saturday, 24 March 2018 at 16:11:18 UTC, Andrei Alexandrescu
wrote:
Anyhow. Right now the order of processing is the same as the
lexical order in which flags are passed to getopt. There may be
use cases for which that's the more desirable way to go about
things, so if you author a PR to chan
On Tuesday, 17 July 2018 at 15:21:30 UTC, Seb wrote:
So we managed to revive the rcstring project and it's already a
PR for Phobos:
https://github.com/dlang/phobos/pull/6631 (still WIP though)
The current approach in short:
- uses the new @nogc, @safe and nothrow Array from the
collections l
On Wednesday, 8 August 2018 at 21:01:18 UTC, Steven Schveighoffer
wrote:
Not trying to give too much away about the library I'm writing,
but the problem I'm trying to solve is parsing out tokens from
a buffer. I want to delineate the whole, as well as the parts,
but it's difficult to get back t
On Friday, 24 August 2018 at 00:46:14 UTC, Mike Franklin wrote:
It seems, from someone without much historical perspective,
that Phobos was intended to be something like the .Net
Framework for D. Perhaps there are a few fundamentals
(std.algorithm, std.allocator, etc.) to keep, but for the
ot
On Sunday, 26 August 2018 at 05:55:47 UTC, Pjotr Prins wrote:
Artem wrote Sambamba as a student
https://github.com/biod/sambamba
and it is now running around the world in sequencing centers.
Many many CPU hours and a resulting huge carbon foot print. The
large competing C++ samtools proje
On Wednesday, 5 September 2018 at 16:26:14 UTC, rikki cattermole
wrote:
On 06/09/2018 4:19 AM, H. S. Teoh wrote:
On Wed, Sep 05, 2018 at 09:34:14AM -0600, Jonathan M Davis via
Digitalmars-d wrote:
On Wednesday, September 5, 2018 9:28:38 AM MDT H. S. Teoh via
Digitalmars-d
wrote:
[...]
Also, i
On Saturday, 8 September 2018 at 15:36:25 UTC, Steven
Schveighoffer wrote:
On 8/9/18 2:44 AM, Walter Bright wrote:
On 8/8/2018 2:01 PM, Steven Schveighoffer wrote:
Here's where I'm struggling -- because a string provides
indexing, slicing, length, etc. but Phobos ignores that. I
can't make a n
On Tuesday, 5 September 2017 at 10:50:46 UTC, Dmitry Olshansky
wrote:
Before I'm too deep down this rabbit hole I decided to first
address the long-standing backlog of issues of std.regex and
std.uni.
Not intending to add to your workload, but I added an enhancement
request for something I hi
On Tuesday, 19 September 2017 at 07:53:27 UTC, Daniel Kozak wrote:
https://github.com/mariomka/regex-benchmark#performance
Do you know why?
Here is a code:
https://github.com/mariomka/regex-benchmark/blob/master/d/benchmark.d
I have try it with ldc too, but is still much slower (10x) than
PHP
On Friday, 6 October 2017 at 18:42:02 UTC, H. S. Teoh wrote:
On Fri, Oct 06, 2017 at 06:09:58PM +, Ali via Digitalmars-d
wrote:
The reputation is D's GC is slow, and Manual Memory Management
is fast
The first point is valid (when are we going to get a better GC?
:-/), but the second is qu
On Saturday, 7 October 2017 at 03:15:41 UTC, Laeeth Isharc wrote:
On Saturday, 7 October 2017 at 01:00:41 UTC, Jon Degenhardt
wrote:
Have there been studies quantifying the performance of D's GC
relative to other GC implementations? My anecdotal experience
is that D's GC can have undesirable la
On Tuesday, 7 November 2017 at 17:15:02 UTC, Gary Willoughby
wrote:
On Sunday, 25 June 2017 at 23:21:25 UTC, aberba wrote:
Can you share feature(s) in D people are not talking about
which you've found very useful?
Some of the best features are in the standard library. I've
written about them
On Saturday, 18 November 2017 at 16:17:00 UTC, Jonathan M Davis
wrote:
On Saturday, November 18, 2017 15:03:05 Timon Gehr via
Digitalmars-d wrote:
[snip]
Printing out a floating point value for something like the
number of seconds can make sense, but using floating point to
do math with time
On Sunday, 19 November 2017 at 16:02:34 UTC, Jonathan M Davis
wrote:
On Sunday, November 19, 2017 15:01:50 Rumbu via Digitalmars-d
wrote:
On Saturday, 18 November 2017 at 22:46:20 UTC, Jon Degenhardt
Was the documentation on Duration not informative enough, or
did you have trouble finding it
On Wednesday, 22 November 2017 at 05:50:53 UTC, Walter Bright
wrote:
There is another, perhaps obsolete, consideration.
Some CPUs do not have floating point units. C, for example, is
carefully set up so that when you don't need floating point, it
isn't required to have an FPU. This made C usab
On Monday, 27 November 2017 at 00:14:40 UTC, IM wrote:
I'm a full-time C++ software engineer in Silicon Valley. I've
been learning D and using it in a couple of personal side
projects for a few months now.
First of all, I must start by saying that I like D, and wish to
use it everyday. I'm ev
On Wednesday, 29 November 2017 at 16:57:36 UTC, H. S. Teoh wrote:
While generally I would still use fullblown D rather than
BetterC for my projects, the bloat from druntime/phobos does
still bother me at the back of my mind. IIRC, the Phobos docs
used to state that the philosophy for Phobos is
On Thursday, 18 January 2018 at 07:46:03 UTC, Andrei Alexandrescu
wrote:
There's been some discussion about what to do with issues that
propose enhancements like this. We want to make them available
and searchable just in case someone working on a related
proposal is looking for precedent and i
If anyone is interested in the type of work that goes on in my
group at eBay, take a look at this blog post by one of my
colleagues:
https://www.ebayinc.com/stories/blogs/tech/making-e-commerce-search-faster/
It describes a 25% efficiency gain via a technique called index
reordering. This is
On Friday, 9 February 2018 at 07:54:49 UTC, Suliman wrote:
Which language futures by your opinion make D harder?
For me, one of the attractive qualities of D is its relative
simplicity. Key comparison points are C++, Scala, and Python.
Python being the simplest, then D, not far off, with Scal
On Tuesday, 13 February 2018 at 23:09:07 UTC, Ali Çehreli wrote:
David (aka klickverbot) is a longtime D contributor.
https://www.epsrc.ac.uk/newsevents/news/single-trapped-atom-captures-science-photography-competitions-top-prize/
Ali
More than cool!! Congrats David!
On Wednesday, 7 March 2018 at 06:00:30 UTC, Taylor Hillegeist
wrote:
So i've seen on the forum over the years arguments about
auto-decoding (mostly) and some other things. Things that have
been considered mistakes, and cannot be corrected because of
the breaking changes it would create. And I a
On Wednesday, 7 March 2018 at 16:33:25 UTC, Seb wrote:
On Wednesday, 7 March 2018 at 15:26:40 UTC, Jon Degenhardt
wrote:
On Wednesday, 7 March 2018 at 06:00:30 UTC, Taylor Hillegeist
wrote:
[...]
Auto-decoding is a significant issue for the applications I
work on (search engines). There is a
On Thursday, 19 January 2017 at 14:29:46 UTC, Jack Stouffer wrote:
From what I understand, the difference between an Exception and
and Error is that Errors signal your program has entered into
an invalid state. For example, going past the end of an array
and attempting to access that memory. On
On Friday, 20 January 2017 at 02:11:41 UTC, Adam D. Ruppe wrote:
On Friday, 20 January 2017 at 01:24:18 UTC, Jon Degenhardt
wrote:
Is there a place in the docs that describe the difference
between errors and exceptions? As to the particular example,
why is it unsafe to recover from attempting t
On Monday, 30 January 2017 at 19:28:58 UTC, bachmeier wrote:
On Monday, 30 January 2017 at 16:53:34 UTC, Joseph Rushton
Wakeling wrote:
Yea, I'm a little sad to see the apparent lack of
feedback/interest :-\
I have interest, but as I've never heard of Snap before, I have
no comments. Others m
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
Digitalmars-d wrote:
On Wednesday, 1 February 2017 at 21:47:58 UTC, Adam D. Ruppe
wrote:
> (actually in the real world, it won't since nobody will care
> enough
> to write `pure p
On Thursday, 16 February 2017 at 15:48:44 UTC, Jack Stouffer
wrote:
The current std.containers design was not designed with
allocators in mind. The current plan is
1. DIP1000, which adds safety checks for escape analysis to the
language, must be completely implemented in order to have @safe
c
On Friday, 17 February 2017 at 04:13:06 UTC, Jack Stouffer wrote:
This is based on conversations I've had with Andrei and Walter
on here and on Github.
There was a bunch of threads here about six months ago by
Andrei talking about the different problems he was running into
when trying to impl
On Saturday, 4 March 2017 at 09:13:15 UTC, Seb wrote:
On Friday, 3 March 2017 at 19:18:31 UTC, jmh530 wrote:
A Jupyter kernel would go a long way to students being able to
easily play around with it in a browser. There's already
dabble (D REPL) that one could make use of. I was surprised at
th
On Thursday, 30 March 2017 at 11:03:03 UTC, Ervin Bosenbacher
wrote:
Tried again, threw in summing up a number 10 million times and
repeat the arrays 10 million times, I have used arrays on the
stack for the D version. And when I am talking about
performance I am curious about CPU bound stuff.
On Saturday, 15 April 2017 at 20:04:13 UTC, Jonas Drewsen wrote:
I've been wanting to have support for interpolated strings in
D for some time now that will allow you to write e.g.:
[...]
One place I'd appreciate interpolated strings is as an option
when working with heredoc strings. These
On Sunday, 23 April 2017 at 12:03:47 UTC, Andrei Alexandrescu
wrote:
On 4/22/17 4:52 PM, Joakim wrote:
Why is this still up for review?
Mostly out of a sense of conformity. We asked Michael to give
no special treatment of DIPs originating from us, and this one
was open, so he put it up for r
On Wednesday, 26 April 2017 at 23:19:32 UTC, H. S. Teoh wrote:
--hello.d:--
import std.stdio;void main(){write(import("hello.d"));}
Thanks to string imports, quines in D are actually trivial. :-D
T
:)
https://en.wikipedia.org/wiki/Quine_(computing)#.22Cheating.
On Saturday, 3 June 2017 at 04:25:27 UTC, Jesse Phillips wrote:
Author here:
The discussion[1] and articles[2] around "Faster Command Line
Tools" had me trying out std.csv for the task.
[snip]
Keep in mind that the file itself has 10,512,769 rows of data
with four columns. Now I've talked t
On Thursday, 22 June 2017 at 01:13:43 UTC, H. S. Teoh wrote:
On Thu, Jun 22, 2017 at 12:48:25AM +, Seb via Digitalmars-d
wrote:
[snip]
Slices! And preferably in an example where it beats C
performance by not needing to duplicate strings everywhere.
...
For slices the example in blog p
On Thursday, 22 June 2017 at 00:48:25 UTC, Seb wrote:
Hi,
I am currently trying to modernize the D code example roulette
on the dlang.org front page [1]. Hence, I would love to hear
about your favorite feature(s) in D.
A couple more:
- std.conv.to - Safe, convenient conversions that just wor
On Saturday, 15 July 2017 at 02:55:42 UTC, Seb wrote:
Very interesting article: https://blog.golang.org/toward-go2
Good read, thanks for posting. I also thought the discussion
under "Explaining Problems" was really well done. A couple of
lines from that section:
Convincing others that a pro
On Sunday, 29 May 2016 at 12:22:23 UTC, qznc wrote:
I played around with the benchmark. Some more numbers:
The mean slowdown is 114, which means 14% slower than the
fastest one. The mean absolute deviation (MAD) is 23. More
precisely, the mean deviation above the mean slowdown of 103 is
100 a
On Sunday, 29 May 2016 at 21:07:21 UTC, qznc wrote:
On Sunday, 29 May 2016 at 18:50:40 UTC, Jon Degenhardt wrote:
A minor thing - you might consider also calculating the median
and median version of MAD (median of absolute deviations from
the median). The reason is that benchmarks often have ou
On Wednesday, 1 June 2016 at 00:46:04 UTC, Walter Bright wrote:
It is not practical to just delete or deprecate autodecode - it
is too embedded into things. What we can do, however, is stop
using it ourselves and stop relying on it in the documentation,
much like [] is eschewed in favor of std:
On Tuesday, 6 September 2016 at 04:32:52 UTC, Daniel Kozak wrote:
Dne 6.9.2016 v 06:14 mogu via Digitalmars-d napsal(a):
On Tuesday, 6 September 2016 at 01:17:00 UTC, Timothee Cour
wrote:
is there a way to do this efficiently with associative arrays:
aa[key]=value;
auto ptr=key in aa;
withou
On Tuesday, 19 January 2016 at 00:11:40 UTC, Andrei Alexandrescu
wrote:
So let me summarize what has happened:
1. topN was reportedly slow. It was using a random pivot. I
made it use getPivot (deterministic) instead of a random pivot
in https://github.com/D-Programming-Language/phobos/pull/39
On Wednesday, 21 September 2016 at 14:58:27 UTC, Andrei
Alexandrescu wrote:
On 9/21/16 4:16 AM, Jon Degenhardt wrote:
Timing comparison of sort and topN, times in milliseconds:
sort topN
Field 2: 289 1756
Field 3: 285148793
Field 4: 273668906
The above times a
On Friday, 23 September 2016 at 16:09:18 UTC, Andrei Alexandrescu
wrote:
BTW, as I commented in
https://issues.dlang.org/show_bug.cgi?id=16517, using the new
topN implementation instead of sort to compute the median over
google's 1-grams is over 11x faster using dmd.
That's a very nice resu
On Saturday, 24 September 2016 at 18:22:51 UTC, Andrei
Alexandrescu wrote:
Got curious so I tried to patch my ldc installation (0.17.1
(DMD v2.068.2, LLVM 3.8.0)), but sadly that didn't work out
because sorting.d uses the new syntax in various places.
Probably the best baseline is the equivale
On Wednesday, 2 November 2016 at 03:36:42 UTC, Andrei
Alexandrescu wrote:
Last time I looked our associative arrays were arrays of
singly-linked lists. It follows that in order to implement
reserve() we'd need a freelist allocator approach, which
preallocates a bunch of nodes in a single cont
On Sunday, 6 November 2016 at 02:12:12 UTC, Alexandru Caciulescu
wrote:
On Friday, 4 November 2016 at 09:37:39 UTC, Shachar Shemesh
wrote:
On 03/11/16 23:00, Yuxuan Shui wrote:
On Wednesday, 2 November 2016 at 03:36:42 UTC, Andrei
Alexandrescu wrote:
[snip]
* The implementation cannot use Pho
On Wednesday, 14 December 2016 at 01:39:01 UTC, Andrei
Alexandrescu wrote:
I prefer the current form of the proposal:
bool equal(R1, R2)
import (std.range)
if (isInputRange!R1 && isInputRange!R2)
{ ... }
I didn't see an example of the syntax when multiple imports are
involved (apologies if I m
On Friday, 16 December 2016 at 17:19:56 UTC, Andrei Alexandrescu
wrote:
Walter and I wanted to have a positive example of a good DIP
that is relatively simple, is noncontroversial, and marks a
definite move forward.
We believe the feature's benefits are significant, obvious, and
immediate. Wi
On Wednesday, 21 December 2016 at 14:50:31 UTC, thedeemon wrote:
On Wednesday, 21 December 2016 at 11:54:35 UTC, Ilya Yaroshenko
wrote:
On Wednesday, 21 December 2016 at 11:36:14 UTC, thedeemon
wrote:
On Tuesday, 20 December 2016 at 10:18:12 UTC, Kelly Sommers
wrote:
[...]
Bad news: without
On Sunday, 6 November 2016 at 09:32:33 UTC, safety0ff wrote:
On Sunday, 6 November 2016 at 03:28:20 UTC, Jon Degenhardt
wrote:
On Sunday, 6 November 2016 at 02:12:12 UTC, Alexandru
Caciulescu wrote:
I see this topic started a clash of opinions regarding the
future of AAs. After Andrei suggest
53 matches
Mail list logo