POV-Ray : Newsgroups : povray.unofficial.patches : yuqk feature requests / suggestions : Re: yuqk feature requests / suggestions Server Time
3 Mar 2024 17:25:02 EST (-0500)
  Re: yuqk feature requests / suggestions  
From: ingo
Date: 29 Jan 2024 12:30:00
Message: <web.65b7e081d9619d9a17bac71e8ffb8ce3@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "ingo" <nomail@nomail> wrote:
> I'm just thinkin' out loud.

I hear you, loud and clear.

Ok, this gets wild. The Nim programming language
https://nim-lang.org/docs/manual.html has 'real' macros. They can be used to
create a complete language. That language can be POV-Ray like. Using that you
can output POV-Ray SDL, loops unrolled and all.

The language is compiled, but it also has a interpreted script part, that is the
same language. The compiled part and the script part can be "linked". That way a
complete front end for POV-Ray could be build and you'd have a type system,
objects =structs, minimal OOP (only composition) and it looks a bit like python
but way faster. Sadly I'm way to incompetent to get something like that

This is the mesh macros in nim:

Why I think of things like this? Because the effort of writing all those arrays
and remembering what they do and how they interact often gets too much (age).


Post a reply to this message

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