I'd like to try d in computational physics. One of the most
appealing features of the d is implementation of arrays, but to
be really usable this has to work FAST.
So here http://dlang.org/arrays.html it is stated, that:
Implementation note: many of the more common vector
operations
On Wednesday, 21 March 2012 at 01:26:23 UTC, bearophile wrote:
import std.stdio;
void main() {
auto mat = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]];
writefln(%(%(%d %)\n%), mat);
writeln();
writefln([%(%(%d %)\n%)], mat);
writeln();
What is the status at the moment? What compiler and with which compiler
flags I should use to achieve maximum performance?
In general gdc or ldc. Not sure how good vectorization is though, esp.
auto-vectorization.
On the other hand the so called vector operations like a[] = b[] + c[];
are
In my work we have to access a big zip file with a lot of little
xml files in it to look up various target specific attributes for
a wide variety of targets.
Basically the zip file it is a zipped up directory hierarchy of
zip files, and in processing it the hierarchy has meaning.
I see in
I guess Tango provides something like that via the VFS stuff.
https://github.com/SiegeLord/Tango-D2 resp.
https://github.com/mtachrono/tango
I'm using the following to read arrays from the command line (or
redirected file) but am having some issues that I have not been
able to solve on my own. Would appreciate if a little guidance.
void f(T)(ref T a)if(isArray!T)
{
a.length = 100;
int i;
while(readf( %s, a[i++])) // #1
On 3/22/12, Tyro[17] nos...@home.com wrote:
issue #2
how do i read a string[] such that whitespace (all or one of
my choosing) delineate the string boundary?
Jesse Phillips has a cmdln.interact library that I think would work by using:
string[] result = userInput!(string[])(Enter
On Thursday, 22 March 2012 at 10:43:35 UTC, Trass3r wrote:
What is the status at the moment? What compiler and with which
compiler flags I should use to achieve maximum performance?
In general gdc or ldc. Not sure how good vectorization is
though, esp. auto-vectorization.
On the other hand