Re: DIP80: phobos additions

2015-06-09 Thread Ilya Yaroshenko via Digitalmars-d
On Tuesday, 9 June 2015 at 08:50:16 UTC, John Colvin wrote: On Tuesday, 9 June 2015 at 06:59:07 UTC, Andrei Alexandrescu wrote: On 6/8/15 8:26 PM, Ilya Yaroshenko wrote: On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only

Re: DIP80: phobos additions

2015-06-09 Thread Jacob Carlborg via Digitalmars-d
On 2015-06-08 05:53, Manu via Digitalmars-d wrote: I've been humoring the idea of porting my engine to D. It's about 15 years of development, better/cleaner than most proprietary engines I've used at game studios. Perhaps you could try using magicport. -- /Jacob Carlborg

Re: DIP80: phobos additions

2015-06-09 Thread Andrei Alexandrescu via Digitalmars-d
On 6/8/15 8:26 PM, Ilya Yaroshenko wrote: On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky.

Re: DIP80: phobos additions

2015-06-09 Thread Joakim via Digitalmars-d
On Monday, 8 June 2015 at 03:53:52 UTC, Manu wrote: I've been humoring the idea of porting my engine to D. It's about 15 years of development, better/cleaner than most proprietary engines I've used at game studios. I wonder if there would be interest in this? Problem is, I need all the cross

Re: DIP80: phobos additions

2015-06-09 Thread Ilya Yaroshenko via Digitalmars-d
On Tuesday, 9 June 2015 at 03:26:25 UTC, Ilya Yaroshenko wrote: On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the

Re: DIP80: phobos additions

2015-06-09 Thread Dennis Ritchie via Digitalmars-d
On Tuesday, 9 June 2015 at 08:50:16 UTC, John Colvin wrote: I don't think this is quite the right approach. Multidimensional arrays and matrices are about accessing and iteration over data, not data structures themselves. The standard layouts are common special cases. Yes, I really want to D

Re: DIP80: phobos additions

2015-06-09 Thread Ilya Yaroshenko via Digitalmars-d
Ilya, I'm very interested in discussing this further with you. I have a reasonable idea and implementation of how I would want the generic n-dimensional types in D to work, but you seem to have more experience with BLAS and LAPACK than me* and of course interfacing with them is critical.

Re: DIP80: phobos additions

2015-06-09 Thread Ilya Yaroshenko via Digitalmars-d
I believe that Phobos must support some common methods of linear algebra and general mathematics. I have no desire to join D with Fortran libraries :) D definitely needs BLAS API support for matrix multiplication. Best BLAS libraries are written in assembler like openBLAS. Otherwise D will

Re: DIP80: phobos additions

2015-06-09 Thread Dennis Ritchie via Digitalmars-d
On Tuesday, 9 June 2015 at 15:26:43 UTC, Ilya Yaroshenko wrote: D definitely needs BLAS API support for matrix multiplication. Best BLAS libraries are written in assembler like openBLAS. Otherwise D will have last position in corresponding math benchmarks. Yes, those programs on D, is

Re: DIP80: phobos additions

2015-06-09 Thread Manu via Digitalmars-d
On 10 June 2015 at 01:26, Ilya Yaroshenko via Digitalmars-d digitalmars-d@puremagic.com wrote: I believe that Phobos must support some common methods of linear algebra and general mathematics. I have no desire to join D with Fortran libraries :) D definitely needs BLAS API support for

Re: DIP80: phobos additions

2015-06-09 Thread Ilya Yaroshenko via Digitalmars-d
On Tuesday, 9 June 2015 at 16:18:06 UTC, Manu wrote: On 10 June 2015 at 01:26, Ilya Yaroshenko via Digitalmars-d digitalmars-d@puremagic.com wrote: I believe that Phobos must support some common methods of linear algebra and general mathematics. I have no desire to join D with Fortran

Re: DIP80: phobos additions

2015-06-09 Thread Ilya Yaroshenko via Digitalmars-d
On Tuesday, 9 June 2015 at 16:08:40 UTC, Andrei Alexandrescu wrote: On 6/9/15 1:50 AM, John Colvin wrote: On Tuesday, 9 June 2015 at 06:59:07 UTC, Andrei Alexandrescu wrote: (a) Provide standard data layouts in std.array for the typical shapes supported by linear algebra libs: row major,

