POV-Ray : Newsgroups : povray.off-topic : Adventures with digital painting Server Time
27 Nov 2026 17:25:22 EST (-0500)
  Adventures with digital painting (Message 101 to 150 of 197)  
<<< Previous 50 Messages Goto Latest 50 Messages Next 47 Messages >>>
From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 11:39:07
Message: <47d5642b$1@news.povray.org>
On Mon, 10 Mar 2008 13:13:10 +0000, Invisible wrote:

> I just prefer being able to add new drivers without having to recompile
> the kernel and reboot the machine - but that's just me...

Well, in Linux you don't have to.  You build the driver (if it's not 
already included), load it, and away you go.

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 11:40:11
Message: <47d5646b$1@news.povray.org>
On Mon, 10 Mar 2008 14:06:44 +0000, Invisible wrote:

> No - but it *is* fun if you try to install some device driver that needs
> to be compiled from source and you don't have the kernel headers
> installed.

There's a reason why you install the kernel headers.  Once.

The latest nVidia drivers installed like a dream for me on openSUSE 
10.3.  The ATI drivers are, admittedly, a royal pain in the arse.

Jim


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 11:51:24
Message: <47d5670c@news.povray.org>
>> The trouble with Linux is that everything is 50,000 utterly *tiny*
>> pieces, each of which does almost nothing useful by itself, and you have
>> to put thousands of these tiny pieces together to do anything useful.
> 
> Well, that's a fallacy right there.  I'm running a monolithic application 
> at the moment called "pan", which is a newsreader.
> 
> I've got another fairly monolithic application called "firefox" running 
> in the background, and another called "OpenOffice" that's at the 
> standby.  Also one called "Pidgin" which is an IM client.
> 
> None of these apps particularly *requires* any of the standard command-
> line utilities on my OS for anything short of building it (if I should 
> desire to do so).

Right. And simply booting the OS doesn't require GRUB, init, chkfs, 
getty, some kind of shell to run all the startup scripts, plus every CLI 
tool that those scripts call...

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


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 12:55:41
Message: <47d5761d$1@news.povray.org>
On Mon, 10 Mar 2008 16:51:29 +0000, Invisible wrote:

> Right. And simply booting the OS doesn't require GRUB

Modern Windows has an equivalent - ever seen the boot menu?

> init

service manager

> chkfs,

chkdsk

> getty, 

GINA

> some kind of shell to run all the startup scripts, 

service manager (again)

> plus every CLI
> tool that those scripts call...

DLL hell. ;-)

You say "tomayto", I say "tomahto".

Jim


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 13:05:52
Message: <47d57880@news.povray.org>
Jim Henderson <nos### [at] nospamcom> wrote:
> The ATI drivers are, admittedly, a royal pain in the arse.

  The ATI Linux display driver has installed itself just fine for years.
Its only problem is that it's buggy with several display cards (including
mine), which renders it unusable with them.

-- 
                                                          - Warp


Post a reply to this message

From: Eero Ahonen
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 13:56:43
Message: <47d5846b@news.povray.org>
Jim Henderson wrote:
> 
> Well, in Linux you don't have to.  You build the driver (if it's not 
> already included), load it, and away you go.

And if the driver hangs, you unload and reload it. No need for reboot on 
that ;).

> Jim


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


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 14:19:24
Message: <47d589bc$1@news.povray.org>
On Mon, 10 Mar 2008 13:05:52 -0500, Warp wrote:

> Jim Henderson <nos### [at] nospamcom> wrote:
>> The ATI drivers are, admittedly, a royal pain in the arse.
> 
>   The ATI Linux display driver has installed itself just fine for years.
> Its only problem is that it's buggy with several display cards
> (including mine), which renders it unusable with them.

The 8.40.4 version of fglrx is the last one that works for me on my 
Thinkpad.  Installation is a pain if you have a kernel update - the 
nVidia package by comparison is smart enough to recognise that it needs 
to be rebuilt on a reboot and it does that automatically.

All the newer ATI drivers just plain don't work on this machine.

