POV-Ray : Newsgroups : povray.off-topic : The other OS Server Time
26 Nov 2026 02:39:45 EST (-0500)
  The other OS (Message 31 to 80 of 130)  
<<< Previous 30 Messages Goto Latest 50 Messages Next 50 Messages >>>
From: Warp
Subject: Re: The other OS
Date: 4 Aug 2011 17:16:54
Message: <4e3b0c46@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> OK, I guess what I was really asking is why it's still considered the 
> most powerful editor *today*.

  There aren't many text editors even today that reach the same level
of expressiveness.

  Most software development IDEs have editors that do a lot of things
(like syntax highlighting and such) but are not even nearly as powerful
as emacs. (The most annoying thing that they usually lack is the same
kind of autoindentation as emacs has had for centuries.)

-- 
                                                          - Warp


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 4 Aug 2011 17:17:20
Message: <4e3b0c60$1@news.povray.org>
>> Riiiiight. Tell me, how do I
>
> Use your brain?

I fail basic English. :'{

>> TeX does not "understand" colour or graphics.

> indeed. Lots of packages to handle the most diverse needs. A reasonable
> on-line index and books with examples.

Like I say, after hacking away at it for years, they've got it to 
sort-of work, most of the time. That's not the same as TeX *actually* 
supporting these things.

>> The system is still fragile, however. Literally, the colour changing
>> commands are classified as "fragile" LaTeX commands, and you're supposed
>> to use /protect and so forth. If you, for example, change colour in a
>> section heading, that works fine in the section heading, but breaks in
>> the table of contents and page running headings.
>
> If you mean that you wanted to change global behaviour in a heading, you
> deserve nothing better than a broken output.

No. If you just want to change the colour of one word in a seciton 
heading. Pretty easy with CSS (you can even have it apply only to the 
section heading and not the TOC listing, for example), but does evil 
things to TeX.

>> Oh, and I forgot to mention hyperlinks. But then, TeX is for /printing/,
>> primarily, so that's excusible.
>
> I think I have even seen those.

Yes. They're kludged in the same way as colour and graphics.

>>> It most certainly does. Style files are are at the heart of the system.
>>
>> Sure. In theory.
>>
>> Now suppose that for some reason I wanted all the document to come out
>> in a different typeface for some reason. The body text, section
>> headings, table of contents, figure captions, everything. Do you have
>> any idea how intractibly difficult that is?
>
> Bloody easy. My theses was in Garamont (IIRC my student decide that 9.5
> points would be ideal). Noticed that too late in the process to change
> it to something

...something...? Perhaps it is not only me that fails English. ;-)

>> Click a few of the stylesheets. Watch the entire page radically
>> transform instantly. TeX can't do that. (Recent versions of Word almost
>> can... but don't expect it to work properly.)
>
> ?? LaTeX can, haven't used plain TeX enough to have noticed any
> instances where it didn't work. Unless instantly is your operative word.

If I decided, for some insane reason, that I wanted section headings to 
be set vertically in the margin rather than how a sane person would set 
them... well, technically it's /possible/, but it would be damned /hard/ 
to do it.

>>> If you mean debugging your text or layout, that is more simple than in a
>>> wysiwyg editor.
>>
>> The page breaks look just fine. Then I write some more text, and the
>> page breaks move. Wuh?
>
> Yes, what did you expect else? Somewhere I have this nagging feeling
> that you try to treat TeX as a something similar to Word. Just a program
> to convert raw text to nice output.

Well, that's what it *is*. It's a program that converts your markup into 
something that looks nice.

(Word, of course, is more about *editing* text than actually making it 
look good...)

It's just baffling when a seemingly unrelated change causes part of the 
page flow to change for the worse. Or when you say "put this figure 
HERE" so LaTeX puts it five pages later. Or whatever.

>> Do you have any idea how much trouble I had trying to get it so that any
>> text put inside a "tabbing" environment comes out green? In the end I
>> was forced to give up. It just WILL NOT work consistently.
>
> You mean messing with the standard tabbing environment or when creating
> a new green environment.
>
>> If this was HTML I was talking about, changing the colour of one block
>> of text would be laughably simple. But TeX just can't handle it.
>
> Correction: you can not handle it. If I understood what you wanted to
> accomplish, I might feel tempted to try.

I merely wanted to create a new tabbing environment where all the text 
comes out green, set one quad in from both margins. (Apparently there's 
no way to prevent it flowing off the right edge of the page though...)

First I found that only the /first/ line came out green. So then I added 
a group around the body. That worked fine... until the environment went 
over a page break, at which point it broke again. Not to mention that by 
flipping from page to page, I actually managed to break the DVI viewer 
as well. (At one point the entire document turned green, just by me 
manipulating the view...)

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 4 Aug 2011 17:20:30
Message: <4e3b0d1e$1@news.povray.org>
On 04/08/2011 10:16 PM, Warp wrote:
> Orchid XP v8<voi### [at] devnull>  wrote:
>> OK, I guess what I was really asking is why it's still considered the
>> most powerful editor *today*.
>
>    There aren't many text editors even today that reach the same level
> of expressiveness.
>
>    Most software development IDEs have editors that do a lot of things
> (like syntax highlighting and such) but are not even nearly as powerful
> as emacs. (The most annoying thing that they usually lack is the same
> kind of autoindentation as emacs has had for centuries.)

Interesting. Every IDE I've seen has had an autoindent feature that you 
can't turn *off*. (Which is annoying, because usually it works 
incorrectly...)

Anyway, I'm still not seeing the "not nearly as powerful" bit. Emacs 
lets you change stuff yourself. Most editors and IDEs aren't so 
flexible. That's the only difference I can see currently.

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


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 4 Aug 2011 17:20:48
Message: <4e3b0d30$1@news.povray.org>
On 8/4/2011 12:26, Orchid XP v8 wrote:
> None of these are exactly "small" or "obscure" or "primarily for Linux". And
> yet, no COM.

Well, there's another reason people rage about IE still being popular for 
intranet purposes. It's because people writing the new browsers ignore the 
environment they're in.

The problem with COM is that it's not something you can really paste on 
after the fact. If your system isn't very Model-view-controller, it's hard 
to make it interface with a COM interface.

> But in trying to come up with a list... yeah, most of the stuff I have is
> FOSS, which probably explains why no COM.

That and people who are doing firefox development don't *expect* you to use 
it in an automated way, or they expect you to automate it solely thru 
javascript.

Anyone building something for a *business* to use is going to use COM for 
the interface on Windows.

> Now, aside from that matter, the thing which really puzzles me is this: If
> something *does* support COM, how the hell do you *use* it?

http://msdn.microsoft.com/en-us/library/aa366757%28VS.85%29.aspx


-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 4 Aug 2011 17:21:59
Message: <4e3b0d77@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> Actually, I notice the same artifact here as I did with "fill mode". In 
> that mode, whenever you finish typing something, Emacs wraps it at 70 
> characters for you. Which is nice and all, but you know what? As I'm 
> typing this post right now, Thunderbird is going the same thing 
> /interactively/. It doesn't wait until I've stopped typing and than 
> rearrange all my text. It arranges it as I type, so I can immediately 
> see what the result will be like.

  I hate text editors that do some kind of automatic line splitting without
asking (especially if you can't turn the feature off). I like emacs because
it doesn't change anything in the file you open unless you explicitly ask
it to. You can open a *binary* file in emacs, save it, and it will be
identical to the original. The same cannot be said from most other text
editors (especially in Windows) which do tons of "smart" things automatically
(such as convert newline characters, unprintable characters, etc.)

  In fact, thanks to this property, you can use emacs as a hex editor.
It has a built-in hex-editing mode. (Yes, some other text editors have
that too. Not many, though.)

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 4 Aug 2011 17:25:28
Message: <4e3b0e48$1@news.povray.org>
On 8/4/2011 14:17, Orchid XP v8 wrote:
> Well, that's what it *is*. It's a program that converts your markup into
> something that looks nice.

Technically, it's a program that converts your mark up into a bunch of empty 
boxes that would look nice if you filled them in with the right fonts and 
such. It's stuff like dvi2ps that actually creates something that looks nice.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 4 Aug 2011 17:26:55
Message: <4e3b0e9f@news.povray.org>
On 8/4/2011 14:16, Warp wrote:
> (The most annoying thing that they usually lack is the same
> kind of autoindentation as emacs has had for centuries.)

The one time I got good at emacs was the time I needed better auto-indenting 
than I could get from a filter at the time. :-)

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 4 Aug 2011 17:36:46
Message: <4e3b10ee@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
>   Can you do it in a text terminal through ssh? Can you customize the
> functionality, change it, add new features or modify existing ones? Can
> you run it on Windows, Linux, MacOS X, BSD, Solaris, and basically any
> Unix-style OS in existence? Can you get that software for free?

  Oh, and another thing: You can do the work on a simple text file, meaning
that if you wanted, you could later edit the file with any other program you
like, rather than using a closed, proprietary file format that can only be
opened and edited with MS Office.

  Imagine if Photoshop only supported a closed proprietary image format to
do its job, rather than doing it on standard image file formats. Suddenly
Gimp would be a whole lot more desirable.

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 4 Aug 2011 17:46:26
Message: <4e3b1332@news.povray.org>
On 8/4/2011 12:26, Orchid XP v8 wrote:
> Does POV-Ray support COM? Is Windows the primary development platform for
> POV-Ray? Exactly.

