MrMarc

3163 Reputation

18 Badges

17 years, 130 days

MaplePrimes Activity


These are questions asked by MrMarc

Of course the bottleneck is in Maple (may I say as usual, especially when you are trying to innovate).
i) Socket package is not thread safe
ii) Most of the time is spend waiting for Wait(id1, id2) etc

If all the technical Maple stuff was working I could do the below call in around 1 second or less.
Now it takes 7 seconds which is way way to long if you want to download let say 50 symbols...

restart;
with(Threads):
X := proc(symb)
  uses Sockets;

5) Look at the below code. It takes 7 seconds to make the call to yahoo finance 4 times
sequentially. The strange thing is that it takes the same amount of seconds to do the call
in parrallel....hummm very strange....what is the benefit of using the Task command then ??
I have 4 cores in my machine ie kernelopts(numcpus) returns 4 so it should be very fast.


restart:
with(Sockets):


X1 := proc (...

Could you please explain the following:


1) str1 and str2 should be global variables right? I mean so we can call them
after the Create statements....

2) When I execute the below code and then call str1 and str2 I dont get any html output.
The " " are empty.....why?

restart:
with(Sockets):
with(Threads):


X1 := proc () local str, sid, b;  global str1;

I want to download historical data from google finance for two Indecies simultaneous
but I dont understand where the output is saved...?!  Also should I use task or threads ?


restart:
with(Sockets):
with(Threads):


X1 := proc () local str, sid; global b; str := "";

sid := Open("google.com", 80);
Write(sid, cat("GET /finance/historical?q=INDEXSP:.INX&histperiod=daily HTTP/1.0 \n\n"));

b := Read(sid); while b <> false do str := cat(str, b...

Is there a function in Maple which allows to send emails?
I am bulding a maplet where I want maple to send a email
as a reminder at the end of each month to a specified emailadress

Is this possible ?

First 11 12 13 14 15 16 17 Last Page 13 of 35