Jim


Post a reply to this message

From: Orchid XP v7
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 14:22:46
Message: <47d58a86$1@news.povray.org>
Jim Henderson wrote:

> You say "tomayto", I say "tomahto".

Difference is, all the little bits and pieces that make up Windoze all 
come from one manufacturer, there's only one version of them, and 
they're all extensively tested together.

Linux, OTOH... You don't often find two machines set up exactly the same 
way. And all the individual parts are from different people, and there 
are a myriad of possible versions and implementations.

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


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 10 Mar 2008 14:47:58
Message: <47d5906e$1@news.povray.org>
On Mon, 10 Mar 2008 19:23:19 +0000, Orchid XP v7 wrote:

> Jim Henderson wrote:
> 
>> You say "tomayto", I say "tomahto".
> 
> Difference is, all the little bits and pieces that make up Windoze all
> come from one manufacturer, there's only one version of them, and
> they're all extensively tested together.
> 
> Linux, OTOH... You don't often find two machines set up exactly the same
> way. And all the individual parts are from different people, and there
> are a myriad of possible versions and implementations.

You need to look at how the software checkins and testing are handled for 
the kernel.

And you need to look up again the definition of "DLL Hell".

Not so different as you might think.

Jim


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 04:24:30
Message: <47d64fce@news.povray.org>
>> Difference is, all the little bits and pieces that make up Windoze all
>> come from one manufacturer, there's only one version of them, and
>> they're all extensively tested together.
>>
>> Linux, OTOH... You don't often find two machines set up exactly the same
>> way. And all the individual parts are from different people, and there
>> are a myriad of possible versions and implementations.
> 
> You need to look at how the software checkins and testing are handled for 
> the kernel.

Who said anything about the kernel? I'm talking about the entire Linux 
OS. (Most of which is actually GNU, if you want to be technical about it...)

> And you need to look up again the definition of "DLL Hell".
> 
> Not so different as you might think.

I have yet to experience "DLL Hell". I'm told it exists, and it's not 
fun, but I haven't seen it personally. (Don't ask me why...)

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


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 10:12:56
Message: <47d6a178$1@news.povray.org>
On Tue, 11 Mar 2008 09:24:29 +0000, Invisible wrote:

>>> Difference is, all the little bits and pieces that make up Windoze all
>>> come from one manufacturer, there's only one version of them, and
>>> they're all extensively tested together.
>>>
>>> Linux, OTOH... You don't often find two machines set up exactly the
>>> same way. And all the individual parts are from different people, and
>>> there are a myriad of possible versions and implementations.
>> 
>> You need to look at how the software checkins and testing are handled
>> for the kernel.
> 
> Who said anything about the kernel? I'm talking about the entire Linux
> OS. (Most of which is actually GNU, if you want to be technical about
> it...)

So yes, be technical about it, then - I don't know of any Linux distro 
that uses "standard" tools that aren't GNU, be it awk, sed, perl, bash, 
etc.

>> And you need to look up again the definition of "DLL Hell".
>> 
>> Not so different as you might think.
> 
> I have yet to experience "DLL Hell". I'm told it exists, and it's not
> fun, but I haven't seen it personally. (Don't ask me why...)

You've been lucky.  Last company I worked for had many applications with 
DLLs in common but requiring different versions.  We had a team of 
software deployment engineers who did testing to ensure the software 
would all work together and work around the issues of needing multiple 
versions of the same DLL.

Jim


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 10:34:29
Message: <47d6a685$1@news.povray.org>
>> Who said anything about the kernel? I'm talking about the entire Linux
>> OS. (Most of which is actually GNU, if you want to be technical about
>> it...)
> 
> So yes, be technical about it, then - I don't know of any Linux distro 
> that uses "standard" tools that aren't GNU, be it awk, sed, perl, bash, 
> etc.

Except that Unix /= Linux. There's also BSD and Solaris and random stuff 
like that... and autoconf works with all of them.