It doesn't make a whole lot of sense for a batch-processing program to use 
COM for scripting. What would you script that you can't do from the command 
line?

> Does 7zip support COM? How about Firefox? Google Earth? Sketchup?

http://www.adamlock.com/mozilla/   Mozilla COM interface.

http://earth.google.com/comapi/  Google earth COM api. That wasn't even hard 
to find.

http://include.wutils.com/com-dll/constants/constants-SketchUp.htm
Sketchup COM interface.

> None of these are exactly "small" or "obscure" or "primarily for Linux". And
> yet, no COM.

And yet, no google fu. ;-)

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 4 Aug 2011 18:01:33
Message: <4e3b16bd$1@news.povray.org>
On 8/4/2011 13:01, Orchid XP v8 wrote:
> Anyway, point being, you can apply DbC to anything. It doesn't have to be OO.

Hmmmm. Not really.  I can't imagine how you'd apply it to old-school BASIC. 
Or C in any reasonable sense. (What would an invariant look like in C?)

Preconditions and postconditions apply to routines that have state. 
Invariants apply to routines that have state outside of the individual 
routines *and* which have instances. So none of those really apply to purely 
procedural or functional languages.

Exception management in the DbC way doesn't really apply to functional code.

> Emacs may be old and clunky, but to be fair, it worked perfectly out of the
> box.

It's a sad commentary when the normal state of software is "hey, I installed 
it, and it worked before I made any other changes!"

>>> Maybe it's "the best" in the same way as TeX. The output of TeX is quite
>>> simply the most beautiful thing I've ever seen.
>>
>> Hopefully they've improved it. TeX is probably OK as long as you don't
>> use it with metafont files, but the output with metafont is pretty sucky.
>
> I don't get what's "sucky" about Metafont. (Other than that nobody uses
> bitmap fonts anymore unless they really have to...)

The spacing sucks. The weight sucks. I'd have to show you two identical 
pieces of text, one set with metafont, one set on a real typesetter, for you 
to easily see the difference. But it's quite as much there as the jaggies on 
a 300DPI print-out compared to a 1200DPI print-out.

> With Unix, you can decide to use a completely different filesystem that you
> just made up, you can change the thread scheduling algorithm, and then you
> can change the implementation of the ARP cache from a hashtable to a linked
> list. None of which is possible with Windows.

That's not UNIX. That's Linux, and it's because you have the source code, 
not because it's UNIX. And yes, Windows you can use a completely different 
file system you just made up. And you can probably change the other stuff 
too - it just costs more.  And given that TCP/IP is an optional driver, I'd 
be very surprised to find you couldn't load your own version of that too if 
you wanted.

Kernel scheduling? Not so much, agreed.

But that sort of stuff isn't what I think of when I think of a "flexible" 
OS. I think of being able to do things flexibly, not the ability to change 
the source code because I happen to have the source code. I think of the 
ability to do things I couldn't do otherwise if the OS didn't have support 
or hooks for it.

> I have never, ever seen Linux crash unless I did something wrong. (E.g., it
> crashes because I just told it to format a device that's currently mounted.)
> My first Windows XP laptop crashed WITHIN 14 SECONDS of first being turned
> on. Didn't even finish the setup wizzard.

I've seen plenty of Linux crashes. You just didn't run it on flakey hardware 
like you did your XP, for example. (Or you just had a corrupted copy on your 
HD.)  Do you really think everyone who bought that laptop had it crash 
within 15 seconds of turning it on the first time?

> That said, over the years Windows has become more reliable. Our Windows
> servers basically never crash. I have to reboot them for some reason long
> before they fail.

Right.  Windows gets crufty if you keep dicking with it, basically.

> Still, if I was going to run, like, a nuclear enrichment program, I wouldn't
> want to use Windows. The malware implications alone would be... oh, wait.

No, I wouldn't used closed-source software for anything safety critical if I 
could avoid it.

> And Ctrl+B ("beginning") is already "back". And Ctrl+F ("first") is already
> "forward"...

That's exctly the problem with mnemonics.

> Well, yeah, I don't tend to open up a text editor and then press random key
> combinations to see if it activates a special feature I didn't know about.

Control right-arrow is a "random key combination"?

You know that holding shift while you move the cursor selects things too, right?

>>> (But then again, it's not exactly a feature you'd bother looking for.)
>>
>> Of course it is, especially if you're editing text.
>
> Can you give one single example of where you'd want to do this rather than,
> say, just jab the arrow key a few times?

Where I would want to search in a text file to find a word? You're kidding 
me, right?

I have the output from compiling a bunch of programs. The file is 4000 lines 
long. What was the command line used to compile firefox_scrollbar.c?

Heck, I have all the names and addresses in a text file. I want to look up 
my brother's fax number.

I have a program that's several screens long. I want to find everywhere the 
function LookForMe is used.

> I'm kinda surprised that there doesn't seem to be a "go to line 287"
> command. I mean, you can go to the top and then move down 287 lines. No,
> wait, that would take you to line 288. ARGH! >_<

There probably is. It was just an example.

>>> There's a section on "when Emacs is hung". What, you're actually
>>> expecting that to happen?
>>
>> If you're writing your own code, or you hand it a few megabytes and say
>> "go indent this".
>
> Wait, your own code can crash Emacs?

No, but it can hang emacs for long enough that you think it's crashed.

> Generally you don't expect, say, Firefox to die just because you feed it
> some bad JavaScript.

It doesn't, nor does emacs. That's why ctrl-G works, you see. Why do you 
think "interrupting my code where I accidentally wrote an infinite loop" is 
equivalent to "crashing emacs"? It's not crashed exactly *because* you can 
interrupt it.

> A typical editor session generally involves lots of typing, maybe a bit of
> scrolling, and periodically saving. So you'd expect the commands for editing
> and scrolling to be quick, as well as the command for saving.

You don't write a lot of code, do you? :-)

> These are all pretty rare, really.

I think it depends on what you do with an editor. :-) They're all pretty 
common for me.

> And break compatibility with all the extensive library of code written for
> Emacs! :-D

The code for emacs doesn't get invoked thru the keyboard mappings, any more 
than the code for COM does.

> Fun thing: Open Firefox. Press F3. Start typing. It highlights the first
> match it finds, as you type. By pressing Next and Prev, you can make it
> select other matches. But it does /not/ highlight *all* of them at once. I
> haven't seen anything except Emacs do that.

vim and visual studio both do. I don't use much else besides those three.

> Last time I invoked Vi, I had to reboot the PC to get out of it again.

If the last time you ran vi was before windows had close boxes on them, I 
can understand why you might be nervous.

Did you try reading a tutorial first?

>  From what I can gather, Emacs was amoung the very first editors that let
> you SEE WHAT YOU'RE EDITING, and do this AT THE SAME TIME AS YOU EDIT IT.
> The other editors were apparently like that awful "sed" thing. I can see how
> this would be regarded as a massive leap forward.

Nah. emacs didn't work on hard-copy terminals, which were still the dominant 
way of interacting with computers for a long time. As soon as tubes were 
common, so were visual editors.

> Being able to view multiple files simultaneously on a VT100 would have been
> a significant technical achievement. It seems Emacs basically invented the
> multiple document interface / tabbed editing / whatever you want to call it.

I'll grant you that one. :-)

> Being able to invoke all your tools from within your editor and edit their
> output is again quite a powerful idea.

vi had that too, except it was *all* your tools, with no need to write 
macros to handle it.

> Visual Studio is an IDE. It works for (say) C++. But if I decided I wanted
> it to work for Haskell... tough. Cannot be done.

http://research.microsoft.com/apps/pubs/default.aspx?id=67496

Guess how the IDE interacts with it?  COM!

 > Not unless you hire a vast
> army of C++ programmers to write the necessary hooks and DLLs and God only
> knows what else to add the support to VS.

Uh, one Bulgarian intern, on the weekends.

> My current editor is SciTE. It supports many, many file formats. But Haskell
> is not one. I would have to compile it from source to add Haskell syntax
> highlighting (since none of the existing lexers are remotely similar, so I
> would have to add a new one).

Or you could use vim and haskell mode and see if it works.

http://projects.haskell.org/haskellmode-vim/

> I think there is probably still a place in the world for some kind of engine
> which is so configurable that you can build a complete development
> environment with it, for any conceivable target, without having to do really
> heavy stuff like writing low-level C code or compiling huge codebases from
> scratch.

That's exactly why Microsoft invented COM, IBM invented REXX, standards 
bodies invented COBRA, etc etc etc.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: andrel
Subject: Re: The other OS
Date: 4 Aug 2011 18:02:19
Message: <4E3B16F0.9090109@gmail.com>
On 4-8-2011 23:17, Orchid XP v8 wrote:
>>> Riiiiight. Tell me, how do I
>>
>> Use your brain?
>
> I fail basic English. :'{
>
>>> TeX does not "understand" colour or graphics.
>
>> indeed. Lots of packages to handle the most diverse needs. A reasonable
>> on-line index and books with examples.
>
> Like I say, after hacking away at it for years, they've got it to
> sort-of work, most of the time. That's not the same as TeX *actually*
> supporting these things.

of course not, that is not how it works. You use packages if you want to 
do something other than basic typesetting.

