POV-Ray : Newsgroups : povray.off-topic : Interconnected Server Time
14 Oct 2026 10:25:28 EDT (-0400)
  Interconnected (Message 1 to 32 of 32)  
From: Invisible
Subject: Interconnected
Date: 17 Oct 2008 09:13:37
Message: <48f88f81@news.povray.org>
I just sat down and attempted to draw a chart representing all the most 
important topic of the Haskell programming language, and how they relate 
to each other.

Unfortunately, it looks like this:


Post a reply to this message


Attachments:
Download 'haskell1.png' (136 KB)

Preview of image 'haskell1.png'
haskell1.png


 

From: Warp
Subject: Re: Interconnected
Date: 17 Oct 2008 09:28:32
Message: <48f892ff@news.povray.org>
I was wondering how much I could reduce the file size of your PNG if
lossiness is allowed, but without degrading the image quality noticeably.
I was able to reduce your original 138408 bytes png to a 49074 bytes one:


Post a reply to this message


Attachments:
Download 'Haskell1_optimized.png' (48 KB)

Preview of image 'Haskell1_optimized.png'
Haskell1_optimized.png


 

From: Invisible
Subject: Re: Interconnected
Date: 17 Oct 2008 09:32:05
Message: <48f893d5$1@news.povray.org>
Warp wrote:
>   I was wondering how much I could reduce the file size of your PNG if
> lossiness is allowed, but without degrading the image quality noticeably.
> I was able to reduce your original 138408 bytes png to a 49074 bytes one:

Impressive. How did you manage that?


Post a reply to this message

From: Invisible
Subject: Re: Interconnected
Date: 17 Oct 2008 09:39:51
Message: <48f895a7$1@news.povray.org>
Invisible wrote:
> I just sat down and attempted to draw a chart representing all the most 
> important topic of the Haskell programming language, and how they relate 
> to each other.

Of course, the other problem is that you draw something like this, and 
you end up with related concepts which happen to be at opposite ends of 
the chart. (E.g., "Exceptions" should be connected to "I/O".)

But hell, doing this on a computer was way easier than with pen and 
paper! o_O

Looking at this chart, I'm starting to comprehend why teaching Haskell 
is so damned hard. Everything is related to everything else. Where the 
hell would *you* start?!


Post a reply to this message

From: Warp
Subject: Re: Interconnected
Date: 17 Oct 2008 09:55:16
Message: <48f89944@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> Warp wrote:
> >   I was wondering how much I could reduce the file size of your PNG if
> > lossiness is allowed, but without degrading the image quality noticeably.
> > I was able to reduce your original 138408 bytes png to a 49074 bytes one:

> Impressive. How did you manage that?

  Reduced to 8 colors (without dithering) and then ran through optipng and
pngout.

-- 
                                                          - Warp


Post a reply to this message

From: Invisible
Subject: Re: Interconnected
Date: 17 Oct 2008 09:57:46
Message: <48f899da$1@news.povray.org>
>> Impressive. How did you manage that?
> 
>   Reduced to 8 colors (without dithering) and then ran through optipng and
> pngout.

Ah. Yes, I should probably have thought of that myself...


Post a reply to this message

From: scott
Subject: Re: Interconnected
Date: 17 Oct 2008 10:23:44
Message: <48f89ff0@news.povray.org>
>  I was wondering how much I could reduce the file size of your PNG if
> lossiness is allowed, but without degrading the image quality noticeably.
> I was able to reduce your original 138408 bytes png to a 49074 bytes one:

The AA on the diagonal lines certainly looks noticeably worse...


Post a reply to this message

From: Mueen Nawaz
Subject: Re: Interconnected
Date: 17 Oct 2008 10:42:37
Message: <48f8a45d$1@news.povray.org>
Invisible wrote:
> Of course, the other problem is that you draw something like this, and
> you end up with related concepts which happen to be at opposite ends of
> the chart. (E.g., "Exceptions" should be connected to "I/O".)

	Ever consider using Freemind to make such drawings?

-- 
May your screen live long and phosphor.


                    /\  /\               /\  /
                   /  \/  \ u e e n     /  \/  a w a z
                       >>>>>>mue### [at] nawazorg<<<<<<
                                   anl


