 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible <voi### [at] dev null> wrote:
> Warp wrote:
> > Autoconf exists because not all systems have the same tools or libraries
> > installed, nor all systems have the same versions of those tools/libraries.
> As far as I can tell, autoconf exists because some systems use BSD awk
> and others use GNU awk, and the two aren't precisely compatible.
In other words, autoconf exists to increase portability. My point exactly.
> Multiply this by the 50,000 other tiny utilities you may or may not need
> to set up this program and you have a configuration nightmare so bad it
> requires an automated tool to make things remotely tractable.
You seem to have quite many nightmares others don't.
> > Autoconf also exists because computer architectures are different.
> > For instance, some architectures may be little-endian while others are
> > big-endian. Some architectures may be 32-bit while others are 64-bit.
> Shouldn't the compiler be dealing with those issues?
There are some cases were endianess matters, especially if you are trying
to write low-level efficient code.
A concrete example which I remember where the program has to behave
differently depending on endianess is mplayer. The source code has to
know the endianess of the target system in order to be able to write
bytes in the proper order.
(Sure, the code could have been written so that endianess doesn't matter,
but then it wouldn't have been so efficient.)
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>> I just prefer being able to add new drivers without having to recompile
>> the kernel and reboot the machine - but that's just me...
>
> I have never had to recompile the kernel or reboot the machine because
> of requiring a new driver.
>
> man modprobe
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. (Whereas on Windoze you just install the driver - and hope to
God that PnP actually does what it's meant to...)
I had great fun trying to get the nVidia graphics drivers to actually
blinking work...
>> OOC, what are the benefits?
>
> For example, the interfaces and protocols between the kernel and the
> drivers can be modified easily without having to worry about backwards
> compatibility.
Mmm, OK. I can see how that would be useful...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Mon, 10 Mar 2008 10:07:04 +0000, Invisible wrote:
> 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).
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Henderson <nos### [at] nospam com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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] removethis zbxt net invalid
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Mon, 10 Mar 2008 13:05:52 -0500, Warp wrote:
> Jim Henderson <nos### [at] nospam com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Darren New <dne### [at] san rr com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Darren New <dne### [at] san rr com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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] removethis zbxt net invalid
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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] removethis zbxt net invalid
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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] removethis zbxt net invalid
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>>> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |