On Tuesday, 23 December 2014 at 07:26:27 UTC, Daniel Kozak wrote:
That's very different to my results.
I see no important difference between ldc and dmd when using
std.math, but when using core.stdc.math ldc halves its time
where dmd only manages to get to ~80%
What CPU do you have? On my
On 12/19/2014 02:22 AM, Colin wrote:
On Thursday, 18 December 2014 at 22:29:30 UTC, Ali Çehreli wrote:
happy with Emacs :p
Does emacs do this aswell? :)
Emacs can and does do everything: :)
http://www.gnu.org/software/emacs/manual/html_node/emacs/Customize-Save.html
Ali
That's very different to my results.
I see no important difference between ldc and dmd when using
std.math, but when using core.stdc.math ldc halves its time
where dmd only manages to get to ~80%
I checked again today and the results are interesting, on my pc I
don't see any difference
On Tuesday, 23 December 2014 at 10:20:04 UTC, Iov Gherman wrote:
That's very different to my results.
I see no important difference between ldc and dmd when using
std.math, but when using core.stdc.math ldc halves its time
where dmd only manages to get to ~80%
I checked again today and the
These multi-threaded benchmarks can be very sensitive to their
environment, you should try running it with nice -20 and do
multiple passes to get a vague idea of the variability in the
result. Also, it's important to minimise the number of other
running processes.
I did not use the nice
On Tuesday, 23 December 2014 at 10:39:13 UTC, Iov Gherman wrote:
These multi-threaded benchmarks can be very sensitive to their
environment, you should try running it with nice -20 and do
multiple passes to get a vague idea of the variability in the
result. Also, it's important to minimise
as you properly know, ini files don't support sections arrays.
If you know all items at compile time, you could create structs
for all of them, but that is properly not what you're looking for.
On Tuesday, 23 December 2014 at 10:20:04 UTC, Iov Gherman wrote:
That's very different to my results.
I see no important difference between ldc and dmd when using
std.math, but when using core.stdc.math ldc halves its time
where dmd only manages to get to ~80%
I checked again today and the
On Monday, 22 December 2014 at 17:16:49 UTC, Iov Gherman wrote:
On Monday, 22 December 2014 at 17:16:05 UTC, bachmeier wrote:
On Monday, 22 December 2014 at 17:05:19 UTC, Iov Gherman wrote:
Hi Guys,
First of all, thank you all for responding so quick, it is so
nice to see D having such an
And what about single threaded version?
Just ran the single thread examples after I moved time start
before array allocation, thanks for that, good catch. Still
better results in Java:
- java:
21 secs, 612 ms
- with std.math:
dmd: 23 secs, 994 ms
ldc: 31 secs, 668 ms
gdc: 52 secs, 576 ms
Btw. I just noticed small issue with D vs. java, you start
messure in D before allocation, but in case of Java after
allocation
Here is the java result for parallel processing after moving the
start time as the first line in main. Still best result:
4 secs, 50 ms average
Forgot to mention that I pushed my changes to github.
On Tuesday, 23 December 2014 at 12:26:28 UTC, Iov Gherman wrote:
And what about single threaded version?
Just ran the single thread examples after I moved time start
before array allocation, thanks for that, good catch. Still
better results in Java:
- java:
21 secs, 612 ms
- with
On Tuesday, 23 December 2014 at 12:31:47 UTC, Iov Gherman wrote:
Btw. I just noticed small issue with D vs. java, you start
messure in D before allocation, but in case of Java after
allocation
Here is the java result for parallel processing after moving
the start time as the first line in
Today,I meet a question:get all processes names.
--C++ CODE-
#include stdafx.h
#include windows.h
#include stdio.h//C standard I/O
#include tlhelp32.h
int _tmain(int argc, _TCHAR* argv[])
{
HANDLE
hProcessSnap=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
FrankLike via Digitalmars-d-learn píše v Út 23. 12. 2014 v 15:37 +:
Today,I meet a question:get all processes names.
--C++ CODE-
#include stdafx.h
#include windows.h
#include stdio.h//C standard I/O
#include tlhelp32.h
int _tmain(int argc, _TCHAR* argv[])
On Tue, 23 Dec 2014 15:37:12 +
FrankLike via Digitalmars-d-learn digitalmars-d-learn@puremagic.com
wrote:
you will find the different:
D: PROCESSENTRY32* pe32 =
cast(PROCESSENTRY32*)GC.calloc(PROCESSENTRY32.sizeof);
C++:PROCESSENTRY32 pe32;
GC.calloc means: memset ?!
do you see
I'm getting faster execution on java thank dmd, gdc beats it
though.
...although, what this topic really provides is a reason for me
to get more RAM for my next laptop. How much do you people run
with? I had to scale the java down to 300 million to avoid dying
with 4G memory.
I've run into a problem while trying to coerce array values from
a variant; specifically,
char[] a = aVariant.coerce!(char[]); // This works just fine.
byte[] b = bVariant.coerce!(byte[]); // This causes a static
assertion to fail.
I'm not really sure why a byte[] would be an unsupported
Minimal code for convenience to others:
import std.variant;
void main()
{
Variant aVariant;
Variant bVariant;
char[] a = aVariant.coerce!(char[]);
byte[] b = bVariant.coerce!(byte[]);
}
On 12/23/2014 02:57 PM, Winter M. wrote:
I've run into a problem while trying to coerce
On Tue, 23 Dec 2014 22:57:07 +
Winter M. via Digitalmars-d-learn digitalmars-d-learn@puremagic.com
wrote:
I've run into a problem while trying to coerce array values from
a variant; specifically,
char[] a = aVariant.coerce!(char[]); // This works just fine.
byte[] b =
On Tuesday, 23 December 2014 at 20:22:12 UTC, ketmar via
Digitalmars-d-learn wrote:
On Tue, 23 Dec 2014 15:37:12 +
FrankLike via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com
wrote:
you will find the different:
D: PROCESSENTRY32* pe32 =
On Wed, 24 Dec 2014 00:24:44 +
FrankLike via Digitalmars-d-learn digitalmars-d-learn@puremagic.com
wrote:
On Tuesday, 23 December 2014 at 20:22:12 UTC, ketmar via
Digitalmars-d-learn wrote:
On Tue, 23 Dec 2014 15:37:12 +
FrankLike via Digitalmars-d-learn
I can't get implib.exe (http://ftp.digitalmars.com/bup.zip) to
produce .lib files from dlls (https://www.allegro.cc/files/). I
think it works for other people.
Thanks for any help.
24 matches
Mail list logo