POV-Ray : Newsgroups : povray.text.scene-files : Helpers - Macro-Collection for many applications Server Time
22 Jan 2025 10:53:09 EST (-0500)
  Helpers - Macro-Collection for many applications (Message 6 to 15 of 25)  
<<< Previous 5 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: jr
Subject: Re: Helpers - Macro-Collection for many applications
Date: 30 Dec 2024 14:05:00
Message: <web.6772eeb68dbb45fb2e841a6cde94f1@news.povray.org>
hi,

"Maetes" <nomail@nomail> wrote:
> Strange ... strange ... STRANGE.
> I thought 7-zip had already established itself as one of the standards.
> I think about to switch back to ZIP.

you're correct, it's well established.  your file was the first .7z I had a
problem with; no worries, may have been a "glitch".


> Maybe the lady likes to test this file:

thank you, appreciated.


> What I've done this time ... :)
> And not even in this thread!

you failed to doff your cap, wipe your feet ?!  </grin>


> First thing I had to do was to duckduckgo what BSD means at all.

yes, there's more to the world than (just) MS Windows :-).


fwiw, 'MA_String2Array()' "jumped out" at me as I had need of something similar,
though simpler.
<https://news.povray.org/web.64b08576d08f3556b49d80446cde94f1%40news.povray.org>


regards, jr.


Post a reply to this message

From: Maetes
Subject: Re: Helpers - Macro-Collection for many applications
Date: 30 Dec 2024 14:35:00
Message: <web.6772f4d28dbb45fec2e1dca30225ff5@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> you failed to doff your cap, wipe your feet ?!  </grin>

Sorry, I will work on my behavior. Promised.

> yes, there's more to the world than (just) MS Windows :-).

Phh ... this is my world:
https://www.raspberrypi.com/products/raspberry-pi-5/

2nd Pi 5 ordered few week ago (for povray-jobs only), have three Pi 4, many
older ones ...
So I can tell you, the Pi 5 renders pure povray-scripts 2.87 times faster than
the Pi 4.

> fwiw, 'MA_String2Array()' "jumped out" at me as I had need of something similar,
> <https://news.povray.org/web.64b08576d08f3556b49d80446cde94f1%40news.povray.org>

Then you know how painfull it is, to write the string and array macros from
scratch, that are part of every other programming language.
But I needed them!

Ma


Post a reply to this message

From: Maetes
Subject: Re: Helpers - Macro-Collection for many applications
Date: 30 Dec 2024 15:00:00
Message: <web.6772fadd8dbb45f57b1a63930225ff5@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> fwiw, 'MA_String2Array()' "jumped out" at me as I had need of something similar,
> <https://news.povray.org/web.64b08576d08f3556b49d80446cde94f1%40news.povray.org>

Damn, I posted this thread in the wrong group.
If anyone can fix this, please feel free.

m


Post a reply to this message

From: jr
Subject: Re: Helpers - Macro-Collection for many applications
Date: 30 Dec 2024 15:45:00
Message: <web.677305128dbb45fb2e841a6cde94f1@news.povray.org>
hi,

> Phh ... this is my world:

"strange .. strange .. strange" :-)  I'd have thought being a Linux user, you'd
know all the "creation myths" of the unices including BSDs.

I never got round to playing with Pis, alas.  (along with countless other things
:-))


> 2nd Pi 5 ordered few week ago (for povray-jobs only), have three Pi 4, many
> older ones ...
> So I can tell you, the Pi 5 renders pure povray-scripts 2.87 times faster than
> the Pi 4.

fast ?  <https://www.southampton.ac.uk/~sjc/raspberrypi/pi_pictures.htm>

may also be a fun way to keep the older ones running.


> Then you know how painfull it is, to write the string and array macros from
> scratch, that are part of every other programming language.

yes.  writing SDL macros _is_ character-building ;-).


regards, jr.


Post a reply to this message

From: jr
Subject: Re: Helpers - Macro-Collection for many applications
Date: 1 Jan 2025 03:45:00
Message: <web.6774ffcb8dbb45fb2e841a6cde94f1@news.povray.org>
hi,

also :-)

"Maetes" <nomail@nomail> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > fwiw, 'MA_String2Array()' "jumped out" at me as I had need of something similar,
> Then you know ...

while "nosing around" the .inc file more, this comment caught my eye:

  MA_Terminal_T*
  Sends Text and/or variables to the terminal-window. Nice to have during
development of programming-tasks.
  Unfortunately povray doesnt know something about ...
  - optional parameters

would it not be a good idea to update your 'ma_helpers.inc' to version 3.8 ?
you'd get to use the new 'optional' keyword for macro arguments:
<https://wiki.povray.org/content/Reference:User_Defined_Macros#Optional_Parameters>


regards, jr.


Post a reply to this message

From: Maetes
Subject: Re: Helpers - Macro-Collection for many applications
Date: 2 Jan 2025 03:40:00
Message: <web.67764fdb8dbb45faf6157b830225ff5@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> fast ?  <https://www.southampton.ac.uk/~sjc/raspberrypi/pi_pictures.htm>
> may also be a fun way to keep the older ones running.

You love this small box or you ignore it.

"jr" <cre### [at] gmailcom> wrote:
> would it not be a good idea to update your 'ma_helpers.inc' to version 3.8 ?
> you'd get to use the new 'optional' keyword for macro arguments

