Jump to page: 1 2 3
Thread overview
Quick Start with D: few examples and set of links.
May 01, 2015
Ilya Yaroshenko
May 01, 2015
Namespace
May 01, 2015
Ilya Yaroshenko
May 01, 2015
Andy Smith
May 01, 2015
Ali Çehreli
May 01, 2015
Ilya Yaroshenko
May 01, 2015
Chris
May 01, 2015
cym13
May 01, 2015
Chris
May 03, 2015
Iain Buclaw
May 03, 2015
Ilya Yaroshenko
May 01, 2015
Laeeth Isharc
May 01, 2015
Anonymous
May 01, 2015
John Colvin
May 01, 2015
Ilya Yaroshenko
May 01, 2015
Ilya Yaroshenko
May 01, 2015
Anonymous
May 01, 2015
Ilya Yaroshenko
May 01, 2015
John Colvin
May 01, 2015
xky
May 01, 2015
Ilya Yaroshenko
May 02, 2015
rom
May 01, 2015
http://d.readthedocs.org

I hope this examples will be useful for students.

Ilya
May 01, 2015
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
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
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
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
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
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
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
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
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.
« First   ‹ Prev
1 2 3