Jump to page: 1 26  
Page
Thread overview
the best language I have ever met(?)
Nov 18, 2016
Igor Shirkalin
Nov 18, 2016
H. S. Teoh
Nov 18, 2016
Igor Shirkalin
Nov 18, 2016
H. S. Teoh
Nov 18, 2016
Igor Shirkalin
Nov 18, 2016
Igor Shirkalin
Nov 18, 2016
ketmar
Nov 19, 2016
Stefan Koch
Nov 19, 2016
ketmar
Nov 21, 2016
Patric Dexheimer
Nov 21, 2016
ZombineDev
Nov 21, 2016
ketmar
Nov 21, 2016
Jonathan M Davis
Nov 21, 2016
Namespace
Nov 21, 2016
burjui
Nov 22, 2016
ketmar
Nov 23, 2016
Igor Shirkalin
Nov 23, 2016
ketmar
Nov 23, 2016
Jonathan M Davis
Nov 23, 2016
ketmar
Nov 25, 2016
Igor Shirkalin
Nov 25, 2016
Jonathan M Davis
Nov 25, 2016
Igor Shirkalin
Nov 25, 2016
Jonathan M Davis
Nov 25, 2016
Jonathan M Davis
Nov 25, 2016
Artur Skawina
Nov 25, 2016
ketmar
Oct 10, 2017
Igor Shirkalin
Oct 13, 2017
Igor
Nov 25, 2016
MGW
Nov 25, 2016
Igor Shirkalin
Nov 22, 2016
ketmar
Nov 22, 2016
Daniel Kozak
Nov 19, 2016
Igor Shirkalin
Nov 19, 2016
Igor Shirkalin
Nov 19, 2016
ketmar
Nov 19, 2016
Igor Shirkalin
Nov 18, 2016
H. S. Teoh
Nov 18, 2016
Igor Shirkalin
Nov 18, 2016
Igor Shirkalin
Nov 24, 2016
Dsby
Nov 25, 2016
Jonathan M Davis
Nov 25, 2016
Artur Skawina
Nov 25, 2016
Jonathan M Davis
Nov 25, 2016
Artur Skawina
Nov 28, 2016
Jonathan M Davis
Dec 02, 2016
Igor Shirkalin
Dec 03, 2016
eugene
Dec 05, 2016
Igor Shirkalin
Dec 05, 2016
eugene
Dec 05, 2016
Igor Shirkalin
Dec 05, 2016
Igor Shirkalin
November 18, 2016
The simpler - the better.
After reading "D p.l." by A.Alexandrescu two years ago I have found my past dream. It's theory to start with. That book should be read at least two times especially if you have asm/c/c++/python3/math/physics background, and dealt with Watcom/Symantec C/C++ compilers (best to Walter Bright) with very high optimization goal. No stupid questions, just doing things.
That was preface.
Now I have server written in D for C++ pretty ancient client. Most things are three times shorter in size and clear (@clear? suffix). All programming paradigms were used.
I have the same text in russian, but who has bothered russian(s)?
The meaning of all of that is: powerfull attractive language with sufficient infrastructure with future. Just use it.

p.s. I'm excused for my primitive english.




November 18, 2016
On Fri, Nov 18, 2016 at 05:54:52PM +0000, Igor Shirkalin via Digitalmars-d-learn wrote:
> The simpler - the better.
> After reading "D p.l." by A.Alexandrescu two years ago I have found my
> past dream. It's theory to start with. That book should be read at
> least two times especially if you have asm/c/c++/python3/math/physics
> background, and dealt with Watcom/Symantec C/C++ compilers (best to
> Walter Bright) with very high optimization goal. No stupid questions,
> just doing things.
> That was preface.
> Now I have server written in D for C++ pretty ancient client. Most
> things are three times shorter in size and clear (@clear? suffix). All
> programming paradigms were used.

Welcome, Igor!

Your sentiments reflect mine years ago when I first discovered D.  I came from a C/C++/Perl background.  It was also Andrei's book that got me started; in those early days documentation was scant and I didn't know how to write idiomatic D code. But after I found TDPL, the rest was history. :-)


> I have the same text in russian, but who has bothered russian(s)?

We have a few Russians on this forum, and I can understand some Russian too. Though on this mailing list English is the language to use.


