On Monday, 13 March 2017 at 11:06:53 UTC, Russel Winder wrote:
It is a shame that dmd and ldc do not just use the standard GCC
option set.
Totally agreed.
Moreover, funny stuff like "dmd -of" (instead of standard
"-o ") breaks automatic Msys path conversion hack (the
code translates Unix
Ups, somehow overread the last sentence of tourge :)
Thanks for the detailed insights!
On Tuesday, 21 March 2017 at 12:30:57 UTC, Stefan Koch wrote:
Try scope obj = new MyClass(flag ? 1 : 2);
In essence you should never need to delay construction.
Just construct the object as soon as you have everything to
construct it.
which includes conditions.
Yes I know it. I prepare all
On Tuesday, 21 March 2017 at 08:46:43 UTC, Ali Çehreli wrote:
Another option is std.conv.emplace:
import std.conv : emplace;
class MyClass {
this(int) @nogc {
}
~this() @nogc {
}
}
void method(bool flag) @nogc
{
void[__traits(classInstanceSize, MyClass)] buffer = void;
On Wednesday, 22 March 2017 at 04:06:50 UTC, Mike Parker wrote:
dub fetch --cache=local mir-algorithm
Using --cache=local will put the package in the current
directory instead of the AppData path. When you aren't using
dub to manage your own projects, that makes it easier to deal
with
On Tuesday, 21 March 2017 at 22:51:41 UTC, thorstein wrote:
Thanks to all, I got it!
I created a new dub package and copied my code there. Compiles.
So I guess I get the rest working as well.
Still will have to figure out later the procedure to do the
same for a VisualD project, if it is
On Tuesday, 21 March 2017 at 19:26:47 UTC, Robly18 wrote:
Oh! Right, I forgot to mention that, my bad. The earliest
errors were, as you said, mismatched version exceptions.
However, to fix them, what I did was, at first, do the 2,0,2
version thing you said. Later, however, I decided to
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 Tuesday, 21 March 2017 at 17:58:06 UTC, deadalnix wrote:
On Tuesday, 21 March 2017 at 12:45:45 UTC, Vladimir Panteleev
wrote:
On Tuesday, 21 March 2017 at 11:59:42 UTC, deadalnix wrote:
It's not good either. Why would I want to look at a DAG when
the serie of event is strictly linear to
On Tuesday, 21 March 2017 at 18:07:57 UTC, deadalnix wrote:
You have presented 0 arguments so far, and dismissed both facts
and argument that were presented to you (one of them as unfair,
because fairness and correctness surely are correlated).
This is factually wrong, as is obvious from
Thanks to all, I got it!
I created a new dub package and copied my code there. Compiles.
So I guess I get the rest working as well.
Still will have to figure out later the procedure to do the same
for a VisualD project, if it is possible.
Thorstein
On Tuesday, 21 March 2017 at 10:27:27 UTC, Andrei Alexandrescu
wrote:
Thanks Yuxuan, sorry for missing this. Can we have this peer
reviewed by 1-2 crypto experts? Thanks! -- Andrei
By API, unpredictableSeed() only returns a 32b uint and will
never meet crypto standards. Beware of anyone who
On Tuesday, 21 March 2017 at 21:01:31 UTC, thorstein wrote:
Beside my specific problem of how to start with the mir-tools I
wonder how and for what purpose 'dub' is applied when building
projects in connection with Visual Studio? Or is it just a more
light-weight command line build tool?
On Tuesday, 21 March 2017 at 21:01:31 UTC, thorstein wrote:
C:\..\AppData\Roaming\dub>dub run mir-algorithm
Building package mir-algorithm in
C:\..\AppData\Roaming\dub\packages\mir-algorithm-0.1.1\mir-algorithm\
Fetching mir-internal 0.0.5 (getting selected version)...
Main package must have a
On Tuesday, 21 March 2017 at 21:01:31 UTC, thorstein wrote:
Hi,
I have questions regarding the usage of 'dub'. I'm learning D
under Win7. I have installed VisualD for the community edition
of Visual Studio and got some file i/o working.
Next I would like to continue with the mir-tools for
Hi,
I have questions regarding the usage of 'dub'. I'm learning D
under Win7. I have installed VisualD for the community edition of
Visual Studio and got some file i/o working.
Next I would like to continue with the mir-tools for matrix
manipulation. I understood that I have to build them
On Monday, 20 March 2017 at 05:10:04 UTC, Martin Nowak wrote:
On Wednesday, 15 March 2017 at 13:14:31 UTC, deadalnix wrote:
This is making the history very spaghettified. Is that
possible to have the bot rebase/squash commits and then
pushing ?
I don't really agree with the argument. A merge
On Tuesday, 21 March 2017 at 14:21:30 UTC, Mike Parker wrote:
On Tuesday, 21 March 2017 at 12:31:41 UTC, Robly18 wrote:
Two days of fix attempt laters, here I am. I tried
reinstalling and recompiling SDL from source (since the
version from apt-get was only 2.0.4 and the one Derelict uses
On Friday, 17 March 2017 at 19:05:20 UTC, H. S. Teoh wrote:
There are actually (at least) TWO distinct phases of
compilation that are conventionally labelled "compile time":
1) Template expansion / AST manipulation, and:
2) CTFE (compile-time function evaluation).
[ ... ]
Template
On Tuesday, 21 March 2017 at 18:26:29 UTC, Ali Çehreli wrote:
For what its worth, here are the stats for ddili.org that hosts
my books:
Country Pages Hits Bandwidth (MB)
--- - -
China 18754 19122 304.05
On 03/21/2017 12:04 AM, Dsby wrote:
> May be can translate some book, for generalize D.
> like: https://github.com/DlangRen/Programming-in-D
Kudos for such an effort! :)
Ali
On Tuesday, 21 March 2017 at 17:56:33 UTC, StarGrazer wrote:
One problem with ctfe's is that the compiler is a bit ignorant.
e.g.,
auto e = X!"y";
It is clear that e, when defined is a manifest constant(simply
because one can do)
enum ee = X!"y";
auto e = ee;
But one can't do
auto e =
On Tue, Mar 21, 2017 at 05:56:33PM +, StarGrazer via Digitalmars-d wrote:
> One problem with ctfe's is that the compiler is a bit ignorant.
[...]
The reason for this is that pragma(msg) is not a CTFE construct, but an
AST construct. It is evaluated when the compiler is building the
abstract
For what its worth, here are the stats for ddili.org that hosts my books:
Country Pages Hits Bandwidth (MB)
--- - -
China 18754 19122 304.05
Turkey 18499 76544 536.30
United States 17318 24623
On 03/21/2017 06:56 PM, StarGrazer wrote:
One problem with ctfe's is that the compiler is a bit ignorant.
e.g.,
auto e = X!"y";
It is clear that e, when defined is a manifest constant(simply because
one can do)
e is not a manifest constant. X!"y" is presumably a compile-time
constant, but
On Tuesday, 21 March 2017 at 17:56:33 UTC, StarGrazer wrote:
One problem with ctfe's is that the compiler is a bit ignorant.
e.g.,
auto e = X!"y";
It is clear that e, when defined is a manifest constant(simply
because one can do)
enum ee = X!"y";
auto e = ee;
But one can't do
auto e =
On Tuesday, 21 March 2017 at 12:49:22 UTC, Vladimir Panteleev
wrote:
there are ample proof that is increase the quality of the code
review,
OK, where is the proof?
Large companies such as Google or Facebook measure these things.
You have presented 0 arguments so far, and dismissed both
On Tuesday, 21 March 2017 at 12:45:45 UTC, Vladimir Panteleev
wrote:
On Tuesday, 21 March 2017 at 11:59:42 UTC, deadalnix wrote:
It's not good either. Why would I want to look at a DAG when
the serie of event is strictly linear to begin with ?
Not sure what you mean here. The way it's
One problem with ctfe's is that the compiler is a bit ignorant.
e.g.,
auto e = X!"y";
It is clear that e, when defined is a manifest constant(simply
because one can do)
enum ee = X!"y";
auto e = ee;
But one can't do
auto e = X!"y";
pragma(msg, e);
yet one can do
enum ee = X!"y";
auto e
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote:
[ ... ]
Hi I fixed the local slice issue.
It turned out that there was special code in place to deal with
this case;
But that I forgot to change that to the new slice ABI.
The moral of this story is;
ABI changes are hard to
On Tuesday, 21 March 2017 at 14:14:24 UTC, Laeeth Isharc wrote:
Daily downloads of dmd are in a bull market:
http://erdani.com/d/downloads.daily.png
I wondered if it might be possible to break these out by region
and OS. I guess if Andrei were to make public the script that
parses the
On Tuesday, 21 March 2017 at 13:59:56 UTC, Jacob Carlborg wrote:
It's cool that this is possible to do in D, but I feel sorry
for anyone that has a reason :)
In my discussions with people doing real world data analysis,
making decisions in meetings, by email, and such, spreadsheets
are an
On 03/21/2017 04:09 PM, StarGrazer wrote:
On Tuesday, 21 March 2017 at 15:01:43 UTC, ag0aep6g wrote:
On 03/20/2017 05:55 PM, StarGrazer wrote:
typeof() fails unless method is static. Says & requires this.
Works for me:
class C
{
void method() {}
typeof() x;
}
typeof() y;
On Tuesday, 21 March 2017 at 15:01:43 UTC, ag0aep6g wrote:
On 03/20/2017 05:55 PM, StarGrazer wrote:
typeof() fails unless method is static. Says & requires
this.
Works for me:
class C
{
void method() {}
typeof() x;
}
typeof() y;
Tested with dmd 2.073.2.
Yes, but you
On 03/20/2017 05:55 PM, StarGrazer wrote:
typeof() fails unless method is static. Says & requires this.
Works for me:
class C
{
void method() {}
typeof() x;
}
typeof() y;
Tested with dmd 2.073.2.
Note that the type of x and y is `void function()`, not `void
delegate()`.
On Tuesday, 21 March 2017 at 12:39:26 UTC, WebFreak001 wrote:
On Tuesday, 21 March 2017 at 12:31:41 UTC, Robly18 wrote:
I've been working on a small game of tic tac toe using
Derelict SDL, and development has been going along great...
Until I tried to develop on my Ubuntu laptop.
[...]
On Monday, 20 March 2017 at 19:57:03 UTC, Atila Neves wrote:
http://code.dlang.org/packages/influxdb-dlang-wrapper
InfluxDB is a database optimised for time-series data. This
package implements a D API via the REST interface so that this
code works:
Brilliant! I may actually need it soon!
On Tuesday, 21 March 2017 at 12:31:41 UTC, Robly18 wrote:
Two days of fix attempt laters, here I am. I tried reinstalling
and recompiling SDL from source (since the version from apt-get
was only 2.0.4 and the one Derelict uses seems to be 2.0.5),
and it continues segfaulting at seemingly
On Tuesday, 21 March 2017 at 14:14:24 UTC, Laeeth Isharc wrote:
Daily downloads of dmd are in a bull market:
http://erdani.com/d/downloads.daily.png
I wondered if it might be possible to break these out by region
and OS. I guess if Andrei were to make public the script that
parses the
Daily downloads of dmd are in a bull market:
http://erdani.com/d/downloads.daily.png
I wondered if it might be possible to break these out by region
and OS. I guess if Andrei were to make public the script that
parses the download logs and produce the picture, somebody else
could submit a
On Tuesday, 21 March 2017 at 13:59:56 UTC, Jacob Carlborg wrote:
On 2017-03-20 21:09, 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)
On 2017-03-20 21:09, 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 `DllMain`! It
works like
On Tuesday, 21 March 2017 at 13:04:29 UTC, Robly18 wrote:
On Tuesday, 21 March 2017 at 12:39:26 UTC, WebFreak001 wrote:
On Tuesday, 21 March 2017 at 12:31:41 UTC, Robly18 wrote:
I've been working on a small game of tic tac toe using
Derelict SDL, and development has been going along great...
21.03.2017 16:04, Robly18 пишет:
On Tuesday, 21 March 2017 at 12:39:26 UTC, WebFreak001 wrote:
On Tuesday, 21 March 2017 at 12:31:41 UTC, Robly18 wrote:
I've been working on a small game of tic tac toe using Derelict SDL,
and development has been going along great... Until I tried to
develop
On Tuesday, 21 March 2017 at 12:39:26 UTC, WebFreak001 wrote:
On Tuesday, 21 March 2017 at 12:31:41 UTC, Robly18 wrote:
I've been working on a small game of tic tac toe using
Derelict SDL, and development has been going along great...
Until I tried to develop on my Ubuntu laptop.
[...]
On Tuesday, 21 March 2017 at 11:59:42 UTC, deadalnix wrote:
Then it should have been 2 PR or more to begin with. Splitting
PR in smaller ones is a good practice in general,
This is probably true for many cases, but I don't think it's a
general truth.
First, there are extreme cases like
On Tuesday, 21 March 2017 at 11:59:42 UTC, deadalnix wrote:
It's not good either. Why would I want to look at a DAG when
the serie of event is strictly linear to begin with ?
Not sure what you mean here. The way it's presented is not a DAG.
Yes, that's why rebasing makes thing clearer. Nobody
On Tuesday, 21 March 2017 at 12:17:58 UTC, Gerald wrote:
On Tuesday, 21 March 2017 at 08:22:13 UTC, Andrea Fontana wrote:
So, is Ubuntu Budgie going to use Tilix as default? [1]
That's a big news for D imo :)
https://github.com/UbuntuBudgie/budgie-desktop-environment/issues/33
That's their
On Tuesday, 21 March 2017 at 12:31:41 UTC, Robly18 wrote:
I've been working on a small game of tic tac toe using Derelict
SDL, and development has been going along great... Until I
tried to develop on my Ubuntu laptop.
[...]
Derelict-SDL is binding against newer functions than ubuntu
I've been working on a small game of tic tac toe using Derelict
SDL, and development has been going along great... Until I tried
to develop on my Ubuntu laptop.
I uploaded the code to github, downloaded it on my laptop,
installed the prequesites and... The program crashed with error
-11 -- a
On Tuesday, 21 March 2017 at 08:08:24 UTC, ANtlord wrote:
Hello! I read documentation about memory management and can't
find description about delay allocation of instance. I have a
method marked by @nogc. This method takes boolean variable. If
this variable is true I want to construct object
On Tuesday, 21 March 2017 at 08:22:13 UTC, Andrea Fontana wrote:
So, is Ubuntu Budgie going to use Tilix as default? [1]
That's a big news for D imo :)
https://github.com/UbuntuBudgie/budgie-desktop-environment/issues/33
That's their plan, they haven't asked me about it specifically
but it's
Am 19.03.2017 um 12:13 schrieb MrSmith:
On Tuesday, 14 March 2017 at 11:17:57 UTC, Sönke Ludwig wrote:
Any comments suggestions and especially helping hands are highly
appreciated!
Would be nice to undo/change votes. I accidentally clicked -1 and can't
undo it.
Good point, I was a bit
On Tuesday, 21 March 2017 at 01:39:39 UTC, Vladimir Panteleev
wrote:
On Monday, 20 March 2017 at 12:25:22 UTC, deadalnix wrote:
Because a picture is clearer than a thousand words:
What this tells me is that the default way git-log presents
history is not very useful. Consider this
On Tuesday, 21 March 2017 at 01:12:45 UTC, Laeeth Isharc wrote:
On Tuesday, 21 March 2017 at 00:25:46 UTC, Steven Schveighoffer
wrote:
On 3/20/17 4:09 PM, 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
On Friday, 3 February 2017 at 14:30:01 UTC, Soolayman wrote:
Is there any usable full-text search library? for D I couldn't
find any except the Elasticsearch client called elasticsearch-d
in the package registry a very old Lucene port for D1 called
dlucene. This is it or did I miss something?
https://issues.dlang.org/show_bug.cgi?id=17269
Issue ID: 17269
Summary: formattedWrite of struct with Nullable value fails
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
On 3/8/17 11:24 PM, Yuxuan Shui wrote:
On Tuesday, 7 March 2017 at 20:15:56 UTC, Nick Sabalausky (Abscissa) wrote:
On 03/07/2017 05:18 AM, Seb wrote:
[...]
Ooh, that's great to know! (Kinda sad that it seems necessary, given
the "unix filesystem and unix design" ideals, but oh well,
On Tuesday, 21 March 2017 at 00:25:46 UTC, Steven Schveighoffer
wrote:
On 3/20/17 4:09 PM, 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
On Tuesday, 21 March 2017 at 01:10:38 UTC, Jonathan M Davis wrote:
On Monday, March 20, 2017 22:14:37 Yuxuan Shui via
Digitalmars-d wrote:
On Monday, 20 March 2017 at 21:53:47 UTC, Jonathan M Davis
wrote:
> [...]
Makes sense...
OK, attempt 2: how about support implicit partial application
On 03/21/2017 01:08 AM, ANtlord wrote:
void method(bool flag) @nogc
{
scope MyClass obj;
if(flag) {
obj = new MyClass(1);
} else {
obj = new MyClass(2);
}
// using obj
}
Another option is std.conv.emplace:
import std.conv : emplace;
class MyClass {
On Tuesday, 21 March 2017 at 08:12:36 UTC, rikki cattermole wrote:
You probably want[0] to allocate a class on the stack instead
of doing this.
[0] http://dlang.org/phobos/std_typecons.html#.scoped
If I will use it I won't use @nogc. Is the only one case?
On Monday, 20 March 2017 at 16:56:02 UTC, Gerald wrote:
Terminix, a Linux GTK3 tiling terminal emulator written in D,
has been renamed to Tilix due to trademark infringement issues
with the Terminix International corporation. The new URLs for
Tilix are as follows:
Website:
You probably want[0] to allocate a class on the stack instead of doing this.
[0] http://dlang.org/phobos/std_typecons.html#.scoped
Hello! I read documentation about memory management and can't
find description about delay allocation of instance. I have a
method marked by @nogc. This method takes boolean variable. If
this variable is true I want to construct object with one set of
parameters else I want to construct object
On Monday, 20 March 2017 at 12:44:32 UTC, Laeeth Isharc wrote:
Hi.
I'm responsible for technology for an investment management
company with its main offices in Hong Kong and London. We also
have a small office in Shenzhen, and we're interested in
becoming more involved in the Chinese
66 matches
Mail list logo