Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-03 Thread John Colvin via Digitalmars-d-announce
On Friday, 3 July 2015 at 10:52:38 UTC, John Colvin wrote: Also, there would have to be some serious warning signs about translating from python to D, in that the micro-seconds will be truncated. Doesn't a lack of microseconds make it unusable for tick data? Woops, I means milliseconds.

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-03 Thread Laeeth Isharc via Digitalmars-d-announce
On Friday, 3 July 2015 at 10:52:38 UTC, John Colvin wrote: On Friday, 3 July 2015 at 10:23:14 UTC, Laeeth Isharc wrote: On Thursday, 2 July 2015 at 22:55:51 UTC, Laeeth Isharc wrote: It would be v helpful to have a Datetime conversion from D. Looks like there is a macro for converting from

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-03 Thread Laeeth Isharc via Digitalmars-d-announce
Aren't there time-zone concerns? Or is this just a mapping between D's std.datetime.DateTime and python's datetime.datetime with tzinfo==None, i.e. a naive date? Also, there would have to be some serious warning signs about translating from python to D, in that the micro-seconds will be

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-03 Thread Laeeth Isharc via Digitalmars-d-announce
On Saturday, 4 July 2015 at 00:14:51 UTC, Laeeth Isharc wrote: On Friday, 3 July 2015 at 21:46:09 UTC, John Colvin wrote: On Friday, 3 July 2015 at 15:56:24 UTC, Laeeth Isharc wrote: Aren't there time-zone concerns? Or is this just a mapping between D's std.datetime.DateTime and python's

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-03 Thread Laeeth Isharc via Digitalmars-d-announce
On Friday, 3 July 2015 at 21:46:09 UTC, John Colvin wrote: On Friday, 3 July 2015 at 15:56:24 UTC, Laeeth Isharc wrote: Aren't there time-zone concerns? Or is this just a mapping between D's std.datetime.DateTime and python's datetime.datetime with tzinfo==None, i.e. a naive date? Also,

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-03 Thread John Colvin via Digitalmars-d-announce
On Friday, 3 July 2015 at 15:56:24 UTC, Laeeth Isharc wrote: Aren't there time-zone concerns? Or is this just a mapping between D's std.datetime.DateTime and python's datetime.datetime with tzinfo==None, i.e. a naive date? Also, there would have to be some serious warning signs about

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-03 Thread John Colvin via Digitalmars-d-announce
On Friday, 3 July 2015 at 10:23:14 UTC, Laeeth Isharc wrote: On Thursday, 2 July 2015 at 22:55:51 UTC, Laeeth Isharc wrote: It would be v helpful to have a Datetime conversion from D. Looks like there is a macro for converting from ymd in datetime.h, so I guess one could just write some code

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-03 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 2 July 2015 at 22:55:51 UTC, Laeeth Isharc wrote: It would be v helpful to have a Datetime conversion from D. Looks like there is a macro for converting from ymd in datetime.h, so I guess one could just write some code against this API in C, D, or Cython and link it in with D so

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-02 Thread John Colvin via Digitalmars-d-announce
On Thursday, 2 July 2015 at 19:51:19 UTC, Laeeth Isharc wrote: What is the benefit from using distutils for working with D in a notebook? There are two standards - the Python one, and the D one. The advantage of using dub is that it becomes wonderfully easy to pull in D projects from

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-02 Thread Laeeth Isharc via Digitalmars-d-announce
It would be v helpful to have a Datetime conversion from D. Looks like there is a macro for converting from ymd in datetime.h, so I guess one could just write some code against this API in C, D, or Cython and link it in with D so one can transfer data structures over more easily. I know

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-02 Thread Russel Winder via Digitalmars-d-announce
On Tue, 2015-06-30 at 18:20 +, John Colvin via Digitalmars-d -announce […] Ditched distutils in favour of dub. This is easier for me to maintain and fits much better with the rest of the D ecosystem I am not convinced by this, though cleary my feeling carry no weight in decision making

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-02 Thread John Colvin via Digitalmars-d-announce
On Thursday, 2 July 2015 at 18:28:50 UTC, Russel Winder wrote: On Tue, 2015-06-30 at 18:20 +, John Colvin via Digitalmars-d -announce […] Ditched distutils in favour of dub. This is easier for me to maintain and fits much better with the rest of the D ecosystem I am not convinced by

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-02 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 2 July 2015 at 18:28:50 UTC, Russel Winder wrote: On Tue, 2015-06-30 at 18:20 +, John Colvin via Digitalmars-d -announce […] Ditched distutils in favour of dub. This is easier for me to maintain and fits much better with the rest of the D ecosystem I am not convinced by

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-07-02 Thread Laeeth Isharc via Digitalmars-d-announce
On Thursday, 2 July 2015 at 18:28:50 UTC, Russel Winder wrote: On Tue, 2015-06-30 at 18:20 +, John Colvin via Digitalmars-d -announce […] Ditched distutils in favour of dub. This is easier for me to maintain and fits much better with the rest of the D ecosystem I am not convinced by

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-30 Thread John Colvin via Digitalmars-d-announce
On Tuesday, 30 June 2015 at 18:20:21 UTC, John Colvin wrote: On Sunday, 14 June 2015 at 15:51:37 UTC, John Colvin wrote: [...] v0.1.0 is released, with substantial improvements. This is more like a usable tool and less like a proof of concept now, although I would definitely say it is still

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-16 Thread John Colvin via Digitalmars-d-announce
On Monday, 15 June 2015 at 19:35:16 UTC, Laeeth Isharc wrote: On Monday, 15 June 2015 at 17:28:52 UTC, John Colvin wrote: On Monday, 15 June 2015 at 17:11:26 UTC, Laeeth Isharc wrote: On Monday, 15 June 2015 at 06:51:44 UTC, John Colvin wrote: [...] Yes - I had noticed same, but don't yet

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-16 Thread Laeeth Isharc via Digitalmars-d-announce
On Tuesday, 16 June 2015 at 13:11:51 UTC, John Colvin wrote: Looks like progress is being made on planting the seeds of a matrix implementation and computation library on top. Ilya Yaroshenko is doing great work here. Yes - Ilya's work looks great, and Vlad Levenfeld has some interesting

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-15 Thread John Colvin via Digitalmars-d-announce
On Monday, 15 June 2015 at 17:11:26 UTC, Laeeth Isharc wrote: On Monday, 15 June 2015 at 06:51:44 UTC, John Colvin wrote: [...] Yes - I had noticed same, but don't yet have the experience (and don't have available time for now) to do much about it. Was looking at Facebook torch to see how

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-15 Thread Laeeth Isharc via Digitalmars-d-announce
On Monday, 15 June 2015 at 06:51:44 UTC, John Colvin wrote: It's really only a beginning. Pyd's API is pretty clunky feeling by modern D standards, I hope to extend @pdef to automatically work for most language constructs, amongst other sugar. Yes - I had noticed same, but don't yet have the

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-15 Thread Laeeth Isharc via Digitalmars-d-announce
On Monday, 15 June 2015 at 17:28:52 UTC, John Colvin wrote: On Monday, 15 June 2015 at 17:11:26 UTC, Laeeth Isharc wrote: On Monday, 15 June 2015 at 06:51:44 UTC, John Colvin wrote: [...] Yes - I had noticed same, but don't yet have the experience (and don't have available time for now) to

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-15 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 6/15/15 10:28 AM, John Colvin wrote: On Monday, 15 June 2015 at 17:11:26 UTC, Laeeth Isharc wrote: On Monday, 15 June 2015 at 06:51:44 UTC, John Colvin wrote: [...] Yes - I had noticed same, but don't yet have the experience (and don't have available time for now) to do much about it. Was

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-15 Thread John Colvin via Digitalmars-d-announce
On Monday, 15 June 2015 at 05:11:17 UTC, Laeeth Isharc wrote: On Sunday, 14 June 2015 at 15:51:37 UTC, John Colvin wrote: Bare-bones at the moment, but hopefully of interest to some people https://github.com/DlangScience/PydMagic This allows you to write D extensions to python, as inline

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-14 Thread John Colvin via Digitalmars-d-announce
On Sunday, 14 June 2015 at 16:14:58 UTC, Russel Winder wrote: On Sun, 2015-06-14 at 15:51 +, John Colvin via Digitalmars-d -announce wrote: Bare-bones at the moment, but hopefully of interest to some people https://github.com/DlangScience/PydMagic This allows you to write D extensions to

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-14 Thread Russel Winder via Digitalmars-d-announce
On Sun, 2015-06-14 at 15:51 +, John Colvin via Digitalmars-d -announce wrote: Bare-bones at the moment, but hopefully of interest to some people https://github.com/DlangScience/PydMagic This allows you to write D extensions to python, as inline cells in an ipython/jupyter notebook. I

Re: D extensions to python, inline in an ipython/jupyter notebook

2015-06-14 Thread Laeeth Isharc via Digitalmars-d-announce
On Sunday, 14 June 2015 at 15:51:37 UTC, John Colvin wrote: Bare-bones at the moment, but hopefully of interest to some people https://github.com/DlangScience/PydMagic This allows you to write D extensions to python, as inline cells in an ipython/jupyter notebook. This was just what I was