Re: [dpl.org] License of the content (need for Wikipedia)

2012-01-12 Thread Alexander Malakhov

On Thursday, 12 January 2012 at 04:18:19 UTC, Walter Bright wrote:

On 1/11/2012 5:22 PM, Alexander Malakhov wrote:

Should it be for
* all content (I think, it will be useful - e.g. for 
citations), * or the logo

only for now ?

And b.t.w., there is no license on the code of the site.


Just the logo for now.


Ok. I plan to do this within 1 week.


The D library code is all Boost licensed.


I meant javascript in the sources of dlang.org. Not saying this 
is important, but just in case.





Re: Discussion about D at a C++ forum

2012-01-12 Thread Alexander Malakhov

On Thursday, 12 January 2012 at 06:17:43 UTC, a wrote:

Alexander Malakhov Wrote:

And even if that will happen, D1 page most likely will be 
deleted later due to little visits count


They are actually deleting pages due to low visit counts? This 
is just wrong.


Turns out I was wrong. I was thinking about Nemerle, which was 
delete in 2011 (but now is undeleted). Actually, it was deleted 
due to low notability,

which could be the case for D1, btw.

If interested, here is Nemerle story:

1. deletion
http://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletion/Nemerle

2. undeletion (click show at right)
http://en.wikipedia.org/wiki/Wikipedia:Deletion_review/Log/2011_February_14

3. on reddit
http://www.reddit.com/r/programming/comments/fkt7t/nemerle_factor_alice_ml_and_other_programming/

4. on Hacker News
http://news.ycombinator.com/item?id=2215168


Re: [dpl.org] License of the content (need for Wikipedia)

2012-01-11 Thread Alexander Malakhov

On Tuesday, 10 January 2012 at 18:56:07 UTC, Walter Bright wrote:

Just pick one and do a pull request for it.


Should it be for
* all content (I think, it will be useful - e.g. for citations), 
* or the logo only for now ?


And b.t.w., there is no license on the code of the site.





Re: Discussion about D at a C++ forum

2012-01-11 Thread Alexander Malakhov

On Tuesday, 10 January 2012 at 18:58:41 UTC, Mike Wey wrote:

On 01/10/2012 08:47 AM, Alexander Malakhov wrote:

D1 changelog starts with 1.001, 2007-01-23


D 0.00 was released on 9 December 2001.

http://www.digitalmars.com/d/1.0/changelog1.html#new000


Oh, missed that links. Thanks!


Re: Discussion about D at a C++ forum

2012-01-11 Thread Alexander Malakhov

On Tuesday, 10 January 2012 at 12:08:41 UTC, bearophile wrote:

Alexander Malakhov:

Other languages have just 1 date. I think wikipedia's editors 
would resist if D will be different.


A solution is to have two Wikipedia pages, una for D1 and one 
for D.


Bye,
bearophile


I believe that would be much more difficult.
Actually, I can't imagine how anyone could convince wikipedians 
to do this.


And even if that will happen, D1 page most likely will be deleted 
later due to little visits count





Re: Discussion about D at a C++ forum

2012-01-10 Thread Alexander Malakhov

On Monday, 9 January 2012 at 19:46:03 UTC, Jonathan M Davis wrote:

On Monday, January 09, 2012 11:37:50 Walter Bright wrote:

On 1/9/2012 10:59 AM, Jonathan M Davis wrote:
 I suspect that part of the problem is that Wikipedia lists D 
 as
 appearing in 1999. And, of course, since D2 didn't start 
 until 2007,
 saying that D has been around since 1999 easily gives the 
 mistaken
 impression that we're doing a bad job, since D _still_ isn't 
 complete

 and fully stable.

Please fix the wikipedia entry!


With what? Make it say 2003 for D1 and 2007 for D2?

- Jonathan M Davis


Other languages have just 1 date. I think wikipedia's editors 
would resist if D will be different.


If we want to do so, there should be convincing rationale in 
entry source. Like comment for file extensions (see file_ext 
here 
http://en.wikipedia.org/w/index.php?title=D_(programming_language)action=edit 
)


