June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert burner Schadek | It's a shame ucent/cent never got implemented. But couldn't they be added to Phobos? I often need a 128-bit type with better precision than float and double. |
June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dennis Ritchie | On Tuesday, 9 June 2015 at 16:14:24 UTC, Dennis Ritchie wrote:
> 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 clearly lagging behind the programmers Wolfram Mathematica :)
> https://projecteuler.net/language=D
> https://projecteuler.net/language=Mathematica
>
> To solve these problems you need something like Blas. Perhaps BLAS - it's more practical way to enrich D techniques for working with matrices.
I suspect this is more about who the Mathematica and D users are as Project Euler is mostly mathematical rather than code optimization. More of the Mathematica users would have strong maths backgrounds. I haven't felt held back by D at all, it's only been my own lack of ability. I'm in 2nd place atm for D users.
|
June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to ixid | On Wednesday, 10 June 2015 at 08:39:12 UTC, ixid wrote:
> I suspect this is more about who the Mathematica and D users are as Project Euler is mostly mathematical rather than code optimization. More of the Mathematica users would have strong maths backgrounds. I haven't felt held back by D at all, it's only been my own lack of ability. I'm in 2nd place atm for D users.
OK, if D is at least BLAS, I will try to overtake you :)
|
June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to ixid | On Wednesday, 10 June 2015 at 08:39:12 UTC, ixid wrote:
> I suspect this is more about who the Mathematica and D users are as Project Euler is mostly mathematical rather than code optimization.
Here and I say that despite the fact that in D BigInt not optimized very well, it helps me to solve a wide range of tasks that do not require high performance, so I want to BLAS or something similar was in D. Something is better than nothing!
|
June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Chapman | On Wednesday, 10 June 2015 at 07:56:46 UTC, John Chapman wrote: > It's a shame ucent/cent never got implemented. But couldn't they be added to Phobos? I often need a 128-bit type with better precision than float and double. FWIW: https://github.com/d-gamedev-team/gfm/blob/master/math/gfm/math/wideint.d |
June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Chapman | On Wednesday, 10 June 2015 at 07:56:46 UTC, John Chapman wrote:
> It's a shame ucent/cent never got implemented. But couldn't they be added to Phobos? I often need a 128-bit type with better precision than float and double.
Other things I often have a need for:
Weak references
Queues, stacks, sets
Logging
Custom date/time formatting
Locale-aware number/currency formatting
HMAC (for OAuth)
URI parsing
Sending email (SMTP)
Continuations for std.parallelism.Task
Database connectivity (sounds like this is on the cards)
HTTP listener
|
June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Chapman Attachments: | On Wed, 10 Jun 2015 09:12:15 +0000, John Chapman wrote:
> On Wednesday, 10 June 2015 at 07:56:46 UTC, John Chapman wrote:
>> It's a shame ucent/cent never got implemented. But couldn't they be added to Phobos? I often need a 128-bit type with better precision than float and double.
>
> Other things I often have a need for:
>
> Weak references
+inf for including that into Phobos. current implementations are hacks that may stop working when internals will change, but if it will be in Phobos, it will be always up-to-date.
|
June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Chapman | On Wednesday, 10 June 2015 at 09:12:17 UTC, John Chapman wrote:
> Logging
std.experimental.logger!?
|
June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Chapman | On Wednesday, 10 June 2015 at 07:56:46 UTC, John Chapman wrote:
> It's a shame ucent/cent never got implemented. But couldn't they be added to Phobos? I often need a 128-bit type with better precision than float and double.
I think the next release of LDC will support it, at least on some platforms...
|
June 10, 2015 Re: DIP80: phobos additions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert burner Schadek | On Wednesday, 10 June 2015 at 09:30:37 UTC, Robert burner Schadek wrote:
> On Wednesday, 10 June 2015 at 09:12:17 UTC, John Chapman wrote:
>
>> Logging
>
> std.experimental.logger!?
Perfect, he said sheepishly.
|
Copyright © 1999-2021 by the D Language Foundation