Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Russel Winder via Digitalmars-d-learn
On Tue, 2014-08-19 at 00:53 +, bachmeier via Digitalmars-d-learn wrote: […] > I'm not sure which computational work he is referring to, but for > statistical analysis, R dominates by a wide margin (although > statistical analysis done in Silicon Valley, the type you read > about on Hacker Ne

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2014-08-18 at 23:12 +, Laeeth Isharc via Digitalmars-d-learn wrote: > > Whilst the hardcore Pythonistas remain Pythonistas, some of the > > periphery has jumped ship to Go. Sadly D did not capture these > > folk, it perhaps should have done. It would be easy to blame > > fadism, but

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread bachmeier via Digitalmars-d-learn
On Monday, 18 August 2014 at 23:12:28 UTC, Laeeth Isharc wrote: For me, NumPy has some serious problems despite being the accepted norm for computational work. If not too offtopic, do you have a link describing, or would you briefly summarize these problems? I am intrigued. And what would y

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Laeeth Isharc via Digitalmars-d-learn
Dr Russel Winder 41 Buckmaster Road London SW11 1EN, UK Are there any D users groups/meetups in London? I see you are not far away (I am in Barnes). Laeeth

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Laeeth Isharc via Digitalmars-d-learn
Whilst the hardcore Pythonistas remain Pythonistas, some of the periphery has jumped ship to Go. Sadly D did not capture these folk, it perhaps should have done. It would be easy to blame fadism, but I think the actual reasons are far less superficial. So I gather that you agree that "what eve

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 18 August 2014 at 19:28:55 UTC, Russel Winder via Digitalmars-d-learn wrote: On Mon, 2014-08-18 at 19:00 +, Laeeth Isharc via Digitalmars-d-learn wrote: On Monday, 18 August 2014 at 18:08:59 UTC, Russel Winder via Digitalmars-d-learn wrote: > […] >> distutils.util.get_plat

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2014-08-18 at 18:59 +, Laeeth Isharc via Digitalmars-d-learn wrote: […] > Thanks for the colour - I appreciate it. I have played with > numba and pypy with numpy and it seems a powerful tool for some > kinds of jobs. Perhaps it is my relative unfamiliarity with > python, but for the t

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2014-08-18 at 19:00 +, Laeeth Isharc via Digitalmars-d-learn wrote: > On Monday, 18 August 2014 at 18:08:59 UTC, Russel Winder via > Digitalmars-d-learn wrote: > > > […] > >> distutils.util.get_platform(), > > […] > > > > Does os.uname() not provide sufficient information? > > T

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 18 August 2014 at 18:08:59 UTC, Russel Winder via Digitalmars-d-learn wrote: […] distutils.util.get_platform(), […] Does os.uname() not provide sufficient information? This was boilerplate generated by pyd.

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Laeeth Isharc via Digitalmars-d-learn
All the cool folk doing data analysis and visualization using Python no longer bother with hand written C (*) for when pure Python won't cut the mustard. If Numba can't do the job, then Cython gets used. I have all my computational pure Python source codes running as fast as C these days tha

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2014-08-18 at 17:17 +, Laeeth Isharc via Digitalmars-d-learn wrote: > Thank to jwhear on irc who solved it for me despite claiming not > to be a pyd guru. :-) […] > distutils.util.get_platform(), […] Does os.uname() not provide sufficient information? […] > print mystruct.i >

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2014-08-18 at 16:39 +, Laeeth Isharc via Digitalmars-d-learn wrote: > Hi there. > > Brief introduction, and a beginner's question. > > I just started playing with D a couple of weeks ago. I have been > programming in C on and off since the late 80s, but I do finance > for a living

Re: beginner's pyd question - exporting structs to python

2014-08-18 Thread Laeeth Isharc via Digitalmars-d-learn
Thank to jwhear on irc who solved it for me despite claiming not to be a pyd guru. In case it's of benefit, here is what works: module hellostruct; import pyd.pyd; import std.stdio; import std.conv; struct t_mystruct { int i; string s; }; t_mystruct hellostruct(int[] inp) { int i;