"Windoze" is more or less one product line. Binaries work unmodified on 
most versions of it. (Assuming the features they use are there.) "Unix" 
is not one product. It's not even close to being one product. It's a 
vast stew of different products all bolted together in a giant mess.

>> I have yet to experience "DLL Hell". I'm told it exists, and it's not
>> fun, but I haven't seen it personally. (Don't ask me why...)
> 
> You've been lucky.

Let's hope it stays that way...

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


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 10:42:34
Message: <47d6a86a$1@news.povray.org>
Invisible escribió:
>>> Who said anything about the kernel? I'm talking about the entire Linux
>>> OS. (Most of which is actually GNU, if you want to be technical about
>>> it...)
>>
>> So yes, be technical about it, then - I don't know of any Linux distro 
>> that uses "standard" tools that aren't GNU, be it awk, sed, perl, 
>> bash, etc.
> 
> Except that Unix /= Linux. There's also BSD and Solaris and random stuff 
> like that... and autoconf works with all of them.
> 
> "Windoze" is more or less one product line. Binaries work unmodified on 
> most versions of it. (Assuming the features they use are there.) "Unix" 
> is not one product. It's not even close to being one product. It's a 
> vast stew of different products all bolted together in a giant mess.

I'm not sure if it's possible to put a non-GNU userland (like BSD) along 
with a Linux kernel, but it's definitely possible to have GNU userland 
on many kernels, like BSD.

Heck, the "BSD Subsystem" package for my iPod was based in BSD (duh), I 
removed it and installed Telesphoreo (much better package of unix tools) 
and it's based on GNU tools. Kernel is Mach for ARM processor. I have 
yet to try autoconf stuff there :) (somebody is struggling to get a 
native compiler working)


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:08:24
Message: <47d6ca98@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> In other words, if you completely bypass the shell, it can be made easy 
>> to work. Otherwise you get things like "no such user John.tmp" when you 
>> try to delete "~John.tmp".
> 
>   Only if you write "~John.tmp" by hand instead of letting the shell do
> the proper expansion.

Or if you pass it through another program that also tries to do the 
expansion. I.e., if it goes thru the shell more than once.

>   Well, if "rm *" works (ie. there aren't too many files), you don't.
> If there are too many files, I suppose you'll have to use the 'find'
> trick.

Yep. Then it gets very slow, or very complicated.

>   If you do a "scp *" it won't ask the password for each one.

Again, I tend to work with tens of thousands of files at once.

>> , so you either have to use xargs (with the -0 
>> switch, which is why that's there!) or manage to tar them up somehow, 
>> which has the same problems.
> 
>   What's the problem with tarring them? "tar -cvf . files.tar"

If you want to select a subset of files to tar up, then it becomes very 
difficult.

> However, I haven't seen any problems with special characters so far.

Well, clearly we work on different kinds of things. And yes, shells have 
gotten way better lately, but if you wind up doing multiple passes 
through a shell (i.e., a shell script looping and calling another shell 
script) it gets messy.

>   The only valid point you have presented is the too-many-files argument,

See above. If you have a shell script to process something, it takes 
magic escaping.

Explain the "-0" argument to find and xargs if it isn't otherwise a problem?

>> Having the shell doing your expansion has caught me other times, too...
> 
>> % cat a b c >d
>> Can't create d: permission denied
>> % sudo !!
>> Can't create d: permission denied
> 
>> Of course, the real line was much longer, so a simple "su" meant 
>> retyping the line (or using copy-and-paste to retype it for you) instead 
>> of just !! or up-arrow. :-)
> 
>   What's wrong with getting the command from the command history with
> the up cursor, going to the beginning of the line with ctrl-a and then
> adding the "sudo" there?

Because it still doesn't work. SUDO doesn't kick in until after the 
output redirection is done, so "sudo echo xyz >pdq" doesn't overwrite pdq.

>   Still many shell scripts fail to use the basic "$@" for the correct
> expansion of all the parameters (and instead use $*, which is wrong).

That too. And it still doesn't work when there are too many files.  I'm 
not really sure why it's even limited, given I've got 16 gig of real 
memory and twice that of virtual memory. :-)

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:11:19
Message: <47d6cb47@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> (I work with big directories, and big files. Often I'll have a program 
>> that runs 3 hours, then takes half an hour to delete its input files. Or 
>> individual files that take 2 minutes of disk I/O to delete. Or empty 
>> directories that take several minutes to delete because they used to 
>> have six or seven million files in em.  And of course, the machine 
>> becomes completely unusable during any sort of operation like that.)
> 
>   Isn't that a clear sign that a re-design of your programs is in place?-)