Post a reply to this message

From: Invisible
Subject: Re: Interconnected
Date: 17 Oct 2008 10:45:31
Message: <48f8a50b$1@news.povray.org>
Mueen Nawaz wrote:

> 	Ever consider using Freemind to make such drawings?

As a matter of fact, that is the exact tool I started with.

Unfortunately, it seems that Freemind is constrained to strictly 
hierachical diagrams only, which is obviously no use at all...


Post a reply to this message

From: Invisible
Subject: Re: Interconnected
Date: 17 Oct 2008 10:48:13
Message: <48f8a5ad@news.povray.org>
And now, colour-coded by priority...

(I just like posting binary attachments really. Heh.)


Post a reply to this message


Attachments:
Download 'haskell2b.png' (65 KB)

Preview of image 'haskell2b.png'
haskell2b.png


 

From: Warp
Subject: Re: Interconnected
Date: 17 Oct 2008 11:41:42
Message: <48f8b236@news.povray.org>
scott <sco### [at] scottcom> wrote:
> >  I was wondering how much I could reduce the file size of your PNG if
> > lossiness is allowed, but without degrading the image quality noticeably.
> > I was able to reduce your original 138408 bytes png to a 49074 bytes one:

> The AA on the diagonal lines certainly looks noticeably worse...

  I don't think it reduces the readability and clarity of the graph in
any way.

-- 
                                                          - Warp


Post a reply to this message

From: Invisible
Subject: Re: Interconnected
Date: 17 Oct 2008 11:49:54
Message: <48f8b422$1@news.povray.org>
You know, the longer I stare at this diagram, the more features and 
concepts I realise I've left out. It's true: when you know a subject 
well, it really becomes very difficult to avoid overlooking things that 
have become completely "obvious" to you...


Post a reply to this message

From: Warp
Subject: Re: Interconnected
Date: 17 Oct 2008 11:54:13
Message: <48f8b525@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> And now, colour-coded by priority...

  If I run it through optipng and pngout, it gets reduced from 66135 bytes
to 61569 bytes losslessly.

  If I reduce it to 64 colors first, it gets reduced to 50843 bytes without
noticeable loss.

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: Interconnected
Date: 17 Oct 2008 11:56:01
Message: <48f8b591@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> You know, the longer I stare at this diagram, the more features and 
> concepts I realise I've left out. It's true: when you know a subject 
> well, it really becomes very difficult to avoid overlooking things that 
> have become completely "obvious" to you...

  And then they say C++ is complicated...

-- 
                                                          - Warp


Post a reply to this message

From: Orchid XP v8
Subject: Re: Interconnected
Date: 17 Oct 2008 13:11:39
Message: <48f8c74b$1@news.povray.org>
Warp wrote:

>   And then they say C++ is complicated...

Perhaps you could try drawing up a similar diagram for C++? I'm sure 
that between integer type modifiers, pointers & references, const & 
volatile, the new operator, implicit conversions, default 
constructors/descructors, templates, the preprocessor, function 
overriding, and everything else C++ has to offer, it'll come out 
similarly tangled. ;-)

The difference, I think, is that in C++ you don't need to know so many 
things to start writing useful code, whereas in Haskell, since 
everything is related to almost everything else, you need to actually 
know quite a lot of stuff all at once before you can "get going".

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: nemesis
Subject: Re: Interconnected
Date: 17 Oct 2008 16:12:44
Message: <48f8f1bc@news.povray.org>
Warp escreveu:
> Invisible <voi### [at] devnull> wrote:
>> Warp wrote:
>>>   I was wondering how much I could reduce the file size of your PNG if
>>> lossiness is allowed, but without degrading the image quality noticeably.
>>> I was able to reduce your original 138408 bytes png to a 49074 bytes one:
> 
>> Impressive. How did you manage that?
> 
>   Reduced to 8 colors (without dithering) and then ran through optipng and
> pngout.
> 

5+ GeekPoints


Post a reply to this message