>>> The system is still fragile, however. Literally, the colour changing
>>> commands are classified as "fragile" LaTeX commands, and you're supposed
>>> to use /protect and so forth. If you, for example, change colour in a
>>> section heading, that works fine in the section heading, but breaks in
>>> the table of contents and page running headings.
>>
>> If you mean that you wanted to change global behaviour in a heading, you
>> deserve nothing better than a broken output.
>
> No. If you just want to change the colour of one word in a seciton
> heading. Pretty easy with CSS (you can even have it apply only to the
> section heading and not the TOC listing, for example), but does evil
> things to TeX.
>
>>> Oh, and I forgot to mention hyperlinks. But then, TeX is for /printing/,
>>> primarily, so that's excusible.
>>
>> I think I have even seen those.
>
> Yes. They're kludged in the same way as colour and graphics.

Kludged?
People spend a lot of time creating packages for you to use without you 
having to understand the details.

>>>> It most certainly does. Style files are are at the heart of the system.
>>>
>>> Sure. In theory.
>>>
>>> Now suppose that for some reason I wanted all the document to come out
>>> in a different typeface for some reason. The body text, section
>>> headings, table of contents, figure captions, everything. Do you have
>>> any idea how intractibly difficult that is?
>>
>> Bloody easy. My theses was in Garamont (IIRC my student decide that 9.5
>> points would be ideal). Noticed that too late in the process to change
>> it to something
>
> ...something...? Perhaps it is not only me that fails English. ;-)

sorry was distracted and didn't notice I didn't finish the sentence.


>>> Click a few of the stylesheets. Watch the entire page radically
>>> transform instantly. TeX can't do that. (Recent versions of Word almost
>>> can... but don't expect it to work properly.)
>>
>> ?? LaTeX can, haven't used plain TeX enough to have noticed any
>> instances where it didn't work. Unless instantly is your operative word.
>
> If I decided, for some insane reason, that I wanted section headings to
> be set vertically in the margin rather than how a sane person would set
> them... well, technically it's /possible/, but it would be damned /hard/
> to do it.

Not really. It would if you had to catch all circumstances including 
headings that would partially fall of the page

>>>> If you mean debugging your text or layout, that is more simple than
>>>> in a
>>>> wysiwyg editor.
>>>
>>> The page breaks look just fine. Then I write some more text, and the
>>> page breaks move. Wuh?
>>
>> Yes, what did you expect else? Somewhere I have this nagging feeling
>> that you try to treat TeX as a something similar to Word. Just a program
>> to convert raw text to nice output.
>
> Well, that's what it *is*. It's a program that converts your markup into
> something that looks nice.

nope. It is a programming environment that happens to create documents 
as a side effect. ;)


> (Word, of course, is more about *editing* text than actually making it
> look good...)
>
> It's just baffling when a seemingly unrelated change causes part of the
> page flow to change for the worse.

You clearly don't understand TeX's philosophy. It is totally to be 
expected, unless you are brainwashed by wysiwyg environments.

> Or when you say "put this figure
> HERE" so LaTeX puts it five pages later. Or whatever.

You can not say that. You just suggest that this might be a good place. 
It is totally op to Don to grant your wish or not, depending on what he 
thinks looks best. In practice he will be more far often right than you. 
You just remember the occasions where you though you knew better better.

>>> Do you have any idea how much trouble I had trying to get it so that any
>>> text put inside a "tabbing" environment comes out green? In the end I
>>> was forced to give up. It just WILL NOT work consistently.
>>
>> You mean messing with the standard tabbing environment or when creating
>> a new green environment.
>>
>>> If this was HTML I was talking about, changing the colour of one block
>>> of text would be laughably simple. But TeX just can't handle it.
>>
>> Correction: you can not handle it. If I understood what you wanted to
>> accomplish, I might feel tempted to try.
>
> I merely wanted to create a new tabbing environment where all the text
> comes out green, set one quad in from both margins. (Apparently there's
> no way to prevent it flowing off the right edge of the page though...)
>
> First I found that only the /first/ line came out green. So then I added
> a group around the body. That worked fine... until the environment went
> over a page break, at which point it broke again. Not to mention that by
> flipping from page to page, I actually managed to break the DVI viewer
> as well. (At one point the entire document turned green, just by me
> manipulating the view...)

So is TeX to blame or your DVI viewer?



-- 
Apparently you can afford your own dictator for less than 10 cents per 
citizen per day.


Post a reply to this message


Attachments:
Download 'test.tex.txt' (2 KB) Download 'test.pdf' (10 KB)

From: Darren New
Subject: Re: The other OS
Date: 4 Aug 2011 18:06:56
Message: <4e3b1800$1@news.povray.org>
On 8/4/2011 15:02, andrel wrote:
> So is TeX to blame or your DVI viewer?

If you're going down that road, then TeX doesn't output any text at all. All 
it outputs is layout. ;-)

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 4 Aug 2011 18:48:06
Message: <4e3b21a6$1@news.povray.org>
On 8/4/2011 14:36, Warp wrote:
>    Oh, and another thing: You can do the work on a simple text file, meaning
> that if you wanted, you could later edit the file with any other program you
> like, rather than using a closed, proprietary file format that can only be
> opened and edited with MS Office.

You could do that with Word or Teco or VIM if you wanted to write the macro, 
sure.  I'll agree writing something like that in anything but Word (a la VBA 
or .NET) or elisp would be rather a PITA, since the macro languages of the 
others aren't what you'd call modular or easy to read. :-)

And emacs is pretty insular in its scripting language. You can't really talk 
to anything else from emacs' scripting language like you can with COM or 
REXX. You can't, for example, actually take that HTML you generated and 
display it formatted inline using an actual web browser, or take the 
formulas you used in the columns and store them in the table like with a 
spreadsheet. So there's strengths but also drawbacks of having a text-only 
format as well. The whole point of COM is to give you programmatic scripting 
access to the proprietary file formats.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 4 Aug 2011 19:39:44
Message: <4e3b2dc0$1@news.povray.org>
On 8/4/2011 12:26, Orchid XP v8 wrote:
> Now, aside from that matter, the thing which really puzzles me is this: If
> something *does* support COM, how the hell do you *use* it?

By the way, that was the link for implementing COM in your own code if you 
don't already have a COM interface built into your language. COM is 
basically a way of invoking object-oriented actions to a server (where 
"server" means your own or some other address space).

If you already have a library, you invoke it from your scripting language by 
using whatever function the scripting language has for creating an object 
from a COM server, then you just call it like it was a local object.

In Tcl, for example, you can do this
http://www.vex.net/~cthuang/tcom/chart.html
to start a copy of Excel and then create a spreadsheet and chart the values 
in it.

Or you can do this:
http://www.vex.net/~cthuang/tcom/server.html
to create a "server" side, which is to say, a program that can create COM 
objects for others to use.

VB6 had all this stuff built in, so you'd just say "hey, this is a com 
object" and you could instantiate it and call it and everything. That's what 
made VB6 so popular: if you wanted to do something funky with an excel 
spreadsheet, you could write a COM object in VB6 and call it from the Excel 
spreadsheet in a macro and have that COM object talk to other COM objects 
like web servers and so on.

Most of the languages that support COM just say "here's how you create a COM 
object, here's how you create the server side, go for it." And you mostly 
don't have to worry about how it works inside until something breaks. In a 
language that supports COM already, it's not noticeably harder than writing 
or invoking DLLs.

You may think it's difficult because you're trying to use it from Haskell, 
and COM is OO.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 5 Aug 2011 03:35:37
Message: <4e3b9d49$1@news.povray.org>
On 04/08/2011 10:21 PM, Warp wrote:
> Orchid XP v8<voi### [at] devnull>  wrote:
>> Actually, I notice the same artifact here as I did with "fill mode". In
>> that mode, whenever you finish typing something, Emacs wraps it at 70
>> characters for you. Which is nice and all, but you know what? As I'm
>> typing this post right now, Thunderbird is going the same thing
>> /interactively/. It doesn't wait until I've stopped typing and than
>> rearrange all my text. It arranges it as I type, so I can immediately
>> see what the result will be like.
>
>    I hate text editors that do some kind of automatic line splitting without
> asking (especially if you can't turn the feature off).

I have my text editor to do automatic line wrapping. Note that it only 
wraps the *display*, however. The actual file on disk is unchanged.

> I like emacs because
> it doesn't change anything in the file you open unless you explicitly ask
> it to. You can open a *binary* file in emacs, save it, and it will be
> identical to the original. The same cannot be said from most other text
> editors (especially in Windows) which do tons of "smart" things automatically
> (such as convert newline characters, unprintable characters, etc.)

My text editor allows you to *display* the line ends, so you can 
visually see which lines end with LF, which ones are CR, and also 
arbitrary combinations thereof. It can also display other non-printing 
characters if you wish (which is sometimes useful).

>    In fact, thanks to this property, you can use emacs as a hex editor.
> It has a built-in hex-editing mode. (Yes, some other text editors have
> that too. Not many, though.)

Now that might actually be useful. I've yet to find any hex editors.

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 5 Aug 2011 03:50:00
Message: <4e3ba0a8$1@news.povray.org>
>> Like I say, after hacking away at it for years, they've got it to
>> sort-of work, most of the time. That's not the same as TeX *actually*
>> supporting these things.
>
> of course not, that is not how it works. You use packages if you want to
> do something other than basic typesetting.

If TeX had been /designed/ to support such things, they would work far 
more reliably. (And you would probably be able to do things like /query/ 
what the current colour is, set a new colour relative to the old one, etc.)

>> Yes. They're kludged in the same way as colour and graphics.
>
> Kludged?
> People spend a lot of time creating packages for you to use without you
> having to understand the details.

They worked around the limitations as best as they could. They did quite 
well, considering. But it's still not the same as having real support 
for something.

>> ...something...? Perhaps it is not only me that fails English. ;-)
>
> sorry was distracted and didn't notice I didn't finish the sentence.

