POV-Ray : Newsgroups : povray.pov4.discussion.general : Next Generation SDL Brainstorming Server Time
1 Jul 2024 00:08:28 EDT (-0400)
  Next Generation SDL Brainstorming (Message 43 to 52 of 92)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Warp
Subject: Re: Next Generation SDL Brainstorming
Date: 28 Mar 2009 10:50:22
Message: <49ce392e@news.povray.org>
clipka <nomail@nomail> wrote:
> [-- text/plain, encoding 8bit, charset: iso-8859-1, 21 lines --]

> Warp <war### [at] tagpovrayorg> wrote:
> > clipka <nomail@nomail> wrote:
> > > > for(int i=0;i++<10;)vec[i]=i*i;
> >
> > > Well, that's (1) not plain C but C++
> >
> >   That has been valid C for 10 years now.

> There are still environments where the original C89 ANSI-C is *the* C standard.

  I don't see how that's relevant in this specific context. It's a bit
like saying "we should support Windows 3.1 because some old computers
might still be using it". May be *technically* true, but in practice
mostly irrelevant in this context.

-- 
                                                          - Warp


Post a reply to this message

From: clipka
Subject: Re: Next Generation SDL Brainstorming
Date: 28 Mar 2009 11:45:00
Message: <web.49ce4587ad59404722390e420@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> > > > > for(int i=0;i++<10;)vec[i]=i*i;
> > >
> > > > Well, that's (1) not plain C but C++
> > >
> > >   That has been valid C for 10 years now.
>
> > There are still environments where the original C89 ANSI-C is *the* C standard.
>
>   I don't see how that's relevant in this specific context. It's a bit
> like saying "we should support Windows 3.1 because some old computers
> might still be using it". May be *technically* true, but in practice
> mostly irrelevant in this context.

That was also the case for my statement "that's (1) not plain C but C++", and
therefore also for your statement "That has been valid C for 10 years now." As
a matter of fact, this branch of the thread has left "the specific context"
quite a while already ;)

Bottom line: Looks like I have scored a point in this nitpicking contest, by my
opponent - after having jumped in on the game at first - now backing off into
pointing out that I'm nitpicking :P

(Yeah, I love having the last word in an argument, as silly as it may ever be
;))


Post a reply to this message

From: Mueen Nawaz
Subject: Re: Next Generation SDL Brainstorming
Date: 28 Mar 2009 12:34:07
Message: <49ce517f$1@news.povray.org>
Chris B wrote:
> When you say "all over the place" you may be able to access a few sites,
> but
> when newbies do a Google and discover thousands of sites containing
> materials most of which just inexplicably don't work and can't readily be
> made to work then it's likely to have a very negative effect on their
> impression of the software.

	One possibility is to have POV-Ray detect somewhat that the syntax
being used may be the old one, and have it fail with an explicit
explanation so that they can go to the official docs.

	Frankly, though, I have difficult imagining that someone who's never
used POV-Ray before wouldn't at least take a glance at the official
docs. There _are_ some great tutorials out there, but I'm not sure I saw
more than a few that are accessible to complete newbies.

> Well yes. Hope springs eternal :-) But reality depends upon people who hope
> that they will show an aptitude for developing a fantastic new computer
> language (when they've probably never done that before) realising their

	Well, if they've never coded POV-Ray, then they'll be learning a new
language regardless. And frankly, the current SDL sucks as a language.

	I guess your concern is more the people who _do_ know POV-Ray from before.

> Also, this misses the point a bit in that you can create up-to-date
> tutorials
> but they'll be competing for prominance in Google with a greater number of
> better established, but out of date tutorials that don't contain any
> indication
> that they may be out of date.

	Actually, I'd suspect the opposite. Not sure how Google page rank
works, but if there are only a few pages out there about POV-Ray 4, then
they'll each get more hits and are more likely to show up on top on Google.

	I know your concerns, but I think it's a fallacy _never_ to change the
SDL. Maintaining backward compatibility will always be a limiting factor
in development. It'll be a pain to add drastically new features (such as
a custom shading language), while trying to make those new features
compatible with the old SDL. And has been pointed out elsewhere,
backward compatibility has been broken in the past as well.

-- 
If you try to fail, and succeed, which have you done?


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


Post a reply to this message