Re: [dpl.org] License of the content (need for Wikipedia)

2012-01-10 Thread Alexander Malakhov

On Friday, 30 December 2011 at 18:02:57 UTC, Walter Bright wrote:

On 12/29/2011 9:13 PM, Alexander Malakhov wrote:
Hmm... If that's of no interest, could someone state it 
explicitly.

So that I'll be sure my message wasn't just overlooked or lost


I certainly don't mind using the D logo on the Wikipedia, I'm 
just not sure what to do about it.


Feel free to tell me [1] when you'll decide on license, and I'll 
take care of upload request and editing entry.


[1] anm at programmer dot net


Re: [dpl.org] License of the content (need for Wikipedia)

2012-01-10 Thread Alexander Malakhov
On Tuesday, 10 January 2012 at 09:05:48 UTC, Alexander Malakhov 
wrote:
On Friday, 30 December 2011 at 18:02:57 UTC, Walter Bright 
wrote:

On 12/29/2011 9:13 PM, Alexander Malakhov wrote:
Hmm... If that's of no interest, could someone state it 
explicitly.

So that I'll be sure my message wasn't just overlooked or lost


I certainly don't mind using the D logo on the Wikipedia, I'm 
just not sure what to do about it.


Feel free to tell me [1] when you'll decide on license, and 
I'll take care of upload request and editing entry.


[1] anm at programmer dot net


Just to clarify - Wikimedia Commons won't accept image for upload 
without appropriate license.


Re: Discussion about D at a C++ forum

2012-01-09 Thread Alexander Malakhov

On Tuesday, 10 January 2012 at 00:04:31 UTC, Sean Kelly wrote:

On Jan 9, 2012, at 3:45 PM, Iain Buclaw wrote:

On 9 January 2012 21:29, Walter Bright 
newshou...@digitalmars.com wrote:

On 1/9/2012 11:45 AM, Jonathan M Davis wrote:


Please fix the wikipedia entry!



With what? Make it say 2003 for D1 and 2007 for D2?



Yes, but 2001 for D1.


[citation needed]


How about the changelog?  Or does it have to be an actual 
article.  Maybe Walter's written something at DDJ?


D1 changelog starts with 1.001, 2007-01-23


Re: [dpl.org] License of the content (need for Wikipedia)

2011-12-29 Thread Alexander Malakhov

Hmm... If that's of no interest, could someone state it explicitly.
So that I'll be sure my message wasn't just overlooked or lost


Re: [TDPL] Russian translation of the book

2011-03-19 Thread Alexander Malakhov
Simen kjaeraas simen.kja...@gmail.com писал(а) в своём письме Sat, 19  
Mar 2011 04:17:13 +0600:


On Fri, 18 Mar 2011 18:02:03 +0100, Vladimir Panteleev  
vladi...@thecybershadow.net wrote:


On Fri, 18 Mar 2011 13:08:24 +0200, Alexander Malakhov  
a...@programmer.net wrote:


Vladimir Panteleev vladi...@thecybershadow.net писал(а) в своём  
письме Wed, 16 Mar 2011 23:54:14 +0600:


On Wed, 16 Mar 2011 19:10:29 +0200, Alexander Malakhov  
a...@programmer.net wrote:


Russian publisher Символ-Плюс (Symobl-Plus) now is translating  
TDPL and they are asking for volunteers to

* help translating guy with technical details
* read final version

If you wish to help, add your contacts on forum:
http://www.symbol.ru/forum/viewtopic.php?f=4t=363


Note that the last message in that thread is from the last year.


Actually it's from 2011.01.20. Go to the 2nd page :)


Who puts paging controls at the top of threads? :s


In soviet russia...?




*LOL*

--
Alexander


Re: [TDPL] Russian translation of the book

2011-03-18 Thread Alexander Malakhov
Vladimir Panteleev vladi...@thecybershadow.net писал(а) в своём письме  
Wed, 16 Mar 2011 23:54:14 +0600:


On Wed, 16 Mar 2011 19:10:29 +0200, Alexander Malakhov  
a...@programmer.net wrote:


Russian publisher Символ-Плюс (Symobl-Plus) now is translating TDPL  
and they are asking for volunteers to

* help translating guy with technical details
* read final version

If you wish to help, add your contacts on forum:
http://www.symbol.ru/forum/viewtopic.php?f=4t=363


Note that the last message in that thread is from the last year.


Actually it's from 2011.01.20. Go to the 2nd page :)

[...] I've reviewed the introductions and the first chapter with over 30  
corrections and some inquiries,but never got any feedback regarding them  
-I don't even know if they reached the translator, so I was a bit  
demotivated to continue.


30 corrections sounds great! Bad translations really really annoy me.
If you haven't totally gave up on this, maybe you could ask on forum about
what happened with your submission ?
In the end it was chief editor, who started the thread, so the publisher
should be serious about the book

--
Alexander


[TDPL] Russian translation of the book

2011-03-16 Thread Alexander Malakhov
Russian publisher Символ-Плюс (Symobl-Plus) now is translating TDPL and  
they are asking for volunteers to

* help translating guy with technical details
* read final version

If you wish to help, add your contacts on forum:
http://www.symbol.ru/forum/viewtopic.php?f=4t=363

--
Alexander


Re: Integer conversions too pedantic in 64-bit

2011-02-18 Thread Alexander Malakhov
Don nos...@nospam.com писал(а) в своём письме Wed, 16 Feb 2011 17:21:06  
+0600:


Exactly. It is NOT the same as the 8  16 bit case. The thing is, the  
fraction of cases where the MSB is important has been decreasing  
*exponentially* from the 8-bit days. [...]


Some facts to back your opinion:

* today's most powerful supercomputer have just 230 TB of RAM, which is  
between 2^47 and 2^48

  (http://www.top500.org/site/systems/3154)

* Windows7 x64 __virtual__ memory limit is 8 TB (= 2^43)
  
(http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx#physical_memory_limits_windows_7)

--
Alexander


Re: The D Scripting Language

2010-11-14 Thread Alexander Malakhov
Leandro Lucarella l...@llucax.com.ar писал(а) в своём письме Sat, 13 Nov  
2010 21:13:42 +0600:



retard, el 13 de noviembre a las 08:24 me escribiste:

 void main(string[] args){

 	import std.stdio; // 1. will not compile   void main(string[]  
args){

writeln(hello);
}

... the 1) point make me ask, why
imports can't be used inside methods just like in Scala. There's no
technical reason other than this adds bugs!


Maybe it will somehow affect compile time or complicate module dependency  
analysis ?



Python allows that too, that's why I opened an enhancement request:
http://d.puremagic.com/issues/show_bug.cgi?id=3506

As the bugzilla issue shows, this is particularly annoying when combined
with unittest.


Even if there are technical issues, special case for unit tests sounds  
like a good improvement of usability


--
Alexander


Re: The D Scripting Language

2010-11-14 Thread Alexander Malakhov
spir denis.s...@gmail.com писал(а) в своём письме Sat, 13 Nov 2010  
16:15:39 +0600:



On Fri, 12 Nov 2010 14:42:38 -0500
sybrandy sybra...@gmail.com wrote:

 2. Make Windows to open .d files with rdmd by default, so I could run  
them with simple double-click


Yes. Maybe Alexander meant this for users rather than for developpers.  
The association should then be set during install of the compiler, I  
guess (but I actually have no idea how this is supposed to be done --  
just know that some apps installers do this: set their own file  
associations -- which by the way is pretty annoying when you don't want  
eg an image viewer to hijack all image file formats).


Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



With my point 2 I meant that I want to __have an option__ to run .d with  
rdmd, of course
It would certainly be much simpler for users. I'm in-house programmer, and  
actually it's not even an option to make any user from financial  
department to run anything from command line (most likely they will forget  
how to do this in a couple weeks)


My main idea was a little different, though: to be able to write short  
scripts (import- and main()-less, like with rdmd --eval) AND to run  
them easily.
Then, if I need smth like 30-liner for some files manipulation and if I'm  
proficient with D, I would go with D instead of .bat.
I have never used scripting for anything except this stuff, so I can't  
come up with better example.



You should be able to do this yourself quite easily by right-clicking on
the D file and associating it with rdmd.  I'd give better instructions
except I'm not on a Windows machine right now.


Yeah, that's really easy (roughly translated from russian win7):
1. right click on .d file (shift + right-click on XP, IIRC)
2. Open with...
3. Choose Program
4. find rdmd.exe (default is C:\D\dmd2\windows\bin)
5. check Use this program with all files of this type box

--
Alexander


Re: The D Scripting Language

2010-11-12 Thread Alexander Malakhov
Gary Whatmore n...@spam.sp писал(а) в своём письме Thu, 11 Nov 2010  
20:07:35 +0600:



Alexander Malakhov Wrote:

...
Maybe it would be better to just make rdmd to surround source code with:

//- rdmd generated text BEGIN
public import std.stdio, ...

void main( string[] args ){
//- rdmd generated text END

// programmer's code
}

in cases when rdmd detects there is no main()


No, it could do that in all cases. D supports nested declarations. This  
is how the other languages do this. It would improve the score a lot.  
Did TDPL talk script programming? We can still change this radically  
without breaking D2 - thank god the specification is informal and  
incomplete.


Then you have 2 issues:

void main(string[] args){

import std.stdio; // 1. will not compile
void main(string[] args){
writeln(hello);
}

	main(args); // 2. this should be appended, hence anyway rdmd should  
analyze

//if there is main()
}

--
btw, why name is not simply std.io ?

--
Alexander


Re: The D Scripting Language

2010-11-12 Thread Alexander Malakhov
Andrei Alexandrescu seewebsiteforem...@erdani.org писал(а) в своём  
письме Thu, 11 Nov 2010 21:12:33 +0600:



On 11/11/10 5:50 AM, Alexander Malakhov wrote:


Maybe it would be better to just make rdmd to surround source code with:

//- rdmd generated text BEGIN
public import std.stdio, ...

void main( string[] args ){
//- rdmd generated text END

// programmer's code
}

in cases when rdmd detects there is no main()


rdmd already does that with --eval and --loop.

http://www.digitalmars.com/d/2.0/rdmd.html

Andrei


I was unable to pass file to --eval, is this possible ?


rdmd --eval=script.d

(16): Error: undefined identifier script


also while I'm here. This works:  rdmd  
--eval=writeln();writeln();writeln();

and this don't:

rdmd --eval=writeln(hello)

(16): Error: undefined identifier hello


btw, does --eval make import std.all or some set of modules ?
--
Alexander


Re: The D Scripting Language

2010-11-12 Thread Alexander Malakhov
Adam D. Ruppe destructiona...@gmail.com писал(а) в своём письме Fri, 12  
Nov 2010 23:13:13 +0600:



Alexander Malakhov wrote:

 import std.stdio; // 1. will not compile


I wrote a little rund helper program, and a PHP style D interpreter
in another thread a couple days ago, that solves this by a simple
string scan.

http://arsdnet.net/dcode/rund.d
http://arsdnet.net/dcode/dhp.d

It scans the code byLine. If the line starts with import, cut it out  
and move it

to the top of the final file outputted, above main.


This would break if you indented the import, or if it was in a string  
literal or

something, but there's a simple solution to that: don't do it!

Example of use:
$ rund
import std.math;

writeln(pow(4, 3));
EOF
64

==

$ dhp
?d
import std.math; ?  Four to the third power is ?= pow(4, 3) ?!
EOF
  Four to the third power is 64!

===

You can see the rule at work in the second example. ?d import std.math;  
?

wouldn't have been moved, so I just put a newline on it.


Looks nice, especially dhp. But if 2nd problem isn't solved there is no
point in fixing imports


void main(string[] args){
import std.stdio; // 1. will not compile
void main(string[] args){
writeln(hello);
}
	main(args); // 2. this should be appended, hence anyway rdmd should  
analyze

 //if there is main()
}



--
Alexander


Re: The D Scripting Language

2010-11-12 Thread Alexander Malakhov
Andrei Alexandrescu seewebsiteforem...@erdani.org писал(а) в своём  
письме Fri, 12 Nov 2010 23:44:18 +0600:



On 11/12/10 9:21 AM, Alexander Malakhov wrote:

I was unable to pass file to --eval, is this possible ?


It is:

rdmd --eval $(cat filename)

I know... it's cheating :o). But if you want to pass a file, why not  
just make the file a small program and compile it the classic way?


Andrei


First of all, I have virtually no exp with scripts, and maybe nobody
should listen to my opinion :)