Ditto. ;-)

>> Well, that's what it *is*. It's a program that converts your markup into
>> something that looks nice.
>
> nope. It is a programming environment that happens to create documents
> as a side effect. ;)

If by "programming environment" you mean "text macro processor" then 
yes. Technically, PostScript is a Turing-complete programming language 
which optionally creates printed pages too. ;-)

>> I merely wanted to create a new tabbing environment where all the text
>> comes out green, set one quad in from both margins. (Apparently there's
>> no way to prevent it flowing off the right edge of the page though...)
>>
>> First I found that only the /first/ line came out green. So then I added
>> a group around the body. That worked fine... until the environment went
>> over a page break, at which point it broke again. Not to mention that by
>> flipping from page to page, I actually managed to break the DVI viewer
>> as well. (At one point the entire document turned green, just by me
>> manipulating the view...)
>
> So is TeX to blame or your DVI viewer?

The problem is that the DVI format (which TeX invented) doesn't really 
support colour, and neither does TeX itself. They managed to hack 
support for it into TeX and the DVI format, but it's not very reliable.

In a sense, DVI is just the preview. The final document is almost always 
PDF. But even the PDF version had colouring gone wrong. Like, if the 
environment broke over a page, the page number at the bottom turned 
green, and the running heading on the text page, but then all the rest 
of the text was black. Short of embedding a colour mark at the beginning 
of every line, I'm not sure how to fix that...

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 5 Aug 2011 08:42:22
Message: <4e3be52e$1@news.povray.org>
On 05/08/2011 12:39 AM, Darren New wrote:

> By the way, that was the link for implementing COM in your own code if
> you don't already have a COM interface built into your language. COM is
> basically a way of invoking object-oriented actions to a server (where
> "server" means your own or some other address space).
>
> If you already have a library, you invoke it from your scripting
> language by using whatever function the scripting language has for
> creating an object from a COM server, then you just call it like it was
> a local object.

I wasn't even asking "how do I write a program that invokes this COM 
thing?". I was asking, more basically, "how do you do useful stuff with 
COM?" As best as I can tell, COM lets you create "objects" and invoke 
"methods" on them... that's as far as I was able to figure out.

> In Tcl, for example, you can do this
> http://www.vex.net/~cthuang/tcom/chart.html
> to start a copy of Excel and then create a spreadsheet and chart the
> values in it.

I'm fairly sure I tried that [or similar] in Tcl and it didn't work.

> VB6 had all this stuff built in

Yeah, I figured.

I also figured that the only reason that you can (say) embed an Excel 
spreadsheet in a Word document is because both products are produced by 
the same company. The "normal" software that you and I write can't do 
such sophisticated things. As far as I can tell, anyway.

> In a language that supports COM already, it's not noticeably
> harder than writing or invoking DLLs.

I've yet to see a language that can invoke DLLs either...

> You may think it's difficult because you're trying to use it from
> Haskell, and COM is OO.

I'd be perfectly happy doing COM from, say, JavaScript. It's not that 
Haskell is the problem, it's that I can't see *anything* that speaks COM.

I get the feeling that the only way to solve this is to use some 
horrifically awful language like VB...

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 5 Aug 2011 08:42:26
Message: <4e3be532@news.povray.org>
On 04/08/2011 11:01 PM, Darren New wrote:
> On 8/4/2011 13:01, Orchid XP v8 wrote:
>> Anyway, point being, you can apply DbC to anything. It doesn't have to
>> be OO.
>
> Hmmmm. Not really. I can't imagine how you'd apply it to old-school
> BASIC. Or C in any reasonable sense. (What would an invariant look like
> in C?)
>
> Preconditions and postconditions apply to routines that have state.
> Invariants apply to routines that have state outside of the individual
> routines *and* which have instances. So none of those really apply to
> purely procedural or functional languages.
>
> Exception management in the DbC way doesn't really apply to functional
> code.

DbC is a technique. In Eiffel it's supported in the language, in 
anything else it's a design pattern.

You can do functional programming in BASIC. It's God-damned hard, mind 
you, but it's possible. People were doing structured programming in 
BASIC way before they invented languages that properly support that out 
of the box.

A precondition is a Bool expression which must be true when a code block 
is entered. If it isn't true, the code block is allowed to malfunction 
arbitrarily badly. But if it /is/ true, then when the code block exits, 
the postcondition is required to be true.

I don't see anything in the above that requires the code blocks to be 
class methods, or even to be proper named constructs. If you were 
operating in BASIC, it might just be "when line 1580 is reached, X must 
contain a positive integer", and then "when line 1615 is reached, X must 
contain a new positive integer larger than the one that was there before".

An invariant looks like it should apply to any data structure of a given 
type (e.g., every tree node must contain a value lower than the one in 
its parent node), or perhaps to a given set of global variables (the 
nextID variable must always be positive and nonzero). Again, I don't see 
any especial reason why it has to apply only in an OO setting.

> It's a sad commentary when the normal state of software is "hey, I
> installed it, and it worked before I made any other changes!"

Indeed.

>> I don't get what's "sucky" about Metafont. (Other than that nobody uses
>> bitmap fonts anymore unless they really have to...)
>
> The spacing sucks. The weight sucks. I'd have to show you two identical
> pieces of text, one set with metafont, one set on a real typesetter, for
> you to easily see the difference.

Let me put it this way: It looks a crapload better than Word, Excel, 
PowerPoint, OpenOffice, or the HTML rendering of any browser I've tried.

Whether it looks better than a £20,000 piece of professional publishing 
software, I couldn't say. But given that I'm never going to own £20,000, 
it's kind of irrelevant.

> But it's quite as much there as the
> jaggies on a 300DPI print-out compared to a 1200DPI print-out.

Then why don't you just, um, increase the resolution? That's the entire 
/point/ of Metafont, after all. Its fonts are completely scaleable.

>> With Unix, you can decide to use a completely different filesystem
>> that you
>> just made up, you can change the thread scheduling algorithm, and then
>> you
>> can change the implementation of the ARP cache from a hashtable to a
>> linked
>> list. None of which is possible with Windows.
>
> That's not UNIX. That's Linux, and it's because you have the source
> code, not because it's UNIX.

Has there ever /been/ a Unix that isn't distributed in source form?

> And yes, Windows you can use a completely
> different file system you just made up. And you can probably change the
> other stuff too - it just costs more. And given that TCP/IP is an
> optional driver, I'd be very surprised to find you couldn't load your
> own version of that too if you wanted.
>
> Kernel scheduling? Not so much, agreed.

In reality, I'm not actually going to change such things, on either 
system. It would be far too hard. But in principle, it's possible with 
Linux. (And probably OpenBSD and a few others.) It's not possible with 
Windows. At least, not without paying real money.

> But that sort of stuff isn't what I think of when I think of a
> "flexible" OS. I think of being able to do things flexibly, not the
> ability to change the source code because I happen to have the source
> code. I think of the ability to do things I couldn't do otherwise if the
> OS didn't have support or hooks for it.

OK, fair enough.

Of course, "Windows" is a single monolithic piece of software, whereas 
"Linux" (the OS) is a vast array of independently replaceable bits. The 
latter is far more flexible, and also a damn site more messy.

> I've seen plenty of Linux crashes. You just didn't run it on flakey
> hardware like you did your XP, for example. (Or you just had a corrupted
> copy on your HD.) Do you really think everyone who bought that laptop
> had it crash within 15 seconds of turning it on the first time?

 From what I've heard... yes.

Do you not remember when XP first came out? Everybody *hated* it because 
it was so buggy and unstable. People paid good money to downgrade their 
PCs to something more reliable. Fortunately, most of those problems seem 
to be fixed now.

>> And Ctrl+B ("beginning") is already "back". And Ctrl+F ("first") is
>> already "forward"...
>
> That's exctly the problem with mnemonics.

Still, the shortcuts in FractInt aren't exactly logical either. (Press G 
to invoke the colouring algorithm options??) After a while, common 
combinations of commands become second nature. And I guess the thing 
about FractInt is that the currently available commands are permanently 
visible, all the same. If you see a command on-screen, you can use it by 
pressing that key.

I doubt Emacs could do it even if it wanted to. There are too many 
commands available.

>> Well, yeah, I don't tend to open up a text editor and then press
>> random key
>> combinations to see if it activates a special feature I didn't know
>> about.
>
> Control right-arrow is a "random key combination"?

Well, yeah. Not as random as, say, Shift+Alt+- (I'm looking at you, 
Emacs). But it's not the sort of thing you'd try just on the off-chance 
that maybe it does something.

> You know that holding shift while you move the cursor selects things
> too, right?

Not only do I know that, I meantioned it in my original post. :-P

>> Can you give one single example of where you'd want to do this rather
>> than, say, just jab the arrow key a few times?
>
> Where I would want to search in a text file to find a word?

Where you'd want a special key to move to the next word on the line. But 
sure, if you wanna do search instead...

> You're kidding me, right?

It's not that searching is pointless. It's just not something that's 
useful especially often.

> I have the output from compiling a bunch of programs. The file is 4000
> lines long. What was the command line used to compile firefox_scrollbar.c?

The output is 4000 lines line? In what universe...?? O_O

That's just scary.

> Heck, I have all the names and addresses in a text file. I want to look
> up my brother's fax number.