From: nemesis
Subject: Re: Interconnected
Date: 17 Oct 2008 16:14:24
Message: <48f8f220@news.povray.org>
Invisible escreveu:
> I just sat down and attempted to draw a chart representing all the most 
> important topic of the Haskell programming language, and how they relate 
> to each other.
> 
> Unfortunately, it looks like this:
> 
> ------------------------------------------------------------------------
> 

I'm sure I spotted a WTF somewhere...


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Interconnected
Date: 17 Oct 2008 16:19:34
Message: <48f8f356@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message 
news:48f892ff@news.povray.org...
>  I was wondering how much I could reduce the file size of your PNG if
> lossiness is allowed, but without degrading the image quality noticeably.
> I was able to reduce your original 138408 bytes png to a 49074 bytes one:
>
>

28461 bytes, who does better :p

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message


Attachments:
Download 'Haskell1-2.png' (28 KB)

Preview of image 'Haskell1-2.png'
Haskell1-2.png


 

From: Zeger Knaepen
Subject: Re: Interconnected
Date: 17 Oct 2008 16:41:03
Message: <48f8f85f@news.povray.org>
"Zeger Knaepen" <zeg### [at] povplacecom> wrote in message 
news:48f8f356@news.povray.org...
> "Warp" <war### [at] tagpovrayorg> wrote in message 
> news:48f892ff@news.povray.org...
>>  I was wondering how much I could reduce the file size of your PNG if
>> lossiness is allowed, but without degrading the image quality noticeably.
>> I was able to reduce your original 138408 bytes png to a 49074 bytes one:
>>
>>
>
> 28461 bytes, who does better :p

on second thought, readability isn't as good anymore :)

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Interconnected
Date: 17 Oct 2008 19:41:01
Message: <48f9228c@news.povray.org>
Invisible wrote:
> Warp wrote:
>>   I was wondering how much I could reduce the file size of your PNG if
>> lossiness is allowed, but without degrading the image quality noticeably.
>> I was able to reduce your original 138408 bytes png to a 49074 bytes one:
> 
> Impressive. How did you manage that?

Could get smaller size and of higher resolution.

(compressed SVG :P)


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Interconnected
Date: 17 Oct 2008 19:49:07
Message: <48f92471@news.povray.org>
Invisible wrote:
> But hell, doing this on a computer was way easier than with pen and
> paper! o_O

I started trying to do it with graphviz. It quickly got into a mess. Clearly
it would need manually tweaking some positions and edge weights...


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB) Download 'haskell.png' (35 KB)

Preview of image 'haskell.png'
haskell.png


 

From: Orchid XP v8
Subject: Re: Interconnected
Date: 18 Oct 2008 04:00:38
Message: <48f997a6$1@news.povray.org>
Nicolas Alvarez wrote:

> Could get smaller size and of higher resolution.
> 
> (compressed SVG :P)

Yeah, and editable too.

But VUE won't do that, so.....

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Orchid XP v8
Subject: Re: Interconnected
Date: 18 Oct 2008 04:01:49
Message: <48f997ed$1@news.povray.org>
Nicolas Alvarez wrote:
> Invisible wrote:
>> But hell, doing this on a computer was way easier than with pen and
>> paper! o_O
> 
> I started trying to do it with graphviz. It quickly got into a mess. Clearly
> it would need manually tweaking some positions and edge weights...

Nice... Not a tool I'm familiar with. (I heard somebody rambling about 
it a while back though.)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Orchid XP v8
Subject: Re: Interconnected
Date: 18 Oct 2008 04:02:20
Message: <48f9980c$1@news.povray.org>
nemesis wrote:

> I'm sure I spotted a WTF somewhere...

Perhaps you mean "WHNF"? :-P

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Interconnected
Date: 18 Oct 2008 11:11:33
Message: <48f9fca5@news.povray.org>
Orchid XP v8 wrote:
> Nice... Not a tool I'm familiar with.

Well, as you can see from the source code I included, it's not exactly hard
to use :)


Post a reply to this message

From: Darren New
Subject: Re: Interconnected
Date: 19 Oct 2008 13:57:29
Message: <48fb7509$1@news.povray.org>
Zeger Knaepen wrote:
> 28461 bytes, who does better :p