> The meaning of all of that is: powerfull attractive language with sufficient infrastructure with future. Just use it.

Yes, I agree!


> p.s. I'm excused for my primitive english.
[...]

Your English is understandable. That's good enough, I think. :-)


T

-- 
If the comments and the code disagree, it's likely that *both* are wrong. -- Christopher
November 18, 2016
On Friday, 18 November 2016 at 18:14:41 UTC, H. S. Teoh wrote:
> Welcome, Igor!
Hello, Teoh!
>
> Your sentiments reflect mine years ago when I first discovered D.  I came from a C/C++/Perl background.  It was also Andrei's book that got me started; in those early days documentation was scant and I didn't know how to write idiomatic D code. But after I found TDPL, the rest was history. :-)
I was a little bit afraid of my missunderstanding in terms of sentiments. You've got me right (I don't quite feel the meaning of that in these non-cyrillic letters:). But what I understand is the path you have walked and what I have in my mind.
Simple example about D: I spent two hours to write a line (borrowed from Python), related with lazy calculations, but finally I got it with deep great thinking, and it was like understanding of Moon alienation from Earth.

> We have a few Russians on this forum, and I can understand some Russian too. Though on this mailing list English is the language to use.
Sure, I don't have any doubt of it. I hope to be one of russian understandables here:)

> Your English is understandable. That's good enough, I think. :-)
Thank you, Teoh. That is very important for me to hear.

What is your using of D?
For me it is tool to develope other tools.

Igor
November 18, 2016
On Fri, Nov 18, 2016 at 07:26:56PM +0000, Igor Shirkalin via Digitalmars-d-learn wrote:
> On Friday, 18 November 2016 at 18:14:41 UTC, H. S. Teoh wrote:
> > Welcome, Igor!
> Hello, Teoh!
> > 
> > Your sentiments reflect mine years ago when I first discovered D.  I came from a C/C++/Perl background.  It was also Andrei's book that got me started; in those early days documentation was scant and I didn't know how to write idiomatic D code. But after I found TDPL, the rest was history. :-)
> I was a little bit afraid of my missunderstanding in terms of sentiments.  You've got me right (I don't quite feel the meaning of that in these non-cyrillic letters:). But what I understand is the path you have walked and what I have in my mind.

Yes, I meant 'sentiments' as in опыта, not as in сентметальность. :-)


> Simple example about D: I spent two hours to write a line (borrowed from Python), related with lazy calculations, but finally I got it with deep great thinking, and it was like understanding of Moon alienation from Earth.

Great!  Would you like to share the code snippet?


[...]
> What is your using of D?
> For me it is tool to develope other tools.
[...]

Sadly, I have not been able to use D in a professional capacity. My coworkers are very much invested into C/C++ and have a very high level of skepticism to anything else, in addition to resistance to adding new toolchains (much less languages) to the current projects.  So my use of D has mainly been in personal projects.  I do contribute to Phobos (the standard library) every now and then, though.  It's my way of "contributing to the cause" in the hopes that one day D may be more widespread and accepted by the general programming community.


T

-- 
By understanding a machine-oriented language, the programmer will tend to use a much more efficient method; it is much closer to reality. -- D. Knuth
November 18, 2016
On Fri, Nov 18, 2016 at 11:43:49AM -0800, H. S. Teoh via Digitalmars-d-learn wrote: [...]
> Yes, I meant 'sentiments' as in опыта, not as in сентметальность. :-)
[...]

Sorry, typo. I meant сентиментальности. But I think you understand what I mean. :-)


T

-- 
The most powerful one-line C program: #include "/dev/tty" -- IOCCC
November 18, 2016
On Friday, 18 November 2016 at 19:43:49 UTC, H. S. Teoh wrote:
>> I was a little bit afraid of my missunderstanding in terms of sentiments.  You've got me right (I don't quite feel the meaning of that in these non-cyrillic letters:). But what I understand is the path you have walked and what I have in my mind.
>
> Yes, I meant 'sentiments' as in опыта, not as in сентметальность. :-)
I used to mean 'sentiments' as "сентиметальность", but "опыт - сын ошибок трудных" (Пушкин) is what realy in behind :)


>> Simple example about D: I spent two hours to write a line (borrowed from Python), related with lazy calculations, but finally I got it with deep great thinking, and it was like understanding of Moon alienation from Earth.