Re: DIP80: phobos additions

2015-06-09 Thread John Colvin via Digitalmars-d
On Tuesday, 9 June 2015 at 16:45:33 UTC, Manu wrote: On 10 June 2015 at 02:32, John Colvin via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 9 June 2015 at 16:18:06 UTC, Manu wrote: On 10 June 2015 at 01:26, Ilya Yaroshenko via Digitalmars-d digitalmars-d@puremagic.com wrote:

Re: DIP80: phobos additions

2015-06-09 Thread Andrei Alexandrescu via Digitalmars-d
On 6/9/15 1:50 AM, John Colvin wrote: On Tuesday, 9 June 2015 at 06:59:07 UTC, Andrei Alexandrescu wrote: (a) Provide standard data layouts in std.array for the typical shapes supported by linear algebra libs: row major, column major, alongside with striding primitives. I don't think this is

Re: DIP80: phobos additions

2015-06-09 Thread Manu via Digitalmars-d
On 10 June 2015 at 02:17, Manu turkey...@gmail.com wrote: ... If we defined the properties along with their properties ... *operators* along with their properties

Re: DIP80: phobos additions

2015-06-09 Thread Dennis Ritchie via Digitalmars-d
On Tuesday, 9 June 2015 at 16:14:24 UTC, Dennis Ritchie wrote: To solve these problems you need something like Blas. Perhaps BLAS - it's more practical way to enrich D techniques for working with matrices. Actually, that's what you need to realize in D:

Re: DIP80: phobos additions

2015-06-09 Thread John Colvin via Digitalmars-d
On Tuesday, 9 June 2015 at 16:18:06 UTC, Manu wrote: On 10 June 2015 at 01:26, Ilya Yaroshenko via Digitalmars-d digitalmars-d@puremagic.com wrote: I believe that Phobos must support some common methods of linear algebra and general mathematics. I have no desire to join D with Fortran

Re: DIP80: phobos additions

2015-06-09 Thread Manu via Digitalmars-d
On 10 June 2015 at 02:32, John Colvin via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 9 June 2015 at 16:18:06 UTC, Manu wrote: On 10 June 2015 at 01:26, Ilya Yaroshenko via Digitalmars-d digitalmars-d@puremagic.com wrote: I believe that Phobos must support some common

Re: DIP80: phobos additions

2015-06-09 Thread Ilya Yaroshenko via Digitalmars-d
On Tuesday, 9 June 2015 at 16:16:39 UTC, Dennis Ritchie wrote: On Tuesday, 9 June 2015 at 16:14:24 UTC, Dennis Ritchie wrote: To solve these problems you need something like Blas. Perhaps BLAS - it's more practical way to enrich D techniques for working with matrices. Actually, that's what

Re: DIP80: phobos additions

2015-06-09 Thread Ilya Yaroshenko via Digitalmars-d
On Tuesday, 9 June 2015 at 16:40:56 UTC, Ilya Yaroshenko wrote: On Tuesday, 9 June 2015 at 16:18:06 UTC, Manu wrote: On 10 June 2015 at 01:26, Ilya Yaroshenko via Digitalmars-d digitalmars-d@puremagic.com wrote: I believe that Phobos must support some common methods of linear algebra and

Re: DIP80: phobos additions

2015-06-09 Thread Dennis Ritchie via Digitalmars-d
On Tuesday, 9 June 2015 at 17:19:28 UTC, Andrei Alexandrescu wrote: On 6/9/15 9:16 AM, Dennis Ritchie wrote: On Tuesday, 9 June 2015 at 16:14:24 UTC, Dennis Ritchie wrote: To solve these problems you need something like Blas. Perhaps BLAS - it's more practical way to enrich D techniques for

Re: DIP80: phobos additions

2015-06-09 Thread Andrei Alexandrescu via Digitalmars-d
On 6/9/15 11:42 AM, Dennis Ritchie wrote: And finally `std.bigint` offers good (but not outstanding) performance. BigInt should use reference counting. Its current approach to allocating new memory for everything is a liability. Could someone file a report for this please. -- Andrei