Probably not. I don't know any other way of storing several weeks worth 
of CD-quality audio in a way that is easy to extract portions, then 
delete the beginning without affecting the end.

Now, if Linux supported the thing that NTFS supports where you can 
delete the beginning of a file, maybe I'd use that. But as it is, I have 
to chop the file up so I can delete parts of it.

Plus, of course, the device buffers on the audio device get upset if you 
tell it to try to accumulate a gig of audio data before handing it over 
to your software. :-)

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:11:59
Message: <47d6cb6f$1@news.povray.org>
Jim Henderson wrote:
> But if I wanted it to work all the time, I'd write it in C and be done 
> with it - then the shell doesn't come into play. :-)

Yah, as I said, when it gets messy, I use Tcl. :-)

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:12:30
Message: <47d6cb8e$1@news.povray.org>
Nicolas Alvarez wrote:
> Jim Henderson escribió:
>> But if I wanted it to work all the time, I'd write it in C and be done 
>> with it - then the shell doesn't come into play. :-)
> 
> Can filenames have null characters on them? :)

No. The only thing Linux (and most other unix) filesystems disallows is 
slash and NUL.

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:16:55
Message: <47d6cc97$1@news.povray.org>
Invisible wrote:
> The trouble with Windoze is that *everything* is one gigantic lump. (And 
> it's a very buggy, undocumented and unreliable lump at that.)

No, it's just a bunch of tightly-coupled pieces you have to be a 
programmer to get at. Instead of using files to pass around data, 
windows uses APIs. And it isn't especially undocumented. It just costs 
money to go to the classes that teach you the stuff properly, and there 
isn't source code available.

It's not like IIS is less documented than Apache, or the Windows 
graphics stuff is less documented than X-Windows.

> Why can't somebody build an OS with a *sane* level of granularity?? What 
> would be so hard about that?

Because one size doesn't fit all?

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:33:41
Message: <47d6d085$1@news.povray.org>
Jim Henderson wrote:
> chkdsk

It's actually not even chkdsk at boot time. It's autochk, which is a 
different program to do the same thing. And the recovery console has yet 
a different version. Why they felt the need to implement it three times 
I don't understand. :-)

-- 
   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: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:38:59
Message: <47d6d1c3$1@news.povray.org>
On Tue, 11 Mar 2008 11:11:59 -0700, Darren New wrote:

> Jim Henderson wrote:
>> But if I wanted it to work all the time, I'd write it in C and be done
>> with it - then the shell doesn't come into play. :-)
> 
> Yah, as I said, when it gets messy, I use Tcl. :-)

Really the best option - remove the shell. :-)

Jim


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:39:07
Message: <47d6d1cb$1@news.povray.org>
Jim Henderson wrote:
> And you need to look up again the definition of "DLL Hell".

You know, they solved this problem quite some time ago... Like, around 
2000 or earlier.

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:41:02
Message: <47d6d23e$1@news.povray.org>
Jim Henderson wrote:
> You've been lucky.  Last company I worked for had many applications with 
> DLLs in common but requiring different versions. 

FWIW, that's actually easy to fix. You just put the right version of the 
DLL next to each executable, and create a file in the same directory 
with a magic name (that I disremember offhand but something like 
"loadseparate"), and the DLL loader will look at the directory with the 
executable first for any DLL.  It's the same thing that the 
"side-by-side" is supposed to solve, so googling for that would probably 
lead you to the right place.

-- 
   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: Adventures with digital painting