Even a simple 16-color GIF is only 32,518 bytes, and that's without even 
trying hard or losing the AA on the arrows. :-)

-- 
Darren New / San Diego, CA, USA (PST)


Post a reply to this message

From: scott
Subject: Re: Interconnected
Date: 20 Oct 2008 04:03:09
Message: <48fc3b3d@news.povray.org>
>> >  I was wondering how much I could reduce the file size of your PNG if
>> > lossiness is allowed, but without degrading the image quality 
>> > noticeably.
>> > I was able to reduce your original 138408 bytes png to a 49074 bytes 
>> > one:
>
>> The AA on the diagonal lines certainly looks noticeably worse...
>
>  I don't think it reduces the readability and clarity of the graph in
> any way.

Me neither, but it certainly is noticeable.  I wonder if you use just 
horizontal and vertical lines, rather than diagonal lines, and don't use 
rounded boxes, or a coloured background, or AA text, how that would affect 
the file size?


Post a reply to this message

From: Warp
Subject: Re: Interconnected
Date: 20 Oct 2008 09:42:41
Message: <48fc8ad0@news.povray.org>
scott <sco### [at] scottcom> wrote:
> Me neither, but it certainly is noticeable.  I wonder if you use just 
> horizontal and vertical lines, rather than diagonal lines, and don't use 
> rounded boxes, or a coloured background, or AA text, how that would affect 
> the file size?

  Probably makes the file a lot smaller because it compresses better that
way.

-- 
                                                          - Warp


Post a reply to this message

From: Invisible
Subject: Re: Interconnected
Date: 20 Oct 2008 09:52:17
Message: <48fc8d11$1@news.povray.org>
>> Me neither, but it certainly is noticeable.  I wonder if you use just 
>> horizontal and vertical lines, rather than diagonal lines, and don't use 
>> rounded boxes, or a coloured background, or AA text, how that would affect 
>> the file size?
> 
>   Probably makes the file a lot smaller because it compresses better that
> way.

I imagine if I were somehow able to generate an SVG version, it would be 
many, many times smaller than any compressed bitmap.


Post a reply to this message

From: Orchid XP v8
Subject: Re: Interconnected
Date: 1 Nov 2008 09:35:14
Message: <490c5b12$1@news.povray.org>
>> Nice... Not a tool I'm familiar with.
> 
> Well, as you can see from the source code I included, it's not exactly hard
> to use :)

...and yet it's taken me this long to download and install the thing! ;-)

I see what you mean about a mess. Even with a very simple, almost 
trivial graph, the produced layouts are extremely suboptimal. (Nodes on 
top of each other, edges that consist only of arrow heads, absurdly long 
edges for no reason, etc.) All of the graphs could trivially be improved 
by just moving a few nodes to one side or another by a very small 
amount. And it doesn't seem to matter which layout engine I use; they 
all seem to produce hopeless layouts.

Still, it *is* much faster than doing this stuff by hand! ;-)

OOC, do you have any idea how I make it draw the edges as splines? I 
have tried and tried and tried to make it do this, but it won't.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Interconnected
Date: 1 Nov 2008 10:14:41
Message: <490c6451@news.povray.org>
Orchid XP v8 wrote:
> OOC, do you have any idea how I make it draw the edges as splines? I
> have tried and tried and tried to make it do this, but it won't.

Um, splines=true? (graph property)

       splines=boolean. Setting this to true causes edges to be drawn as
       splines if nodes don't overlap. The default is false.

Also try concentrate=true.


Post a reply to this message

From: Orchid XP v8
Subject: Re: Interconnected
Date: 1 Nov 2008 10:55:42
Message: <490c6dee@news.povray.org>
Nicolas Alvarez wrote:
> Orchid XP v8 wrote:
>> OOC, do you have any idea how I make it draw the edges as splines? I
>> have tried and tried and tried to make it do this, but it won't.
> 
> Um, splines=true? (graph property)

Yeah. I did that. It has no effect. (The manual says it should work, but 
it doesn't.)

> Also try concentrate=true.

Mmm, OK...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.