On 03/13/2016 02:36 PM, Laeeth Isharc wrote:
InterpContext context = new InterpContext();
context.py_stmts(outdent("
import numpy
a = numpy.eye(2, dtype='complex128')
"));
context.a.to_d!(Complex!double[][] )();
nitpicking, but the outdent is unnecessary,
On Thursday, 25 February 2016 at 21:40:45 UTC, Wyatt wrote:
I have a project I started in Python before I realised I really
don't enjoy Python. It's been on the back-burner for a few
years and I'd like to start again in D, but there's a
particular python module (Mutagen) that I outright refuse
On Sunday, 15 March 2015 at 14:58:54 UTC, Idan Arye wrote:
Even if we can't get the lambdas as syntax tress, the fact that
we can send whatever types we want to the delegates and
overload operators and stuff means we can still convert the
lambdas into SQL.
There are limitations on operator
On Saturday, 14 March 2015 at 23:57:33 UTC, weaselcat wrote:
On Saturday, 14 March 2015 at 23:46:28 UTC, Ellery Newcomer
wrote:
And C# has LINQ, which when combined with the last point is
fricken awesome.
what does LINQ offer that UFCS-style functional programming
does not?
LINQ basically i
On Saturday, 14 March 2015 at 13:52:13 UTC, Craig Dillabaugh
wrote:
I don't have any C# experience so I can't compare those
languages much, but I've heard people say their are D / C#
similarities.
Anyway, this isn't a criticism of your comment, I was just
curious what (other than the shared
On Saturday, 14 March 2015 at 07:28:04 UTC, Matt wrote:
Yeah, dub is what I'm using. Actually, I made a mistake
regarding the py_eval. I'm including the pyd modules in a
module other than the one that has my main() function, so they
weren't visible. I feel like a proper idiot for that one..
On Friday, 13 March 2015 at 19:05:59 UTC, Matt wrote:
example code, see if I can figure it out, but if you can
advise, that would be fantastic. Thank you for all the help so
far, it's really been appreciated
My penitence for not putting this information on readthedocs.
I've tried the hello
On Friday, 13 March 2015 at 09:38:45 UTC, Matt wrote:
I used the "~>0.9.4" branch in dub, and I'm not sure how to
change "configuration". Do you mean I should be using "~master"
or "~develop"?
nope. configurations are a different thing.
you can set them in your project's dub.json. example:
On 03/11/2015 07:59 PM, Matt wrote:
Right, copying site.py into my program's working dir sorts out the
missing module error, but I now get a syntax error:
file=sys.stderr)
^
SyntaxError: invalid syntax
Error executing command run: Program exited with code 1
I googled this, and ap
On 12/18/2014 12:41 PM, Laeeth Isharc wrote:
I have a bunch of D functions I would like to make available to Excel
(and possibly Julia) without having to write wrappers for each function
individually.
I've thought about refactoring the reflection parts of pyd into a
reusable library for e.g.
On 12/07/2014 03:12 PM, Michael wrote:
now to figure out how to use them in the general case.
This is great.. Thank you. I'm looking forward to being able to try the
finished result.
My build servers are broken at the moment, but I think I have this
fixed, on linux at least.
On 12/16/2014 10:41 AM, Sean Kelly wrote:
On Tuesday, 16 December 2014 at 04:56:10 UTC, Ellery Newcomer wrote:
If I have a thread that I need to detach from druntime, I can call
thread_detachInstance, but for 2.066, this function does not exist. Is
there any way to do this in 2.066? I notice the
If I have a thread that I need to detach from druntime, I can call
thread_detachInstance, but for 2.066, this function does not exist. Is
there any way to do this in 2.066? I notice there is a
thread_detachByAddr, but I'm not sure how to get a ThreadAddr out of a
Thread..
On 12/07/2014 03:12 PM, Michael wrote:
On Saturday, 6 December 2014 at 00:40:49 UTC, Ellery Newcomer wrote:
On 12/04/2014 10:55 PM, Ellery Newcomer wrote:
I guess tomorrow I can try messing around with thread_attachThis, as the
fullcollect happening in #2 might be screwing with python data. Bu
On 12/04/2014 10:55 PM, Ellery Newcomer wrote:
I guess tomorrow I can try messing around with thread_attachThis, as the
fullcollect happening in #2 might be screwing with python data. But you
aren't really passing anything from python to d or vice versa, so I'm
not sure why the gc would need to
On 12/04/2014 02:11 PM, Michael wrote:
On Thursday, 4 December 2014 at 03:22:05 UTC, Ellery Newcomer wrote:
dustmite?
Not sure what went wrong with dustmite, but every time I tried it it
just started deleting all the files in the directory and setup.py would
give errors. I manually deleted a
On 12/03/2014 06:56 PM, Michael wrote:
On Thursday, 4 December 2014 at 02:31:51 UTC, Ellery Newcomer wrote:
okay. that's not too surprising.
If you can get me a minimal example, I'd be happy to have a look since
pyd should probably support this case.
Cool. Unfortunately most of the times I'v
On 12/03/2014 04:43 PM, Michael wrote:
On Wednesday, 3 December 2014 at 21:35:48 UTC, ketmar via
Digitalmars-d-learn wrote:
ah, dsource strikes back! that vile site keep biting us again and
again. let's hope that new admins will kill it for good.
Yeah. I've got the new PyD and it compiles and
On 12/02/2014 05:07 PM, Michael wrote:
Hi. I'm new here and this is my first post. I'm not sure this is the
right subforum for it, but wasn't sure where else to put it either.
I've written a library to talk to some external hardware using a socket.
It uses the std.concurrency threads to send mes
On Sunday, 12 October 2014 at 16:07:19 UTC, Laeeth Isharc wrote:
Any thoughts on speed in 2014 of pyd vs using cython to talk
to D directly via C/C++ interface? I saw this old coment here:
pyd is basically just a convenience layer on top of the C
interface. The part that would most likely
On Wednesday, 8 October 2014 at 00:25:57 UTC, Laeeth Isharc wrote:
Hi.
Thanks for the quick response.
The -defaultlib was left around from trying all kinds of
combinations of dmd and gcc. I am not used to gcc, and it will
take me some time to become properly acquainted with all the
options.
Can't think off the top of my head how you do this
template IsTemplate(alias t) {
??
}
static assert(IsTemplate!IsTemplate)
On Saturday, 12 July 2014 at 08:34:41 UTC, Thomas Mader wrote:
The Subject says it all, is something like psutils available in
D?
would psutils itself be acceptable?
https://bitbucket.org/ariovistus/pyd
On Wednesday, 18 June 2014 at 05:49:30 UTC, Ali Çehreli wrote:
Can you come up with a D library solution to the following
C++11 proposal:
http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2014/n3950.html
did this years ago (or something similar, at least):
https://bitbucket.org/ariovist
On Friday, 6 June 2014 at 02:17:50 UTC, George Sapkin wrote:
On Friday, 6 June 2014 at 02:13:08 UTC, Ellery Newcomer wrote:
On Thursday, 5 June 2014 at 18:51:25 UTC, George Sapkin wrote:
I'm trying to link a simple D static library to C code, but
I'm can't figure out how to do it properly witho
On Thursday, 5 June 2014 at 18:51:25 UTC, George Sapkin wrote:
I'm trying to link a simple D static library to C code, but I'm
can't figure out how to do it properly without getting a
segfault when running it.
try this:
dmd -lib test.d -defaultlib=libphobos2.a -oflibtest.a
gcc main.c libtest.
On Thursday, 5 June 2014 at 23:12:56 UTC, Mark Isaacson wrote:
I need to eventually be able to export a
dll that can talk with anything.
how would using dmc conflict with this goal?
dmd/dmc output omf object files, windows infrastructure is all
coff object files. linux/mingw/etc are.. someth
On Thursday, 8 May 2014 at 20:57:08 UTC, Taylor Hillegeist wrote:
So i was thinking i wonder if anyone has a d library for excel
and behold there it was. however, it seems like d has grown
since this was written.
I'm getting bunches of errors telling me that i can't override
a function withou
is there a function in phobos anywhere that takes a string and
escapes it into a string literal suitable for string mixins?
something like
assert (f("abc\ndef") == "\"abc\\ndef\"");
29 matches
Mail list logo