it's not just about optional parameters, but also about the lack of
type-identification.
And as long as version 3.8 is not part of the official Debian repository, I will
use and write for version 3.7.
Installing the package manually requires more Linux knowledge, I also avoid that
if possible.

Debian-Version in the current Release: 3.7.0.10
https://packages.debian.org/bookworm/povray
In the next Release: 3.7.0.10
https://packages.debian.org/trixie/povray

I hope my scripts are useful nevertheless.

Martin


Post a reply to this message

From: jr
Subject: Re: Helpers - Macro-Collection for many applications
Date: 2 Jan 2025 10:35:00
Message: <web.6776b1cd8dbb45fb2e841a6cde94f1@news.povray.org>
hi,

"Maetes" <nomail@nomail> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > may also be a fun way to keep the older ones running.
> You love this small box or you ignore it.

:-)  the (late) Mrs Thatcher liked to say "there is no alternative".


> > you'd get to use the new 'optional' keyword for macro arguments
> it's not just about optional parameters, but also about the lack of
> type-identification.
> And as long as version 3.8 is not part of the official Debian repository, I will
> use and write for version 3.7.
> Installing the package manually requires more Linux knowledge, I also avoid that
> if possible.

ah, shame.  if "Linux knowledge" weren't an issue (you'd need to compile/install
from source), the 'yuqk' branch might "tick your boxes"; there's (SDL) support
for querying type of variable, for instance.  the latest is here:
<https://news.povray.org/povray.binaries.programming/thread/%3C675ff7f7%40news.povray.org%3E/>

(and we're all _waiting_ for .. the gods to pull out their thumbs and make 3.8
official)


> I hope my scripts are useful nevertheless.

still "investigating" ;-)


regards, jr.


Post a reply to this message

From: Maetes
Subject: Re: Helpers - Macro-Collection for many applications
Date: 2 Jan 2025 13:00:00
Message: <web.6776d2478dbb45faf6157b830225ff5@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
>
> ah, shame.  if "Linux knowledge" weren't an issue (you'd need to compile/install
> from source), the 'yuqk' branch might "tick your boxes"; there's (SDL) support
> for querying type of variable, for instance.

I don't waste time to check other or Beta-Versions of Povray.
I waste time to write complex macros from scratch :)
(soooo many hours, shame on ME)


> (and we're all _waiting_ for .. the gods to pull out their thumbs and make 3.8
> official)

Unfortunately, I can't find any item of my personal wish list (except for
optional parameters) in the revision list of version 3.8.
These are:
- spherical heightfields
- Type-Identification
- new functions to handle strings/arrays
- Object-Oriented Programming (Classes)

https://wiki.povray.org/content/Documentation:Tutorial_Section_1#Version_3.8

Whether 3.7 or 3.8 makes little difference to me.
So I have to wait for Povray 4.0 (year 2030?) and write macros, macros, macros
......

Or I push my C++ skills and find out if I can work on the development of
Povray-Sourcode. I've already started but failed (to view/understand/compile the
source).
Next life, maybe.

Or I will try the "B-Thing".

Ma


Post a reply to this message

From: Bald Eagle
Subject: Re: Helpers - Macro-Collection for many applications
Date: 2 Jan 2025 13:15:00
Message: <web.6776d6b68dbb45f6563700825979125@news.povray.org>
"Maetes" <nomail@nomail> wrote:

> Unfortunately, I can't find any item of my personal wish list (except for
> optional parameters) in the revision list of version 3.8.
> These are:
> - spherical heightfields
> - Type-Identification
> - new functions to handle strings/arrays
> - Object-Oriented Programming (Classes)

Spherical heightfields:

"shapes.inc includes shapes_old.inc and contains many macros for working with
objects, and for creating special objects, such as bevelled text, spherical
height fields, and rounded shapes."
https://wiki.povray.org/content/Reference:Shapes.inc
So it ought to be in the drop-down insert menu.

https://news.povray.org/povray.binaries.images/thread/%3C5f16dc29%40news.povray.org%3E/

https://news.povray.org/povray.binaries.images/thread/%3C38a2dc5b%40news.povray.org%3E/

> Whether 3.7 or 3.8 makes little difference to me.

3.8 does have some little fixes and things, so I've been running that since it
got released as the beta.

> So I have to wait for Povray 4.0 (year 2030?) and write macros, macros, macros
> ......

Welcome to the club.  It's not big, and you're in it.  ;)

> Or I push my C++ skills and find out if I can work on the development of
> Povray-Sourcode. I've already started but failed (to view/understand/compile the
> source).

jr and I are looking into that.  But at the moment we're both sort of tied up
with too much non-POV-Ray real life drudgery.  :(

> Or I will try the "B-Thing".

:O  Hush.



- BW


Post a reply to this message

From: jr
Subject: Re: Helpers - Macro-Collection for many applications
Date: 2 Jan 2025 14:45:00
Message: <web.6776ec0a8dbb45fb2e841a6cde94f1@news.povray.org>
hi,

to add to Bald Eagle's reply.

> - new functions to handle strings/arrays

can you give some examples of what you (most) miss, please ?


> - Object-Oriented Programming (Classes)

Bruno Cabasson had "a go":
<https://news.povray.org/povray.binaries.scene-files/thread/%3Cweb.621f42cb592fe9587283012224d82e4%40news.povray.org%3E
/>

but SDL would need to be "divorced" from its current parser before classes
("proper", as I imagine you mean), etc could be part of the language.


regards, jr.


Post a reply to this message

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

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