Date: 11 Mar 2008 13:43:02
Message: <47d6d2b6$1@news.povray.org>
Darren New wrote:
> Now, if Linux supported the thing that NTFS supports where you can 
> delete the beginning of a file, maybe I'd use that. But as it is, I have 
> to chop the file up so I can delete parts of it.
> 

Could "split" possibly help you?

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


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:43:45
Message: <47d6d2e1$1@news.povray.org>
Chambers wrote:
> When you're writing a single, simple tool, with well defined inputs and 
> outputs, it's much easier to make it work *no matter what*. 

I saw a study done a number of years ago where researchers took each 
UNIX tool and piped random data into its input. The only ones that 
didn't dump core were programs that didn't care (e.g., cat) or programs 
specifically designed to parse its input (e.g., gcc).  Something like 
70% of the tools they tested dumped core.

A couple years later, it was all cleaned up or at least vastly improved, 
apparently.

-- 
   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: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:44:10
Message: <47d6d2fa$1@news.povray.org>
On Tue, 11 Mar 2008 15:34:28 +0000, Invisible wrote:

>>> Who said anything about the kernel? I'm talking about the entire Linux
>>> OS. (Most of which is actually GNU, if you want to be technical about
>>> it...)
>> 
>> So yes, be technical about it, then - I don't know of any Linux distro
>> that uses "standard" tools that aren't GNU, be it awk, sed, perl, bash,
>> etc.
> 
> Except that Unix /= Linux. There's also BSD and Solaris and random stuff
> like that... and autoconf works with all of them.

Yes, I'm aware - have used Solaris, BSD, and SYSV.  And autoconf is there 
to make sure what's there.

> "Windoze" is more or less one product line. Binaries work unmodified on
> most versions of it. (Assuming the features they use are there.) "Unix"
> is not one product. It's not even close to being one product. It's a
> vast stew of different products all bolted together in a giant mess.

An OS can be called a "UNIX System" only if it meets certain standards, 
as defined by The Open Group.  So right away, you're operating under a 
fallacy that you can compare UNIX to Windows - Windows is a product, UNIX 
is a set of standards that define the operation of a product.

Microsoft occasionally deigns it's OK to follow standards they didn't 
define - they use the BSD TCP/IP stack in most versions of Windows; they 
follow (to a greater or lesser extent) standards for web browsing 
software; they even have in the past (not sure about today) incorporated 
a POSIX-compliant subsystem.  They don't own any of these standards, but 
they use them.

>>> I have yet to experience "DLL Hell". I'm told it exists, and it's not
>>> fun, but I haven't seen it personally. (Don't ask me why...)
>> 
>> You've been lucky.
> 
> Let's hope it stays that way...

The longer you work in IT, the less likely it is to happen.

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:45:05
Message: <47d6d331$1@news.povray.org>
On Tue, 11 Mar 2008 11:33:41 -0700, Darren New wrote:

> Jim Henderson wrote:
>> chkdsk
> 
> It's actually not even chkdsk at boot time. It's autochk, which is a
> different program to do the same thing. And the recovery console has yet
> a different version. Why they felt the need to implement it three times
> I don't understand. :-)

Yeah, that's what I was thinking.  Last time I did something like this 
with Windows, it was Partition Magic that inserted itself into the boot 
process.

Jim


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:45:44
Message: <47d6d358$1@news.povray.org>
Invisible wrote:
> ad-hoc *mess* of haphazardly interacting command switches that you have 
> to spend 20 minutes studying the manpage to decode the interactions for?

Don't forget that it also changes behavior depending on whether it 
things stdout is a terminal, a different character device, or a file.

> Also: autoconf exists. Need I say more?

And ptys.

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:47:08
Message: <47d6d3ac$1@news.povray.org>
Warp wrote:
>   Portability is a key feature of unix-like systems.

I always have to cringe a bit when someone decides that two different 
versions of source code in one file means it's "portable".

