August 22, 2002
Pavel Minayev wrote:
> On Wed, 21 Aug 2002 16:23:54 -0700 Burton Radons <loth@users.sourceforge.net> wrote:
> 
> 
>>Ack.  Fixed an important bug in code generation and updated the archive. 
>>  Precision is much improved, and it won't randomly decide you really 
>>want your numbers in hendecamal instead of boring old decimal.
>>
>>To make it not seem a complete bugfix, I added stuff that shoulda been there in the first place.  You can print out arrays:
>>
>>    int [] x = [1, 2, 3, 4, 5];
>>
>>    fmt ("%s", x);
>>
>>This results in the string "[1, 2, 3, 4, 5]".  I've put in support for 
> 
> 
> Walter, I really hope this will be added to the official D specification!

There isn't a tostring method for arrays already?

August 22, 2002
On Thu, 22 Aug 2002 00:01:11 -0700 Jonathan Andrew <jon@ece.arizona.edu> wrote:

> There isn't a tostring method for arrays already?

Couldn't find it in the docs.
August 23, 2002
Pavel Minayev wrote:

> On Wed, 21 Aug 2002 16:23:54 -0700 Burton Radons <loth@users.sourceforge.net> wrote:
> 
> 
>>Ack.  Fixed an important bug in code generation and updated the archive. 
>>  Precision is much improved, and it won't randomly decide you really 
>>want your numbers in hendecamal instead of boring old decimal.
>>
>>To make it not seem a complete bugfix, I added stuff that shoulda been there in the first place.  You can print out arrays:
>>
>>    int [] x = [1, 2, 3, 4, 5];
>>
>>    fmt ("%s", x);
>>
>>This results in the string "[1, 2, 3, 4, 5]".  I've put in support for 
> 
> Walter, I really hope this will be added to the official D specification!

The generic-list varargs took just a couple dozen lines of code to support.  Printing lists, of course, takes full introspection, not the variety Walter does (which is just referring to one of a set of classes in Phobos), and that's been about a thousand lines so far.  But straightforward to write, and always based on actual functionality.

It's been great to have generic-list varargs around, and it obsoletes some bloody ugly functions in Phobos.  Plus, being able to %s anything fits better in templating.

I'm mixing this in with a new version announcement:

http://www.opend.org/dli/arc/dli-0.1.0.tar.gz

v0.1.0: Cleaning day!  Got rid of the spectre of backend past.  Also put in proportional overallocation of lists; bugs are bound to be bountiful, and it could detect far more situations where ownership is passed. Added bignum as an integral type.  I needed it for cent/ucent anyway, and a compiler can do a bloody lot for them.

Also got rid of the print method of object, as it was interfering with the print function, which I think is more useful, and just five bytes longer.  Added println.  Recursion in formatting is now handled, thread unsafe-wise.  If a recursion is attempted, "..." is substituted.

One trick that'll get lost in the shuffle is that fmt can take an extra parameter; you can change the start code.  By default it is "%", but you can specify whatever you want, which is handy for situations like AT&T machine code where "%" is very common:

    fmt ("@", "@s", 45);

Another thing that isn't really mentioned anywhere is that fmt doesn't handle formatting.  This is passed off to the TypeInfo.  If it's a class reference, it's handed to the toFormat method, which is passed the full format specifier that contains all the flags and whatnot.  So not only can your class do spiff formatting, but you can invent new formatting codes; just handle them in that method.  If this new code is passed to another type, it'll just treat it like %s.

August 23, 2002
On Thu, 22 Aug 2002 17:58:51 -0700 Burton Radons <loth@users.sourceforge.net> wrote:

> The generic-list varargs took just a couple dozen lines of code to support.  Printing lists, of course, takes full introspection, not the variety Walter does (which is just referring to one of a set of classes in Phobos), and that's been about a thousand lines so far.  But straightforward to write, and always based on actual functionality.

I wonder if your printing code could be included into "official" Phobos...
what license
do you distribute your compiler under?

August 24, 2002
Pavel Minayev wrote:

> On Thu, 22 Aug 2002 17:58:51 -0700 Burton Radons <loth@users.sourceforge.net> wrote:
> 
> 
>>The generic-list varargs took just a couple dozen lines of code to support.  Printing lists, of course, takes full introspection, not the variety Walter does (which is just referring to one of a set of classes in Phobos), and that's been about a thousand lines so far.  But straightforward to write, and always based on actual functionality.
> 
> I wonder if your printing code could be included into "official" Phobos... what license
> do you distribute your compiler under?

Artistic would likely be least confusing.

