I think there is no much activity there..I am new in D language and searching
for fellow to share experience..I am a french telecom engineer from NextiraOne
--- In d_lab@yahoogroups.com, "Mariano" <rotoshi@...> wrote:
>
> --- In d_lab@yahoogroups.com, "J C Calvarese" <technocrat7@> wrote:
>
> > Thanks for bringing this to my attention.
> No problem.
> BTW, I'm working in some little things not worthy of an entry in
> dsource, such as a command line parameter function, but since I'm new
> to D I would like to get some feedback to avoid re-inventing the
> wheel or doing silly/unefficient things.
>
> I posted that function at Wiki4D (http://www.prowiki.org/wiki4d/
> wiki.cgi?MarianoCecowski/CommandLineArguments), but perhaps it's not
> the best place to do this.
If you're worried that someone will mind that you've posted code
there, it's fine. Everyone has permission to post code on Wiki4D.
If you're worried that someone who could benefit from the code
wouldn't know that it exists, that's valid concern. And I don't know
what to do about it. There's a lot of D code out there that people
don't seem to know about. You could certainly draw attention to your
code by posting in the announcements newsgroup
(news://news.digitalmars.com/digitalmars.D.announce, web interface:
http://www.digitalmars.com/pnews/indexing.php?server=news.digitalmars.com&group=\
digitalmars.D.announce).
In theory, the tutorials project at dsource
(http://www.dsource.org/projects/tutorials/wiki) would be a good place
to donate stand-alone modules (as well as example code), but sometime
I feel like I'm the only one who uses it. (I don't just add examples,
I also use the example to help myself remember how to do things in D.)
Some other people donated some example when the tutorials were stored
in a database and manipulated with a custom PHP-driven webpage. But
with the new wiki system, I think I'm the only person who has added
any examples (though I have had more help editing the examples than I
had with the PHP-regime).
In short (I'll stop rambling), feel free to add modules as pages in
the tutorial wiki or as pages in Wiki4D. If you want to get more
people to see what you've done, you'd probably need to tell people
about it in the digitalmars.D.announcements newsgroup.
By the way, your CommandLineArguments code looked useful to me (I just
glanced at it). I think it's the kind of thing that could be helpful
to me in some of my little projects. I think I've seen something with
a similar purpose, but it was quite a while ago and that project might
have been abandoned. :)
--- In d_lab@yahoogroups.com, "J C Calvarese" <technocrat7@...> wrote:
> Thanks for bringing this to my attention.
No problem.
BTW, I'm working in some little things not worthy of an entry in
dsource, such as a command line parameter function, but since I'm new
to D I would like to get some feedback to avoid re-inventing the
wheel or doing silly/unefficient things.
I posted that function at Wiki4D (http://www.prowiki.org/wiki4d/
wiki.cgi?MarianoCecowski/CommandLineArguments), but perhaps it's not
the best place to do this.
Thanks,
Mariano
--- In d_lab@yahoogroups.com, "Mariano" <rotoshi@...> wrote:
>
> I was cheking some examples at http://jcc_7.tripod.com/d/tutor/ by
> jccalvarese, and saw that that in the currency example he doesn't
> make use of the parameter's default values (probably not yet
> implemented in D by that time).
>
> The first 3 functions could be expressed with only one:
>
> char[] toStringFromDouble(double i, int decPlaces=2, char[] sep=".")
> {
> int whole;
> .
> .
> .
>
>
> Mariano.
Thanks for bringing this to my attention.
I looked at this example
(http://jcc_7.tripod.com/d/tutor/currency.html) and you're exactly
right that using default
values is a much more elegant means of a solution. In fact, many
aspects of D have changed/improved since I wrote this example. For
instance, toString didn't use to handle doubles (thus the whole
toStringFromDouble function is obsolete and broken).
I'm phasing out that particular website (the pop-ups are really
driving me crazy), so I don't know if I'll update the code there, but
my newer tutorial efforts are hosted by dsource, such as this newly
updated version of the currency example:
http://www.dsource.org/projects/tutorials/wiki/CurrencyExample
(I guess I need to either add links to the new versions of the
examples on my tripod site or remove them completely.)
I was cheking some examples at http://jcc_7.tripod.com/d/tutor/ by
jccalvarese, and saw that that in the currency example he doesn't
make use of the parameter's default values (probably not yet
implemented in D by that time).
The first 3 functions could be expressed with only one:
char[] toStringFromDouble(double i, int decPlaces=2, char[] sep=".")
{
int whole;
.
.
.
Mariano.
--- In d_lab@yahoogroups.com, "klassasin" <klassasin@...> wrote:
>
> I just got an "updated" version of digc from smock.com. The only
> problem is that I can't get it to compile. I get these problems:
>
> Source\autodoc.d(584): found 'scope' when expecting ')'
> Source\autodoc.d(584): semicolon expected following function declaration
> Source\autodoc.d(584): Declaration expected, not ','
> Source\autodoc.d(587): Declaration expected, not 'if'
> Source\autodoc.d(590): no identifier for declarator index
> Source\autodoc.d(591): Declaration expected, not 'return'
> Source\autodoc.d(592): Declaration expected, not ')'
> Source\autodoc.d(595): Declaration expected, not 'return'
> Source\autodoc.d(596): unrecognized declaration
I haven't looked at the smock.com code (at least not recently), but I
think I know what the problem is. Fairly recently, "scope" was made a
keyword in D. It sounds like the code uses scope as a variable
identifier. So just use search-and-replace to change "scope" to
something legal like "scopeVar" and it should work (or at least the
compile process will go farther).
By the way, I don't know your purpose in using DigC, but you might
find that Build (http://www.dsource.org/projects/build) will serve
your purposes. DigC was released earlier, but Build is being actively
maintained and Build can do much of what DigC and do and many things
that it can't do.
I just got an "updated" version of digc from smock.com. The only
problem is that I can't get it to compile. I get these problems:
Source\autodoc.d(584): found 'scope' when expecting ')'
Source\autodoc.d(584): semicolon expected following function declaration
Source\autodoc.d(584): Declaration expected, not ','
Source\autodoc.d(587): Declaration expected, not 'if'
Source\autodoc.d(590): no identifier for declarator index
Source\autodoc.d(591): Declaration expected, not 'return'
Source\autodoc.d(592): Declaration expected, not ')'
Source\autodoc.d(595): Declaration expected, not 'return'
Source\autodoc.d(596): unrecognized declaration
I'd like one, please.
Cheers
Matthew
>From: "J C Calvarese" <technocrat7@...>
>Reply-To: d_lab@yahoogroups.com
>To: d_lab@yahoogroups.com
>Subject: [d_lab] [OT] Anyone want a gmail invite?
>Date: Sun, 20 Mar 2005 06:20:51 -0000
>
>
>***Brief commercial interruption for great free webmail offer***
>
>I've got some gmail invites. Does anyone want a free 1 GB web-mail
>account?
>
>If so, send a request to
>technocrat7 [at-sign] gmail.com
>
>The first 50 applicants win. ;)
>
>I've been using my gmail account for a few weeks, and it seems to work
>really well. Most of the spammers haven't even tracked me down yet.
>
>Justin
>
>***Now we return to our previously scheduled program***
>
>
>
***Brief commercial interruption for great free webmail offer***
I've got some gmail invites. Does anyone want a free 1 GB web-mail
account?
If so, send a request to
technocrat7 [at-sign] gmail.com
The first 50 applicants win. ;)
I've been using my gmail account for a few weeks, and it seems to work
really well. Most of the spammers haven't even tracked me down yet.
Justin
***Now we return to our previously scheduled program***
Ok, i have looked at the project and now i know where your impression
of a memory leak comes from. It is from the implementation of
Vector3f, which allocates and returns a new vector at every operation.
It is a very small amount, but then the memory usage grows very slowly
as well.
For performance reasons, the old vectors not any longer in use are not
being deleted. Depending on how much free memory the computer has, the
memory usage of a program will grow for a while, then stop at a
certain point. This is normal for current implementation. It is *not*
a memory leak.
I would argue that Vector3f should be made a struct.
I haven't investigated yet why the program crashes at exit, i'm up to
it yet. I'll rewrite the initialization and tell you then.
-eye
--- In d_lab@yahoogroups.com, gpineda2013 <no_reply@y...> wrote:
> Is there anyone here that might want to take a look at my project,
a
> pong game using sdl + opengl and help me out figure where the heck
is
> that leak? I cant seem to find it, plus when I try to end my
program
> sdl_quit seems to make it crash, and I suspect its because this
> memory leak.
Memory leak? Why do you think it's a memory leak? The GC might look as
if it was leaking memory for a while, and clean up later. Besides,
even released memory is not released back to the operating system at
present, it is just being made available for later allocations.
I think it would be a good practice for me to take a look and find the
bug. However, i don't see how it could be a memory leak. Either you
fail to initailize something properly, or you have a *resource* leak,
or you have a dangling pointer.
-eye/photoallergics
Is there anyone here that might want to take a look at my project, a
pong game using sdl + opengl and help me out figure where the heck is
that leak? I cant seem to find it, plus when I try to end my program
sdl_quit seems to make it crash, and I suspect its because this
memory leak.
Oh good, the spammers have spotted us. Everyone, run!!
>From: "jprohofd4" <jprohofd4@...>
>Reply-To: d_lab@yahoogroups.com
>To: d_lab@yahoogroups.com
>Subject: [d_lab] my bills are gone!
>Date: Sat, 05 Jun 2004 02:09:44 -0000
>
>hey hey, just thought id tell you guys about this free debt consolidation
>site that reduced my monthly payments by damn near half, no more worries
>about bills!
>
>http://debtppkkgnqzdm.allhere.com
>
>I posted this on d_lab, if you dont want to be a member anymore just email
>d_lab-unsubscribe@yahoogroups.com
>
_________________________________________________________________
Getting married? Find great tips, tools and the latest trends at MSN Life
Events. http://lifeevents.msn.com/category.aspx?cid=married
I've updated Burton Radon's urllib to compile with DMD 0.88. It's in
the Files section in the new urllib directory.
As far I know Burton's work wasn't released with a version number, so
I'm going to call my release urllib 0.0.2. I've also included a simple
test of downloading a web page from a website in the package.
JC
I just fixed Burton Radon's sqlite library to compile with DMD 0.88.
Burton's work is still available at
http://www.opend.org/sqlite/index.html.
I uploaded my update to the Files section under the new "sqlite"
folder.
Sqlite (www.sqlite.org) is basically a database in a .dll. It's source
is in the public domain. The library I've uploaded requires the
included .dll (216 KB). It was designed for Windows, but I'm
optimistic that it wouldn't take many changes to work on other
platforms.
Carlos wrote:
> --- In d_lab@yahoogroups.com, anderson <anderson@b...> wrote:
> > Carlos wrote:
> >
> > > 1. could you replace net\BurtonRadons\digc\program.d:200 with
> > > command ~= " -I" ~ digPlatformBaseDirectory ~ r"\dmd\src";
> >
> >
> > Done.
> >
>
> Great.
>
> > >
> > > 2. could you add "make debug" to the makefile
> > >
> > > thanks
> > >
> > I not quite sure how to do this without doubling the size of the
> make
> > file. I've added a PARAMS in the makefile which you can modify if
> you
> > wish to -debug -v. You could send me the makefile with the debug
> in it.
> >
>
> I took an easier path (although a bit dumb ;) ): I added -g to
> DIGLIBS (that's the name, right?).
I guess you mean DIG_LIBRARIES. Partly wrong as it wouldn't account for
all compilation cases.
--
-Anderson: http://badmama.com.au/~anderson/
--- In d_lab@yahoogroups.com, anderson <anderson@b...> wrote:
> Carlos wrote:
>
> > 1. could you replace net\BurtonRadons\digc\program.d:200 with
> > command ~= " -I" ~ digPlatformBaseDirectory ~ r"\dmd\src";
>
>
> Done.
>
Great.
> >
> > 2. could you add "make debug" to the makefile
> >
> > thanks
> >
> I not quite sure how to do this without doubling the size of the
make
> file. I've added a PARAMS in the makefile which you can modify if
you
> wish to -debug -v. You could send me the makefile with the debug
in it.
>
I took an easier path (although a bit dumb ;) ): I added -g to
DIGLIBS (that's the name, right?).
> Also I've requested that you and JC be added to a new dsource
undig
> group, so you should be able to make these changes yourself when
things
> are setup.
>
Yes, I noticed. Thanks.
> Thanks.
>
> --
> -Anderson: http://badmama.com.au/~anderson/
Carlos wrote:
> 1. could you replace net\BurtonRadons\digc\program.d:200 with
> command ~= " -I" ~ digPlatformBaseDirectory ~ r"\dmd\src";
Done.
>
> 2. could you add "make debug" to the makefile
>
> thanks
>
I not quite sure how to do this without doubling the size of the make
file. I've added a PARAMS in the makefile which you can modify if you
wish to -debug -v. You could send me the makefile with the debug in it.
Also I've requested that you and JC be added to a new dsource undig
group, so you should be able to make these changes yourself when things
are setup.
Thanks.
--
-Anderson: http://badmama.com.au/~anderson/
1. could you replace net\BurtonRadons\digc\program.d:200 with
command ~= " -I" ~ digPlatformBaseDirectory ~ r"\dmd\src";
2. could you add "make debug" to the makefile
thanks
-Fixed scintilla message passing (events) by adding a dispatcher onNotify.
You should note, that I'm using the minor version number for minor
changes. Burton obviously used the version number for major changes
(well parhaps he didn't think them major).
--
-Anderson: http://badmama.com.au/~anderson/
-Added showModalGame which is more suitable for computer games because
it gives more of the cpu to the app. It also has two new events, onIdle
and onFrame.
-You can turn of the auto garbage collection dig provides with useAutoGC.
--
-Anderson: http://badmama.com.au/~anderson/
J C Calvarese wrote:
> I downloaded unDig 0.0.0.15. I'll see if I can compile it later.
>
> I've been working a little on fixing the problem with strip.d. I've
> identified a couple of trouble spots and I think I've fixed one of
> them, but I'd like to fix as much as I can before I submit the patch.
>
> I think the problem came from when Walter changed '' from being a
> WYSIWYG string to a character literal. That would also affect `` and
> r"" which are now WYSIWYG strings. I think that r"" will be the
> toughest, so I'm saving that for last.
>
> JC
Good news. Thanks for doing this. I would like to see dig back to it's
former glory.
--
-Anderson: http://badmama.com.au/~anderson/
--- In d_lab@yahoogroups.com, anderson <anderson@b...> wrote:
> Updated dig with Pavels openGL as Burtons openGL seems to be
missing
> things. However if openGL anything causes a linking error it may
need
> to be added to opengl32.def.
>
> --
> -Anderson: http://badmama.com.au/~anderson/
I downloaded unDig 0.0.0.15. I'll see if I can compile it later.
I've been working a little on fixing the problem with strip.d. I've
identified a couple of trouble spots and I think I've fixed one of
them, but I'd like to fix as much as I can before I submit the patch.
I think the problem came from when Walter changed '' from being a
WYSIWYG string to a character literal. That would also affect `` and
r"" which are now WYSIWYG strings. I think that r"" will be the
toughest, so I'm saving that for last.
JC
Updated dig with Pavels openGL as Burtons openGL seems to be missing
things. However if openGL anything causes a linking error it may need
to be added to opengl32.def.
--
-Anderson: http://badmama.com.au/~anderson/
Anyone used digc to create DLL's ? Im having some trouble, the
omfListExports seems to work great except for including class defintions.
Example
foo.d
class Foo {
void doCrap();
}
will output the define file
LIBRARY FX
DESCRIPTION "Shared library created by digc"
EXETYPE NT
CODE PRELOAD DISCARDABLE
DATA PRELOAD SINGLE
EXPORTS
D2FX3Foo5_ctorFZC2FX3Foo
D2FX3Foo6doCrapFZv
When trying to link I get the error
foo.obj(foo)
Error 42: Symbol Undefined __Class_2FX3Foo
Adding more classes it seems to always skip these defintions. Burton if you
read this , how can I get digc to add these ? I know crap about OMF format
, please help!
Thanks.
Charlie
>From: Phill Thorpe <phillbert168@...>
>Reply-To: d_lab@yahoogroups.com
>To: d_lab@yahoogroups.com
>Subject: Re: [d_lab] To burton if your there
>Date: Fri, 26 Mar 2004 14:02:54 -0800 (PST)
>
>
>--- anderson <anderson@...> wrote:
> > Phill Thorpe wrote:
> >
> > >
> > > Thats a great idea!
> > >
> > > Is it possible to somehow correspond the version
> > > number with dmd, so that we know which dmd it
> > > is compatible with?
> > >
> > >
> > > Phill.
> > >
> > I guess so, but it would make it a mighty long
> > number. I normally update
> > the numbers on my webpage. And normally dig works
> > for a few versions of
> > DMD before it stops working. I think Walter spends
> > a few cycles bug
> > fixing and then adding new stuff, in a
> > non-deterministic order.
> >
>
>Ok, just thought I would suggest it.
>It doesnt really matter anyway I suppose, because
>i've noticed that you always mention the corresponding
>dmd anyway.
>
>I can tell you if it werent for DIDE and you guys
>keeping Dig up to date, I probably would have lost
>all interest in D.
>
>Keep up the good work, it is appreciated!
>
>Phill.
>
>
> > -Anderson: http://badmama.com.au/~anderson/
> >
> >
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Finance Tax Center - File online. File on time.
>http://taxes.yahoo.com/filing.html
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--- anderson <anderson@...> wrote:
> Phill Thorpe wrote:
>
> >
> > Thats a great idea!
> >
> > Is it possible to somehow correspond the version
> > number with dmd, so that we know which dmd it
> > is compatible with?
> >
> >
> > Phill.
> >
> I guess so, but it would make it a mighty long
> number. I normally update
> the numbers on my webpage. And normally dig works
> for a few versions of
> DMD before it stops working. I think Walter spends
> a few cycles bug
> fixing and then adding new stuff, in a
> non-deterministic order.
>
Ok, just thought I would suggest it.
It doesnt really matter anyway I suppose, because
i've noticed that you always mention the corresponding
dmd anyway.
I can tell you if it werent for DIDE and you guys
keeping Dig up to date, I probably would have lost
all interest in D.
Keep up the good work, it is appreciated!
Phill.
> -Anderson: http://badmama.com.au/~anderson/
>
>
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
Phill Thorpe wrote:
>
> Thats a great idea!
>
> Is it possible to somehow correspond the version
> number with dmd, so that we know which dmd it
> is compatible with?
>
>
> Phill.
>
I guess so, but it would make it a mighty long number. I normally update
the numbers on my webpage. And normally dig works for a few versions of
DMD before it stops working. I think Walter spends a few cycles bug
fixing and then adding new stuff, in a non-deterministic order.
--
-Anderson: http://badmama.com.au/~anderson/
--- anderson <anderson@...> wrote:
> I'd like permission to somehow version number the
> dig files. Parhaps
> dig could be renamed to digx for this reason so if
> you decide to
> continue with dig the two files would have their own
> threads.
>
> --
> -Anderson: http://badmama.com.au/~anderson/
>
>
Thats a great idea!
Is it possible to somehow correspond the version
number with dmd, so that we know which dmd it
is compatible with?
Phill.
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
J C Calvarese wrote:
> Alternatively, you could rename it dlab_dig, dig_ja, etc. and start
> the numbering over at 0.0.1.
That's what I was thinking but start from 0.0.14.1 I think if I start
back at 0.0.1 it'll be to confusing (and the purpose is to not be
confusing).
If you get the stripping working, let's call it diglab 0.0.14.1 or undig
0.0.15 (unofficial dig). If you do manage to reduce the error to a
smaller test case and still can't figure it out, send me the test case
if you wish so I can help out.
Really I don't know why Burton has the version number so small, dig's
pretty complete, at least half way though I'd say.
--
-Anderson: http://badmama.com.au/~anderson/
--- In d_lab@yahoogroups.com, anderson <anderson@b...> wrote:
> Dig has been broken due to the new float casting rules. ...
It's too bad that dig breaks with every other release of DMD. I
usually agree with Walter's changes, but I can't wait for DMD 1.0.
[snip]
> The problem is that there is no line number. I assume the error is
in
> the math library.
Wow, that must be really hard to fix.
>
> Any help would be appreciated.
>
> The binaries still work.
>
> PS - I've taken out the libs and dll's to reduce the size.
I appreciate your efforts to decrease the size, but in the future it
would be better if you could upload large files (such as over 100kb)
to the Files section or your own website if you prefer.
Some people have e-mail accounts with a small amount of storage. For
example, my Hotmail account only has 2 megabytes. With a 430kb file,
that'd be over 20% of the capacity of the account with one message.
Also, only people subscribed to e-mail messages can access attached
files (they're not available from the website). In this case of a
snapshot of troublesome code, that doesn't really matter, but I think
it might be good to keep this in mind.
By the way, thanks again for sharing your work on dig with us once
again.
JC
>
> --
> -Anderson: http://badmama.com.au/~anderson/