See, I would probably use a real database for that.

> I have a program that's several screens long. I want to find everywhere
> the function LookForMe is used.

Yeah. That's basically the only time I use search.

>> Wait, your own code can crash Emacs?
>
> No, but it can hang emacs for long enough that you think it's crashed.
>
>> Generally you don't expect, say, Firefox to die just because you feed it
>> some bad JavaScript.
>
> It doesn't, nor does emacs. That's why ctrl-G works, you see. Why do you
> think "interrupting my code where I accidentally wrote an infinite loop"
> is equivalent to "crashing emacs"? It's not crashed exactly *because*
> you can interrupt it.

It's just that the section heading says "if Emacs crashes..."

So I guess it's just badly worded then.

>> A typical editor session generally involves lots of typing, maybe a
>> bit of
>> scrolling, and periodically saving. So you'd expect the commands for
>> editing
>> and scrolling to be quick, as well as the command for saving.
>
> You don't write a lot of code, do you? :-)

What the heck do you think I use a text editor for? Writing code is just 
about *all* I do!

>> These are all pretty rare, really.
>
> I think it depends on what you do with an editor. :-) They're all pretty
> common for me.

What, are you writing C or something?

>> And break compatibility with all the extensive library of code written
>> for Emacs! :-D
>
> The code for emacs doesn't get invoked thru the keyboard mappings, any
> more than the code for COM does.

And you add some package that makes Alt+R do the same thing as Ctrl+R 
but slightly differently. Oh, I'm sorry, you changed Ctrl+R to be 
Ctrl+Z? Oh, well, nevermind... ;-)

>> Fun thing: Open Firefox. Press F3. Start typing. It highlights the first
>> match it finds, as you type. By pressing Next and Prev, you can make it
>> select other matches. But it does /not/ highlight *all* of them at
>> once. I haven't seen anything except Emacs do that.
>
> vim and visual studio both do. I don't use much else besides those three.

I use neither of those. (Or rather, I've used VS. In the time I was 
using it, I didn't need search. Especially since you can just click the 
tree view to find whatever function you want.)

>> Last time I invoked Vi, I had to reboot the PC to get out of it again.
>
> If the last time you ran vi was before windows had close boxes on them,
> I can understand why you might be nervous.
>
> Did you try reading a tutorial first?

No, the last time I ran Vi was on an early version of RedHat. Apparently 
Vi was the only text editor installed, and I was desperately trying to 
find something to edit the X configuration file so that I could make it 
start up. (I think I even managed to make it work eventually. After 
having looked up the scan frequencies of my monitor, type of RAMDAC in 
my video card, and other misc data...)

>> Being able to invoke all your tools from within your editor and edit
>> their output is again quite a powerful idea.
>
> vi had that too, except it was *all* your tools, with no need to write
> macros to handle it.

I should have forceen a Holy War. ;-)

>> Visual Studio is an IDE. It works for (say) C++. But if I decided I
>> wanted it to work for Haskell... tough. Cannot be done.
>
> http://research.microsoft.com/apps/pubs/default.aspx?id=67496

Ah yes, the old bitrotted VS plugin...

> Guess how the IDE interacts with it? COM!

Probably.

>> Not unless you hire a vast
>> army of C++ programmers to write the necessary hooks and DLLs and God
>> only knows what else to add the support to VS.
>
> Uh, one Bulgarian intern, on the weekends.

Did I mention the part about how it never really worked to everyone's 
satisfaction and was eventually abandoned?

>> My current editor is SciTE. It supports many, many file formats. But
>> Haskell
>> is not one. I would have to compile it from source to add Haskell syntax
>> highlighting (since none of the existing lexers are remotely similar,
>> so I
>> would have to add a new one).
>
> Or you could use vim and haskell mode and see if it works.

As I say, I know several people have build solutions for Emacs and Vim. 
My point was that this is an advantage for these editors; to do the same 
with my current editor, I'd have to recompile it.

>> I think there is probably still a place in the world for some kind of
>> engine
>> which is so configurable that you can build a complete development
>> environment with it, for any conceivable target, without having to do
>> really
>> heavy stuff like writing low-level C code or compiling huge codebases
>> from
>> scratch.
>
> That's exactly why Microsoft invented COM, IBM invented REXX, standards
> bodies invented COBRA, etc etc etc.

Accessing COM is nowhere near as easy as throwing together a few lines 
of elisp. (As far as I can tell.)

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


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 5 Aug 2011 11:05:31
Message: <4e3c06bb@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> My text editor allows you to *display* the line ends, so you can 
> visually see which lines end with LF, which ones are CR, and also 
> arbitrary combinations thereof. It can also display other non-printing 
> characters if you wish (which is sometimes useful).

  I have emacs set so that it shows whitespaces at the end of lines with
blue background. It looks a bit annoying, completely on purpose. One
quickly develops a style of writing code such that you never end up with
empty spaces at the end of lines.

  When you open other people's code with emacs set up like that, in
approximately 90% of cases there will be tons of extra whitespace at
the end of lines.

  (Of course if you need to edit such code, emacs makes it easy to strip
those whitespaces with one smart search-and-replace.)

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 5 Aug 2011 11:08:31
Message: <4e3c076f@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> (What would an invariant look like in C?)

  I suppose the closest thing is "assert(a < b);"

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 5 Aug 2011 16:01:23
Message: <4e3c4c13$1@news.povray.org>
On 8/5/2011 5:42, Orchid XP v8 wrote:
> I was asking, more basically, "how do you do useful stuff with
> COM?"

Oh. You find a COM object that does what you want it to do, and you use it.

> As best as I can tell, COM lets you create "objects" and invoke
> "methods" on them... that's as far as I was able to figure out.

Yes, that's what COM is for. The "methods" are usually implemented in either 
system libraries or in applications. So an "object" might be an excel 
spreadsheet, and the "methods" would manipulate the cells, set up a graph, 
and then copy the image of the graph to the clipboard for you to use.

Asking "what good is COM" is like asking "what good are command line 
arguments? All they do is let you give strings to a program, but what do I 
*use* them for?"

With COM, you could do something like write a script that reads a database, 
sticks the entries in Excel, does a time-value average, finds the entry that 
has some maximum value for some property you're interested in, and then fire 
up google earth to plot how that property has changed with geography over time.

COM is to stdio like powershell is to CLI. It's an OO way of talking to a 
running program and invoking methods inside it.

> I'm fairly sure I tried that [or similar] in Tcl and it didn't work.

I dunno. I used it for years.

> I also figured that the only reason that you can (say) embed an Excel
> spreadsheet in a Word document is because both products are produced by the
> same company.

No no no. That's the whole *point* of COM. That's why there's a standard 
interface definition language and such. That's how systems like firefox and 
emacs work - custom scripting languages manipulating data structures only 
visible within the context of that program. COM lets you talk to the data 
structures inside a program without using that program's scripting language.

> I've yet to see a language that can invoke DLLs either...

Maybe you should learn a normal language, then. :-)

> I'd be perfectly happy doing COM from, say, JavaScript. It's not that
> Haskell is the problem, it's that I can't see *anything* that speaks COM.

Tcl, VBScript, WScript, VBA, and C# all have trivial interfaces to COM. 
Google up some language you know, and look to see if it has a COM interface 
implementation.  Didn't you tell me you had written a VBA macro or two?

> I get the feeling that the only way to solve this is to use some
> horrifically awful language like VB...

No, you just have to learn something vaguely normal, and then not give up 
when the first thing you try doesn't work.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 5 Aug 2011 16:02:59
Message: <4e3c4c73$1@news.povray.org>
On 8/5/2011 0:35, Orchid XP v8 wrote:
> Now that might actually be useful. I've yet to find any hex editors.

There's this cool technology that was invented a few years that helps you 
find things. You may have heard of it. ;-)

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 5 Aug 2011 16:07:30
Message: <4e3c4d82@news.povray.org>
On 8/5/2011 8:05, Warp wrote:
>    I have emacs set so that it shows whitespaces at the end of lines with
> blue background.

git's GUI does the same thing. And I think there's even a switch to prevent 
check-ins of code with trailing spaces.

The best fun I had recently was working on a makefile that included

SOURCES = alpha \
     beta \
     gamma \
     delta \
     epsilon

Except there was a trailing space after gamma, so delta and epsilon never 
got recompiled. Given that a full compile resulted in about 60,000 lines 
when stdout was redirected, the problem was not obvious.


Looks like VIM can do this too:
http://vim.wikia.com/wiki/Highlight_unwanted_spaces

Wow. I wish I had thought to actually do that before.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 5 Aug 2011 16:25:51
Message: <4e3c51cf@news.povray.org>
On 8/5/2011 5:42, Orchid XP v8 wrote:
> A precondition is a Bool expression which must be true when a code bloc
k is
> entered. If it isn't true, the code block is allowed to malfunction
> arbitrarily badly. But if it /is/ true, then when the code block exits,
 the
> postcondition is required to be true.

Yeah. They're a lot less useful when you're talking about functional 
languages, because they're really just redefining the function.

> I don't see anything in the above that requires the code blocks to be c
lass
> methods, or even to be proper named constructs. If you were operating i
n
> BASIC, it might just be "when line 1580 is reached, X must contain a
> positive integer", and then "when line 1615 is reached, X must contain 
a new
> positive integer larger than the one that was there before".

That would be preconditions and postconditions. It wouldn't be DbC, I don
't 
think.