August 26, 2002
It would be good if a command line option could be added early on -noX or something for no Experimental, the thought being that when compiled as such the code should work in both the DMD and dli compiler.

-Andy

Burton Radons wrote:
> Pavel Minayev wrote:
> 
>> On Wed, 21 Aug 2002 16:23:54 -0700 Burton Radons <loth@users.sourceforge.net> wrote:
>>
>>
>>> Ack.  Fixed an important bug in code generation and updated the archive.  Precision is much improved, and it won't randomly decide you really want your numbers in hendecamal instead of boring old decimal.
>>>
>>> To make it not seem a complete bugfix, I added stuff that shoulda been there in the first place.  You can print out arrays:
>>>
>>>    int [] x = [1, 2, 3, 4, 5];
>>>
>>>    fmt ("%s", x);
>>>
>>> This results in the string "[1, 2, 3, 4, 5]".  I've put in support for 
>>
>>
>> Walter, I really hope this will be added to the official D specification!
> 
> 
> The generic-list varargs took just a couple dozen lines of code to support.  Printing lists, of course, takes full introspection, not the variety Walter does (which is just referring to one of a set of classes in Phobos), and that's been about a thousand lines so far.  But straightforward to write, and always based on actual functionality.
> 
> It's been great to have generic-list varargs around, and it obsoletes some bloody ugly functions in Phobos.  Plus, being able to %s anything fits better in templating.
> 
> I'm mixing this in with a new version announcement:
> 
> http://www.opend.org/dli/arc/dli-0.1.0.tar.gz
> 
> v0.1.0: Cleaning day!  Got rid of the spectre of backend past.  Also put in proportional overallocation of lists; bugs are bound to be bountiful, and it could detect far more situations where ownership is passed. Added bignum as an integral type.  I needed it for cent/ucent anyway, and a compiler can do a bloody lot for them.
> 
> Also got rid of the print method of object, as it was interfering with the print function, which I think is more useful, and just five bytes longer.  Added println.  Recursion in formatting is now handled, thread unsafe-wise.  If a recursion is attempted, "..." is substituted.
> 
> One trick that'll get lost in the shuffle is that fmt can take an extra parameter; you can change the start code.  By default it is "%", but you can specify whatever you want, which is handy for situations like AT&T machine code where "%" is very common:
> 
>     fmt ("@", "@s", 45);
> 
> Another thing that isn't really mentioned anywhere is that fmt doesn't handle formatting.  This is passed off to the TypeInfo.  If it's a class reference, it's handed to the toFormat method, which is passed the full format specifier that contains all the flags and whatnot.  So not only can your class do spiff formatting, but you can invent new formatting codes; just handle them in that method.  If this new code is passed to another type, it'll just treat it like %s.
> 


August 28, 2002
http://www.opend.org/dli/arc/dli-0.1.1.tar.gz

v0.1.1: I said that I put in bignum in 0.1.0; that was a filthy lie. But it's in now, and actually has a small test suite.  I'll be adding test suites for the other types.

Multithreading is also in.  Synchronized doesn't yet work and it will throw up on practically every method call.  I didn't want to address exceptions and a fuller GC until this was in.

November 02, 2002
Version 0.1.2:

http://www.opend.org/dli/DLinux.html
http://www.opend.org/dli/arc/dli-0.1.2.tar.gz

Mostly bug fixes for Russ, but properties are now in.  The full bug fix list:

- Having a test condition on a void type now gives a proper error.

- Command-line arguments are properly handled.

- Manually flush the stream before core-dumping.

- TypeStruct.tsize wasn't implemented, also .equals.

- DLI object files are now compiled with their full path name to give proper debug errors.

- Linker mode is now in.  "-o output" explicitly gives an output file; otherwise the first module name is used.  If you output a shared library, it automatically adds "-shared".  "-llibrary" also works, and "-nophobos" skips including the Phobos library if it's not searched properly.  It cleans up object files too.

- Doesn't generate assembly files by default any more.  You can generate them with "-S"; note that this doesn't halt running like in GCC.

- "a in b" for arrays.

November 03, 2002
Burton Radons wrote:

> Version 0.1.2:
>
> http://www.opend.org/dli/DLinux.html http://www.opend.org/dli/arc/dli-0.1.2.tar.gz
>
> Mostly bug fixes for Russ, but properties are now in.  The full bug fix list:

Nice to be known for something :)

--
The Villagers are Online! http://villagersonline.com

.[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
.[ (a version.of(English).(precise.more)) is(possible) ]
?[ you want.to(help(develop(it))) ]


1 2 3
Next ›   Last »