On Tuesday, 11 April 2017 at 19:18:32 UTC, H. S. Teoh wrote:
While you're no charismatic hero by any stretch of imagination,
you do carry quite some weight in what you say simply by your
history of achievements, as well as your technical expertise
and wealth of experience in computer-related
On 14/04/2017 3:54 AM, Jethro wrote:
using the rule (?Pregex)
e.g., (?P\w*)*
how do we get at all the matches, e.g., Joe Bob Buddy?
When I access the results captures they are are not arrays and I only
ever get the first match even when I'm using matchAll.
Pseudo code:
foreach(result;
https://issues.dlang.org/show_bug.cgi?id=17099
--- Comment #6 from Walter Bright ---
fix dclient: https://github.com/dlang/dmd/pull/6699
--
using the rule (?Pregex)
e.g., (?P\w*)*
how do we get at all the matches, e.g., Joe Bob Buddy?
When I access the results captures they are are not arrays and I
only ever get the first match even when I'm using matchAll.
https://issues.dlang.org/show_bug.cgi?id=17099
--- Comment #5 from Walter Bright ---
winsamp.d fix: https://github.com/dlang/dmd/pull/6698
--
On Thursday, 13 April 2017 at 06:42:30 UTC, Ali Çehreli wrote:
On 04/12/2017 11:33 PM, alex wrote:
> Hello,
>
"The D Programming Language" by Andrei Alexandrescu.
Great book but a lot has changed in D since the book was
written in 2010. Your issue is in the book's errata:
https://issues.dlang.org/show_bug.cgi?id=17325
Issue ID: 17325
Summary: alias this not tried on template instantiation failure
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
On Fri, Apr 14, 2017 at 12:29:34AM +, Jethro via Digitalmars-d-learn wrote:
> Is there a way to retain the ordering of an associative array? When
> the elements are added then looped over using a foreach, the order is
> different.
An AA is implemented as an unordered hash. So the insertion
On Friday, 14 April 2017 at 00:29:34 UTC, Jethro wrote:
Is there a way to retain the ordering of an associative array?
When the elements are added then looped over using a foreach,
the order is different.
Use a separate array to store the keys, order them all time when
you add a new one,
Is there a way to retain the ordering of an associative array?
When the elements are added then looped over using a foreach, the
order is different.
On Wednesday, 12 April 2017 at 19:20:27 UTC, Nick Sabalausky
(Abscissa) wrote:
I *strongly* agree with the notion that
mobile/ARM/iOS/'droid/etc needs to be a major part of D's
immediate future.
However...
On 04/06/2017 01:24 AM, Joakim wrote:
I have been saying for some time now that
https://issues.dlang.org/show_bug.cgi?id=17324
Issue ID: 17324
Summary: Floating point 1/(1/x) > 0 if x > 0 not generally true
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
currently if you want to run a D app inside a linux container you
need to do a few things.
http://blog.oddbit.com/2015/02/05/creating-minimal-docker-images/
has a nice description.
what would need to be done to make this process slimmer and not
need
e.g. nsswitch.conf and passwd?
in golang
On 04/13/2017 11:06 PM, Jesse Phillips wrote:
-
[...]
private static immutable list = AliasSeq!(
tuple("a", "q"),
tuple("b", "r"),
);
[...]
switch(search) {
--->foreach(li; list) { // li initialization is skipped
On Thursday, 13 April 2017 at 20:56:25 UTC, Vladimir Panteleev
wrote:
On Thursday, 13 April 2017 at 20:49:09 UTC, Jesse Phillips
wrote:
I'm having this issue with the latest 2.074 DMD.
When I create a program with DMD and bitdefender will delete
that file and prevent writing that file again.
I realize that this is likely really pushing the compile time
generation but a recent change to the switch statement[1] is
surfacing because of this usage.
uninitswitch2.d(13): Deprecation: 'switch' skips declaration of
variable uninits
witch2.main.li at uninitswitch2.d(14)
On Thursday, 13 April 2017 at 20:49:09 UTC, Jesse Phillips wrote:
I'm having this issue with the latest 2.074 DMD.
When I create a program with DMD and bitdefender will delete
that file and prevent writing that file again. I can go back to
2.073.1 change the name of the executable to be
On Tuesday, 25 February 2014 at 20:13:15 UTC, Andrej Mitrovic
wrote:
I've recently had some of my D DLLs being falsely identified as
variants of a MiniDuke virus. But apparently I'm not the only
one that ran into this:
http://forum.bitdefender.com/index.php?showtopic=43027
Unfortunately the
On Thursday, 13 April 2017 at 18:11:10 UTC, H. S. Teoh wrote:
Hooray! Finally! Maybe now I can play videos over SSH (albeit
ultra-pixelated). :-P
Hah though actually, my terminal emulator has support for
outputting png images...
But truth is, this is one reason why I prefer things
On 04/12/2017 09:34 PM, Basile B. wrote:
On Thursday, 13 April 2017 at 01:13:23 UTC, Walter Bright wrote:
On 4/12/2017 1:30 PM, Basile B. wrote:
Since dmd is shipped with DUB one can just put some embedded SDL
descriptions
and put undead as dependency.
Better to just fix them.
A bit off
On Thursday, 6 April 2017 at 09:39:05 UTC, kinke wrote:
we already have (unlike DMD, fully free!) D compilers able to
...
DMD is now fully free:
https://forum.dlang.org/post/oc8acc$1ei9$1...@digitalmars.com
hello,
I'm trying to use the joyent manta storage service via their REST
api.
https://apidocs.joyent.com/manta/api.html
For that i need to implement http signature over TLS.
Here is a shell function that does that;
function manta {
local alg=rsa-sha256
local
On Wednesday, 12 April 2017 at 21:25:40 UTC, Jethro wrote:
Can regex's have variables in them? I'd like to create a
ctRegex but match on runtime strings that are known at runtime.
e.g.,
auto c = ctRegex~("x{var}")
As mentioned by Ali, benchmark for your use case.
If var has common values
On Thursday, 13 April 2017 at 17:43:14 UTC, Bill Baxter wrote:
I would probably call it gnublas or gplblas something to make
it clear that
it's got that aspect to it.
It can't ever really be "the one true" blas lib for all D users
with that
license.
Re: merging with Mir GLAS, that seems very
On Thursday, 13 April 2017 at 15:22:46 UTC, Martin Tschierschke
wrote:
On Thursday, 13 April 2017 at 08:47:16 UTC, Ali Çehreli wrote:
I haven't played with ndslice nor followed its deprecation
discussions. Could someone summarize it for us please. Also,
is it still used outside Phobos or is
On Thursday, 13 April 2017 at 15:22:46 UTC, Martin Tschierschke
wrote:
On Thursday, 13 April 2017 at 08:47:16 UTC, Ali Çehreli wrote:
I haven't played with ndslice nor followed its deprecation
discussions. Could someone summarize it for us please. Also,
is it still used outside Phobos or is
On Thursday, 13 April 2017 at 10:29:06 UTC, Stefan Koch wrote:
Hi Guys,
while building newCTFE is ran into a really nasty bug.
Which took me hours to find, but with CTFE and __traits it is
preventable and will never haunt me again.
Because I was so happy that I could prevent this bug;
I want
I have started trying to make a dub tool for SCons, and especially
support for Unit-Threaded. It's rough working to try things out, this
is not good Python and it is definitely not good SCons, yet.
If anyone using SCons for D builds wants to get involved please feel
free. It's at:
On Tuesday, 28 March 2017 at 07:27:31 UTC, I Lindström wrote:
After getting the basics down, how did you continue when
learning programming in general?
Many other good suggestions here already.
1. Another idea: pick some small tools or utilities that you
would like to create, and write them
On Thursday, 13 April 2017 at 08:47:16 UTC, Ali Çehreli wrote:
I haven't played with ndslice nor followed its deprecation
discussions. Could someone summarize it for us please. Also, is
it still used outside Phobos or is Ilya or someone else
rewriting it?
Ali
We should additionally mention
On Thursday, 13 April 2017 at 15:00:16 UTC, Dejan Lekic wrote:
On Thursday, 13 April 2017 at 10:00:43 UTC, 9il wrote:
On Thursday, 13 April 2017 at 08:47:16 UTC, Ali Çehreli wrote:
[...]
The reasons to use mir-algorithm instead of std.range,
std.algorithm, std.functional (when applicable):
On Thursday, 13 April 2017 at 10:00:43 UTC, 9il wrote:
On Thursday, 13 April 2017 at 08:47:16 UTC, Ali Çehreli wrote:
I haven't played with ndslice nor followed its deprecation
discussions. Could someone summarize it for us please. Also,
is it still used outside Phobos or is Ilya or someone
On Thursday, 13 April 2017 at 09:18:06 UTC, data pulverizer wrote:
I have just finished the first version of a BLAS implementation
for D mostly done by code conversion from GSL's BLAS module
https://github.com/dataPulverizer/dblas
It is complete functionally with respect covering all the
On Monday, 10 April 2017 at 22:07:11 UTC, Walter Bright wrote:
There are many. A random sampling:
The vast, vast majority of the stuff I do in D though are for
myself. I used to want to get more into Phobos, but I just don't
care anymore - I prefer staying as an independent library other
Please RSVP if you plan to attend:
https://www.meetup.com/Chennai-D/events/238949573/?showDescription=true
Btw, Chennai, a large port city in South India, now has the most
members of any D Meetup group, passing even Silicon Valley:
https://www.meetup.com/topics/dpl/
Not a big deal, since
On Thursday, 13 April 2017 at 13:40:48 UTC, Mike Parker wrote:
https://www.reddit.com/r/programming/comments/655ilu/interfacing_d_with_c_and_fortran/
On lobste.rs:
https://lobste.rs/s/pidpz1/interfacing_d_with_c_fortran_use_d_as
Heyboo
https://issues.dlang.org/show_bug.cgi?id=17323
Issue ID: 17323
Summary: Eliminate all uses of obsolete "..." in dmd
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
On Wednesday, 12 April 2017 at 19:01:25 UTC, Walter Bright wrote:
On 4/11/2017 10:24 AM, MysticZach wrote:
Hi guys. Hey Walter. So, about this point. On the lifetime
study thread,
http://forum.dlang.org/post/56301a8c.1060...@erdani.com , the
following two
problems were stated by Andrei, but I
On Thursday, 13 April 2017 at 05:51:27 UTC, Dukc wrote:
auto use(alias F, T)(T t){return F(t);}
void main()
{ import std.stdio;
foreach(i; 1 .. 11)
{ foreach(j; 1 .. 11) write((i * j).use!(x => x*x), " ");
writeln;
}
}
forgot three letters:
auto use(alias F, T...)(T
On Thursday, 13 April 2017 at 11:29:39 UTC, jmh530 wrote:
On Thursday, 13 April 2017 at 09:18:06 UTC, data pulverizer
wrote:
It is complete functionally with respect covering all the
functions implemented in BLAS. @9il has suggested that we
should work to merge this library with Mir GLAS
https://issues.dlang.org/show_bug.cgi?id=17322
Issue ID: 17322
Summary: Add Magikcraft to organizations using D
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
On Thursday, 13 April 2017 at 11:16:46 UTC, crimaniak wrote:
If fact you don't need any template to do this. Try the next:
foreach(i; 1 .. 11)
{ foreach(j; 1 .. 11) write((x => x*x)(i * j), " ");
writeln;
}
True, that's a good trick too. But I prefer the template at
On Thursday, 13 April 2017 at 08:08:04 UTC, Russel Winder wrote:
It is Isaac's game, he runs it, he chooses which languages are
up there. It is not an official Debian thing as far as I know.
So what the problem?
I think Piotr stated the problem in the original post. If a
language is missing
On Thursday, 13 April 2017 at 11:16:46 UTC, crimaniak wrote:
On Thursday, 13 April 2017 at 05:51:27 UTC, Dukc wrote:
auto use(alias F, T)(T t){return F(t);}
void main()
{ import std.stdio;
foreach(i; 1 .. 11)
{ foreach(j; 1 .. 11) write((i * j).use!(x => x*x), " ");
On Wednesday, 12 April 2017 at 21:40:48 UTC, bluecat wrote:
What are some features that you have discovered that you would
like to share with the community? For me, one thing I found
interesting was the ability to define structures dynamically
using mixins:
import std.stdio;
import
On Thursday, 13 April 2017 at 11:31:12 UTC, Guillaume Piolat
wrote:
And the most impressive to me is actually the way Walter
answers to D users. If you are reading this forum since years
you know what I mean. I try to emulate some of this with
customers.
That's really true: I sincerely
On Tuesday, 11 April 2017 at 19:18:32 UTC, H. S. Teoh wrote:
On Tue, Apr 11, 2017 at 10:24:01AM -0700, Walter Bright via
Digitalmars-d wrote:
For a socially inept nerd such as myself, with all the
charisma of a lamppost, I think D has done very well.
You underestimate yourself. While you're
On Thursday, 13 April 2017 at 09:18:06 UTC, data pulverizer wrote:
It is complete functionally with respect covering all the
functions implemented in BLAS. @9il has suggested that we
should work to merge this library with Mir GLAS which I think
is a good idea.
So Mir GLAS doesn't cover
On Thursday, 13 April 2017 at 09:19:05 UTC, data pulverizer wrote:
FYI: My article with @9il "Interfacing D with C and Fortran" is
now up
http://www.active-analytics.com/blog/interface-d-with-c-fortran/
Thanks to those that made suggestions that informed the article.
You may also want to
On Thursday, 13 April 2017 at 05:51:27 UTC, Dukc wrote:
auto use(alias F, T)(T t){return F(t);}
void main()
{ import std.stdio;
foreach(i; 1 .. 11)
{ foreach(j; 1 .. 11) write((i * j).use!(x => x*x), " ");
writeln;
}
}
This way, you can avoid writing long expressions
On Wednesday, 12 April 2017 at 21:40:48 UTC, bluecat wrote:
What are some features that you have discovered that you would
like to share with the community? For me, one thing I found
interesting was the ability to define structures dynamically
using mixins:
import std.stdio;
import
https://issues.dlang.org/show_bug.cgi?id=11905
Daniel Čejchan changed:
What|Removed |Added
CC||czda...@gmail.com
--
Hi Guys,
while building newCTFE is ran into a really nasty bug.
Which took me hours to find, but with CTFE and __traits it is
preventable and will never haunt me again.
Because I was so happy that I could prevent this bug;
I want to share it with the whole world:
On 4/13/17 7:53 AM, Nick Sabalausky (Abscissa) wrote:
I'll admit this is a bit unorthodox, but...I've been wondering about
something regarding Phobos regex's implementation and internal
architecture: Just how compartmentalized is the parsing of standard PCRE
regex syntax vs actual usage of
On Monday, 20 March 2017 at 20:09:58 UTC, Atila Neves wrote:
http://code.dlang.org/packages/excel-d
This dub package allows D code to be called from Excel. It uses
compile-time reflection to register the user's code in an XLL
(a DLL loaded by Excel) so no boilerplate is necessary. Not
even
On Thursday, 13 April 2017 at 08:47:16 UTC, Ali Çehreli wrote:
I haven't played with ndslice nor followed its deprecation
discussions. Could someone summarize it for us please. Also, is
it still used outside Phobos or is Ilya or someone else
rewriting it?
Ali
The reasons to use
On Thursday, 13 April 2017 at 08:47:16 UTC, Ali Çehreli wrote:
I haven't played with ndslice nor followed its deprecation
discussions. Could someone summarize it for us please. Also, is
it still used outside Phobos or is Ilya or someone else
rewriting it?
Ali
Hello Ali,
ndslice was
On 13/04/2017 10:30 AM, Iain Buclaw via Digitalmars-d wrote:
On 13 April 2017 at 10:12, Russel Winder via Digitalmars-d
wrote:
On Wed, 2017-04-12 at 10:59 +0100, rikki cattermole via Digitalmars-d
wrote:
[…]
Considering it was created in 2014, I think we're safe
On Tuesday, 11 April 2017 at 16:17:32 UTC, John Colvin wrote:
On Thursday, 16 February 2017 at 19:58:47 UTC, Rory McGuire
wrote:
[...]
Any news on this? The arch packages are listed as orphaned.
Same question, and adding that I volunteer to take over.
Atila
On 13 April 2017 at 10:12, Russel Winder via Digitalmars-d
wrote:
> On Wed, 2017-04-12 at 10:59 +0100, rikki cattermole via Digitalmars-d
> wrote:
>> […]
>>
>> Considering it was created in 2014, I think we're safe implementing
>> extern(JNI) support either which
FYI: My article with @9il "Interfacing D with C and Fortran" is
now up
http://www.active-analytics.com/blog/interface-d-with-c-fortran/
Thanks to those that made suggestions that informed the article.
You may also want to check out "A quick look at D" article
I have just finished the first version of a BLAS implementation
for D mostly done by code conversion from GSL's BLAS module
https://github.com/dataPulverizer/dblas
It is complete functionally with respect covering all the
functions implemented in BLAS. @9il has suggested that we should
work
https://issues.dlang.org/show_bug.cgi?id=17099
--- Comment #4 from Walter Bright ---
dhry.d fix: https://github.com/dlang/dmd/pull/6694
--
I have just finished the first version of a BLAS implementation
for D mostly done by code conversion from GSL's BLAS module
https://github.com/dataPulverizer/dblas
It is complete functionally with respect covering all the
functions implemented in BLAS. @9il has suggested that we should
work
FYI: My article with @9il "Interfacing D with C and Fortran" is
now up
http://www.active-analytics.com/blog/interface-d-with-c-fortran/
Thanks to those that made suggestions that informed the article.
You may also want to check out "A quick look at D" article
On Wednesday, 12 April 2017 at 09:38:49 UTC, Russel Winder wrote:
On Tue, 2017-04-11 at 20:07 +, Stefan Koch via
Digitalmars-d wrote:
[…]
At the risk of starting a flame war:
The memory safety is currently in the works.
We just have one std-lib now.
GC is slow, yes.
I don't care, it
https://issues.dlang.org/show_bug.cgi?id=17099
--- Comment #3 from Walter Bright ---
d2html.d: https://github.com/dlang/dmd/pull/6693
--
I haven't played with ndslice nor followed its deprecation discussions.
Could someone summarize it for us please. Also, is it still used outside
Phobos or is Ilya or someone else rewriting it?
Ali
https://issues.dlang.org/show_bug.cgi?id=17099
Walter Bright changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=17321
--- Comment #1 from Walter Bright ---
This seems to be an issue with my local copy of std.stdio seems to be behind
the master.
--
On Wed, 2017-04-12 at 10:59 +0100, rikki cattermole via Digitalmars-d
wrote:
> […]
>
> Considering it was created in 2014, I think we're safe implementing
> extern(JNI) support either which ways.
>
> Although a little strange since nobody has completed a full JNI
> implementation yet!
JNI
On 2017-04-12 21:58, Walter Bright wrote:
https://issues.dlang.org/show_bug.cgi?id=17099
This is a bit embarrassing.
It seems that the samples fail because they use std.stream, which has
been removed. Anyone want to fix them to use stdio instead?
Seems like compiling the samples should be
https://issues.dlang.org/show_bug.cgi?id=17099
Jacob Carlborg changed:
What|Removed |Added
CC||d...@me.com
--- Comment #1
On Wed, 2017-04-12 at 19:31 +, thedeemon via Digitalmars-d wrote:
> On Tuesday, 11 April 2017 at 19:57:19 UTC, Piotr Kowalski wrote:
>
> > http://benchmarksgame.alioth.debian.org/
> >
> > Why D is not there?
>
> Because maintainer of that site doesn't want D there, as I
> remember from
https://issues.dlang.org/show_bug.cgi?id=17321
Issue ID: 17321
Summary: Example code for std.stdio.File fails to compile
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Am 12.04.2017 um 12:03 schrieb Martin Nowak:
Thanks
On Monday, 10 April 2017 at 20:48:34 UTC, Sönke Ludwig wrote:
- Compiles on the latest DMD version (2.068.x-2.072.0)
2.068.x-2.074.0, that is
True, thanks for the notice!
Am 12.04.2017 um 20:29 schrieb Nick Sabalausky (Abscissa):
On 04/10/2017 04:48 PM, Sönke Ludwig wrote:
The 0.7.x branch will continue to be maintained for a short
while, but only bug fixes will be included from now on. Applications
should switch to the 0.8.x branch as soon as possible.
If a
On 04/12/2017 11:33 PM, alex wrote:
> Hello,
>
> I've just started learning D, working my way through "The D Programming
> Language" by Andrei Alexandrescu.
Great book but a lot has changed in D since the book was written in
2010. Your issue is in the book's errata:
Hello,
I've just started learning D, working my way through "The D
Programming Language" by Andrei Alexandrescu. On page 8 there is:
import std.stdio, std.string;
void main(){
uint[string] dictionary;
foreach (line; stdin.byLine()){
foreach (word; splitter(strip(line))){
80 matches
Mail list logo