POV-Ray : Newsgroups : povray.off-topic : Using Excel as a 3D engine Server Time
11 Oct 2024 05:22:15 EDT (-0400)
  Using Excel as a 3D engine (Message 6 to 15 of 45)  
<<< Previous 5 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Eero Ahonen
Subject: Re: Using Excel as a 3D engine
Date: 10 Mar 2008 11:26:11
Message: <47d56123$1@news.povray.org>
Invisible wrote:
> 
> Now, just imagine if Excel would use Haskell instead of VB - you could 
> use the same language for the cell formulas and the macros! :-D
> 

Actually I'd say you can do that with VBA too. Just create a function 
that passes the input to VBA translator.

-- 
Eero "Aero" Ahonen
    http://www.zbxt.net
       aer### [at] removethiszbxtnetinvalid


Post a reply to this message

From: Invisible
Subject: Re: Using Excel as a 3D engine
Date: 10 Mar 2008 11:36:09
Message: <47d56379@news.povray.org>
>> Now, just imagine if Excel would use Haskell instead of VB - you could 
>> use the same language for the cell formulas and the macros! :-D
>>
> 
> Actually I'd say you can do that with VBA too. Just create a function 
> that passes the input to VBA translator.

Right. And what non-trivial operations can you perform with a snippet of 
VBA small enough to resonably fit into a single cell?

Yeah, exactly.

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


Post a reply to this message

From: Eero Ahonen
Subject: Re: Using Excel as a 3D engine
Date: 10 Mar 2008 14:01:57
Message: <47d585a5@news.povray.org>
Invisible wrote:
> 
> Right. And what non-trivial operations can you perform with a snippet of 
> VBA small enough to resonably fit into a single cell?

Depends on A) what you're doing and B) what functions for VBA you have 
pre-made. Would the 1024 (oslt) char limit on Excel cell would be 
seriously more usable with plain Haskell?

> Yeah, exactly.

-- 
Eero "Aero" Ahonen
    http://www.zbxt.net
       aer### [at] removethiszbxtnetinvalid


Post a reply to this message

From: Invisible
Subject: Re: Using Excel as a 3D engine
Date: 11 Mar 2008 04:20:48
Message: <47d64ef0$1@news.povray.org>
>> Right. And what non-trivial operations can you perform with a snippet 
>> of VBA small enough to resonably fit into a single cell?
> 
> Depends on A) what you're doing and B) what functions for VBA you have 
> pre-made. Would the 1024 (oslt) char limit on Excel cell would be 
> seriously more usable with plain Haskell?

Well let's put it this way. If you wanted to calculate the geometric 
mean (assuming there isn't already a function for that), in VBA you'd 
have to write an explicit FOR loop (with initialisation, update, etc.), 
whereas in Haskell you'd just keep a "map" call... It's a 1-liner.

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


Post a reply to this message

From: Eero Ahonen
Subject: Re: Using Excel as a 3D engine
Date: 11 Mar 2008 11:57:27
Message: <47d6b9f7$1@news.povray.org>
Invisible wrote:
>>
>> Depends on A) what you're doing and B) what functions for VBA you have 
>> pre-made. Would the 1024 (oslt) char limit on Excel cell would be 
>> seriously more usable with plain Haskell?
> 
> Well let's put it this way. If you wanted to calculate the geometric 
> mean (assuming there isn't already a function for that), in VBA you'd 
> have to write an explicit FOR loop (with initialisation, update, etc.), 
> whereas in Haskell you'd just keep a "map" call... It's a 1-liner.
> 

Meaning that you have pre-done function/call for it in Haskell (no, it 
doesn't have to be self-made, it just is implemented earlier, usually 
since someone has needed it).

-- 
Eero "Aero" Ahonen
    http://www.zbxt.net
       aer### [at] removethiszbxtnetinvalid


Post a reply to this message

From: Orchid XP v7
Subject: Re: Using Excel as a 3D engine
Date: 11 Mar 2008 14:15:50
Message: <47d6da66$1@news.povray.org>
>> Well let's put it this way. If you wanted to calculate the geometric 
>> mean (assuming there isn't already a function for that), in VBA you'd 
>> have to write an explicit FOR loop (with initialisation, update, 
>> etc.), whereas in Haskell you'd just keep a "map" call... It's a 1-liner.
>>
> 
> Meaning that you have pre-done function/call for it in Haskell (no, it 
> doesn't have to be self-made, it just is implemented earlier, usually 
> since someone has needed it).

The point being that it is *possible* to define the "map" function in 
Haskell, whereas such a function cannot be defined in VBA. :-P

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


Post a reply to this message

From: Darren New
Subject: Re: Using Excel as a 3D engine
Date: 11 Mar 2008 14:53:16
Message: <47d6e32c$1@news.povray.org>
Invisible wrote:
> in VBA you'd have to write an explicit FOR loop 

Not in Excel. What are you smoking? :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Eero Ahonen
Subject: Re: Using Excel as a 3D engine
Date: 11 Mar 2008 15:05:38
Message: <47d6e612$1@news.povray.org>
Orchid XP v7 wrote:
> 
> The point being that it is *possible* to define the "map" function in 
> Haskell, whereas such a function cannot be defined in VBA. :-P
> 

Umm.. I'm not getting this - why is it impossible to define in VBA?

-- 
Eero "Aero" Ahonen
    http://www.zbxt.net
       aer### [at] removethiszbxtnetinvalid


Post a reply to this message

From: Orchid XP v7
Subject: Re: Using Excel as a 3D engine
Date: 11 Mar 2008 16:03:29
Message: <47d6f3a1$1@news.povray.org>
>> The point being that it is *possible* to define the "map" function in 
>> Haskell, whereas such a function cannot be defined in VBA. :-P
>>
> 
> Umm.. I'm not getting this - why is it impossible to define in VBA?

Because in VBA, you can't pass functions as arguments to functions.

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


Post a reply to this message

From: Darren New
Subject: Re: Using Excel as a 3D engine
Date: 11 Mar 2008 17:16:21
Message: <47d704b5$1@news.povray.org>
Orchid XP v7 wrote:
>>> The point being that it is *possible* to define the "map" function in 
>>> Haskell, whereas such a function cannot be defined in VBA. :-P
>>>
>>
>> Umm.. I'm not getting this - why is it impossible to define in VBA?
> 
> Because in VBA, you can't pass functions as arguments to functions.

Oh, right. I bet there's *some* way to get the equivalent of function 
pointers, but I don't know VBA well enough offhand...

Actually, you can. It just takes more work. You have to do it the way 
you'd do in (say) java, and make a com object with the functionaltiy you 
need. Perhaps overkill, yes.

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


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.