Re: DIP80: phobos additions

2015-06-09 Thread Andrei Alexandrescu via Digitalmars-d
On 6/9/15 9:16 AM, Dennis Ritchie wrote: On Tuesday, 9 June 2015 at 16:14:24 UTC, Dennis Ritchie wrote: To solve these problems you need something like Blas. Perhaps BLAS - it's more practical way to enrich D techniques for working with matrices. Actually, that's what you need to realize in

Re: DIP80: phobos additions

2015-06-09 Thread Dennis Ritchie via Digitalmars-d
On Tuesday, 9 June 2015 at 18:58:56 UTC, Andrei Alexandrescu wrote: On 6/9/15 11:42 AM, Dennis Ritchie wrote: And finally `std.bigint` offers good (but not outstanding) performance. BigInt should use reference counting. Its current approach to allocating new memory for everything is a

Re: DIP80: phobos additions

2015-06-09 Thread Steven Schveighoffer via Digitalmars-d
On 6/9/15 2:59 PM, Andrei Alexandrescu wrote: On 6/9/15 11:42 AM, Dennis Ritchie wrote: And finally `std.bigint` offers good (but not outstanding) performance. BigInt should use reference counting. Its current approach to allocating new memory for everything is a liability. Could someone file

Re: DIP80: phobos additions

2015-06-09 Thread Andrei Alexandrescu via Digitalmars-d
On 6/9/15 1:53 PM, Steven Schveighoffer wrote: On 6/9/15 2:59 PM, Andrei Alexandrescu wrote: On 6/9/15 11:42 AM, Dennis Ritchie wrote: And finally `std.bigint` offers good (but not outstanding) performance. BigInt should use reference counting. Its current approach to allocating new memory

Re: DIP80: phobos additions

2015-06-09 Thread Andrei Alexandrescu via Digitalmars-d
On 6/9/15 12:21 PM, Dennis Ritchie wrote: On Tuesday, 9 June 2015 at 18:58:56 UTC, Andrei Alexandrescu wrote: On 6/9/15 11:42 AM, Dennis Ritchie wrote: And finally `std.bigint` offers good (but not outstanding) performance. BigInt should use reference counting. Its current approach to

Re: DIP80: phobos additions

2015-06-09 Thread Manu via Digitalmars-d
On 9 June 2015 at 17:32, Joakim via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 8 June 2015 at 03:53:52 UTC, Manu wrote: I've been humoring the idea of porting my engine to D. It's about 15 years of development, better/cleaner than most proprietary engines I've used at game

Re: DIP80: phobos additions

2015-06-08 Thread Walter Bright via Digitalmars-d
On 6/7/2015 8:53 PM, Manu via Digitalmars-d wrote: I've been humoring the idea of porting my engine to D. It's about 15 years of development, better/cleaner than most proprietary engines I've used at game studios. I wonder if there would be interest in this? Problem is, I need all the cross

Re: DIP80: phobos additions

2015-06-08 Thread Ilya Yaroshenko via Digitalmars-d
On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky. http://wiki.dlang.org/DIP80 lets get OT, please discuss

Re: DIP80: phobos additions

2015-06-08 Thread Mike via Digitalmars-d
On Monday, 8 June 2015 at 03:08:46 UTC, Rikki Cattermole wrote: Gl3n should be a candidate as it is old code and good one at that. https://github.com/Dav1dde/gl3n But it seems like it is no longer maintained. Looks like it's been getting a couple commits monthly, so I think it's being

Re: DIP80: phobos additions

2015-06-08 Thread ponce via Digitalmars-d
On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky. http://wiki.dlang.org/DIP80 lets get OT, please discuss

Re: DIP80: phobos additions

2015-06-08 Thread Tofu Ninja via Digitalmars-d
On Monday, 8 June 2015 at 04:34:56 UTC, Jonathan M Davis wrote: On Monday, 8 June 2015 at 04:22:56 UTC, Mike wrote: On Monday, 8 June 2015 at 04:21:45 UTC, Tofu Ninja wrote: Personally I would just be happy with a d wrapper for something like freeimage being included. That's what Deimos is

