Thread overview | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 01, 2015 Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
http://d.readthedocs.org I hope this examples will be useful for students. Ilya |
May 01, 2015 Re: Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ilya Yaroshenko | On Friday, 1 May 2015 at 08:18:10 UTC, Ilya Yaroshenko wrote: > > http://d.readthedocs.org > > I hope this examples will be useful for students. > > Ilya > Hellow Wolrd! Is this intended? |
May 01, 2015 Re: Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ilya Yaroshenko | On Friday, 1 May 2015 at 08:18:10 UTC, Ilya Yaroshenko wrote:
>
> http://d.readthedocs.org
>
> I hope this examples will be useful for students.
>
> Ilya
Thanks. That's very good and exactly what we need for people to lose their fear of touching D.
|
May 01, 2015 Re: Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ilya Yaroshenko | On Friday, 1 May 2015 at 08:18:10 UTC, Ilya Yaroshenko wrote:
>
> http://d.readthedocs.org
>
> I hope this examples will be useful for students.
>
> Ilya
Showing how easy interacting with python can be is a very good idea, and doing so by dealing with scientific data is an even better one!
|
May 01, 2015 Re: Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
Posted in reply to cym13 | On Friday, 1 May 2015 at 09:14:19 UTC, cym13 wrote:
> On Friday, 1 May 2015 at 08:18:10 UTC, Ilya Yaroshenko wrote:
>>
>> http://d.readthedocs.org
>>
>> I hope this examples will be useful for students.
>>
>> Ilya
>
> Showing how easy interacting with python can be is a very good idea, and doing so by dealing with scientific data is an even better one!
+1
|
May 01, 2015 Re: Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | On Friday, 1 May 2015 at 08:45:35 UTC, Namespace wrote:
> On Friday, 1 May 2015 at 08:18:10 UTC, Ilya Yaroshenko wrote:
>>
>> http://d.readthedocs.org
>>
>> I hope this examples will be useful for students.
>>
>> Ilya
>
>> Hellow Wolrd!
> Is this intended?
Thanks! Fixed.
|
May 01, 2015 Re: Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ilya Yaroshenko | very nice examples. Kudos! A.
On Friday, 1 May 2015 at 09:49:51 UTC, Ilya Yaroshenko wrote:
> On Friday, 1 May 2015 at 08:45:35 UTC, Namespace wrote:
>> On Friday, 1 May 2015 at 08:18:10 UTC, Ilya Yaroshenko wrote:
>>>
>>> http://d.readthedocs.org
>>>
>>> I hope this examples will be useful for students.
>>>
>>> Ilya
>>
>>> Hellow Wolrd!
>> Is this intended?
>
> Thanks! Fixed.
|
May 01, 2015 Re: Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ilya Yaroshenko | On Friday, 1 May 2015 at 08:18:10 UTC, Ilya Yaroshenko wrote: > > http://d.readthedocs.org > > I hope this examples will be useful for students. > > Ilya very nice. I didn't know about the D interface to some of those chart libraries. if you would care to incorporate some of the new things you mention in your piece in the python section of the wiki, I think that would be very helpful: http://wiki.dlang.org/Programming_in_D_for_Python_Programmers |
May 01, 2015 Re: Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ilya Yaroshenko | This is great, thank you.
I couldn't get the example in the introduction to work without adding .map!(chomp) to the pipeline:
auto sample = File("10numbers.txt")
.byLine
.takeExactly(10)
.map!(chomp)
.map!(to!double)
.tee!((x){mean += x;})
.array;
Without that, I got an error converting to a double (my file had '\r' after each number)
On Friday, 1 May 2015 at 08:18:10 UTC, Ilya Yaroshenko wrote:
>
> http://d.readthedocs.org
>
> I hope this examples will be useful for students.
>
> Ilya
|
May 01, 2015 Re: Quick Start with D: few examples and set of links. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anonymous | On Friday, 1 May 2015 at 14:01:38 UTC, Anonymous wrote:
> This is great, thank you.
>
> I couldn't get the example in the introduction to work without adding .map!(chomp) to the pipeline:
>
> auto sample = File("10numbers.txt")
> .byLine
> .takeExactly(10)
> .map!(chomp)
> .map!(to!double)
> .tee!((x){mean += x;})
> .array;
>
> Without that, I got an error converting to a double (my file had '\r' after each number)
Alternatively, byLine(KeepTerminator.no, terminator = std.ascii.newline) could help if you know you're dealing with native file-endings.
|
Copyright © 1999-2021 by the D Language Foundation