> An invariant looks like it should apply to any data structure of a give
n
> type (e.g., every tree node must contain a value lower than the one in 
its
> parent node), or perhaps to a given set of global variables (the nextID

> variable must always be positive and nonzero). Again, I don't see any
> especial reason why it has to apply only in an OO setting.

The invariant only holds while you're not manipulating the data. E.g., wh
ile 
you're rebalancing the tree, the invariant needn't hold. Now if you start
 
cutting global variables up into collections and corresponding blocks of 

code that manipulate them, or talking about "the set of all data structur
es 
that are manipulated by this particular set of code", I'd say you have so
me 
OO design going on there. :-)

> Let me put it this way: It looks a crapload better than Word, Excel,
> PowerPoint, OpenOffice, or the HTML rendering of any browser I've tried
.

That isn't what TeX was written to compete against.

> Whether it looks better than a £20,000 piece of professional publi
shing
> software, I couldn't say. But given that I'm never going to own £2
0,000,
> it's kind of irrelevant.

All you need is something designed by an actual typesetting company, like
 
Adobe. The very fact that you're looking at TeX output that has been run 

thru a PDF is already telling.

>> But it's quite as much there as the
>> jaggies on a 300DPI print-out compared to a 1200DPI print-out.
>
> Then why don't you just, um, increase the resolution? That's the entire

> /point/ of Metafont, after all. Its fonts are completely scaleable.

It was an analogy. Most people wouldn't believe their 300DPI laser printe
r 
prints jaggies on their text, until you set it down next to a 1200DPI las
er 
printer.

> Has there ever /been/ a Unix that isn't distributed in source form?

Of course.

> In reality, I'm not actually going to change such things, on either sys
tem.
> It would be far too hard. But in principle, it's possible with Linux. (
And
> probably OpenBSD and a few others.) It's not possible with Windows. At
> least, not without paying real money.

It's certainly possible with Windows. You just need to get the source cod
e.

> Of course, "Windows" is a single monolithic piece of software, whereas
> "Linux" (the OS) is a vast array of independently replaceable bits.

Because Powershell is monolithic, and printer drivers are monolithic, and
 
file systems are monolithic in Windows, and ... wait, what?

What part of Windows do you think is monolithic and can't be fairly easil
y 
replaced that *can* be replaced in Linux?

> Well, yeah. Not as random as, say, Shift+Alt+- (I'm looking at you, Ema
cs).
> But it's not the sort of thing you'd try just on the off-chance that ma
ybe
> it does something.

You know, you should google "Windows keyboard shortcuts" and see the doze
ns 
and dozens of standard shortcuts. It'll probably make your life easier. I
 
mean, control-right has worked that way since like Win3.

>> Where I would want to search in a text file to find a word?
>
> Where you'd want a special key to move to the next word on the line. Bu
t
> sure, if you wanna do search instead...

If I'm writing code and I want to move three tokens to the right, you thi
nk 
it won't be faster with the shift key?

> The output is 4000 lines line? In what universe...?? O_O

That was the small one. You don't think compiling a Linux distro generate
s 
tens of thousands of lines of output?

>> Heck, I have all the names and addresses in a text file. I want to loo
k
>> up my brother's fax number.
>
> See, I would probably use a real database for that.

I used to.

>>> These are all pretty rare, really.
>>
>> I think it depends on what you do with an editor. :-) They're all pret
ty
>> common for me.
>
> What, are you writing C or something?

I write lots of stuff. But yes, C also. Not sure why that matters.

>> The code for emacs doesn't get invoked thru the keyboard mappings, any

>> more than the code for COM does.
>
> And you add some package that makes Alt+R do the same thing as Ctrl+R b
ut
> slightly differently. Oh, I'm sorry, you changed Ctrl+R to be Ctrl+Z? O
h,
> well, nevermind... ;-)

You don't write a package where Alt+R does the same thing as Ctrl+R. You 

write a package where Alt+R invokes the same underlying function that Ctr
l+R 
does.

> No, the last time I ran Vi was on an early version of RedHat. Apparentl
y Vi
> was the only text editor installed, and I was desperately trying to fin
d
> something to edit the X configuration file so that I could make it star
t up.

You know what? That's *exactly* why you should learn vim. :-)

vi runs in 32K. emacs won't link on a machine with a megabyte address spa
ce.

>>> Being able to invoke all your tools from within your editor and edit
>>> their output is again quite a powerful idea.
>>
>> vi had that too, except it was *all* your tools, with no need to write

>> macros to handle it.
>
> I should have forceen a Holy War. ;-)

No, I'm just saying, normally in vi you highlight some text and run it th
ru 
an external script. If you want to indent the next paragraph, it's }!form
at 
and if you want to sort it it's }!sort

(Or something like that.)

emacs stuff I've seen is usually implemented in elisp, which means if you
 
want to reindent your code, you have to fire up the entire emacs 
infrastructure to do so.

>>> Not unless you hire a vast
>>> army of C++ programmers to write the necessary hooks and DLLs and God

>>> only knows what else to add the support to VS.
>>
>> Uh, one Bulgarian intern, on the weekends.
>
> Did I mention the part about how it never really worked to everyone's
> satisfaction and was eventually abandoned?

Yeah, I saw that. That's how I know it was a Bulgarian intern on weekends
 
who decided to abandon it because it wasn't working well.

The point is not "here's a useful plug-in for Haskell", but to show you a
 
counter-example to your assertion that VS doesn't support third-party lan
guages.

>> That's exactly why Microsoft invented COM, IBM invented REXX, standard
s
>> bodies invented COBRA, etc etc etc.
>
> Accessing COM is nowhere near as easy as throwing together a few lines 
of
> elisp. (As far as I can tell.)

You're doing it wrong. See the Tcl example, for example. You keep claimin
g 
it didn't work, but since I don't know what you were trying to do or how,
 
I'm not sure why it didn't work. And of course it's possible it's just 
bitrot there too.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 5 Aug 2011 16:33:53
Message: <4e3c53b1$1@news.povray.org>
On 8/5/2011 8:08, Warp wrote:
> Darren New<dne### [at] sanrrcom>  wrote:
>> (What would an invariant look like in C?)
>
>    I suppose the closest thing is "assert(a<  b);"

That's not really an invariant, tho. C basically doesn't have the facility 
to say "any time you're not in one of these N functions, there should be the 
following relationship between these collection of values:..."

Primarily because there's no way to express code that's outside any function.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 7 Aug 2011 11:00:47
Message: <4e3ea89e@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> On 8/5/2011 8:08, Warp wrote:
> > Darren New<dne### [at] sanrrcom>  wrote:
> >> (What would an invariant look like in C?)
> >
> >    I suppose the closest thing is "assert(a<  b);"

> That's not really an invariant, tho. C basically doesn't have the facility 
> to say "any time you're not in one of these N functions, there should be the 
> following relationship between these collection of values:..."

  "In computer science, a predicate is called an invariant to a sequence
of operations provided that: if the predicate is true before starting
the sequence, then it is true at the end of the sequence."

  "Programmers often make use of assertions in their code to make invariants
explicit."

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 7 Aug 2011 11:45:53
Message: <4e3eb331$1@news.povray.org>
On 8/7/2011 8:00, Warp wrote:
>    "In computer science, a predicate is called an invariant to a sequence
> of operations provided that: if the predicate is true before starting
> the sequence, then it is true at the end of the sequence."


Well, here's the thing.

assert(a < b) is testing a precondition if you stick it in a function before 
any code that changes values of variables.

assert(a < b) is testing a postcondition if you stick it in a function after 
all code that changes values of variables.

assert(a < b) is testing an invariant if you have it as a precondition and a 
postcondition for every function that reads or writes a or b.

assert(a < b) might even be part of a loop variant rather than any invariant.

In your example, "a < b" might be an invariant. "assert(a < b)" isn't 
enforcing an invariant unless you write it at the start and end of every 
function.

But sure, assert() is about as close as you can get in C to providing a way 
to implement the design pattern of DbC. It is, as you said, "the closest 
thing". But that's like saying "function pointers is the closest thing you 
have to closures in C." I.e., not very close. :-)

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 7 Aug 2011 11:59:38
Message: <4e3eb66a$1@news.povray.org>
On 8/7/2011 8:00, Warp wrote:
>    "In computer science, a predicate is called an invariant to a sequence
> of operations


Oh, and yes, if you're talking about DbC, You're basically talking about 
OOP, so an "invariant" applies at the class level. Basically, any time the 
constructor has finished and you're not inside a method of the instance in 
question, that class's invariants should all be true. So a class invariant 
is a predicate that applies at the end of the constructor and at the end of 
each method and (ideally) at the start of each method. The only reason it 
wouldn't apply at the start of each method is if someone changed one of the 
objects that instance references. (E.g., your invariant is 
this.mystorage.capacity > 100 and someone else goes around your back to set 
mystorage.capacity = 50 because they have a reference to the same 
"mystorage" instance.)

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: nemesis
Subject: Re: The other OS
Date: 8 Aug 2011 00:25:00
Message: <web.4e3f642ba0509d2f538c5e2a0@news.povray.org>
tl;dr

In any case, Warp uses it, so it's clearly not because of elisp.  It was once
upon a time very hot among C++ users.

As for your editor, does it have a kill circular ring to quickly and
conveniently select latest extracted text entries?  Does it have parametrized
macros to quickly generate text from templates?  Have it got automatic buffers
for "jumping" back and forth through the text with ease?  Oh, sorry for your
flashy flint tool...

