Re: xxxInPlace or xxxCopy?

2011-01-20 Thread Akakima
Is it ok to use:

In place:

trim( string )
replace( string, from, to )

or Copy:

trim( string, outstring )
replace( string, from, to, outstring )





Re: Is D not-for-profit or not?!

2011-01-30 Thread Akakima

"Jonathan M Davis"  a écrit

Why are you trying to change the meaning of Open Source ?

Open Source comes with principles. It comes with a spirit. It about freedom.
It's about *freely* sharing knowledge, tools, ...
It does not come for more rights for the one who started distributing the 
knowledge.

AFAIK, D is not a trademarked language. So everybody can produce a compiler 
for it.

DMD is Digital Mars D. The Digital Mars implementation of D.
Digital Mars is the vendor of this compiler.



See:



enum Vendor; Master list of D compiler vendors.


  DigitalMars Digital Mars
  const Vendor vendor : Which vendor produced this compiler.

  DMD is not Open Source.

  The backend licence is not an open source license.

  There is zero souce code for snn.lib (which is a part of DMD).

  >
  > D is a programming language. There's nothing about D which would be for 
profit or
  > not for profit. You don't sell a programming language.
  >
  > The compilers could be for profit if they were sold, but they aren't. 
All of them
  > are open source, with the only snag being that the license for dmd's 
backend is
  > such that you can see the source but not copy it and change it and 
whatnot. The
  > frontend is entirely open source however, and both gdc and LDC are 
entirely open
  > source. Regardless, they're all free to download and use.
  >
  > You can probably buy enterprise support for dmd from Digital Mars like 
you can
  > with dmc, but I don't know anything about that, and that's buying 
support not
  > software.
  >
  > It really doesn't make sense to ask whether D is for profit or not.

Yes it does.
Because one must look at the spirit. Not at the words.

When we talk about "D". We talk of the whole. It's not about the 4th letter 
of the alphabet.

Open Source community will glady help a truely Open Source Project.
D has it's place there.

A lot of individuals has worked very very hard to get there place under the 
Sun. They are trying to create a world where there is collaboration and no 
competition.

Every body is welcomed to join the efforts.


> Programming languages aren't for profit. Their tools may be, but you don't
> buy or rent programming languages, so asking whether D is for profit or
> not really doesn't make any sense.
>
> - Jonathan M Davis 




Re: Is D not-for-profit or not?!

2011-01-30 Thread Akakima

>  I think you're mixing up "Open Source" with "Free Software".

No.

Aren't you mixing up free with $ ?

See: http://en.wikipedia.org/wiki/Open_source

and read some of the history of the FSF.

There are free (0 $) products/software that comes with no source and a 
little freedom.

Some vendors associate free with 0$, an solely with $.
By doing this, they put a price on freedom.

Freedom begins by free. There is a reason for this.

Exchanging money is a legitimate way of exchanging energy.
Problems arise when this is the only way of exchange.

I think Walter is making an effort to go Open Source. His intentions are not 
clear to the mass because he never expressed them. He may not be at ease to 
do so.
He sure did within the inner circle of D.

Look around. The world is becoming open.

There was a time, when Open Source was not invented, when giving away 
"source code", would have been viewed as a crime, a friend of mine, gaved me 
the source code of a fortran compiler.

That source code camed on microfilm. I was so excited. In a state of joy.
I read all of it with a a microscope! I learned. I shared.





Re: Unilink - alternative linker for win32/64, DMD OMF extensions?

2011-02-12 Thread Akakima
> Making optlink open source won't make any difference. Few are skilled at 
> asm anymore, and likely none of them would want to work on optlink for 
> free.

That's true. But the real problem is not optlink. Optlink is a very good 
linker.

The problem is OMF. 11 years ago OMF was a good choice. But not anymore.

I know you are a competent (probably very competent) compiler writer. You 
modified D on linux, so it produce ELF. How much time would that take to 
modify DMD so it produce COFF ? Given all the bad publicity OMF gives to D, 
it should be viewed as a good choice.

There are many (not much), but there are open source linkers. Of course ld 
is not as fast as optlink, but it's good. And there is a faster version made 
by the project Ultimate++ IDE.

Going to COFF would have a lot of advantages for everybody and for D.

Do you agree ?






Re: Unilink - alternative linker for win32/64, DMD OMF extensions?

2011-02-13 Thread Akakima
>
> Changing the object module format is not sufficient. The symbolic debug 
> info would have to be changed (and Microsoft's is undocumented) and then 
> there's the dependency on Microsoft's C runtime library if linking with VC 
> generated object files.

I found some doc there:

  http://pierrelib.pagesperso-orange.fr/exec_formats/index.html

Microsoft Symbol and Type Information
By TIS / Microsoft. Entry added 12/28/2004.
Keywords: ms, symbol, type, info
File: MS_Symbol_Type_v1.0.pdf
« This document describes Microsoft Symbol and Type Information, a debugging 
information format fromMicrosoft Corporation for the 32-bit Windows 
environment. »

There is also some doc on the MSDN CD that comes with Visual C++ 6.0.







WALK32 - An open source omf linker

2011-02-13 Thread Akakima
I found this:

SBS WALK32 Win32 Assembly Language Kit Version 1.00

there:

http://www.programmersheaven.com/download/355/download.aspx

The file WALK32_1.zip contains the source code (in asm) of a 32 bits OMF 
linker.

May be it can help...






Re: dmd's c-source file analyze to json file ?

2011-02-25 Thread Akakima
Is this more understandable:

I think he wants to know what part of DMD produce the json output.
He wants to know how is implemented the production of the Json file.
He wants to extract the code/function responsible for the production of json 
and reuse this code in an IDE.
May be he wants to study this code to learn how to parse D source code (or 
other language source code), to produce a json file, in order to more easily 
implement the auto-complete feature for an IDE.

Well, that was hard to explain.
English is not my native language.


"Jonathan M Davis"  a écrit dans le message de news: 
mailman.1976.1298678829.4748.digitalmar...@puremagic.com...
On Friday, February 25, 2011 15:11:54 dolive wrote:
> Jonathan M Davis дµ½:
> > On Friday, February 25, 2011 09:35:09 dolive wrote:
> > > How to dmd's c-source file  analyze to json file ?
> > > thank's!
> >
> > I think that you're going to have to reword that. I have no idea what
> > you're asking for.
> >
> > - Jonathan M Davis
>
> I want to use it to do  ide's auto-complete.

Okay. Use what? You're asking something about a one of dmd's source files in
relation to a json file. But your question is poor enough English that I 
don't
understand what you're asking about. It's something to do with dmd's source 
and
json, but I don't know what. I understand that English can be difficult if 
it's
not your native language, but your question still needs to be good enough
English for me to understand it. And it's not. So, you need to reword your
question in a clearer manner. All I understand is that you're trying to do
something with an IDE's auto-completion feature that somehow involves a C 
source
file for dmd and a json file. That's not enough for me to understand what 
your
question really is.

- Jonathan M Davis