On Monday, 19 October 2015 at 23:36:19 UTC, Mathias Lang wrote:
If you're in Magdeburg, and my German geography is not way off,
you're about 2 hours away from Berlin, where we hold a meetup
for D enthusiasts every 3rd friday of the month
(http://www.meetup.com/Berlin-D-Programmers/). Also, I
Writing stdin.byLine(KeepTerminator.yes) is quite awkward. Why this long
name and not something shorter like KeepEOL?
BTW on Python the default is to *not* strip the newlines. Is there a reason
the opposite is true here?
--
Shriramana Sharma, Penguin #395953
http://dlang.org/phobos/std_datetime.html#StopWatch shows the use of
TickDuration to measure the time elapsed, but
http://dlang.org/phobos/core_time.html#TickDuration says TickDuration is due
to be deprecated and MonoTime should be used. It is possible to measure the
duration between two
For a while now GDC and LDC have supported a variety of their
backend's attributes, like inlining or compiling a specific
function with SSE4 in an otherwise generic x64 build.
I think we should unify those into a common core.attribute,
either aliasing or replacing the vendor specific symbols.
On Monday, 19 October 2015 at 21:47:33 UTC, qznc wrote:
Supervisors like thesis work which fits into their ongoing
research projects. Maybe you can find someone who has a
long-term C/C++ project and building onto that with D is
interesting?
I agree and that is the problem. Its kind of tough
On Monday, 19 October 2015 at 20:47:55 UTC, Vladimir Panteleev
wrote:
No, not just the runtime. Surely the runtime contains some
compiler/linker/toolchain-specific things... intrinsics, linker
scripts, section names, predefined versions, assembler
syntax... some of these might be
Sönke Ludwig wrote:
> auto re = ctRegex!(`(?<=\d)(?=(\d\d\d)+\b)`, "g");
> foreach (line; stdin.byLine())
> {
> replaceAllInto(stdout.lockingTextWriter, line, re, ",");
> writeln();
> }
Another option is to use KeepTerminator.yes. Using writeln() is shorter! :-)
So this one does avoids all the
A few months ago I was so pissed off that I was more productive
writing a project in javascript than in D, that I was almost
wanted to not use D anymore.
This happened because there are a lot of nice libraries that
people write for javascript and all that you have to do is to
bind together
On Monday, 19 October 2015 at 21:01:06 UTC, Brian Schott wrote:
On Monday, 19 October 2015 at 20:29:41 UTC, Brian Schott wrote:
From the README: "The D Completion Daemon is an auto-complete
program for the D programming language." 0.7.1 is a (boring)
bug-fix release.
https://issues.dlang.org/show_bug.cgi?id=15228
Issue ID: 15228
Summary: Expose architecture specific feature sets at
compile-time
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Am Tue, 20 Oct 2015 13:08:07 +0530
schrieb Shriramana Sharma :
> Writing stdin.byLine(KeepTerminator.yes) is quite awkward. Why this long
> name and not something shorter like KeepEOL?
Because enums work that way in D: .
and probably because someone found that we
On Monday, 19 October 2015 at 21:01:06 UTC, Brian Schott wrote:
On Monday, 19 October 2015 at 20:29:41 UTC, Brian Schott wrote:
From the README: "The D Completion Daemon is an auto-complete
program for the D programming language." 0.7.1 is a (boring)
bug-fix release.
Am 13.10.2015 um 09:38 schrieb Sönke Ludwig:
Despite it's name, this release should be considered a beta release. PR
#1268[1] will potentially still make it in, but otherwise only bug
fixing will happen at this point. As with the previous versions, the
final release will happen at the same time
On Tuesday, October 20, 2015 13:18:12 Shriramana Sharma via Digitalmars-d-learn
wrote:
> http://dlang.org/phobos/std_datetime.html#StopWatch shows the use of
> TickDuration to measure the time elapsed, but
> http://dlang.org/phobos/core_time.html#TickDuration says TickDuration is due
> to be
On Monday, 19 October 2015 at 19:50:40 UTC, Mengu wrote:
hi
in the meanwhile gsoc ist hier und wir haben einige
interessante Projekte. (my tarzan german)
Even though I am not aware of the tarzan dialect I do understand
it perfectly :-)
see http://wiki.dlang.org/GSOC_2015_Ideas. Craig
Not based on D much. Declarations from Rust; if-else ternary
operator from somewhere; import, static if, assert and traits
look like from D; var from C#; templates from C++.
On 10/20/2015 03:38 AM, Shriramana Sharma wrote:
Writing stdin.byLine(KeepTerminator.yes) is quite awkward. Why this long
name and not something shorter like KeepEOL?
It is what it is. Write it and move on.
BTW on Python the default is to *not* strip the newlines. Is there a reason
the
On Tuesday, 20 October 2015 at 10:04:40 UTC, Kagamin wrote:
Not based on D much. Declarations from Rust; if-else ternary
operator from somewhere; import, static if, assert and traits
look like from D; var from C#; templates from C++.
They have "static if" though:
On Tuesday, 20 October 2015 at 10:22:56 UTC, Ola Fosheim Grøstad
wrote:
On Tuesday, 20 October 2015 at 10:04:40 UTC, Kagamin wrote:
Not based on D much. Declarations from Rust; if-else ternary
operator from somewhere; import, static if, assert and traits
look like from D; var from C#;
On Tuesday, 20 October 2015 at 08:04:24 UTC, rsw0x wrote:
http://morfalang.org/
I thought the user-defined operators were pretty neat honestly.
Since they were inspired by D, I cannot fathom that they went
with the C++ "template < AType >" style, but other than that, I
love it! Thanks for
For a moment I hoped that you are working on the D codegen for
Swagger. :) *that* would really be a useful thing, in my humble
opinion!
Speaking about the rant about JS and productivity. I never say JS
as "one language to rule them all", nor I saw D in the same way.
D and JS cover different
On Sunday, 18 October 2015 at 16:02:50 UTC, Jacob Carlborg wrote:
On 2015-10-17 13:28, Marc Schütz wrote:
Yes, it's still linked statically by default, at least with
DMD. I don't
know why this wasn't changed yet
1. It makes it easier to distribute binaries since most
computers won't have a
On Tuesday, 20 October 2015 at 10:10:05 UTC, Andrei Alexandrescu
wrote:
On 10/20/2015 03:38 AM, Shriramana Sharma wrote:
Writing stdin.byLine(KeepTerminator.yes) is quite awkward. Why
this long
name and not something shorter like KeepEOL?
It is what it is. Write it and move on.
Or if you
On Tuesday, 20 October 2015 at 01:49:08 UTC, Jonathan M Davis
wrote:
On Monday, 19 October 2015 at 23:37:09 UTC, Timon Gehr wrote:
This is the worst part:
class C{
int[] x=[1,2,3];
}
void main(){
auto mut=new C;
auto imm=new immutable(C);
assert(imm.x[0]==1);
mut.x[0]=2;
On 21/10/15 1:01 AM, Eliatto wrote:
Hello! I am rather new to D ecosystem (I am a C++ developer). I know
that there are code-dlang and awesome-D collections of libraries. But I
have not found any NLP libraries in D
(https://github.com/jogojapan/drulex is not worth mentioning), though
there are
Hello! I am rather new to D ecosystem (I am a C++ developer). I
know that there are code-dlang and awesome-D collections of
libraries. But I have not found any NLP libraries in D
(https://github.com/jogojapan/drulex is not worth mentioning),
though there are Go and Rust NLP libraries on github
On Monday, 19 October 2015 at 19:56:15 UTC, Jack Stouffer wrote:
On Monday, 19 October 2015 at 15:03:52 UTC, BBasile wrote:
On Saturday, 17 October 2015 at 16:31:38 UTC, DK wrote:
Hi, this link https://github.com/BBasile/Coedit/ doesn't work
for me ((
Coedit is now (since three weeks to be
Kagamin wrote:
> $ ls -v1 | sort
ls -v1 | sort -V
:-D
But there's still no good answer to the question why there should be a zero
in 2.068.2; OTOH, I discovered that since the API is still unstable, 2.068
should actually be 2.0.68.2 meaning 2nd bugfix release of the 68th minor
release of
You can write a helper:
XmlNode selectSingleNode(XmlNode src, string path)
{
XmlNode[] nodes = src.parseXPath(path);
return nodes.length==0 ? null : nodes[0];
}
Then:
string test1 = node.selectSingleNode(`//instanceId`).getCData();
On 10/19/2015 12:20 PM, ParticlePeter wrote:
> Last ingredient I would need for such a plan is an academic primary
> adviser.
Two names come to mind:
- Chuck Allison uses D when teaching functional programming at Utah
Valley University:
https://www.youtube.com/watch?v=ymoIx3klQ6M
- Carl
http://morfalang.org/
I thought the user-defined operators were pretty neat honestly.
On Tuesday, 20 October 2015 at 12:01:44 UTC, Eliatto wrote:
Why is this field unpopular among (D)evelopers?
We aren't numerous, so there hasn't been anyone to tackle the NLP
problems now (and many other domains). There is plenty of space
to start domain-specific libraries.
You could do it
On Tuesday, 20 October 2015 at 13:18:39 UTC, Shriramana Sharma
wrote:
Since TypeTuple is now an alias of AliasSeq, I suppose it's OK
to replace all occurrences of TypeTuple in std.traits by
AliasSeq?
Unfortunately it is not so easy. I think that we can proceed to
replace `TypeTuple` in
On Tue, 2015-10-20 at 02:19 -0700, Jonathan M Davis via Digitalmars-d-
learn wrote:
> […]
>
> auto before = MonoTime.currTime;
> // do stuff
> auto diff = MonoTime.currTime - before;
What import statement do you use to get MonoTime. I tried the above
and got an error with all the things I
https://issues.dlang.org/show_bug.cgi?id=15210
Kenji Hara changed:
What|Removed |Added
Severity|enhancement |regression
--
On Tue, 2015-10-20 at 15:16 +0100, Russel Winder wrote:
>
[…]
> What import statement do you use to get MonoTime. I tried the above
> and got an error with all the things I tried.
Hummm… I am now not worried about the import, I tried compiling a
different way and it worked. The upshot is that I
https://issues.dlang.org/show_bug.cgi?id=6343
Jack Stouffer changed:
What|Removed |Added
CC||j...@jackstouffer.com
On 10/17/2015 09:05 PM, Marco Leise wrote:
> Oh wait, false alert. That was a relic from older days. My
> build script placed a dummy dmd.conf there.
>
> I do seem to get problems with ldc2-0.16.0:
Are you using something befor 0.16.0-beta2, b/c I thought the problem
was resolved.
In std.uni (D Lib 2.068.2) I can no longer see how to get the general
category code for a character. Does anyone know what the currently
supported way to do that is?
On Tuesday, 20 October 2015 at 14:10:01 UTC, Dragos Carp wrote:
On Tuesday, 20 October 2015 at 13:18:39 UTC, Shriramana Sharma
wrote:
Since TypeTuple is now an alias of AliasSeq, I suppose it's OK
to replace all occurrences of TypeTuple in std.traits by
AliasSeq?
Unfortunately it is not so
On 10/20/2015 08:48 AM, Andrea Fontana wrote:
It happens I need to perform an operation just one time (inside a
function, a loop...)
An idea that uses a function pointer where the first step does its task
and then sets the stage for the following steps:
import std.stdio;
import std.range;
On Tuesday, 20 October 2015 at 12:46:51 UTC, BBasile wrote:
On Monday, 19 October 2015 at 19:56:15 UTC, Jack Stouffer wrote:
On Monday, 19 October 2015 at 15:03:52 UTC, BBasile wrote:
On Saturday, 17 October 2015 at 16:31:38 UTC, DK wrote:
Hi, this link https://github.com/BBasile/Coedit/
On Tuesday, 20 October 2015 at 15:55:47 UTC, John Colvin wrote:
Be aware that there will be one instance of val per thread, so
you are detecting the first run in each thread, not in the
program overall.
This is the kind of thing I'm interested in.
What happens if I call isFirstTime!"test"
On Tuesday, 20 October 2015 at 17:08:42 UTC, Andrei Alexandrescu
wrote:
Walter Bright (President)
A snap election in US? ;) Congrats Mr President.
Piotrek
On Tuesday, 20 October 2015 at 17:01:19 UTC, karabuta wrote:
I hope I am wrong, but dlangui seems to be abandoned for some
time after all the hard work that went into it. I really like
it since it was easy to setup and get things working.
In fact, I consider it the best option.
So, are you
On 16/10/2015 08:02, Jacob Carlborg wrote:
On 2015-10-16 08:49, Dicebot wrote:
As far as I understand topic is about deprecating direct field access of
synchronized classes, method calls in synhronized classes and
`synchronized () {}` blocks will remain untouched.
Is it even possible to do
On Tuesday, 20 October 2015 at 18:09:31 UTC, deadalnix wrote:
On Tuesday, 20 October 2015 at 14:10:01 UTC, Dragos Carp wrote:
On Tuesday, 20 October 2015 at 13:18:39 UTC, Shriramana Sharma
wrote:
Since TypeTuple is now an alias of AliasSeq, I suppose it's
OK to replace all occurrences of
On Monday, 19 October 2015 at 21:24:00 UTC, Iain Buclaw wrote:
In order:
You are responsible, the library maintainers (I chip in a bit
on the side
when I have the hardware / virtual environment).
You are responsible, the authors and reviewers of the testsuite
and
unittests.
Who is this
On Tuesday, 20 October 2015 at 16:01:41 UTC, Chris wrote:
On Tuesday, 20 October 2015 at 15:49:18 UTC, bachmeier wrote:
It's not my area, but are you thinking of something like
Freeling?
http://nlp.lsi.upc.edu/freeling/
Asking for a friend. I think a C++ expert could get it to work
with D
It happens I need to perform an operation just one time (inside a
function, a loop...)
I wonder if doing this it's a good idea or not.
bool isFirstTime(alias T)()
{
static val = true;
if (val)
{
val = false;
return true;
}
On Tuesday, 20 October 2015 at 12:01:44 UTC, Eliatto wrote:
Hello! I am rather new to D ecosystem (I am a C++ developer). I
know that there are code-dlang and awesome-D collections of
libraries. But I have not found any NLP libraries in D
(https://github.com/jogojapan/drulex is not worth
On Monday, 19 October 2015 at 10:27:26 UTC, Walter Bright wrote:
On 10/18/2015 12:00 PM, rcorre wrote:
SuperStruct is a struct that acts like a class:
I suggest it be renamed to 'shimmer':
http://www.nbc.com/saturday-night-live/video/shimmer-floor-wax/n8625
"This video is not available
On Tuesday, 20 October 2015 at 15:38:46 UTC, jmh530 wrote:
On Tuesday, 20 October 2015 at 12:46:51 UTC, BBasile wrote:
On Monday, 19 October 2015 at 19:56:15 UTC, Jack Stouffer
wrote:
On Monday, 19 October 2015 at 15:03:52 UTC, BBasile wrote:
[...]
Any particular reason?
Yes, I don't care
On Tuesday, 20 October 2015 at 15:48:47 UTC, Andrea Fontana wrote:
It happens I need to perform an operation just one time (inside
a function, a loop...)
I wonder if doing this it's a good idea or not.
bool isFirstTime(alias T)()
{
static val = true;
if (val)
{
https://issues.dlang.org/show_bug.cgi?id=15210
--- Comment #2 from Kenji Hara ---
Reduced test case:
struct BigInt {}
alias AliasSeq(T...) = T;
template Tuple(Types)
{
struct Tuple
{
Types expand;
alias field = expand;
}
}
void main()
{
https://issues.dlang.org/show_bug.cgi?id=15210
--- Comment #3 from Kenji Hara ---
(In reply to Kenji Hara from comment #2)
> Reduced test case:
Sorry I was wrong, correct version is:
struct BigInt {}
template Tuple(Types...)
{
struct Tuple
{
Types field;
https://issues.dlang.org/show_bug.cgi?id=15210
Kenji Hara changed:
What|Removed |Added
Keywords||ice, pull
On Tuesday, 20 October 2015 at 16:01:58 UTC, Andrea Fontana wrote:
On Tuesday, 20 October 2015 at 15:55:47 UTC, John Colvin wrote:
Be aware that there will be one instance of val per thread, so
you are detecting the first run in each thread, not in the
program overall.
This is the kind of
I hope I am wrong, but dlangui seems to be abandoned for some
time after all the hard work that went into it. I really like it
since it was easy to setup and get things working.
In fact, I consider it the best option.
On Tuesday, 20 October 2015 at 15:49:18 UTC, bachmeier wrote:
It's not my area, but are you thinking of something like
Freeling?
http://nlp.lsi.upc.edu/freeling/
Asking for a friend. I think a C++ expert could get it to work
with D with little difficulty, at least by creating C bindings,
Iain Buclaw via Digitalmars-d wrote:
> On 5 Sep 2015 11:25 pm, "Walter Bright via Digitalmars-d" <
> digitalmars-d@puremagic.com> wrote:
>>
>> On 9/5/2015 5:54 AM, Adam D. Ruppe wrote:
>>>
>>> On Saturday, 5 September 2015 at 08:15:06 UTC, Walter Bright wrote:
On Tuesday, 20 October 2015 at 13:23:47 UTC, opticron wrote:
I think part of the issue here is that holo isn't quite sure of
what information [s]he needs out of the XML reply and how to do
that with XPath. The first post mentioned getting instanceId
and launchTime, so I'll start there using
On 10/18/2015 02:35 AM, Jonathan M Davis via Digitalmars-d-announce wrote:
On Saturday, October 17, 2015 19:12:41 Andrei Alexandrescu via
Digitalmars-d-announce wrote:
On 10/17/15 4:06 PM, suliman wrote:
Can anybody outside USA join to the foundation?
As a member, yes. We'll define private
On 20 October 2015 at 20:44, Vladimir Panteleev via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
> On Monday, 19 October 2015 at 21:24:00 UTC, Iain Buclaw wrote:
>
>> In order:
>> You are responsible, the library maintainers (I chip in a bit on the side
>> when I have the hardware /
On Tuesday, 20 October 2015 at 19:54:29 UTC, Andre Polykanine
wrote:
Hello Suliman,
SvDda> I hope that I can be helpful as admin of Russian
community or
SvDda> something like it. At present time we end working at our
SvDda> dlang.ru, for my regret the work on CMS take more then
one
Am Tue, 20 Oct 2015 19:26:13 +0200
schrieb Martin Nowak :
> On 10/17/2015 09:05 PM, Marco Leise wrote:
> > Oh wait, false alert. That was a relic from older days. My
> > build script placed a dummy dmd.conf there.
> >
> > I do seem to get problems with ldc2-0.16.0:
Hello Suliman,
SvDda> I hope that I can be helpful as admin of Russian community or
SvDda> something like it. At present time we end working at our
SvDda> dlang.ru, for my regret the work on CMS take more then one year,
Do you need any help?
--
With best regards from Ukraine,
Andre
SvDda> There is some other issues, but I hope to fix it's after site revive.
Anyway, if you need help, please feel free to ask. I do speak Russian
:).
--
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: @m_elensule; Facebook: menelion
My blog: http://menelion.oire.org/
https://issues.dlang.org/show_bug.cgi?id=6343
--- Comment #5 from bearophile_h...@eml.cc ---
(In reply to Jack Stouffer from comment #4)
> https://github.com/D-Programming-Language/phobos/pull/3755
size_t w = 8;
int[nextPow2(w)][6] mat;
nextPow2(8) needs to be 8.
If you think the name of the
https://issues.dlang.org/show_bug.cgi?id=6343
--- Comment #6 from bearophile_h...@eml.cc ---
(In reply to bearophile_hugs from comment #5)
> If you think the name of the function is wrong, then change its name
ceilPow2 sounds OK.
--
https://issues.dlang.org/show_bug.cgi?id=6343
bearophile_h...@eml.cc changed:
What|Removed |Added
Summary|std.math.nextPow2 |std.math.ceilPow2
--
On Tuesday, 20 October 2015 at 20:02:26 UTC, Iain Buclaw wrote:
What can I say? We have a lot of faith in our porters. :-)
You can talk to me if you run into any problems, because I'm
certainly more *aware* of porting and portability than most
other druntime and compiler maintainers.
On Monday, 19 October 2015 at 14:51:29 UTC, Stewart Moth wrote:
I'm working with a library that has template structs of
mathematical vectors that can sometimes be the type of an array
I'm passing to a function.
The definition of the struct is like this:
struct Vector(type, int dimension_){
On Tuesday, 20 October 2015 at 08:28:19 UTC, Dicebot wrote:
Which LDC is it supposed to build with? Trying latest stable
(0.15.1) I get:
src/server/autocomplete.d(23): Error: module logger is in file
'std/experimental/logger.d' which cannot be read
0.16 beta. I'll add another mention of this
On 10/20/2015 08:01 AM, Eliatto wrote:
Hello! I am rather new to D ecosystem (I am a C++ developer). I know
that there are code-dlang and awesome-D collections of libraries. But I
have not found any NLP libraries in D
(https://github.com/jogojapan/drulex is not worth mentioning), though
there
On Tuesday, 20 October 2015 at 12:01:44 UTC, Eliatto wrote:
Why is this field unpopular among (D)evelopers?
I work with NLP almost all the time and D is very well suited for
it. It's mainly text-to-speech stuff, but I have a tiny POS
tagger (or rather POS identifier) as well.
D would be
On Tuesday, 20 October 2015 at 11:36:36 UTC, Marc Schütz wrote:
On Tuesday, 20 October 2015 at 01:49:08 UTC, Jonathan M Davis
wrote:
On Monday, 19 October 2015 at 23:37:09 UTC, Timon Gehr wrote:
This is the worst part:
class C{
int[] x=[1,2,3];
}
void main(){
auto mut=new C;
auto
https://issues.dlang.org/show_bug.cgi?id=15094
Kenji Hara changed:
What|Removed |Added
Keywords||rejects-valid
--- Comment
https://issues.dlang.org/show_bug.cgi?id=15094
Vladimir Panteleev changed:
What|Removed |Added
Summary|[REG2.063]
On Wednesday, 14 October 2015 at 07:01:49 UTC, Marco Leise wrote:
The test is pretty simple: Parse a JSON object, containing an
array of 1_000_000 3D coordinates in the range [0..1) and
average them.
The performance of std.json in parsing those was horrible still
in the DMD 2.066 days*:
On Monday, 19 October 2015 at 18:16:15 UTC, Andrei Alexandrescu
wrote:
Tangentially related: since when we allow field initialization
with new? I was surprised to see that this works:
Thanks for this notice. I edited question on SO and I removed
field initialization with new (replace
deadalnix wrote:
> We should weed these out over time. Not really remove them, as to
> not break old code, but just create new names for these and
> remove old name from the doc and all.
Working on this right now...
BTW "isExpressions" – what kind of singular/plural grammar is that? When
On Wednesday, October 21, 2015 06:49 AM, Shriramana Sharma wrote:
> BTW "isExpressions" – what kind of singular/plural grammar is that? When
> renaming `isExpressionsTuple`, I would think it more appropriate to have
> "isExpressionSeq" since it's an `AliasSeq` containing only expressions and
> no
On Tuesday, 20 October 2015 at 06:52:18 UTC, Ali Çehreli wrote:
Two names come to mind:
- Chuck Allison uses D when teaching functional programming at
Utah Valley University:
https://www.youtube.com/watch?v=ymoIx3klQ6M
- Carl Sturtivant taught D during a summer course:
On Tuesday, 20 October 2015 at 10:22:56 UTC, Ola Fosheim Grøstad
wrote:
What is interesting about Morfa is that they have a jitted
REPL. That's a significant advantage worth pursuing.
Looks like LLVM makes such things possible - there is also one
for C++(https://github.com/vgvassilev/cling).
https://issues.dlang.org/show_bug.cgi?id=15207
Kenji Hara changed:
What|Removed |Added
Keywords||pull, wrong-code
Since TypeTuple is now an alias of AliasSeq, I suppose it's OK to replace
all occurrences of TypeTuple in std.traits by AliasSeq?
--
Shriramana Sharma, Penguin #395953
I think part of the issue here is that holo isn't quite sure of
what information [s]he needs out of the XML reply and how to do
that with XPath. The first post mentioned getting instanceId and
launchTime, so I'll start there using the AWS example XML found
here:
88 matches
Mail list logo