Re: DIP80: phobos additions

2015-06-08 Thread ezneh via Digitalmars-d
On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky. http://wiki.dlang.org/DIP80 lets get OT, please discuss

Re: DIP80: phobos additions

2015-06-08 Thread via Digitalmars-d
On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: http://wiki.dlang.org/DIP80 lets get OT, please discuss Automatic randomizer for builtins, ranges, etc. Used to generate data for tests. Here's a start: https://github.com/nordlow/justd/blob/master/random_ex.d

DIP80: phobos additions

2015-06-07 Thread Robert burner Schadek via Digitalmars-d
Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky. http://wiki.dlang.org/DIP80 lets get OT, please discuss

Re: DIP80: phobos additions

2015-06-07 Thread Dennis Ritchie via Digitalmars-d
On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky. http://wiki.dlang.org/DIP80 lets get OT, please discuss

Re: DIP80: phobos additions

2015-06-07 Thread Rikki Cattermole via Digitalmars-d
On 8/06/2015 4:05 p.m., Manu via Digitalmars-d wrote: On 8 June 2015 at 13:54, Rikki Cattermole via Digitalmars-d digitalmars-d@puremagic.com wrote: On 8/06/2015 3:48 p.m., Manu via Digitalmars-d wrote: On 8 June 2015 at 13:08, Rikki Cattermole via Digitalmars-d digitalmars-d@puremagic.com

Re: DIP80: phobos additions

2015-06-07 Thread Rikki Cattermole via Digitalmars-d
On 8/06/2015 4:34 p.m., Tofu Ninja wrote: On Monday, 8 June 2015 at 04:22:56 UTC, Mike wrote: On Monday, 8 June 2015 at 04:21:45 UTC, Tofu Ninja wrote: Personally I would just be happy with a d wrapper for something like freeimage being included. That's what Deimos is for

Re: DIP80: phobos additions

2015-06-07 Thread Tofu Ninja via Digitalmars-d
On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky. http://wiki.dlang.org/DIP80 lets get OT, please discuss

Re: DIP80: phobos additions

2015-06-07 Thread Tofu Ninja via Digitalmars-d
On Monday, 8 June 2015 at 04:22:56 UTC, Mike wrote: On Monday, 8 June 2015 at 04:21:45 UTC, Tofu Ninja wrote: Personally I would just be happy with a d wrapper for something like freeimage being included. That's what Deimos is for (https://github.com/D-Programming-Deimos/FreeImage). Mike

Re: DIP80: phobos additions

2015-06-07 Thread Jonathan M Davis via Digitalmars-d
On Monday, 8 June 2015 at 04:22:56 UTC, Mike wrote: On Monday, 8 June 2015 at 04:21:45 UTC, Tofu Ninja wrote: Personally I would just be happy with a d wrapper for something like freeimage being included. That's what Deimos is for (https://github.com/D-Programming-Deimos/FreeImage).

Re: DIP80: phobos additions

2015-06-07 Thread weaselcat via Digitalmars-d
On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky. http://wiki.dlang.org/DIP80 lets get OT, please discuss I

Re: DIP80: phobos additions

2015-06-07 Thread Rikki Cattermole via Digitalmars-d
On 8/06/2015 3:53 p.m., Manu via Digitalmars-d wrote: On 8 June 2015 at 13:15, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As

Re: DIP80: phobos additions

2015-06-07 Thread Rikki Cattermole via Digitalmars-d
On 8/06/2015 4:12 p.m., Manu via Digitalmars-d wrote: On 8 June 2015 at 13:59, Rikki Cattermole via Digitalmars-d digitalmars-d@puremagic.com wrote: On 8/06/2015 3:53 p.m., Manu via Digitalmars-d wrote: On 8 June 2015 at 13:15, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote:

Re: DIP80: phobos additions

2015-06-07 Thread Tofu Ninja via Digitalmars-d
On Monday, 8 June 2015 at 04:05:23 UTC, Manu wrote: Yeah, that's fine. Is there an initiative for a phobos image library? I have said before that I'm dubious about it's worth; the trouble with an image library is that it will be almost impossible to decide on API, whereas a colour is fairly