BTW, for a long while now I've been a happy vim user, which is about the same as
emacs.


Post a reply to this message

From: Darren New
Subject: Re: The other OS
Date: 8 Aug 2011 00:32:27
Message: <4e3f66db$1@news.povray.org>
On 8/7/2011 21:20, nemesis wrote:
> BTW, for a long while now I've been a happy vim user, which is about the same as
> emacs.

I think elisp is probably easier to program than vim macros. You really have 
to be into programmable calculators to make sense of vim macros. Altho they 
are, technically, turing complete. Every time I use something besides vim, I 
find I miss the "." command most.

Given that, having something actually integrated with the compiler so you 
get stuff like intelisense is often worth the loss of power.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 06:36:21
Message: <4e3fbc25@news.povray.org>
On 05/08/2011 04:05 PM, Warp wrote:
> Orchid XP v8<voi### [at] devnull>  wrote:
>> My text editor allows you to *display* the line ends, so you can
>> visually see which lines end with LF, which ones are CR, and also
>> arbitrary combinations thereof. It can also display other non-printing
>> characters if you wish (which is sometimes useful).
>
>    I have emacs set so that it shows whitespaces at the end of lines with
> blue background.

I have my editor set to automatically strip such whitespaces. (And to 
add an extra blank line to the end of the file if one is not already 
present.)

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 06:37:26
Message: <4e3fbc66$1@news.povray.org>
On 05/08/2011 09:02 PM, Darren New wrote:
> On 8/5/2011 0:35, Orchid XP v8 wrote:
>> Now that might actually be useful. I've yet to find any hex editors.
>
> There's this cool technology that was invented a few years that helps
> you find things. You may have heard of it. ;-)

Oh, Google helps you find *millions* of hex editors. Which all cost 
money. And, from the look of their product websites, I suspect about 80% 
of them are actually trojans.

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 06:59:25
Message: <4e3fc18d$1@news.povray.org>
On 08/08/2011 05:20 AM, nemesis wrote:

> As for your editor, does it have a kill circular ring to quickly and
> conveniently select latest extracted text entries?

No. But neither does Emacs. (Unless by "convenient" you mean "really 
frigging hard to figure out".)

> Does it have parametrized macros to quickly generate text from templates?

No. For that, I use a real programming language.

> Have it got automatic buffers
> for "jumping" back and forth through the text with ease?

I don't even know what that means.

> Oh, sorry for your flashy flint tool...

I never said my editor was perfect. Only that I've never found a better one.

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 07:21:12
Message: <4e3fc6a8$1@news.povray.org>
On 05/08/2011 09:25 PM, Darren New wrote:
> On 8/5/2011 5:42, Orchid XP v8 wrote:
>> A precondition is a Bool expression which must be true when a code
>> block is
>> entered. If it isn't true, the code block is allowed to malfunction
>> arbitrarily badly. But if it /is/ true, then when the code block
>> exits, the
>> postcondition is required to be true.
>
> Yeah. They're a lot less useful when you're talking about functional
> languages, because they're really just redefining the function.

Not so much, no.

Defining how to sort some data [efficiently] is a tad more complicated 
than defining a test of whether some data is sorted.

> That would be preconditions and postconditions. It wouldn't be DbC, I
> don't think.

OK, well let me rephrase: You can do everything that DbC does. Whether 
you still call it DbC is a question which is untirely uninteresting to me.

> The invariant only holds while you're not manipulating the data. E.g.,
> while you're rebalancing the tree, the invariant needn't hold. Now if
> you start cutting global variables up into collections and corresponding
> blocks of code that manipulate them, or talking about "the set of all
> data structures that are manipulated by this particular set of code",
> I'd say you have some OO design going on there. :-)

If you want to consider a module to be some vague kind of "class", then 
OK...

>> Let me put it this way: It looks a crapload better than Word, Excel,
>> PowerPoint, OpenOffice, or the HTML rendering of any browser I've tried.
>
> That isn't what TeX was written to compete against.

> All you need is something designed by an actual typesetting company,
> like Adobe. The very fact that you're looking at TeX output that has
> been run thru a PDF is already telling.

Yes. It tells that nobody else will have a way to view DVI files, so I 
distribute then as PDF. Your point?

It's not like turning the DVI file into PDF actually alters its 
appearence in any way, shape or form.

>> Has there ever /been/ a Unix that isn't distributed in source form?
>
> Of course.

So... how would you compile it? I thought the entire reason Unix was so 
popular is that it operates on arbitrary architectures.

> It's certainly possible with Windows. You just need to get the source code.

...which you cannot ever have...

> What part of Windows do you think is monolithic and can't be fairly
> easily replaced that *can* be replaced in Linux?

When you install "Windows", it installs one giant binary blob. I'm sure 
Microsoft probably structures it internally as many seperate modules, 
but such seperation is not visible in the finished product.

Unix, on the other hand, has the opposite problem: The OS is made up of 
several hundred billion tiny programs, each dragging around 80 years of 
backwards compatibility support...

>> Well, yeah. Not as random as, say, Shift+Alt+- (I'm looking at you,
>> Emacs).
>> But it's not the sort of thing you'd try just on the off-chance that
>> maybe
>> it does something.
>
> You know, you should google "Windows keyboard shortcuts" and see the
> dozens and dozens of standard shortcuts. It'll probably make your life
> easier. I mean, control-right has worked that way since like Win3.

You mean there's more than one program that uses that particular 
shortcut (for the same thing)?

>>> Where I would want to search in a text file to find a word?
>>
>> Where you'd want a special key to move to the next word on the line. But
>> sure, if you wanna do search instead...
>
> If I'm writing code and I want to move three tokens to the right, you
> think it won't be faster with the shift key?

Well, I suppose if you had seriously *huge* tokens, it would be faster. 
Like, if you were writing Java or something. But most "words" are only, 
like, 5 characters or so. Jabbing the arrow key 5 times is hardly a 
difficult task.

>> The output is 4000 lines line? In what universe...?? O_O
>
> That was the small one. You don't think compiling a Linux distro
> generates tens of thousands of lines of output?

Why would you ever compile a Linux distro? (Other than for a laugh.)

>> No, the last time I ran Vi was on an early version of RedHat.
>> Apparently Vi
>> was the only text editor installed, and I was desperately trying to find
>> something to edit the X configuration file so that I could make it
>> start up.
>
> You know what? That's *exactly* why you should learn vim. :-)
>
> vi runs in 32K. emacs won't link on a machine with a megabyte address
> space.

That's unlikely to ever be a problem for me. What /is/ a problem is that 
Vi was utterly incomprehensible...

>> I should have forceen a Holy War. ;-)
>
> No, I'm just saying, normally in vi you highlight some text and run it
> thru an external script. If you want to indent the next paragraph, it's
> }!format and if you want to sort it it's }!sort
>
> (Or something like that.)
>
> emacs stuff I've seen is usually implemented in elisp, which means if
> you want to reindent your code, you have to fire up the entire emacs
> infrastructure to do so.

On the other hand, since Emacs is an entire operating system, it appears 
that most people just start Emacs after they log in, and never shut it down.

> The point is not "here's a useful plug-in for Haskell", but to show you
> a counter-example to your assertion that VS doesn't support third-party
> languages.

I didn't say that VS doesn't support third-party languages. I said it 
was far too /hard/ to implement support for third-party languages.

>> Accessing COM is nowhere near as easy as throwing together a few lines of
>> elisp. (As far as I can tell.)
>
> You're doing it wrong. See the Tcl example, for example. You keep
> claiming it didn't work, but since I don't know what you were trying to
> do or how, I'm not sure why it didn't work. And of course it's possible
> it's just bitrot there too.

I seem to recall it got as far as "require package tcom", and Freewarp 
was like "WTF is tcom?" And I had a look at the package description, and 
it was like "OK, put this file in /bin, and that file in /lib" and I'm 
like "WTF? Where's that?"

Or something like that.

I don't actually /like/ Tcl all that much. I'd prefer something a bit 
safer, but hey... from the way you're talking, you make it sound as if 
almost /every/ programming language can trivially access COM.

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 07:29:22
Message: <4e3fc892$1@news.povray.org>
On 05/08/2011 09:01 PM, Darren New wrote:
> On 8/5/2011 5:42, Orchid XP v8 wrote:
>> I was asking, more basically, "how do you do useful stuff with
>> COM?"
>
> Oh. You find a COM object that does what you want it to do, and you use it.

I can see how an application might expose a COM object such that 
invoking a certain method is like clicking on a particular button. What 
I can't figure out is how COM lets you do stuff like link a chart to a 
database such that every time the database changes, the chart updates. 
I'm not sure how you invoke methods to make that happen.

>> As best as I can tell, COM lets you create "objects" and invoke
>> "methods" on them... that's as far as I was able to figure out.
>
> Yes, that's what COM is for. The "methods" are usually implemented in
> either system libraries or in applications. So an "object" might be an
> excel spreadsheet, and the "methods" would manipulate the cells, set up
> a graph, and then copy the image of the graph to the clipboard for you
> to use.

Would Excel be a single COM object? Or would you have like seperate 
objects for each workbook, worksheet, cell, etc?

>> I also figured that the only reason that you can (say) embed an Excel
>> spreadsheet in a Word document is because both products are produced
>> by the same company.
>
> No no no. That's the whole *point* of COM. That's why there's a standard
> interface definition language and such.

