www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Dimple 0.1 release

reply zwang <nehzgnaw gmail.com> writes:
Dimple, or "D import-list explorer", extracts import declarations from
D source files and builds a dependency graph for visualization.
It's written in D and distributed under the terms of GPL.

http://www.shfls.org/w/d/dimple/
Jan 27 2005
next sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
zwang wrote:

 Dimple, or "D import-list explorer", extracts import declarations from
 D source files and builds a dependency graph for visualization.
 It's written in D and distributed under the terms of GPL.
 
 http://www.shfls.org/w/d/dimple/

It doesn't work on Unix, since it uses backslashes:
 			result ~= (c=='.'?'\\':c);				

Then again, it never outputted any errors about it ? (as the printf was commented out, even in -debug...) --anders
Jan 27 2005
parent reply zwang <nehzgnaw gmail.com> writes:
Anders F Björklund wrote:
 zwang wrote:
 
 Dimple, or "D import-list explorer", extracts import declarations from
 D source files and builds a dependency graph for visualization.
 It's written in D and distributed under the terms of GPL.

 http://www.shfls.org/w/d/dimple/

It doesn't work on Unix, since it uses backslashes:
             result ~= (c=='.'?'\\':c);               

Then again, it never outputted any errors about it ? (as the printf was commented out, even in -debug...) --anders

Thanks. I've fixed the bug.
Jan 27 2005
parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
zwang wrote:

 Thanks. I've fixed the bug.

Here's another one for you then:
 error : Switch Default dimple.d(56)

It's missing a case for STATE.sqescape, I just added an empty one with a break; Also, it doesn't find the standard includes ? I just added "std" and "gcc" as symlinks, but... Seems to work quite OK in the end, though: :-) http://www.algonet.se/~afb/d/dimple-mango.png Neat toy! --anders
Jan 27 2005
next sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
I wrote, a little too soon:

 Seems to work quite OK in the end, though: :-)
 http://www.algonet.se/~afb/d/dimple-mango.png

I mean: it does draw a graph. Unfortunately it seems to miss all imports separated by commas...
 import  mango.http.server.model.IProvider,
         mango.http.server.model.IProviderBridge;

It just gets ones done on single lines:
 import  mango.http.client.HttpClient;

--anders
Jan 27 2005
parent zwang <nehzgnaw gmail.com> writes:
Anders F Björklund wrote:
 I wrote, a little too soon:
 
 Seems to work quite OK in the end, though: :-)
 http://www.algonet.se/~afb/d/dimple-mango.png

I mean: it does draw a graph. Unfortunately it seems to miss all imports separated by commas...
 import  mango.http.server.model.IProvider,
         mango.http.server.model.IProviderBridge;

It just gets ones done on single lines:
 import  mango.http.client.HttpClient;

--anders

Ah yes, I overlooked the grammar... It's now fixed in dimple 0.12 :)
Jan 27 2005
prev sibling next sibling parent zwang <nehzgnaw gmail.com> writes:
Anders F Björklund wrote:
 zwang wrote:
 
 Thanks. I've fixed the bug.

Here's another one for you then:
 error : Switch Default dimple.d(56)

It's missing a case for STATE.sqescape, I just added an empty one with a break; Also, it doesn't find the standard includes ? I just added "std" and "gcc" as symlinks, but... Seems to work quite OK in the end, though: :-) http://www.algonet.se/~afb/d/dimple-mango.png Neat toy! --anders

That bug was already fixed in 0.11 :-) And yes, it discards standard includes.
Jan 27 2005
prev sibling parent reply Norbert Nemec <Norbert Nemec-online.de> writes:
Anders F Björklund wrote:

 Seems to work quite OK in the end, though: :-)
 http://www.algonet.se/~afb/d/dimple-mango.png

Even if you don't consider the missing dependencies: why is std.array red? I cannot see any circular references involving it?
 Neat toy!

I can only agree!
Jan 27 2005
parent zwang <nehzgnaw gmail.com> writes:
Norbert Nemec wrote:
 Anders F Björklund wrote:
 
 
Seems to work quite OK in the end, though: :-)
http://www.algonet.se/~afb/d/dimple-mango.png

Even if you don't consider the missing dependencies: why is std.array red? I cannot see any circular references involving it?
Neat toy!

I can only agree!