> Great!  Would you like to share the code snippet?

Sure. We have an array of uint. And we need to get a string of these values in hex separated with ','. In Python it looks like
<code>

     ', '.join(map(hex, array))
</code>


array.map!(v=>"%x".format(v)).join(", ")
>
>
> [...]
>> What is your using of D?
>> For me it is tool to develope other tools.
> [...]
>
> Sadly, I have not been able to use D in a professional capacity. My coworkers are very much invested into C/C++ and have a very high level of skepticism to anything else, in addition to resistance to adding new toolchains (much less languages) to the current projects.  So my use of D has mainly been in personal projects.  I do contribute to Phobos (the standard library) every now and then, though.  It's my way of "contributing to the cause" in the hopes that one day D may be more widespread and accepted by the general programming community.
>
>
> T


November 18, 2016
On Friday, 18 November 2016 at 19:43:49 UTC, H. S. Teoh wrote:
>> I was a little bit afraid of my missunderstanding in terms of sentiments.  You've got me right (I don't quite feel the meaning of that in these non-cyrillic letters:). But what I understand is the path you have walked and what I have in my mind.
>
> Yes, I meant 'sentiments' as in опыта, not as in сентметальность. :-)
I used to mean 'sentiments' as "сентиметальность", but "опыт - сын ошибок трудных" (Пушкин) is what realy in behind :)


>> Simple example about D: I spent two hours to write a line (borrowed from Python), related with lazy calculations, but finally I got it with deep great thinking, and it was like understanding of Moon alienation from Earth.

> Great!  Would you like to share the code snippet?

Sure. Let we have a uint_array of values. And we need to get a string of these values in hex separated with ','. In Python it looks like

<code python>
     ', '.join(map(hex, uint_array))
</code python>

After 2 hours of brain breaking (as D newbie) I have come to:

<code D>
uint_array.map!(v=>"%x".format(v)).join(", ")
</code D>
Why 2 hours? Because I have started with 'joiner' function and aftewords found out the 'join'.

To my mind there is more simple form for this task in D (about formatting).

>> What is your using of D?
> Sadly, I have not been able to use D in a professional capacity. My coworkers are very much invested into C/C++ and have a very high level of skepticism to anything else, in addition to resistance to adding new toolchains (much less

> languages) to the current projects.  So my use of D has mainly been in personal projects.  I do contribute to Phobos (the

Same here.
But my coworkers are not addicted to programming at all :)

> standard library) every now and then, though.  It's my way of "contributing to the cause" in the hopes that one day D may be more widespread and accepted by the general programming community.

I don't hope about "D some day", I'm sure about that (5 to 30 years).
The idea is "I D", not "I C++" :)


November 18, 2016
On Friday, 18 November 2016 at 19:47:17 UTC, H. S. Teoh wrote:
>> Yes, I meant 'sentiments' as in опыта, not as in сентметальность. :-)
> [...]
> Sorry, typo. I meant сентиментальности. But I think you understand what I mean. :-)
Oh, I think you understand what you think what I mean :)


November 18, 2016
On Friday, 18 November 2016 at 19:47:17 UTC, H. S. Teoh wrote:
> On Fri, Nov 18, 2016 at 11:43:49AM -0800, H. S. Teoh via Digitalmars-d-learn wrote: [...]
>> Yes, I meant 'sentiments' as in опыта, not as in сентметальность. :-)
> [...]
>
> Sorry, typo. I meant сентиментальности. But I think you understand what I mean. :-)
>
>
> T

I Think there's a bug. When I'm answerring a message, and if my recipient send me the message, and after I press 'send' button, my message is duplicated. Simple bug to repare.

November 18, 2016
On Friday, 18 November 2016 at 20:31:57 UTC, Igor Shirkalin wrote:
> After 2 hours of brain breaking (as D newbie) I have come to:
>
> <code D>
> uint_array.map!(v=>"%x".format(v)).join(", ")
> </code D>
> Why 2 hours? Because I have started with 'joiner' function and aftewords found out the 'join'.
>
> To my mind there is more simple form for this task in D (about formatting).

sure ;-)

import std.stdio;
import std.format;
void main () {
  uint[$] a = [42, 69];
  string s = "%(%s, %)".format(a);
  writefln(s);
}
« First   ‹ Prev
1 2 3 4 5 6