#ifdef isn't a sign of portability. It's a sign of lack of portability. 
If your 32-bit code breaks on a 64-bit machine, your language isn't 
portable.

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:48:51
Message: <47d6d413$1@news.povray.org>
Warp wrote:
>   (Sure, the code could have been written so that endianess doesn't matter,
> but then it wouldn't have been so efficient.)

And of course, in *portable* languages for doing system-level 
programming, you simply specify that particular variables have a certain 
endianness, and you let the compiler write the code to do the 
byteswapping at the places it's needed. :-)

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:49:36
Message: <47d6d440$1@news.povray.org>
Phil Cook wrote:
> But wasn't it v7 that introduced the ability to layout and print 
> multiple images? Such a handy little thing.

Actually, it's rather annoying.  And v8 tried to improve it and just 
made it way more suckful.

-- 
   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: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:52:30
Message: <47d6d4ee$1@news.povray.org>
On Tue, 11 Mar 2008 11:41:02 -0700, Darren New wrote:

> Jim Henderson wrote:
>> You've been lucky.  Last company I worked for had many applications
>> with DLLs in common but requiring different versions.
> 
> FWIW, that's actually easy to fix. You just put the right version of the
> DLL next to each executable, and create a file in the same directory
> with a magic name (that I disremember offhand but something like
> "loadseparate"), and the DLL loader will look at the directory with the
> executable first for any DLL.  It's the same thing that the
> "side-by-side" is supposed to solve, so googling for that would probably
> lead you to the right place.

Yep, that's what we ended up doing.  The problem is that most software, 
when installed using the installation routines, will install any DLLs to 
the system directory (at least that was the experience at the time, maybe 
it's gotten better by now).  Our software testers used the trick you 
describe to make programs work together that had this type of conflict.

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 13:52:57
Message: <47d6d509$1@news.povray.org>
On Tue, 11 Mar 2008 11:39:07 -0700, Darren New wrote:

> Jim Henderson wrote:
>> And you need to look up again the definition of "DLL Hell".
> 
> You know, they solved this problem quite some time ago... Like, around
> 2000 or earlier.

Took 'em long enough. ;-)

That is about the last time I had anything serious to do with Windows.

Jim


Post a reply to this message

From: Orchid XP v7
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 14:12:19
Message: <47d6d993$1@news.povray.org>
Darren New wrote:
> Invisible wrote:
>> ad-hoc *mess* of haphazardly interacting command switches that you 
>> have to spend 20 minutes studying the manpage to decode the 
>> interactions for?
> 
> Don't forget that it also changes behavior depending on whether it 
> things stdout is a terminal, a different character device, or a file.

I presume you mean "don't forget" as in "if you forget this, it's likely 
that your scripting will malfunction horribly"...

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


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 14:22:49
Message: <47d6dc09@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> I'm 
> not really sure why it's even limited, given I've got 16 gig of real 
> memory and twice that of virtual memory. :-)

  Well, it is an open-source OS after all. There ought to be some magic
constant in the source code of your favorite shell which limits the amount
of command-line parameters. Just increase it an recompile... :P

  (Why isn't it dynamic? Probably because it's written in C, and C sucks.)

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 14:25:43
Message: <47d6dcb7@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> Warp wrote:
> >   (Sure, the code could have been written so that endianess doesn't matter,
> > but then it wouldn't have been so efficient.)

> And of course, in *portable* languages for doing system-level 
> programming, you simply specify that particular variables have a certain 
> endianness, and you let the compiler write the code to do the 
> byteswapping at the places it's needed. :-)

  Which would be slower than writing the bytes in the proper order in
the first place...

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 14:29:36
Message: <47d6dda0@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> I saw a study done a number of years ago where researchers took each 
> UNIX tool and

  I'm not sure there's such a thing as a "UNIX tool". There are specific
implementations of several established command-line tools (many of which
are standardized by POSIX, plus others). GNU is one example of such
implementation.

  Which one did they use, specifically?

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 15:29:56
Message: <47d6ebc4@news.povray.org>
Eero Ahonen wrote:
> Darren New wrote:
>> Now, if Linux supported the thing that NTFS supports where you can 
>> delete the beginning of a file, maybe I'd use that. But as it is, I 
>> have to chop the file up so I can delete parts of it.
>>
> 
> Could "split" possibly help you?

I already have millions of files. That's the problem. :-)

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 15:35:47
Message: <47d6ed23$1@news.povray.org>
Warp wrote:
> The source code has to
> know the endianess of the target system in order to be able to write
> bytes in the proper order.

 >   Which would be slower than writing the bytes in the proper order in
 > the first place...

I'm not sure how these two jibe. Either you're processing the muti-byte 
objects in native order and writing them in a different order, or you're 
writing them without processing them. In either of those cases, I don't 
see compiler-generated code being slower than programmer-generated code.

The only way I can see it being slower is there's actually two different 
sets of code, based on what order things are in, such that (for example) 
one branch adds two numbers using "+" and the other does some magic to 
add 0xA000 and 0xA000 to get 0x4001 automatically without actually 
treating them as binary integers. Is that what you're referring to?

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 15:36:42
Message: <47d6ed5a$1@news.povray.org>
Warp wrote:
>   Which one did they use, specifically?

I don't remember. I think it was the GNU one, but it might have been BSD.

-- 
   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: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 15:45:25
Message: <47d6ef65$1@news.povray.org>
Jim Henderson wrote:
> Our software testers used the trick you 
> describe to make programs work together that had this type of conflict.

I wouldn't call it a *trick* as such. It's a part of the design in the 
OS to support exactly the situation you had. :-)

-- 
   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: Adventures with digital painting
Date: 11 Mar 2008 15:55:36
Message: <47d6f1c8$1@news.povray.org>
Darren New wrote:
> 
> I already have millions of files. That's the problem. :-)
> 

Well yes, now, but possibly in the future? :)

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


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 17:14:38
Message: <47d7044e@news.povray.org>
Eero Ahonen wrote:
> Darren New wrote:
>>
>> I already have millions of files. That's the problem. :-)
>>
> 
> Well yes, now, but possibly in the future? :)