Thanks for pointing out the bug. It's now fixed in Dimple 0.13 :-)
Jan 27 2005
prev sibling next sibling parent "Thomas Kuehne" <eisvogel users.sourceforge.net> writes:
zwang schrieb in news:ctalqo$1rcg$1 digitaldaemon.com :
 Dimple, or "D import-list explorer", extracts import declarations from
 D source files and builds a dependency graph for visualization.
 It's written in D and distributed under the terms of GPL.

 http://www.shfls.org/w/d/dimple/

Just one word: Sweet ! Thomas
Jan 27 2005
prev sibling next sibling parent reply pragma <pragma_member pathlink.com> writes:
In article <ctalqo$1rcg$1 digitaldaemon.com>, zwang says...
Dimple, or "D import-list explorer", extracts import declarations from
D source files and builds a dependency graph for visualization.
It's written in D and distributed under the terms of GPL.

http://www.shfls.org/w/d/dimple/

By "graph" I was not aware that you meant "actual pictures" (PNG files no less) as opposed to some ascii rendering or a report. Wow. I haven't tried this yet, but the page says it all. I wonder what Mango looks like after you run this thing? - EricAnderton at yahoo
Jan 27 2005
parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
pragma wrote:

 I wonder what Mango looks like after you run this thing?

Pasta :-) http://www.algonet.se/~afb/d/dimple-mango3.png --anders
Jan 27 2005
next sibling parent John Reimer <brk_6502 yahoo.com> writes:
On Thu, 27 Jan 2005 19:28:51 +0100, Anders F Björklund wrote:

 pragma wrote:
 
 I wonder what Mango looks like after you run this thing?

Pasta :-) http://www.algonet.se/~afb/d/dimple-mango3.png --anders

LOL! Don't show Kris that one! :-D
Jan 27 2005
prev sibling next sibling parent reply Paul Bonser <misterpib gmail.com> writes:
Anders F Björklund wrote:
 pragma wrote:
 
 I wonder what Mango looks like after you run this thing?

Pasta :-) http://www.algonet.se/~afb/d/dimple-mango3.png --anders

I only have one question after that...what's a PickleWriter??? -- -PIB -- "C++ also supports the notion of *friends*: cooperative classes that are permitted to see each other's private parts." - Grady Booch
Jan 28 2005
parent Brad Anderson <brad dsource.dot.org> writes:
A PickleWriter is Mango's version of serializing objects to string so 
they may be written out to disk or other persistent store.  He probably 
was inspired by Python:

http://docs.python.org/tut/node9.html#SECTION009220000000000000000

BA


Paul Bonser wrote:
 Anders F Björklund wrote:
 
 pragma wrote:

 I wonder what Mango looks like after you run this thing?

Pasta :-) http://www.algonet.se/~afb/d/dimple-mango3.png --anders

I only have one question after that...what's a PickleWriter???

Jan 28 2005
prev sibling parent "huang yicheng" <zergbird msn.com> writes:
so I think console version may be enough and ....better.


"Anders F Björklund" <afb algonet.se> wrote in message
news:ctbbt3$2qfr$1 digitaldaemon.com...
 pragma wrote:

 I wonder what Mango looks like after you run this thing?

Pasta :-) http://www.algonet.se/~afb/d/dimple-mango3.png --anders

Jan 30 2005
prev sibling next sibling parent Lars Ivar Igesund <larsivar igesund.net> writes:
Looks really nice!

Anyway; I don't know what goals you have with this app, but it do much 
the same as my ddepcheck
(www.igesund.net/larsivar/ddepcheck.d)
except for the graphics part. ddepcheck finds the dependencies of one 
file, usually only one or two levels if private imports are used. It is 
meant to be used in make like environments where it is nice to know the 
dependencies (for knowing what to rebuild), although the speed of the D 
compiler makes it somewhat superflous. It is a part of A-A-P and is used 
by default there. As for code quality, Dimple looks really clean! 
ddepcheck's code isn't to bad to follow, but I guess it is a horrible 
way to parse source files.

Lars Ivar Igesund

zwang wrote:
 Dimple, or "D import-list explorer", extracts import declarations from
 D source files and builds a dependency graph for visualization.
 It's written in D and distributed under the terms of GPL.
 
 http://www.shfls.org/w/d/dimple/

Jan 27 2005
prev sibling parent "Charles" <no email.com> writes:
Cool name!

"zwang" <nehzgnaw gmail.com> wrote in message
news:ctalqo$1rcg$1 digitaldaemon.com...
 Dimple, or "D import-list explorer", extracts import declarations from
 D source files and builds a dependency graph for visualization.
 It's written in D and distributed under the terms of GPL.

 http://www.shfls.org/w/d/dimple/

Jan 27 2005