On Tuesday, 3 April 2012 at 05:27:08 UTC, Jay Norwood wrote:
..
So, to answer my own questions ... I placed the code below in a
taskpool parallel foreach loop, where each am is an archive
member. It is expanded, and the expanded data is written to a
file. The original time info is c
Thank you, very interesting to understand a little more about
what goes on underneath with conceptual vs semantic differences.
On Wednesday, April 04, 2012 04:45:43 ixid wrote:
> "And what would it mean in the case of parallel(0 ..5)?"
>
> Wouldn't it be a more elegant way of doing pretty much the same
> thing as parallel(iota(0,5))? Iterating over a range and carrying
> out your parallel task with that value.
1. ".." wo
thanks all.
"And what would it mean in the case of parallel(0 ..5)?"
Wouldn't it be a more elegant way of doing pretty much the same
thing as parallel(iota(0,5))? Iterating over a range and carrying
out your parallel task with that value.
On Wednesday, April 04, 2012 03:29:03 ixid wrote:
> I understand the basic use to slice an array but what about these:
>
> foreach(i;0..5)
> dostuff;
>
> That works yet this does not:
>
> foreach(i;parallel(0..5))
> dostuff;
>
> Why not let this work? It'd seem like a natural way of wr
Thank you, very informative as always. =)
ixid:
I understand the basic use to slice an array but what about
these:
foreach(i;0..5)
dostuff;
That works yet this does not:
foreach(i;parallel(0..5))
dostuff;
Why not let this work? It'd seem like a natural way of writing
a parallel loop.
The design of D language is a bit of
I understand the basic use to slice an array but what about these:
foreach(i;0..5)
dostuff;
That works yet this does not:
foreach(i;parallel(0..5))
dostuff;
Why not let this work? It'd seem like a natural way of writing a
parallel loop. For some reason:
foreach(i;[0,1,2,3,4])
do
On Tue, Apr 03, 2012 at 03:44:08PM -0700, Ali Çehreli wrote:
> On 04/03/2012 03:32 PM, jicman wrote:
[...]
> > How can I make args global?
[...]
> First, the general discouragement: Avoid global data. :)
>
> You can initialize a global variable upon entering main:
[...]
Technically that's a modul
On 4 April 2012 10:32, jicman wrote:
> How can I make args global?
>
> thanks,
In D, technically the only way is to use Runtime, as Andrej mentioned.
As an aside, it is worth noting there is no global scope in D, module
is as high as you go.
On 04/03/2012 03:32 PM, jicman wrote:
>
> Greetings.
>
> imagine this code...
>
> void c()
> {
>char [] t = args[0];
> }
> void main(char[][] args)
> {
>int i = 1;
> }
>
> How can I make args global?
>
> thanks,
>
> jose
First, the general discouragement: Avoid global data. :)
You can in
On 4/4/12, jicman wrote:
> imagine this code...
I'm assuming you're using D2.
import core.runtime;
void c()
{
char[] t = Runtime.args[0].dup;
}
void main(char[][] args)
{
int i = 1;
}
.dup is necessary since Runtime keeps the args as a string[] and not a char[][].
Greetings.
imagine this code...
void c()
{
char [] t = args[0];
}
void main(char[][] args)
{
int i = 1;
}
How can I make args global?
thanks,
jose
Thanks! This clears up that part very well. I'm a lot closer to
having a decent path finding algorithm now.
On Tuesday, 3 April 2012 at 21:24:24 UTC, Chris Cain wrote:
On Tuesday, 3 April 2012 at 19:38:12 UTC, Chris Pons wrote:
Thanks, yes, that did work. However now when trying to insert
node
Am 19.03.2012 20:36, schrieb Xan:
On Sunday, 18 March 2012 at 05:19:48 UTC, Kapps wrote:
On Saturday, 17 March 2012 at 20:52:33 UTC, Xan wrote:
So, there is not built-in functions?
Thanks,
Xan.
There's no built in webserver class, and it's not something that
should be in the standard librar
On Tuesday, 3 April 2012 at 19:38:12 UTC, Chris Pons wrote:
Thanks, yes, that did work. However now when trying to insert
nodes I get this error: Cannot grow a heap created over a
range. I This is what I have: ...
Hey there,
BinaryHeap is using the "slice of memory" you're giving it to use
a
Thanks, yes, that did work. However now when trying to insert
nodes I get this error: Cannot grow a heap created over a range.
I This is what I have:
Node[] a;
auto b = BinaryHeap!(Node[], "a.fScore > b.fScore")(a);
Node test, test2;
test2.fScore = 9;
test.fScore = 10;
b.insert( test );
I als
And with comment the UTC line I get:
s$ gdmd-4.6 server.d cgi.d netman.d httpd.d
Notice: As of Phobos 2.055, std.date and std.dateparse have been
deprecated. They will be removed in February 2012. Please use
std.datetime instead.
httpd.d:72: Error: undefined identifier peerAddress
httpd.d:72:
On Tuesday, 3 April 2012 at 19:07:10 UTC, Xan wrote:
What happens now?
Use the newer standalone code:
http://forum.dlang.org/thread/cifekffsnaimfsvux...@forum.dlang.org?page=2#post-pfojnbnvhuahnyviekut:40forum.dlang.org
don't need netman.d anymore. Just use:
gdmd server.d cgi.d -version=embe
Thanks,
You can just comment out the code there (afaik it is only a
custom formatting routine), or compile with the -d flag.
$ gdmd-4.6 -d server.d cgi.d netman.d httpd.d
Notice: As of Phobos 2.055, std.date and std.dateparse have been
deprecated. They will be removed in February 2012. Pl
On Tuesday, 3 April 2012 at 11:39:24 UTC, Timon Gehr wrote:
You can just comment out the code there (afaik it is only a
custom formatting routine), or compile with the -d flag.
You're probably thinking of the std.date use in web.d.
This one though is just older stuff that you don't need
with th
Hello all,
I'm trying to use curl library to satisfy my file transfer needs
under Windows 7. I've spent all the day and the most of
functionality I have already tried works like a charm. But I have
a few issues with "upload" function.
First of all, if I try to use something like:
auto cli
On Tuesday, 3 April 2012 at 08:42:01 UTC, Xan wrote:
I receive errors:
I changed some stuff since the beginning of thi thread.
cgi.d now includes a http server without needing the other
modules.
So if you just get the new cgi.d, you can:
dmd server.d cgi.d -version=embedded_httpd
without b
On 04/03/2012 10:45 AM, Xan wrote:
On Tuesday, 3 April 2012 at 08:42:01 UTC, Xan wrote:
I receive errors:
xan@gerret:~/proves/dlang-proves$ ls
cgi.d functions.d httpd.d netman.d server.d
xan@gerret:~/proves/dlang-proves$ gdmd-4.6 server.d cgi.d netman.d
httpd.d
httpd.d:5: Error: module netman i
On 04/03/2012 05:17 AM, Chris Pons wrote:
I'm still having troubles with the min-heap.
Node[] a;
auto b = BinaryHeap!"a.fScore > b.fScore"( a[] );
Error 1 Error: template instance BinaryHeap!("a.fScore >
b.fScore") BinaryHeap!("a.fScore > b.fScore") does not match
template declaration BinaryHe
On 04/03/2012 05:47 AM, James Miller wrote:
I've been doing some reading on dlang.org and the newsgroup archives
and have seen talk about allocators and things around the garbage
collector.
I have a few questions about the entire thing:
- I understand that allocators are all about memory manage
On 2012-04-03 01:15, Joseph Rushton Wakeling wrote:
Hello all,
I'm coming to D from a background programming in C and C++, though I
wouldn't describe myself as an expert in either.
One of the C++ techniques I picked up over the last couple of years was
the use of policy classes, and I'm wonderi
On Tuesday, 3 April 2012 at 08:42:01 UTC, Xan wrote:
I receive errors:
xan@gerret:~/proves/dlang-proves$ ls
cgi.d functions.d httpd.d netman.d server.d
xan@gerret:~/proves/dlang-proves$ gdmd-4.6 server.d cgi.d
netman.d httpd.d
httpd.d:5: Error: module netman is in file 'arsd/netman.d'
whic
I receive errors:
xan@gerret:~/proves/dlang-proves$ ls
cgi.d functions.d httpd.d netman.d server.d
xan@gerret:~/proves/dlang-proves$ gdmd-4.6 server.d cgi.d
netman.d httpd.d
httpd.d:5: Error: module netman is in file 'arsd/netman.d' which
cannot be read
import path[0] = /usr/include/d2/4.6
30 matches
Mail list logo