I am saying that I fail to see how split would *reduce* the number of 
files I have, considering its functionality.

-- 
   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: Warp
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 17:22:25
Message: <47d70621@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> The only way I can see it being slower is there's actually two different 
> sets of code, based on what order things are in, such that (for example) 
> one branch adds two numbers using "+" and the other does some magic to 
> add 0xA000 and 0xA000 to get 0x4001 automatically without actually 
> treating them as binary integers. Is that what you're referring to?

  If I remember correctly, what mplayer does (well, some of its video
filters, actually) is to build 4-byte pixels into words and then it
writes those pixels on a per-word basis to some output buffer. Naturally
the endianess of the architecture determines if the R channel goes to
the lower byte or the upper byte of the word.
  If endianess is not taken into account, in architectures with the other
endianess the color channels will be effectively swapped. (I know this
from actual experience.)

  Naturally it could write the bytes themselves, ie. on a per-channel
basis instead of a per-pixel basis, but those would be 4 writes instead
of 1. Another possibility would be to build the word always in the same
way and have the "compiler reverse it in architectures with the other
endianess" (if that's even possible in any compiler of any language),
but that would mean a bunch of extra steps in that other endianess
architecture, for no good reason.

-- 
                                                          - Warp


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 17:46:43
Message: <47d70bd3$1@news.povray.org>
On Tue, 11 Mar 2008 13:45:25 -0700, Darren New wrote:

> Jim Henderson wrote:
>> Our software testers used the trick you describe to make programs work
>> together that had this type of conflict.
> 
> I wouldn't call it a *trick* as such. It's a part of the design in the
> OS to support exactly the situation you had. :-)

Well, you know what I mean - the standard installer wasn't smart enough 
to leverage this "feature" of the OS so the conflict didn't happen.

Jim


Post a reply to this message