From: Allen
Subject: Re: Next Generation SDL Brainstorming
Date: 29 Mar 2009 09:35:00
Message: <web.49cf785fad5940478f162dfb0@news.povray.org>
How about also get rid of #declare. Is it really needed.  Why not just have
direct assignment without the need of a directive:

// Declare an object but don't create it
ball = sphere
{
    ...
}

// Create an object
object
{
    ball // reference to previously declared object
    ....
}


Post a reply to this message

From: clipka
Subject: Re: Next Generation SDL Brainstorming
Date: 29 Mar 2009 13:20:00
Message: <web.49cfad3fad594047ea392f10@news.povray.org>
"Allen" <bri### [at] yahoocom> wrote:
> How about also get rid of #declare. Is it really needed.  Why not just have
> direct assignment without the need of a directive:
>
> // Declare an object but don't create it
> ball = sphere
> {
>     ...
> }

This would require some alternative way of indicating whether the variable is to
have global or inc/macro scope (#declare vs. #local); I guess we wouldn't want
to ditch the #declare but keep the #local.


Post a reply to this message

From: clipka
Subject: Re: Next Generation SDL Brainstorming
Date: 30 Mar 2009 22:45:00
Message: <web.49d182c7ad5940472f4aa4190@news.povray.org>
Another feature I'd suggest for the new SDL: "pattern" being fully
interchangeable with 3-parameter function.

Always having to wrap the one inside the other is cumbersome without need (in my
eyes).


Post a reply to this message

From: Chambers
Subject: Re: Next Generation SDL Brainstorming
Date: 31 Mar 2009 00:52:02
Message: <49d1a172$1@news.povray.org>
On 3/30/2009 7:41 PM, clipka wrote:
> Another feature I'd suggest for the new SDL: "pattern" being fully
> interchangeable with 3-parameter function.

Why not go one further, and remove one of them?

Everything could be represented as functions of the form
<vB1,...> pattern my_func(<vA1,..>)

That is, everything could be called a pattern, could take a vector with 
Na components as an argument, and return a vector with Nb components.

Anywhere you would expect either a pattern or a vector, the new style 
pattern could be used.

-- 
...Chambers
www.pacificwebguy.com


Post a reply to this message

From: Chambers
Subject: Re: Next Generation SDL Brainstorming
Date: 31 Mar 2009 00:53:50
Message: <49d1a1de$1@news.povray.org>
On 3/27/2009 9:52 AM, clipka wrote:
> "Kenneth"<kdw### [at] earthlinknet>  wrote:
>> My main concern is actually with 'semantics' (if that's the right word.) I.e.,
>> the term #while seems to be quite logical and understandable in its meaning:
>
> Actually, I remember that when I started programming, I was multiple times
> fooled by the while-loop, about when the condition is checked. The most
> intuitive loop, for me, was:
>
> REPEAT
>    ...
> UNTIL (condition);

That's usually represented as
do {
stuff
} while (condition);


-- 
...Chambers
www.pacificwebguy.com


Post a reply to this message

From: Chambers
Subject: Re: Next Generation SDL Brainstorming
Date: 31 Mar 2009 00:58:19
Message: <49d1a2eb$1@news.povray.org>
The problem is essentially that computer science has evolved over the 
past several decades, to the point that if you're not familiar with 
where we were 30 years ago you won't understand why we are where we are 
today.

To use an example, you won't understand why you should round with 
0.50505 without first understanding why you should round with 0.5.

The "for" loop is one of those constructs that is so common that people 
take it for granted that it's understood.  In its original form, it was 
understood to perform a particular action on each item in a list.

Ie, "for each member of this list, perform this action."

Of course, it was made incredibly flexible, so you can iterate however 
you like (and even abuse it horribly), while we actually have a 
"foreach" statement now that more closely matches that particular usage.

-- 
...Chambers
www.pacificwebguy.com


Post a reply to this message

From: Chambers
Subject: Re: Next Generation SDL Brainstorming
Date: 31 Mar 2009 00:59:16
Message: <49d1a324$1@news.povray.org>
On 3/29/2009 10:17 AM, clipka wrote:
> This would require some alternative way of indicating whether the variable is to
> have global or inc/macro scope (#declare vs. #local); I guess we wouldn't want
> to ditch the #declare but keep the #local.

How about predeclaring variables, but not declaring assignment (if I'm 
wording that right)?

That is,

#declare / #local b;
b = 5;

-- 
...Chambers
www.pacificwebguy.com


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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