On Thursday, 16 April 2015 at 08:51:15 UTC, TheGag96 wrote:
Hi, I've got this project that requires me to link into a C++
backend. It works just fine when using GDC:
gdc *.d [client libraries]
However, this command using DMD does not work:
dmd -L-lstdc++ *.d [client libraries]
I still get
Hi, I've got this project that requires me to link into a C++
backend. It works just fine when using GDC:
gdc *.d [client libraries]
However, this command using DMD does not work:
dmd -L-lstdc++ *.d [client libraries]
I still get errors involving the standard library not being added
like:
On Thursday, 16 April 2015 at 08:51:15 UTC, TheGag96 wrote:
Hi, I've got this project that requires me to link into a C++
backend. It works just fine when using GDC:
gdc *.d [client libraries]
However, this command using DMD does not work:
dmd -L-lstdc++ *.d [client libraries]
I still get
On Thursday, 16 April 2015 at 08:51:15 UTC, TheGag96 wrote:
Hi, I've got this project that requires me to link into a C++
backend. It works just fine when using GDC:
gdc *.d [client libraries]
However, this command using DMD does not work:
dmd -L-lstdc++ *.d [client libraries]
I still get
On Wednesday, 15 April 2015 at 23:02:32 UTC, Ali Çehreli wrote:
struct I {
alias T = size_t;
this(T ix) { this._ix = ix; }
T opCast(U : T)() const { return _ix; }
private T _ix = 0;
}
How is this possible?
On Thursday, 16 April 2015 at 10:27:20 UTC, Per Nordlöw wrote:
On Wednesday, 15 April 2015 at 16:21:59 UTC, Nordlöw wrote:
Help please.
I'm quite satisfied with the current state now.
Is anybody interested in having this in typecons.d in Phobos?
I would be, yes.
Have you considered what
I've written a simple socket-server app that securities (stock
market shares) data and allows clients to query over them. The
app starts by loading instrument information from a CSV file into
some structs, then listens on a socket responding to queries. It
doesn't mutate the data or allocate
On Thursday, 16 April 2015 at 10:24:05 UTC, Per Nordlöw wrote:
How is this possible? Shouldn't it CT-evaluate to
struct Index { ... }
!?
Ahh, in the case when I is I. Ok I get it. That's the reason.
Thx
On Wednesday, 15 April 2015 at 16:21:59 UTC, Nordlöw wrote:
Help please.
I'm quite satisfied with the current state now.
Is anybody interested in having this in typecons.d in Phobos?
On 2015-04-16 11:56, Dicebot wrote:
Simple issue but unpleasant fix. You always must use C++ library that
matches base C++ compiler. For GDC it is GCC (which is used by default).
For DMD it is DMC (Digital Mars C compiler). For LDC it is whatever
Clang standard library is called. All those are
On 4/16/15 4:51 AM, TheGag96 wrote:
Hi, I've got this project that requires me to link into a C++
backend. It works just fine when using GDC:
gdc *.d [client libraries]
However, this command using DMD does not work:
dmd -L-lstdc++ *.d [client libraries]
I still get errors involving the
Vladimir Adam Thank you! This was my last roadblock I needed
to overcome to finish my prototype project for the company I work
for. After a successful presentation and demo - the company I
work for is taking a serious look into the D language for future
projects.
Thanks! Ben.
On
On Thursday, 16 April 2015 at 09:46:40 UTC, John Colvin wrote:
On Thursday, 16 April 2015 at 08:51:15 UTC, TheGag96 wrote:
Hi, I've got this project that requires me to link into a C++
backend. It works just fine when using GDC:
gdc *.d [client libraries]
However, this command using DMD does
On 4/16/15 10:23 AM, ref2401 wrote:
Hi Everyone,
After I switched to DMD 2067 my code that previously worked began crashing.
If I change the return statement in the matrixOrtho function
from:
return Matrix(...);
to:
Matrix m = Matrix(...);
return m;
then the error won't occur
On Thursday, 16 April 2015 at 12:17:24 UTC, Adil wrote:
Calling Securities.bytes shows 188 MB, but ps shows about
591
MB of Resident memory. Where is the memory usage coming from?
What am i missing?
I'd say this is memory allocated while you load the CSV file. I
can't tell much more without
Builds and runs fine for me. What is your OS and build command?
-Steve
Win 8.1
dmd main.d -ofmain.exe -debug -unittest -wi
if %errorLevel% equ 0 (main.exe)
Fwiw, I have been working on something similar. Others will have
more experience on the GC, but perhaps you might find this
interesting.
For CSV files, what I found is that parsing is quite slow (and
memory intensive). So rather than parse the same data every
time, I found it helpful to do
Hi Everyone,
After I switched to DMD 2067 my code that previously worked began
crashing.
If I change the return statement in the matrixOrtho function
from:
return Matrix(...);
to:
Matrix m = Matrix(...);
return m;
then the error won't occur anymore. What is going on?
On Thursday, 16 April 2015 at 12:57:12 UTC, Steven Schveighoffer
wrote:
/usr/include/c++/4.8/iostream:74: undefine reference to
`std::ios_base::Init::Init()'
(etc.)
Try dmd -v to tell you exactly what command it is running for
link. Then play around with the link line to see if you can
Thanks, please file a bug, make it Windows specific, as I did
not get the exception on OSX.
-Steve
Done: https://issues.dlang.org/show_bug.cgi?id=14452
On Thursday, 16 April 2015 at 20:34:19 UTC, Steven Schveighoffer
wrote:
On 4/16/15 4:18 PM, Panke wrote:
Yep, but problem is almost no one expect this, or know this.
We
definitely
should do better.
How?
By doing what is expected. Print the array contents. See my new
comment in that PR.
On Thu, 16 Apr 2015 19:55:52 +
Bayan Rafeh via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote:
Executing this code:
import std.container.array;
import std.stdio;
int main() {
writeln(Array!int([1, 2]));
return 0;
}
outputs the following:
On Wednesday, 15 April 2015 at 12:03:49 UTC, Chris wrote:
There might be some low-hanging fruit there. However, before I
change anything, maybe you guys have some suggestions.
See if switching to 64-bit mode changes anything.
On Thu, 16 Apr 2015 13:05:48 -0700
H. S. Teoh via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote:
On Thu, Apr 16, 2015 at 07:55:52PM +, Bayan Rafeh via Digitalmars-d-learn
wrote:
Executing this code:
import std.container.array;
import std.stdio;
int main() {
What is the best way to figure out and then decode a file of
unknown coding to dchar?
2½% Index-linked Treasury Stock
2016,GB0009075325,26-Jul-2016,28-Feb-2014,8
month,337.81,338.577874,0.76787400,-1.953546,2.37
Eg I am not sure what encoding the 1/2 is in above, but treating
it as
On Thu, Apr 16, 2015 at 07:55:52PM +, Bayan Rafeh via Digitalmars-d-learn
wrote:
Executing this code:
import std.container.array;
import std.stdio;
int main() {
writeln(Array!int([1, 2]));
return 0;
}
outputs the following:
Array!int(RefCounted!(Payload,
On Wednesday, 15 April 2015 at 16:59:12 UTC, ketmar wrote:
or make safe and company context keywords. along with
body (oh, how
i hate the unabilily to declare body member!)
Ugh, yeah. Makes physics code awkward.
On Thursday, 16 April 2015 at 15:00:39 UTC, ref2401 wrote:
Builds and runs fine for me. What is your OS and build command?
-Steve
Win 8.1
dmd main.d -ofmain.exe -debug -unittest -wi
if %errorLevel% equ 0 (main.exe)
Reduced case:
struct S
{
float f;
}
On Thursday, 16 April 2015 at 20:27:46 UTC, rumbu wrote:
Hit send by accident :)
Reduced case:
struct S {
float f; //or double or real
this(float f) {
this.f = f;
}
}
S foo() {
return S(0f);
}
void main() {
auto s = foo();
}
Win 8.1 also, 32 and 64 bit, debug or
On Thursday, 16 April 2015 at 17:13:25 UTC, Laeeth Isharc wrote:
For CSV files, what I found is that parsing is quite slow (and
memory intensive).
If your sure that CSV reading is the culprit, writing a custom
parser could help. It's possible to load a CSV file with almost
no memory
On Thursday, 16 April 2015 at 19:22:41 UTC, Laeeth Isharc wrote:
What is the best way to figure out and then decode a file of
unknown coding to dchar?
You generally can't, though some statistical analysis can
sometimes help. The encoding needs to be known through some other
means to have a
Executing this code:
import std.container.array;
import std.stdio;
int main() {
writeln(Array!int([1, 2]));
return 0;
}
outputs the following:
Array!int(RefCounted!(Payload,
cast(RefCountedAutoInitialize)0)(RefCountedStore(B694B0)))
The strange thing is that this works
On 4/16/15 4:18 PM, Panke wrote:
Yep, but problem is almost no one expect this, or know this. We
definitely
should do better.
How?
By doing what is expected. Print the array contents. See my new comment
in that PR.
-Steve
On 4/16/15 4:32 PM, rumbu wrote:
On Thursday, 16 April 2015 at 20:27:46 UTC, rumbu wrote:
Hit send by accident :)
Reduced case:
struct S {
float f; //or double or real
this(float f) {
this.f = f;
}
}
S foo() {
return S(0f);
}
void main() {
auto s = foo();
}
First try utf-8, if it doesn't work, then use some fallback
encoding like latin1.
On Thursday, 16 April 2015 at 19:55:53 UTC, Bayan Rafeh wrote:
How am I supposed to interpret this?
The array contains two elements. The first equals one and the
second equals two.
What happens under the hood is that Array does no provide a
toString method, instead a default is used. This
On Thursday, 16 April 2015 at 20:09:07 UTC, Vlad Levenfeld wrote:
On Wednesday, 15 April 2015 at 16:59:12 UTC, ketmar wrote:
or make safe and company context keywords. along with
body (oh, how
i hate the unabilily to declare body member!)
Ugh, yeah. Makes physics code awkward.
And DOM.
Yep, but problem is almost no one expect this, or know this. We
definitely
should do better.
How?
On Thursday, 16 April 2015 at 10:46:25 UTC, John Colvin wrote:
On Thursday, 16 April 2015 at 10:27:20 UTC, Per Nordlöw wrote:
On Wednesday, 15 April 2015 at 16:21:59 UTC, Nordlöw wrote:
Help please.
I'm quite satisfied with the current state now.
Is anybody interested in having this in
39 matches
Mail list logo