From: Darren New
Subject: Re: Adventures with digital painting
Date: 11 Mar 2008 22:02:13
Message: <47d747b5$1@news.povray.org>
Warp wrote:
> Another possibility would be to build the word always in the same
> way and have the "compiler reverse it in architectures with the other
> endianess" (if that's even possible in any compiler of any language),
> but that would mean a bunch of extra steps in that other endianess
> architecture, for no good reason.

No, you'd declare a four-byte integer in native endianness, and a 
four-byte word in the buffer in little (or big) endianness, and have the 
compiler either generate code to directly copy (if the native 
architecture's endianness matches the spec's endienness) or have it 
generate the optimal machine code sequence to do the swap if they don't 
match.

The "build four-byte pixels into words" works just fine too.

(I forget the exact syntax, but it's something like)
outint : new integer 0..2^32-1;
outint'endian = little;

buffer : array [0..N] of outint;
buffer[i] = r * 256*256*256 + g * 256 * 256 + b * 256 + a;

If outint is in native form, it does the shifts and stores it, or 
assigns the bytes, or whatever the compiler can come up with.

If outint is in byte-swapped order, the compiler can *also* deduce it 
needs to do the shifts differently, and just assign bytes to the 
appropriate places in the word.

(Note that compilers aren't dumb enough to actually multiply when you 
say r * 256 * 256 * 256.)

Makes it much clearer code, methinks, and no ifdefs.

-- 
   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: Adventures with digital painting
Date: 12 Mar 2008 00:01:14
Message: <47d7639a$1@news.povray.org>
Darren New wrote:
> 
> I am saying that I fail to see how split would *reduce* the number of 
> files I have, considering its functionality.
> 

Composing with some of those 49,999 other tools it gives you the 
possibility of eg. removing a part (beginning, ending or from the 
middle) of a file.

"Now, if Linux supported the thing that NTFS supports where you can 
delete the beginning of a file, maybe I'd use that."

Well ok, after that you wrote about chopping the file, which practically 
is what split does, but it should be able to work without creating 
millions of (temp)files in the middle of the process.

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


Post a reply to this message

From: Invisible
Subject: Re: Adventures with digital painting
Date: 12 Mar 2008 04:15:43
Message: <47d79f3f$1@news.povray.org>
>>> But if I wanted it to work all the time, I'd write it in C and be done
>>> with it - then the shell doesn't come into play. :-)
>> Yah, as I said, when it gets messy, I use Tcl. :-)
> 
> Really the best option - remove the shell. :-)

Cool. I just hope your filenames don't contain any of the characters 
that Tcl considers to be "special" either. :-P

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


Post a reply to this message

From: Warp
Subject: Re: Adventures with digital painting
Date: 12 Mar 2008 04:34:42
Message: <47d7a3b2@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> outint'endian = little;

  Exactly which language is this? And have you actually corroborated by
examining the resulting machine code that it indeed does as you say?

-- 
                                                          - Warp


Post a reply to this message

From: Jim Henderson
Subject: Re: Adventures with digital painting
Date: 12 Mar 2008 13:27:31
Message: <47d82093$1@news.povray.org>
On Wed, 12 Mar 2008 09:15:42 +0000, Invisible wrote:

>>>> But if I wanted it to work all the time, I'd write it in C and be
>>>> done with it - then the shell doesn't come into play. :-)
>>> Yah, as I said, when it gets messy, I use Tcl. :-)
>> 
>> Really the best option - remove the shell. :-)
> 
> Cool. I just hope your filenames don't contain any of the characters
> that Tcl considers to be "special" either. :-P

Well, I use C, and it deals with literal strings, but I suspect TCL is 
the same in that regard.

Jim


Post a reply to this message

From: Mike Raiford
Subject: Re: Adventures with digital painting
Date: 12 Mar 2008 13:56:20
Message: <47d82754$1@news.povray.org>
Nicolas Alvarez wrote:

> And also one reason why command-line tools are better for many things. 
> (image editing probably not one of them)

Funny, there's a set of commandline tools for just that called 
ImageMagick. :D


Post a reply to this message

<<< Previous 50 Messages Goto Latest 50 Messages Next 47 Messages >>>

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