Re: DIP80: phobos additions

2015-06-07 Thread Mike via Digitalmars-d
On Monday, 8 June 2015 at 04:21:45 UTC, Tofu Ninja wrote: Personally I would just be happy with a d wrapper for something like freeimage being included. That's what Deimos is for (https://github.com/D-Programming-Deimos/FreeImage). Mike

Re: DIP80: phobos additions

2015-06-07 Thread Manu via Digitalmars-d
On 8 June 2015 at 13:08, Rikki Cattermole via Digitalmars-d digitalmars-d@puremagic.com wrote: On 8/06/2015 2:50 p.m., Tofu Ninja wrote: On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As

Re: DIP80: phobos additions

2015-06-07 Thread Mike via Digitalmars-d
On Monday, 8 June 2015 at 03:48:14 UTC, Manu wrote: I've kinda just been working on it on the side for my own use. I wasn't happy with the layout, and restructured it a lot. If there's an active demand for it, I'll give it top priority...? I'm interested in this library as well. Mike

Re: DIP80: phobos additions

2015-06-07 Thread Rikki Cattermole via Digitalmars-d
On 8/06/2015 2:50 p.m., Tofu Ninja wrote: On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky.

Re: DIP80: phobos additions

2015-06-07 Thread Manu via Digitalmars-d
On 8 June 2015 at 13:15, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and

Re: DIP80: phobos additions

2015-06-07 Thread Rikki Cattermole via Digitalmars-d
On 8/06/2015 3:48 p.m., Manu via Digitalmars-d wrote: On 8 June 2015 at 13:08, Rikki Cattermole via Digitalmars-d digitalmars-d@puremagic.com wrote: On 8/06/2015 2:50 p.m., Tofu Ninja wrote: On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of

Re: DIP80: phobos additions

2015-06-07 Thread Manu via Digitalmars-d
On 8 June 2015 at 13:54, Rikki Cattermole via Digitalmars-d digitalmars-d@puremagic.com wrote: On 8/06/2015 3:48 p.m., Manu via Digitalmars-d wrote: On 8 June 2015 at 13:08, Rikki Cattermole via Digitalmars-d digitalmars-d@puremagic.com wrote: On 8/06/2015 2:50 p.m., Tofu Ninja wrote: On

Re: DIP80: phobos additions

2015-06-07 Thread Manu via Digitalmars-d
On 8 June 2015 at 13:59, Rikki Cattermole via Digitalmars-d digitalmars-d@puremagic.com wrote: On 8/06/2015 3:53 p.m., Manu via Digitalmars-d wrote: On 8 June 2015 at 13:15, weaselcat via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner

Re: DIP80: phobos additions

2015-06-07 Thread weaselcat via Digitalmars-d
On Sunday, 7 June 2015 at 18:27:16 UTC, Robert burner Schadek wrote: Phobos is awesome, the libs of go, python and rust only have better marketing. As discussed on dconf, phobos needs to become big and blow the rest out of the sky. http://wiki.dlang.org/DIP80 lets get OT, please discuss

Re: DIP80: phobos additions

2015-06-07 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 8 June 2015 at 00:05:58 UTC, weaselcat wrote: I actively avoid adding phobos libs to my projects because it bloats my binaries and increases compile times by massive amounts. Me too... but that's not actually a problem of huge library. It is more a problem of an interconnected

Re: DIP80: phobos additions

2015-06-07 Thread Jonathan M Davis via Digitalmars-d
On Monday, 8 June 2015 at 00:05:58 UTC, weaselcat wrote: can we discuss the downside of making phobos huge? I actively avoid adding phobos libs to my projects because it bloats my binaries and increases compile times by massive amounts. Andrei has already stated that we are definitely going

Re: DIP80: phobos additions

2015-06-07 Thread weaselcat via Digitalmars-d
On Monday, 8 June 2015 at 01:39:33 UTC, Jonathan M Davis wrote: On Monday, 8 June 2015 at 00:05:58 UTC, weaselcat wrote: can we discuss the downside of making phobos huge? I actively avoid adding phobos libs to my projects because it bloats my binaries and increases compile times by massive

<    1   2