See, I've always assumed that the glitering world of native Windows 
GUIs, IPC, DLLs, COM, etc. are all behind closed doors, accessible only 
to people who know how to write really low-level Windows code. And I've 
always assumed that the really /good/ stuff (like embedding one 
application inside another) is accessible only to Microsoft themselves. 
(Or anybody who pays really vast sums of money. People like Symantec.)

>> I've yet to see a language that can invoke DLLs either...
>
> Maybe you should learn a normal language, then. :-)

So... you mean basically C or C++ then?

>> I'd be perfectly happy doing COM from, say, JavaScript. It's not that
>> Haskell is the problem, it's that I can't see *anything* that speaks COM.
>
> Tcl, VBScript, WScript, VBA, and C# all have trivial interfaces to COM.

Oh dears.

> Didn't you tell me you had written a VBA macro or two?

Yeah. It took me several hours to finally construct a 25-line VBA macro 
which performs the utterly trivial task of setting the value of a 
certain cell to today's date. This was an exercise in extreme 
frustration, as the help files utterly failed to be remotely helpful in 
any way. I've been bitter ever since. :-P

>> I get the feeling that the only way to solve this is to use some
>> horrifically awful language like VB...
>
> No, you just have to learn something vaguely normal, and then not give
> up when the first thing you try doesn't work.

Yeah, maybe that's what it comes down to. I tend to avoid all the 
MS-designed languages, which is maybe why I can't do COM.

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


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 8 Aug 2011 08:43:21
Message: <4e3fd9e9@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> >    I have emacs set so that it shows whitespaces at the end of lines with
> > blue background.

> I have my editor set to automatically strip such whitespaces. (And to 
> add an extra blank line to the end of the file if one is not already 
> present.)

  But, as I said, I hate it when editors do things without being told to.

  Open the file, save it, the end result must be identical. Change it only
if I tell it to change it.

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 8 Aug 2011 08:48:06
Message: <4e3fdb06@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> On 08/08/2011 05:20 AM, nemesis wrote:

> > As for your editor, does it have a kill circular ring to quickly and
> > conveniently select latest extracted text entries?

> No. But neither does Emacs.

  So Emacs has an elisp interpreted that can be used basically for anything
that you could ever imagine doing to text. Except having a circular kill
ring, it appears. At least according to you.

> > Does it have parametrized macros to quickly generate text from templates?

> No. For that, I use a real programming language.

  When you want to edit a text file, you write a separate program to do
that?

-- 
                                                          - Warp


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 08:53:38
Message: <4e3fdc52$1@news.povray.org>
On 08/08/2011 01:43 PM, Warp wrote:
> Orchid XP v8<voi### [at] devnull>  wrote:
>>>     I have emacs set so that it shows whitespaces at the end of lines with
>>> blue background.
>
>> I have my editor set to automatically strip such whitespaces. (And to
>> add an extra blank line to the end of the file if one is not already
>> present.)
>
>    But, as I said, I hate it when editors do things without being told to.

OK, fair enough. However, I don't work with any file formats where such 
trailing spaces would be significant.

I also don't work with any file formats which should ever contain a tab 
character, so I've configured my editor to strip those too.

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 08:55:19
Message: <4e3fdcb7$1@news.povray.org>
>>> As for your editor, does it have a kill circular ring to quickly and
>>> conveniently select latest extracted text entries?
>
>> No. But neither does Emacs.
>
>    So Emacs has an elisp interpreted that can be used basically for anything
> that you could ever imagine doing to text. Except having a circular kill
> ring, it appears. At least according to you.

Emacs has a circular kill ring, it's true. I would dispute that it's 
/convenient/ though.

>>> Does it have parametrized macros to quickly generate text from templates?
>
>> No. For that, I use a real programming language.
>
>    When you want to edit a text file, you write a separate program to do
> that?

No. When I want to generate large chunks of text programatically, I 
write a program. (As you can probably tell, this isn't something I need 
to do very often.)

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


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 8 Aug 2011 09:08:23
Message: <4e3fdfc7@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> OK, fair enough. However, I don't work with any file formats where such 
> trailing spaces would be significant.

> I also don't work with any file formats which should ever contain a tab 
> character, so I've configured my editor to strip those too.

  And then you lament about the lack of hex editors...

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 8 Aug 2011 09:09:20
Message: <4e3fe000@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> No. When I want to generate large chunks of text programatically, I 
> write a program. (As you can probably tell, this isn't something I need 
> to do very often.)

  Why, when you could have your text editor do it?

-- 
                                                          - Warp


Post a reply to this message

From: Le Forgeron
Subject: Re: The other OS
Date: 8 Aug 2011 09:22:40
Message: <4e3fe320$1@news.povray.org>
Le 08/08/2011 15:09, Warp a écrit :
> Orchid XP v8 <voi### [at] devnull> wrote:
>> No. When I want to generate large chunks of text programatically, I 
>> write a program. (As you can probably tell, this isn't something I need 
>> to do very often.)
> 
>   Why, when you could have your text editor do it?
> 
Let's face it:
* vi is a text editor.
* emacs is an elisp based monster which happen to also be a text editor
by default (but it can be your mail reader, and far more, including your
navigation shell)
* other programs daring to be titled "text editor" are just lacking a
lot of functionalities and are at best replacement for Notepad.


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 8 Aug 2011 09:31:50
Message: <4e3fe545@news.povray.org>
Le_Forgeron <lef### [at] freefr> wrote:
> Let's face it:
> * vi is a text editor.
> * emacs is an elisp based monster which happen to also be a text editor
> by default (but it can be your mail reader, and far more, including your
> navigation shell)
> * other programs daring to be titled "text editor" are just lacking a
> lot of functionalities and are at best replacement for Notepad.

  Real programmers use edlin anyways.

-- 
                                                          - Warp


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 09:45:32
Message: <4e3fe87c$1@news.povray.org>
>> OK, fair enough. However, I don't work with any file formats where such
>> trailing spaces would be significant.
>
>> I also don't work with any file formats which should ever contain a tab
>> character, so I've configured my editor to strip those too.
>
>    And then you lament about the lack of hex editors...

I wouldn't use a hex editor to edit text any more than I'd use a text 
editor to edit binary.

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


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 8 Aug 2011 09:46:26
Message: <4e3fe8b2@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> I wouldn't use a hex editor to edit text any more than I'd use a text 
> editor to edit binary.

  Why not?

-- 
                                                          - Warp


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 09:47:24
Message: <4e3fe8ec@news.povray.org>
On 08/08/2011 02:09 PM, Warp wrote:
> Orchid XP v8<voi### [at] devnull>  wrote:
>> No. When I want to generate large chunks of text programatically, I
>> write a program. (As you can probably tell, this isn't something I need
>> to do very often.)
>
>    Why, when you could have your text editor do it?

The main type of text that I edit is program source code.

If you /need/ to generate large chunks of code automatically, you're 
writing your program wrong.

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


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 09:49:07
Message: <4e3fe953@news.povray.org>
On 08/08/2011 02:46 PM, Warp wrote:
> Orchid XP v8<voi### [at] devnull>  wrote:
>> I wouldn't use a hex editor to edit text any more than I'd use a text
>> editor to edit binary.
>
>    Why not?

Because typing "banana" is way, way easier than typing "62 61 6E 62 6E 
62". Obviously.

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


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 8 Aug 2011 10:00:21
Message: <4e3febf5@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> On 08/08/2011 02:46 PM, Warp wrote:
> > Orchid XP v8<voi### [at] devnull>  wrote:
> >> I wouldn't use a hex editor to edit text any more than I'd use a text
> >> editor to edit binary.
> >
> >    Why not?

> Because typing "banana" is way, way easier than typing "62 61 6E 62 6E 
> 62". Obviously.

  Yes, because people use hex editors to edit plain ascii text.

  You still didn't answer my question: Why don't you want the same program
supporting both text editing and hex editing?

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: The other OS
Date: 8 Aug 2011 10:01:44
Message: <4e3fec48@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> On 08/08/2011 02:09 PM, Warp wrote:
> > Orchid XP v8<voi### [at] devnull>  wrote:
> >> No. When I want to generate large chunks of text programatically, I
> >> write a program. (As you can probably tell, this isn't something I need
> >> to do very often.)
> >
> >    Why, when you could have your text editor do it?

> The main type of text that I edit is program source code.

> If you /need/ to generate large chunks of code automatically, you're 
> writing your program wrong.

  You could use the same argument for any of the several features in your
text editor that you, personally, never use.

-- 
                                                          - Warp


Post a reply to this message

From: Orchid XP v8
Subject: Re: The other OS
Date: 8 Aug 2011 10:22:13
Message: <4e3ff115$1@news.povray.org>
On 08/08/2011 03:00 PM, Warp wrote:
> Orchid XP v8<voi### [at] devnull>  wrote:
>> On 08/08/2011 02:46 PM, Warp wrote:
>>> Orchid XP v8<voi### [at] devnull>   wrote:
>>>> I wouldn't use a hex editor to edit text any more than I'd use a text
>>>> editor to edit binary.
>>>
>>>     Why not?
>
>> Because typing "banana" is way, way easier than typing "62 61 6E 62 6E
>> 62". Obviously.
>
>    Yes, because people use hex editors to edit plain ascii text.
>
>    You still didn't answer my question: Why don't you want the same program
> supporting both text editing and hex editing?

I said that I wouldn't use a hex editor to edit text.

Now, if there was a single program that had decent support for text 
/and/ binary editing, then sure, I'd use that.

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


Post a reply to this message

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

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