On Tuesday, 8 October 2019 at 11:26:24 UTC, Daniel Kozak wrote:
On Tue, Oct 8, 2019 at 1:15 PM Daniel Kozak
wrote:
...
It is known issue, you can not use mysql-native right now with
anything else than libevent
https://github.com/mysql-d/mysql-native/issues/199
Or you can just remove
Hi All,
Please correct me what is wrong as I am not able to build a
project using dub getting the error "Could not resolve
configuration for package hub".
dub init HUB
C:\Users\userp\Downloads\testhub>dub init HUB
Package recipe format (sdl/json) [json]:
Name [hub]:
Description [A minimal D
Hi All,
Request your help on how to delete a file which has the
extension .fifo (.javast.fifo) in Windows.
From,
Vino.B
On Friday, 4 May 2018 at 15:16:23 UTC, wjoe wrote:
On Friday, 4 May 2018 at 14:24:36 UTC, Vino wrote:
On Friday, 4 May 2018 at 14:02:24 UTC, Jonathan M Davis wrote:
On Friday, May 04, 2018 13:17:36 Vino via Digitalmars-d-learn
wrote:
[...]
Linux does not keep track of the creation time
On Friday, 4 May 2018 at 14:02:24 UTC, Jonathan M Davis wrote:
On Friday, May 04, 2018 13:17:36 Vino via Digitalmars-d-learn
wrote:
On Friday, 4 May 2018 at 12:38:07 UTC, Adam D. Ruppe wrote:
> What are you actually trying to do with it? These functions
> are probably the wholly wrong ap
On Friday, 4 May 2018 at 12:38:07 UTC, Adam D. Ruppe wrote:
What are you actually trying to do with it? These functions are
probably the wholly wrong approach.
Hi Adam,
The existing program in Windows do few task's eg: Delete files
older that certain days, and now we are trying to port to
Hi All,
Request your help, I have a D program written on Windows
platform and the program is working as expected, now i am trying
to port the same program to Linux, my program use the function
"timeCreated" from std.file for Windows hugely where as in Linux
we do not have the same function
On Friday, 4 May 2018 at 09:25:28 UTC, Russel Winder wrote:
On Fri, 2018-05-04 at 08:47 +, Vino via Digitalmars-d-learn
wrote:
[…]
Was able to resolve the issue, the issue was the letter "L"
in
version (Linux) where is should be version (linux).
It would have helped if
On Friday, 4 May 2018 at 07:43:39 UTC, Russel Winder wrote:
On Fri, 2018-05-04 at 03:30 +, Vino via Digitalmars-d-learn
wrote:
[...]
`./nasconfig.txt`
perhaps: Linux uses / (as does Windows in fact) for directory
separator.
[...]
Hi Russel,
Was able to resolve the issue
Hi All,
Request you help on the below code, the below code always state
the file does not exist even if the file do exist.
Code:
import core.stdc.stdlib: exit;
import std.stdio;
import std.file;
import std.path;
auto osSwitch () {
string ConfigFile;
version (Windows) { ConfigFile =
On Thursday, 3 May 2018 at 10:22:43 UTC, Vino wrote:
On Thursday, 3 May 2018 at 10:19:55 UTC, Jonathan M Davis wrote:
[...]
Hi Jonathan,
The below packages are already installed
[...]
Hi Jonathan,
Installed the package libcurl-devel, that resolved the issue.
Thank you very much.
On Thursday, 3 May 2018 at 10:19:55 UTC, Jonathan M Davis wrote:
On Thursday, May 03, 2018 10:10:05 Vino via Digitalmars-d-learn
wrote:
Hi All,
Request your help , while compiling a d program in SUSE
Linux i
am getting the below error, the executable curl is present
under
the path /usr
Hi All,
Request your help , while compiling a d program in SUSE Linux i
am getting the below error, the executable curl is present under
the path /usr/bin/
ask:/DScript # dmd -m64 -O -release -inline test.d
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld:
cannot
On Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote:
On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn
wrote:
On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:
> On 02/05/2018 2:56 AM, Vino wrote:
>> [...]
>
> Does this work?
>
> $ dmd
Hi All,
Request your help, what is the equivalent function of
timeCreated(Windows) for Linux. Or how do i get the file creation
date and time in Linux using D.
From,
Vino.B
On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote:
On 02/05/2018 2:56 AM, Vino wrote:
Hi All,
Request your help, trying to execute the below program in
SUSE Linux but there is no output
Code
#!/usr/bin/env rdmd
import std.stdio;
void main() {
writeln("Test");
}
DMD Version
Hi All,
Request your help, trying to execute the below program in SUSE
Linux but there is no output
Code
#!/usr/bin/env rdmd
import std.stdio;
void main() {
writeln("Test");
}
DMD Version : DMD64 D Compiler v2.079.1
Package installed : dmd-2.079.1-0.openSUSE.x86_64.rpm
Execution 1 : rdmd
Hi All,
The function rmdirRecurse does not work in Windows if the file
has the READ ONLY permission, so to over come this issue, i have
written the below function to set the permission on file and
folder using the function "setAttributes" , so can any one advice
me whether the below code
On Tuesday, 10 April 2018 at 15:18:19 UTC, Adam D. Ruppe wrote:
On Tuesday, 10 April 2018 at 15:10:44 UTC, Vino wrote:
The variable "to" is of type string[] but we need it as
Array!string
The variable "Subject" but we need it as Array!string.
You'll have to convert them yourself if that is a
On Tuesday, 10 April 2018 at 13:51:02 UTC, Adam D. Ruppe wrote:
On Tuesday, 10 April 2018 at 11:09:56 UTC, Vino wrote:
Now the program works, but the attachment does not work as
expected,
message.addAttachment("text/plain",
"C:\\Temp\\Test\Test1.txt", "Test");
What did you expect that
On Monday, 9 April 2018 at 19:19:53 UTC, Adam D. Ruppe wrote:
On Monday, 9 April 2018 at 15:38:55 UTC, Vino.B wrote:
Thank you very much, I copied your folder arsd under the
phobes folder in c:\D\... and the program was placed on my
desktop and tried to execute it from the desktop via rdmd.
On Sunday, 8 April 2018 at 15:45:48 UTC, Vino wrote:
On Friday, 25 August 2017 at 02:13:42 UTC, Adam D. Ruppe wrote:
[...]
Hi Adam,
I am trying your email.d programming, and i am getting the
below errors, can you please help me, i just used these
programs (characterencodings.d, color.d,
On Friday, 25 August 2017 at 02:13:42 UTC, Adam D. Ruppe wrote:
On Tuesday, 22 August 2017 at 12:52:24 UTC, Vino.B wrote:
Request your help on sending Mails, I am able to receive
mails with empty body the line "smtp.message ="Example
Message" doesn't seem to be working and also please let me
On Saturday, 7 April 2018 at 18:12:00 UTC, Alex wrote:
On Saturday, 7 April 2018 at 17:25:07 UTC, Vino wrote:
Hi All,
Request your help on the below Deprecation message.
import std.datetime.systime: Clock, days, SysTime;
void main (int AgeSize) {
int AgeSize = 1
auto ct2 =
Hi All,
Request your help on the below Deprecation message.
import std.datetime.systime: Clock, days, SysTime;
void main (int AgeSize) {
int AgeSize = 1
auto ct2 = Clock.currTime(), st2 = ct2 + days(-AgeSize);
}
test.d(30): Deprecation: Symbol core.time.days is not visible
from module
Hi All,
Request your help in calling the windows command to delete all
file and folders recursively as the D function rmdirRecurse does
not delete file in the permission of the file is readonly in
windows 2008 R2
import std.process: execute;
import std.array: empty;
auto RemoveDir () (
On Tuesday, 6 March 2018 at 09:01:55 UTC, Vino wrote:
On Monday, 5 March 2018 at 13:50:28 UTC, Vino wrote:
[...]
Hi All,
On further analysis, as to why the function deleteAgedDir is
not getting executed, found that if this function finds a
folder to be deleted then it should delete the
On Monday, 5 March 2018 at 13:50:28 UTC, Vino wrote:
Hi All,
Request your help, I have 3 functions such as below, I am
calling these function using another function ptManage which
executes these function's in parallel as each of the below 3
function run's on 10 - 12 different file systems,
Hi All,
Request your help, I have 3 functions such as below, I am
calling these function using another function ptManage which
executes these function's in parallel as each of the below 3
function run's on 10 - 12 different file systems, The issue is as
below
Issue:
Most of the time the
On Sunday, 25 February 2018 at 03:41:27 UTC, Jonathan M Davis
wrote:
On Sunday, February 25, 2018 02:58:33 Seb via
Digitalmars-d-learn wrote:
[...]
That will help eventually, but it requires a compiler flag, so
it's really not going to help for code in general right now,
and the fact that
On Tuesday, 20 February 2018 at 08:50:27 UTC, Jonathan M Davis
wrote:
On Tuesday, February 20, 2018 08:44:37 aberba via
Digitalmars-d-learn wrote:
On Sunday, 18 February 2018 at 15:23:14 UTC, Cym13 wrote:
> On Sunday, 18 February 2018 at 14:48:59 UTC, Cym13 wrote:
>> [...]
>
> Just thought of a
Hi All,
Request your help on printing the all index of an array element
, eg; the below code prints the index of the string "Test2" as
[1], but the string "Test2" is present 2 times at index 1 and
4, so how do I print all the index of a given string.
import std.stdio;
import
On Thursday, 15 February 2018 at 20:43:32 UTC, Johan Engelen
wrote:
On Wednesday, 14 February 2018 at 12:22:09 UTC, Vino wrote:
Hi All,
Request your help on how to get the disk space used and free
size of a Network share folder in Windows, tried with getSize
but it return 0;
See:
On Wednesday, 14 February 2018 at 12:29:13 UTC, rikki cattermole
wrote:
On 14/02/2018 12:22 PM, Vino wrote:
Hi All,
Request your help on how to get the disk space used and free
size of a Network share folder in Windows, tried with getSize
but it return 0;
eg: Share Name :\\server1\dir1$
Hi All,
Request your help on how to get the disk space used and free
size of a Network share folder in Windows, tried with getSize but
it return 0;
eg: Share Name :\\server1\dir1$
From,
Vino.B
On Tuesday, 13 February 2018 at 17:01:06 UTC, Seb wrote:
On Tuesday, 13 February 2018 at 16:58:09 UTC, Vino wrote:
On Monday, 12 February 2018 at 06:52:25 UTC, Vino wrote:
[...]
Hi All,
Was able to resolve this issue.
That's great!
BTW I think it would be helpful for future reader who
On Monday, 12 February 2018 at 06:52:25 UTC, Vino wrote:
Hi All,
Request your help, the below code works find on normal File
system, bu if the file system is a NFS file system the below
code, is not working
if Step = dryrun( Display Only) : Works for both NFS and normal
file system.
if
Hi All,
Request your help, the below code works find on normal File
system, bu if the file system is a NFS file system the below
code, is not working
if Step = dryrun( Display Only) : Works for both NFS and normal
file system.
if Step = run (Delete folder) : Does not work on NFS file
On Saturday, 3 February 2018 at 22:58:04 UTC, Vino wrote:
On Saturday, 3 February 2018 at 19:28:01 UTC, Seb wrote:
On Saturday, 3 February 2018 at 19:13:05 UTC, Vino wrote:
[...]
2.079 [1, 2] will ship with slide:
---
auto arr = ["T1", "T2", "T3", "T4", "T5"];
arr.slide(2).each!writeln;
---
Hi All,
Request your help on how to convert a string to binary,eg "test"
to 01110100 01100101 01110011 01110100.
From,
Vino.B
Hi All,
Request your help, on hot to replace an element(a[2]) in an
array with the element(a[3])
Eg,
auto a = Array!string("T1","T2","T3");
writeln(D1.replace(a[2], a[3]));
From,
Vino.B
On Saturday, 3 February 2018 at 19:28:01 UTC, Seb wrote:
On Saturday, 3 February 2018 at 19:13:05 UTC, Vino wrote:
[...]
2.079 [1, 2] will ship with slide:
---
auto arr = ["T1", "T2", "T3", "T4", "T5"];
arr.slide(2).each!writeln;
---
[...]
Hi Seb;
Thank you very much.
From,
Vino.B
On Saturday, 3 February 2018 at 19:19:00 UTC, Adam D. Ruppe wrote:
On Saturday, 3 February 2018 at 19:13:05 UTC, Vino wrote:
Request you help on printing an array in below,
Try looping through the array printing the current item
followed by the item after the current item. Foreach with
Hi All,
Request you help on printing an array in below,
Eg:
Array ("T1", "T2", "T3", "T4", "T5")
Output required as below
T1,T2
T2,T3
T3,T4
T4,T5
From,
Vino.B
On Tuesday, 9 January 2018 at 19:05:48 UTC, thedeemon wrote:
On Tuesday, 9 January 2018 at 18:09:58 UTC, Vino wrote:
It is possible to store struct in a array ans use the same
in csvReader
Sure, you can just pass the type of your struct to csvReader:
Array!T1 T1s;
reader(fName, T1s); //
On Tuesday, 9 January 2018 at 17:41:10 UTC, Vino wrote:
On Tuesday, 9 January 2018 at 17:00:05 UTC, thedeemon wrote:
On Tuesday, 9 January 2018 at 13:49:41 UTC, Vino wrote:
Hi All,
It is possible to store struct in a array ans use the same
in csvReader
Sure, you can just pass the type of
On Tuesday, 9 January 2018 at 17:00:05 UTC, thedeemon wrote:
On Tuesday, 9 January 2018 at 13:49:41 UTC, Vino wrote:
Hi All,
It is possible to store struct in a array ans use the same in
csvReader
Sure, you can just pass the type of your struct to csvReader:
struct Layout { string name;
On Tuesday, 9 January 2018 at 13:49:41 UTC, Vino wrote:
Hi All,
It is possible to store struct in a array ans use the same in
csvReader e.g.
import std.stdio;
import std.container.array;
void main () {
Array!string a;
struct Layout { string name; int value; double other; }
On Tuesday, 9 January 2018 at 12:50:04 UTC, Mengu wrote:
On Tuesday, 9 January 2018 at 07:57:19 UTC, Vino wrote:
[...]
if S2 consists of data for Layout struct, then you can simply
do:
auto S2 = S1.map!(a => Layout(a[0], a[1], a[2]));
which will give you a range of Layout.
Hi,
We
Hi All,
It is possible to store struct in a array ans use the same in
csvReader e.g.
import std.stdio;
import std.container.array;
void main () {
Array!string a;
struct Layout { string name; int value; double other; }
a.insert(Layout);
auto record =
Hi All,
Request your help on how to create a struct with the output of
the below program.
Program:
import std.algorithm: all, map, filter;
import std.stdio: File, writeln;
import std.typecons: Tuple, tuple;
import std.container.array;
import std.string: split, strip;
import std.uni: isWhite,
On Monday, 8 January 2018 at 08:22:21 UTC, thedeemon wrote:
On Monday, 8 January 2018 at 07:37:31 UTC, Vino wrote:
I tried to manipulate the writeln's as below but the output
is not as expected as it prints the data in row wise, where
as we need it in column wise.
Ah, sorry, now I think I
On Monday, 8 January 2018 at 05:38:44 UTC, thedeemon wrote:
On Sunday, 7 January 2018 at 17:30:26 UTC, Vino wrote:
I tried to manipulate the writeln's as below but the output
is not as expected as it prints the data in row wise, where as
we need it in column wise.
You've said before you
On Sunday, 7 January 2018 at 17:23:20 UTC, thedeemon wrote:
On Sunday, 7 January 2018 at 12:59:10 UTC, Vino wrote:
Just noticed that the output writes the data and key as 2
values , but the requirnment is to write to six files, e.g
That's the part you can implement yourself. Just replace
HI All,
Request your help, in the below code the output from main
(writeln(columns[0][])) function is like ["Miller", "John",
"Millman", "Zsuwalski"] where as the writeln(col[0]) from the
function master is as below, so how do i get the output same as
in main from the function master.
On Sunday, 7 January 2018 at 12:09:32 UTC, Vino wrote:
On Saturday, 6 January 2018 at 15:32:14 UTC, thedeemon wrote:
On Saturday, 6 January 2018 at 06:47:33 UTC, Vino wrote:
[...]
Here's a version with Array, it's very similar:
import std.algorithm: countUntil, joiner, sort, uniq, map;
On Saturday, 6 January 2018 at 15:26:30 UTC, Vino wrote:
Hi All,
Request you help on the below program as it error out with the
below error
[...]
Hi All,
Thank you was able to resolve the issue.
From,
Vino.B
On Saturday, 6 January 2018 at 15:32:14 UTC, thedeemon wrote:
On Saturday, 6 January 2018 at 06:47:33 UTC, Vino wrote:
[...]
Here's a version with Array, it's very similar:
import std.algorithm: countUntil, joiner, sort, uniq, map;
import std.csv: csvReader;
import std.stdio: File, writeln;
Hi All,
Request you help on the below program as it error out with the
below error
Error:
UDictCompression.d(31): Error: template UDictCompression.compress
cannot deduce function from argument types !()(string),
candidates are:
UDictCompression.d(19):
On Saturday, 6 January 2018 at 06:47:33 UTC, Vino wrote:
On Friday, 5 January 2018 at 18:00:34 UTC, thedeemon wrote:
On Friday, 5 January 2018 at 17:59:32 UTC, thedeemon wrote:
Tuple!( staticMap!(Arr, ColumnTypes) ) res; // array of
tuples
Sorry, I meant tuple of arrays, of course.
Hi
On Friday, 5 January 2018 at 18:00:34 UTC, thedeemon wrote:
On Friday, 5 January 2018 at 17:59:32 UTC, thedeemon wrote:
Tuple!( staticMap!(Arr, ColumnTypes) ) res; // array of
tuples
Sorry, I meant tuple of arrays, of course.
Hi Deemon,
Thank you very much, I tested your code,
On Friday, 5 January 2018 at 16:55:50 UTC, Steven Schveighoffer
wrote:
On 1/5/18 11:39 AM, Vino wrote:
Hi Steve,
if we add the braces we are getting the Error: undefined
identifier Datacol
void main () {
Array!int Keycol;
static foreach(i; 0 .. 3) {
{
typeof(read()[i])
On Friday, 5 January 2018 at 16:07:49 UTC, Steven Schveighoffer
wrote:
On 1/5/18 10:56 AM, Vino wrote:
On Friday, 5 January 2018 at 15:28:58 UTC, Jonathan M Davis
wrote:
On Friday, January 05, 2018 15:22:49 Vino via
Digitalmars-d-learn wrote:
Hi All,
Request your help on how to unset
On Friday, 5 January 2018 at 15:28:58 UTC, Jonathan M Davis wrote:
On Friday, January 05, 2018 15:22:49 Vino via
Digitalmars-d-learn wrote:
Hi All,
Request your help on how to unset or delete an array, in the
below example, we get an error "Common is already defined".
Auto fn1
Hi All,
Request your help on how to unset or delete an array, in the
below example, we get an error "Common is already defined".
Auto fn1 () {
Array!string Text;
Array!string Number;
return tuple(Text, Number);
}
Void main () {
static foreach(i; 0 .. 2) {
typeof(fn1()[i]) Common;
On Friday, 5 January 2018 at 13:09:25 UTC, Vino wrote:
On Friday, 5 January 2018 at 12:47:39 UTC, thedeemon wrote:
On Friday, 5 January 2018 at 12:40:41 UTC, Vino wrote:
What exactly are you trying to do in Master()?
Please find the full code,
Sorry, I'm asking what problem are you
On Friday, 5 January 2018 at 12:47:39 UTC, thedeemon wrote:
On Friday, 5 January 2018 at 12:40:41 UTC, Vino wrote:
What exactly are you trying to do in Master()?
Please find the full code,
Sorry, I'm asking what problem are you solving, what the
program should do, what is its idea. Not
On Friday, 5 January 2018 at 12:10:33 UTC, thedeemon wrote:
On Friday, 5 January 2018 at 09:09:00 UTC, Vino wrote:
Thank you very much, can you suggest the best way around
this issue.
What exactly are you trying to do in Master()? The code seems
very broken. Each time you write read[i] is
On Thursday, 4 January 2018 at 18:49:21 UTC, Ali Çehreli wrote:
On 01/04/2018 08:51 AM, Vino wrote:
> auto read () {
[...]
> return tuple(Ucol1, Ucol2, Ucol3, rSize);
> }
read() returns a tuple of values of different types.
> for(int i = 0; i < Size; i++) {
> typeof(read()[i]) Datacol;
Hi All,
Request your help on the below error for the below program.
Error:
CReadCol.d(20): Error: variable i cannot be read at compile time
CReadCol.d(21): Error: variable i cannot be read at compile time
CReadCol.d(22): Error: variable i cannot be read at compile time
Program
import
On Thursday, 4 January 2018 at 16:09:07 UTC, Simen Kjærås wrote:
On Thursday, 4 January 2018 at 15:50:35 UTC, Vino wrote:
[...]
ReturnType!Fn[0] tries to give you the 0th field of the tuple,
but as the error message indicates, you can't do that without
an instance. What you want is the
Hi All,
Request your help, on how o find the single type of a tuple
return type function, eg,
auto Fn (){
Array!string a;
Array!int b;
Array!ulong c;
return tuple(a, b, c);
}
if we use "ReturnType!Fn" it gives us the output as
(Array!string,Array!int, Array!ulong) but what is need is the
On Friday, 29 December 2017 at 10:33:16 UTC, Johan Engelen wrote:
On Friday, 29 December 2017 at 10:23:24 UTC, codephantom wrote:
On Friday, 29 December 2017 at 09:38:50 UTC, Vino wrote:
Let me re-frame the question with an example, as the Dsafe
the below line of code is considered as
On Friday, 29 December 2017 at 09:19:13 UTC, codephantom wrote:
On Friday, 29 December 2017 at 08:21:10 UTC, Vino wrote:
Hi All,
Is there a way to find or test which line of a give code is
not safe(possible memory corruption).
From,
Vino.B
That question needs to be refined ;-)
Hi,
Hi All,
Is there a way to find or test which line of a give code is not
safe(possible memory corruption).
From,
Vino.B
Hi All,
What is the difference between std.algorithm.reduce and
mir.ndslice.algorithm.reduce.
From,
Vino.B
On Friday, 22 December 2017 at 00:18:40 UTC, Seb wrote:
On Friday, 22 December 2017 at 00:12:45 UTC, Vino wrote:
On Thursday, 21 December 2017 at 06:31:52 UTC, Ali Çehreli
wrote:
[...]
Hi Ali,
Thank you very much, the pull request is in open state, so can
you please let me know when can we
On Thursday, 21 December 2017 at 06:31:52 UTC, Ali Çehreli wrote:
On 12/19/2017 02:32 AM, Vino wrote:
> even though it is a simple code copy+paste
The change was a little more complicated than my naive
adaptation from std.algorithm.fold. Here is the pull request:
On Thursday, 21 December 2017 at 00:32:50 UTC, codephantom wrote:
On Wednesday, 20 December 2017 at 13:41:06 UTC, Vino wrote:
Hi Ali,
Thank you very much, below are the observations, our program
is used to calculate the size of the folders, and we don't see
any improvements in the
On Wednesday, 20 December 2017 at 17:31:20 UTC, Ali Çehreli wrote:
On 12/20/2017 05:41 AM, Vino wrote:
> auto TL = dFiles.length;
> auto TP = new TaskPool(TL);
I assume dFiles is large. So, that's a lot of threads there.
> foreach (d; TP.parallel(dFiles[],1))
You tried with larger work unit
On Tuesday, 19 December 2017 at 18:42:01 UTC, Ali Çehreli wrote:
On 12/19/2017 02:24 AM, Vino wrote:
> Hi All,
>
>Request your help in clarifying the below. As per the
document
>
> foreach (d; taskPool.parallel(xxx)) : The total number of
threads that
> will be created is total CPU -1 ( 2
On Tuesday, 19 December 2017 at 11:03:27 UTC, codephantom wrote:
On Tuesday, 19 December 2017 at 10:24:47 UTC, Vino wrote:
foreach (d; taskPool.parallel(xxx,20)) : As in Windows 2008
whatever value is set for the parallel the total number of
threads does not increase more than 12.
So not
On Monday, 18 December 2017 at 20:53:28 UTC, Russel Winder wrote:
Ali,
Shouldn't this be a pull request for std.parallelism to be
extended?
If the function is in std.algorithm, then people should not
have to write it for themselves in std.parallelism.
On Mon, 2017-12-18 at 11:01 -0800,
Hi All,
Request your help in clarifying the below. As per the document
foreach (d; taskPool.parallel(xxx)) : The total number of threads
that will be created is total CPU -1 ( 2 processor with 6 core :
11 threads)
foreach (d; taskPool.parallel(xxx,1)) : The total number of
threads that
On Sunday, 17 December 2017 at 20:00:53 UTC, Ali Çehreli wrote:
On 12/17/2017 08:11 AM, Vino wrote:
> As per the document form std.parallelism it states that we
can use
> taskPool.reduce so can we use the same for fold
(taskPool.fold) as
> basically both are same with slight variation on seed
On Sunday, 17 December 2017 at 00:45:06 UTC, Ali Çehreli wrote:
On 12/16/2017 03:58 PM, Steven Schveighoffer wrote:
[...]
I was going to suggest the same to Vino and I was writing the
following program to demonstrate how low the number of
allocations is.
[...]
Hi Steven /Ali,
HI All,
As per the document form std.parallelism it states that we can
use taskPool.reduce so can we use the same for fold
(taskPool.fold) as basically both are same with slight variation
on seed values, if possible can can we define the same in the
below lines
Tried the below but getting
On Saturday, 16 December 2017 at 16:46:49 UTC, Jacob Carlborg
wrote:
On 2017-12-16 15:11, Vino wrote:
Hi All,
Request your help on reserve an dynamic array when the
capacity is reached to a point(eg: 80%) so the array to extend
the reserve by next 20%
Example:
Array!string Test;
Test.
On Saturday, 16 December 2017 at 06:42:53 UTC, codephantom wrote:
On Friday, 15 December 2017 at 17:21:55 UTC, Vino wrote:
Hi All,
Request your help, Is it possible to an template array
something similar as below so that we can insert any type of
value(string, int etc). If possible can you
Hi All,
Request your help on reserve an dynamic array when the capacity
is reached to a point(eg: 80%) so the array to extend the reserve
by next 20%
Example:
Array!string Test;
Test. reserve(100) - Initall
Test =(.) - The number of entries are dynamic
if (array.capacity > 80%) {
On Saturday, 16 December 2017 at 13:59:11 UTC, Vino wrote:
On Saturday, 16 December 2017 at 12:39:53 UTC, Kagamin wrote:
On Friday, 15 December 2017 at 21:56:48 UTC, Steven
Schveighoffer wrote:
On 12/15/17 10:08 AM, Kagamin wrote:
Maybe this https://issues.dlang.org/show_bug.cgi?id=18084
On Saturday, 16 December 2017 at 12:39:53 UTC, Kagamin wrote:
On Friday, 15 December 2017 at 21:56:48 UTC, Steven
Schveighoffer wrote:
On 12/15/17 10:08 AM, Kagamin wrote:
Maybe this https://issues.dlang.org/show_bug.cgi?id=18084
Thanks for looking into this. I created a PR to fix.
Szabo,
Hi All,
Request your help for the below as how do i add an item to a
array in the array is defined as Type 2.
Type 1: Working
import std.conatiner.array;
void main () {
auto PStore = Array!(string)("Test1", "Test1")
}
Type 2: not working
import std.conatiner.array;
void main () {
Hi All,
We are getting the above error message while posting any message
in this forum, can any look into this please.
On Tuesday, 12 December 2017 at 19:00:01 UTC, Biotronic wrote:
On Tuesday, 12 December 2017 at 15:19:35 UTC, Vino wrote:
import std.algorithm: filter, map, sort;
import std.container.array;
import std.file: SpanMode, dirEntries, isDir ;
import std.stdio: writefln;
import std.typecons: Tuple,
Hi All,
Request your help, Is it possible to an template array
something similar as below so that we can insert any type of
value(string, int etc). If possible can you provide me a example
of how to define such array.
Array!(Tuple!(T n))
From,
Vino.B
On Tuesday, 12 December 2017 at 19:00:01 UTC, Biotronic wrote:
On Tuesday, 12 December 2017 at 15:19:35 UTC, Vino wrote:
import std.algorithm: filter, map, sort;
import std.container.array;
import std.file: SpanMode, dirEntries, isDir ;
import std.stdio: writefln;
import std.typecons: Tuple,
On Wednesday, 13 December 2017 at 15:58:40 UTC, Vino wrote:
On Wednesday, 13 December 2017 at 15:16:50 UTC, Vino wrote:
Hi All,
Request your help, on how to sort a tuple container array, I
have raised the same topic in one of the other thread "Tuple
Array Sorting" and was addressed to use
On Wednesday, 13 December 2017 at 17:16:46 UTC, Vino wrote:
On Wednesday, 13 December 2017 at 08:32:34 UTC, codephantom
wrote:
[...]
Hi All,
[...]
Hi All, Thank you very much , was able to resolve the issue by
changing the writefln line as below.
Sorted[].sort!((a,b) =>
On Wednesday, 13 December 2017 at 08:32:34 UTC, codephantom wrote:
On Wednesday, 13 December 2017 at 07:35:40 UTC, Jonathan M
Davis wrote:
In general, you probably want to cast the SysTime to a
DateTime if you're going to do something like that.
yes, I would agree ;-)
Of course the intention
101 - 200 of 262 matches
Mail list logo