June 01, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 2013-05-31 14:33, Andrei Alexandrescu wrote: > http://www.reddit.com/r/programming/comments/1feem1/dconf_2013_day_2_talk_3_from_c_to_d_by_adam_wilson/ A couple of notes on what's missing in D from C#. There are other libraries besides from Phobos that contains some of the missing functionality. Tango: * Several SHA implementations * Stream based IO * Modules for manipulating text and Unicode * Timer/stop watch * Heap and stack Source code: https://github.com/SiegeLord/Tango-D2 Docs: http://dsource.org/projects/tango/docs/current/ dcollections may contain some collections needed. http://www.dsource.org/projects/dcollections -- /Jacob Carlborg |
June 01, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Saturday, June 01, 2013 22:15:01 Jacob Carlborg wrote:
> * Timer/stop watch
There are quite a few things that Phobos is still missing, but this isn't one of them. We have std.datetime.StopWatch (which will probably end up in std.benchmark when that's finally complete).
- Jonathan M Davis
|
June 01, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Sat, 01 Jun 2013 13:15:01 -0700, Jacob Carlborg <doob@me.com> wrote: > On 2013-05-31 14:33, Andrei Alexandrescu wrote: >> http://www.reddit.com/r/programming/comments/1feem1/dconf_2013_day_2_talk_3_from_c_to_d_by_adam_wilson/ > > A couple of notes on what's missing in D from C#. > > There are other libraries besides from Phobos that contains some of the missing functionality. > > Tango: > > * Several SHA implementations > * Stream based IO > * Modules for manipulating text and Unicode > * Timer/stop watch > * Heap and stack > > Source code: https://github.com/SiegeLord/Tango-D2 > Docs: http://dsource.org/projects/tango/docs/current/ > > dcollections may contain some collections needed. > > http://www.dsource.org/projects/dcollections > Indeed, but since I was comparing to vanilla C# 4.0 and .NET I figured it was only fair to compare to DMD 2.062 and Phobos. Once you start comparing and contrasting third party libraries the scope of the topic quickly balloons in size. The biggest problem I had in putting this talk together was deciding what to cut. I ended up leaving about 60% of my originally planned content on the cutting room floor... I really wanted to give you guys more! -- Adam Wilson IRC: LightBender Project Coordinator The Horizon Project http://www.thehorizonproject.org/ |
June 02, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Wilson | On 2013-06-02 00:49, Adam Wilson wrote: > Indeed, but since I was comparing to vanilla C# 4.0 and .NET I figured > it was only fair to compare to DMD 2.062 and Phobos. Once you start > comparing and contrasting third party libraries the scope of the topic > quickly balloons in size. The biggest problem I had in putting this talk > together was deciding what to cut. I ended up leaving about 60% of my > originally planned content on the cutting room floor... I really wanted > to give you guys more! Yes, sure, for the talk. But if you are actually going to port C# code to D I assume, and hope, you would take a practically approach. That is, using third party libraries if needed and not saying something like "If it's not in Phobos we cannot use it". -- /Jacob Carlborg |
June 02, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | On 2013-06-01 23:11, Jonathan M Davis wrote: > There are quite a few things that Phobos is still missing, but this isn't one > of them. We have std.datetime.StopWatch (which will probably end up in > std.benchmark when that's finally complete). I haven't looked in std.datetime lately but I though I heard in the talk it was missing. If not, my mistake. -- /Jacob Carlborg |
June 02, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Sun, 02 Jun 2013 02:34:39 -0700, Jacob Carlborg <doob@me.com> wrote: > On 2013-06-02 00:49, Adam Wilson wrote: > >> Indeed, but since I was comparing to vanilla C# 4.0 and .NET I figured >> it was only fair to compare to DMD 2.062 and Phobos. Once you start >> comparing and contrasting third party libraries the scope of the topic >> quickly balloons in size. The biggest problem I had in putting this talk >> together was deciding what to cut. I ended up leaving about 60% of my >> originally planned content on the cutting room floor... I really wanted >> to give you guys more! > > Yes, sure, for the talk. But if you are actually going to port C# code to D I assume, and hope, you would take a practically approach. That is, using third party libraries if needed and not saying something like "If it's not in Phobos we cannot use it". > In real life I would absolutely use third party libraries where available. I would definitely recommend people do the same. In retrospect I probably should've said something to that effect in the closing of my talk ... So many things I would say differently! -- Adam Wilson IRC: LightBender Project Coordinator The Horizon Project http://www.thehorizonproject.org/ |
June 02, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Sun, 02 Jun 2013 02:35:37 -0700, Jacob Carlborg <doob@me.com> wrote: > On 2013-06-01 23:11, Jonathan M Davis wrote: > >> There are quite a few things that Phobos is still missing, but this isn't one >> of them. We have std.datetime.StopWatch (which will probably end up in >> std.benchmark when that's finally complete). > > I haven't looked in std.datetime lately but I though I heard in the talk it was missing. If not, my mistake. > Most of System.Timers is missing from Phobos. There is a LOT more than just a stopwatch in it. -- Adam Wilson IRC: LightBender Project Coordinator The Horizon Project http://www.thehorizonproject.org/ |
June 03, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Juan Manuel Cabo | On Sat, 01 Jun 2013 04:06:06 +0100, Juan Manuel Cabo <juanmanuel.cabo@gmail.com> wrote: > On 05/31/2013 05:18 PM, Nick Sabalausky wrote: >> On Fri, 31 May 2013 15:29:40 +0100 >> "Regan Heath" <regan@netmail.co.nz> wrote: >> >>> >>> I have old SHA etc hashing routines in old style D, this makes me >>> want to spend some time bringing them up to date... >>> >> >> http://dlang.org/phobos/std_digest_sha.html >> >> Since 2.061, IIRC. Funny.. the module listing on the left is not in alpha ordering, so I completely missed them. > The sha digest in phobos is SHA1. > SHA256 and SHA512 are still missing. This too.. I have those, plus a few others. R -- Using Opera's revolutionary email client: http://www.opera.com/mail/ |
June 03, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Regan Heath | On Mon, 03 Jun 2013 02:16:45 -0700, Regan Heath <regan@netmail.co.nz> wrote: > On Sat, 01 Jun 2013 04:06:06 +0100, Juan Manuel Cabo <juanmanuel.cabo@gmail.com> wrote: > >> On 05/31/2013 05:18 PM, Nick Sabalausky wrote: >>> On Fri, 31 May 2013 15:29:40 +0100 >>> "Regan Heath" <regan@netmail.co.nz> wrote: >>> >>>> >>>> I have old SHA etc hashing routines in old style D, this makes me >>>> want to spend some time bringing them up to date... >>>> >>> >>> http://dlang.org/phobos/std_digest_sha.html >>> >>> Since 2.061, IIRC. > > Funny.. the module listing on the left is not in alpha ordering, so I completely missed them. > >> The sha digest in phobos is SHA1. >> SHA256 and SHA512 are still missing. > > This too.. I have those, plus a few others. > > R > Any chance of getting those merged into Phobos? -- Adam Wilson IRC: LightBender Project Coordinator The Horizon Project http://www.thehorizonproject.org/ |
June 04, 2013 Re: DConf 2013 Day 2 Talk 3: C# to D by Adam Wilson | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam Wilson | On Mon, 03 Jun 2013 18:27:10 +0100, Adam Wilson <flyboynw@gmail.com> wrote: > On Mon, 03 Jun 2013 02:16:45 -0700, Regan Heath <regan@netmail.co.nz> wrote: > >> On Sat, 01 Jun 2013 04:06:06 +0100, Juan Manuel Cabo <juanmanuel.cabo@gmail.com> wrote: >> >>> On 05/31/2013 05:18 PM, Nick Sabalausky wrote: >>>> On Fri, 31 May 2013 15:29:40 +0100 >>>> "Regan Heath" <regan@netmail.co.nz> wrote: >>>> >>>>> >>>>> I have old SHA etc hashing routines in old style D, this makes me >>>>> want to spend some time bringing them up to date... >>>>> >>>> >>>> http://dlang.org/phobos/std_digest_sha.html >>>> >>>> Since 2.061, IIRC. >> >> Funny.. the module listing on the left is not in alpha ordering, so I completely missed them. >> >>> The sha digest in phobos is SHA1. >>> SHA256 and SHA512 are still missing. >> >> This too.. I have those, plus a few others. >> >> R >> > > Any chance of getting those merged into Phobos? It just needs some time/love. I have very old versions of the source (prior to it's inclusion in Tango). Last time I looked the Tango devs had made some structural changes and found/fixed an endian related bug. So.. my code needs re-structuring to fit the current phobos model, it needs the endian bug fixed, and it needs complete documentation (it has none). I am happy to donate the existing code, in it's current sorry state to whomever has the time for all that. It could use some testing on a big endian platform - as I have done none. There are unittests which perform the standard tests and maybe a few others IIRC. It's been a while.. R -- Using Opera's revolutionary email client: http://www.opera.com/mail/ |
Copyright © 1999-2021 by the D Language Foundation