I was thinking about 2 things:
1. In many examples from that site import ... void main was 50% of the  
code

2. Make Windows to open .d files with rdmd by default, so I could run them
   with simple double-click

--
Alexander


Re: The D Scripting Language

2010-11-11 Thread Alexander Malakhov




Perhaps a module std.scripting could help quite a lot, too.





module std.script;

public import std.stdio, std.file, std.process, std.algorithm, ... etc

I use at least some of these for most of my programs/scripts. And  
std.all is probably a bit too heavy.


std.script could basically fetch us enough stuff to be on par with  
importless python.


Maybe it would be better to just make rdmd to surround source code with:

//- rdmd generated text BEGIN
public import std.stdio, ...

void main( string[] args ){
//- rdmd generated text END

// programmer's code
}

in cases when rdmd detects there is no main()
--
Alexander


Re: Please comment on http://d-programming-language.org/

2010-09-02 Thread Alexander Malakhov
Andrei Alexandrescu seewebsiteforem...@erdani.org писал(а) в своём  
письме Thu, 02 Sep 2010 14:03:33 +0700:


Time to zero in on the overall design and start working on the content.  
Please give the design one more round of comments.


Thanks,

Andrei


1. There should be Contibute section on the site with subsections  
{Compiler, Phobos,

   Documentation, This site}
2. On overview page:
  - Absence of C++ code highlighting looks like cheating from  
brainwash TV ads
  - (not sure) maybe functional langs and FP style also should be  
mentioned ?


3. D-lang.org is faster to type and memorize (especially for non-native  
speakers). Is it owned
   by someone from D community ? We should make it to forward to main site  
(the same for

   dlang.org)
4. Agree with Jonathan, code font seems (can I say so) a little too big
5. I would like to be able to view contents of categories like Language  
Reference without

   opening first (maybe like + on the MSDN site)
6. Why do we need Digital Mars to be mentioned ? I think it can mislead  
people to conclusion,

   that D is owned by some corporation.

7. Documentation-Library Reference link is broken

P.S. I like red flare :)

--
Alexander


Re: Andrei's Google Talk

2010-08-06 Thread Alexander Malakhov
Steven Schveighoffer schvei...@yahoo.com писал(а) в своём письме Fri, 06  
Aug 2010 18:28:41 +0700:


2. It seems like the documentation is HTML written as ddoc.  I see $(P)  
tags, $(LI) tags, etc.   Can't we just write it as HTML?


I have had exactly same thought when I've first seen DDoc a week ago



I think many  would feel much more comfortable that way.


I have virtually zero exp with HTML/XML, but DDocs syntax seems to be  
pretty

straightforward

It's also more supported by editors.  I forgot a closing parentheses on  
one tag, and it screwed up the entire page.  I had to find it by hand,  
whereas an HTML editor could red-flag a tag without a closing tag, or  
you could run it through an XML verifier (if it's xhtml).


Good points. And XML is not going to disappear anytime soon, so there will
always be a lot of people familiar with it, as wall as tool for it.
So I think it would be reasonable to have tag/ syntax and HTML tags
like B, I etc.

Also, for example, what if I want to put extra ')' paren into $(D text)?
I think there is (simple) solution, but that is one more thing to learn.
In the end it's just markup language and I don't see much use in learning
more then one of them.

One reason of it I can think of: parsing speed and ambiguities (same as
with templates)

Anyway, when D will take over the world, they will have to change HTML
syntax to fit what everyone already knows )

--
Alexander