 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Bill Pragnell wrote:
> "clipka" <nomail@nomail> wrote:
> In my particular example, of course, none of that applied. Being able to write
> directly to memory from BASIC on the Acorns meant you could store large amounts
> of data more efficiently without having to resort to assembler. And, since the
> screen memory was in main RAM, you could write to the screen by storing your
> pixel values directly to that block... :)
>
I don't think you meant to imply that other PC BASIC's didn't have Peek
and Poke functions.
The BASIC in PET and TRS-80 certainly did and I think that Basica and
GWBasic did, but I'm
not altogether certain about them.
David
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Bill Pragnell wrote:
> "clipka" <nomail@nomail> wrote:
>> "David H. Burns" <dhb### [at] cherokeetel net> wrote:
>>> A convenient excuse anyway. "Everybody needs someone to look down on. If you
>>> ain't got nobody else, well help yo'self to me!" -Kris Kristofferson
>>> (quoted from
>>> memory) :)
>> "Jesus was a capricorn"
>
> "Capricorn, eh? What are they like?"
> "He is the son of God, our Messiah! King of the Jews!"
> "And that's capricorn, is it?"
>
>
Well, I agree with the middle quote of the three. Of course whether He is a
Capricorn in astrological terms depends on the date of His birth, which is
disputed. Of course I doubt if that was what was meant. :)
David
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> you could do a "GOTO xyz" where xyz was a variable.
What, ON GOTO and ON GOSUB weren't good enough for you? :-)
> which made reading long nested blocks of code a bit difficult.
Nested blocks?? We used to *DREAM* of nested blocks!
--
Darren New, San Diego CA, USA (PST)
"We'd like you to back-port all the changes in 2.0
back to version 1.0."
"We've done that already. We call it 2.0."
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 07/28/09 00:58, Chambers wrote:
> Jim Henderson wrote:
>> Oh, there have been much longer threads in here.... :-)
>
> So... is religion good or bad? :)
Good if it's Emacs.
--
ASCII and ye shall receive.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Back then, in order to be able to display multiple overlapping application
> windows at once, the solution was that whenever the position of a window would
> change, all windows previously hidden below it but now visible would have to be
> (partially) re-drawn by their respective applications.
That's one solution, but not really because of the memory. The Amiga had
only 128K or 256K, and it handled clipping windows and saving the clipped
parts elsewhere just fine. I suspect it was more a question of (a) amount of
effort put into the graphics layer and (b) the fact that there was no
hardware accel for Windows boxes so redrawing from scratch was probably
close to as fast as blitting the saved window anyway.
> I'm not sure if I get all these details right, but stuff along these lines added
> up to make the Windows graphics interface somewhat complicated to use,
Note that X Windows has all these same problems, except the user has to deal
with it all. In typical UNIX fashion, X will tell you what the screen looks
like and expect you to do all the work of making sure you're passing pixels
in the right format, rather than taking a device-independent drawing command
and adjusting it to the proper display.
> Yes, nowadays everyone is using 24-bit RGB graphics, and typically at 1:1 pixel
> aspect ratio, but that's something PC-users could only dream of in the early
> days of Windows.
Or even on sophisticated hardware. 1994 or so I needed to do compression
testing (i.e., figure out whether JPEG works), so I wound up buying a $3000
graphics board for the Sun workstation so I could see 24-bit color.
--
Darren New, San Diego CA, USA (PST)
"We'd like you to back-port all the changes in 2.0
back to version 1.0."
"We've done that already. We call it 2.0."
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 07/27/09 18:56, clipka wrote:
> Warp<war### [at] tag povray org> wrote:
>> Immediately when you started having different users with different
>> hardware setups, the whole graphics programming stumbled on a huge problem.
>
> Yup. DOS times were even worse than nowadays, as there was no accepted standard
> interface to graphics cards at all (except for standard CGA/EGA/VGA modes,
> which later graphics cards tried their best to remain hardware compatible
> with); so essentially each program came with its own proprietary set of
> graphics drivers, which fully supported only a selection of SuperVGA graphics
> cards available - and new graphics cards in turn would come with disks
> providing graphics drivers for only the most popular graphics-hungry
> applications.
Ever used Fractint on DOS? _That_ program probably supported more video
cards than any other. The amount of collaboration for that piece of
software was truly impressive.
--
ASCII and ye shall receive.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> That's one solution, but not really because of the memory. The Amiga had
> only 128K or 256K, and it handled clipping windows and saving the
> clipped parts elsewhere just fine.
Which model? I don't recall seeing one with less than 1MB RAM.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> The reason why languages like C++ don't come up with libraries which would
> be handy (such as graphics and sound) is complicated.
Actually, for graphics and sound and other ubiquitous stuff like that, it's
not all that hard to come up with a decent library. Win32, X, etc all fit
the bill.
My rant was more along the lines of higher-level stuff. Take, for example,
an HTTP client library. You would think it's straightforward, but how do you
allocate memory such that it's easy to free? (C++ solved this problem,
obviously, which is one of the big wins for C++ libraries over C libraries.)
How do you open a socket? How do you hash passwords for DIGEST
authentication? How do you keep from blocking on DNS lookups? Each of these
libraries has layers and layers under it, and nobody wants to redo all those
layers using only the standard libraries.
So the solution is to make the standard libraries bigger, and you start
getting things like Java and C#, which nobody wants to use because the
standard libraries are too big. :-)
I did read and understand the rest of your post, but I guess I wasn't really
clear in my late-night rant as to what I thought the problem was.
> Also such library would be highly non-portable. For example, if the C++
> standard dictated some kind of GUI library, how would you implement it eg.
> for the iPhone? You just can't. This would mean that for such systems you
> would have to use a crippled version of the language which may or may not
> compile some existing code.
Exactly! That's what I'm getting at. If it's not in the standard library,
then two chunks of code both wanting to do graphics are going to have
trouble working together. I want to play a video in a web page, but the web
client uses Qt and the video uses X, or something like that.
If it *is* in the standard library, then you either get something like "it
won't run on an iPhone" (say, .NET) or you get one "the standard library is
too big to fit on your hardware."
The most recent solution seems to be to put a layer of interpreter on top of
everything, using DOM and javascript as a graphics layer for your application.
> A standard library to play sounds would run into similar problems,
Here I think a framework would probably be sufficient. Unlike graphics,
programs don't seem to generate from scratch too many types of sounds. It's
mostly format-independent stuff, like "read a file and play it", or "here's
a gunshot that should sound like it's 20 feet away and off to the left a
bit" or some such. When they do generate from scratch (synthesizers, sound
editors, etc) they can use a decent open sound format and convert it when
they're done.
The problem here is layering it on top of other libraries. How do you
prebuffer the sound? What version of select/poll/threads/etc are you using
if you're pulling sound off a network connection? What standard are you
using to timestamp sounds so you can lip-sync to the video of the person
talking? If you want to build software to (say) play video (my current
bugaboo), you need all those things underneath first, and since they're not
standard, you can't mix-and-match the sound system with the video
decompression system with the content negotiation system with the DMA system
with the networking system.
These aren't hard problems to solve. The problem is they've been solved over
and over, and if you're trying to put multiple pieces of code together,
you're going to run into incompatibilities in the lower layers. Exactly like
with the graphics: the problem isn't that windowing systems are hard, but
that there are so many to choose from, and programs for one won't run on
others, even tho a simple adaption layer could make it work. But then
everyone writes their own adaption layer, and then you get adaptors between
the adaptors, and you get layers and layers of abstraction, all of which are
unnecessary for simple tasks but none of which you can throw away once it's
in the mix.
--
Darren New, San Diego CA, USA (PST)
"We'd like you to back-port all the changes in 2.0
back to version 1.0."
"We've done that already. We call it 2.0."
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible <voi### [at] dev null> wrote:
> Darren New wrote:
>
> > That's one solution, but not really because of the memory. The Amiga had
> > only 128K or 256K, and it handled clipping windows and saving the
> > clipped parts elsewhere just fine.
>
> Which model? I don't recall seeing one with less than 1MB RAM.
The original Amiga 1000 came with either 256K or 512K memory. I had one of the
256K models. A pretty amazing machine for it time.
Isaac.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible wrote:
> Which model? I don't recall seeing one with less than 1MB RAM.
Amiga 1000. From wikipedia
"Machines began shipping in September with a base configuration of 256 KB of
RAM at the retail price of 1295 USD."
Which fits my memory. I think the 500 had 128K? It wasn't a whole lot, but
the Amiga made efficient use of it.
--
Darren New, San Diego CA, USA (PST)
"We'd like you to back-port all the changes in 2.0
back to version 1.0."
"We've done that already. We call it 2.0."
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible <voi### [at] dev null> wrote:
> >> I am 75% sure that the C64 would *automatically* indent your code. As
> >> in, if you wrote a FOR-NEXT loop, the loop body would automatically
> >> appear indented, and there was nothing you could do about it.
> >
> > I'm 99% sure it did *un-indent* the code no matter how hard you tried... (just
> > googled for a few C64 BASIC code snippets, and found them all not indented)
>
> Hmm. Perhaps it was the Sinclare Spectrum then...
Code snippets on the internet indicate otherwise. Next try... :)
(Hint: It wasn't the Amstrad CPC either; I don't know of any home computer that
had an auto-indent feature.)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> wrote:
> That's one solution, but not really because of the memory. The Amiga had
> only 128K or 256K, and it handled clipping windows and saving the clipped
> parts elsewhere just fine. I suspect it was more a question of (a) amount of
> effort put into the graphics layer and (b) the fact that there was no
> hardware accel for Windows boxes so redrawing from scratch was probably
> close to as fast as blitting the saved window anyway.
Typically, yes. After all, in those days of Windows 3.1 (and earlier), windows
were just solid-filled rectangles with a border around, and buttons likewise.
Having a dedicated blitter chip made the approach much more worthwile. And I
guess the Amiga only had it because it was designed for GUI operation right
from the start.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Neeum Zawan <m.n### [at] ieee org> wrote:
> Ever used Fractint on DOS? _That_ program probably supported more video
> cards than any other. The amount of collaboration for that piece of
> software was truly impressive.
Why, yes, of course!
That was a freakin' awesome piece of software in any respect.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible <voi### [at] dev null> wrote:
> > That's one solution, but not really because of the memory. The Amiga had
> > only 128K or 256K, and it handled clipping windows and saving the
> > clipped parts elsewhere just fine.
>
> Which model? I don't recall seeing one with less than 1MB RAM.
http://en.wikipedia.org/wiki/Amiga_models_and_variants
allegedly 256K on the A1000.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> wrote:
> My rant was more along the lines of higher-level stuff. Take, for example,
> an HTTP client library. You would think it's straightforward, but how do you
> allocate memory such that it's easy to free? (C++ solved this problem,
> obviously, which is one of the big wins for C++ libraries over C libraries.)
Um... what's wrong with malloc() and free()??
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> wrote:
> Invisible wrote:
> > Which model? I don't recall seeing one with less than 1MB RAM.
>
> Amiga 1000. From wikipedia
> "Machines began shipping in September with a base configuration of 256 KB of
> RAM at the retail price of 1295 USD."
>
> Which fits my memory. I think the 500 had 128K? It wasn't a whole lot, but
> the Amiga made efficient use of it.
It actually had more than the original A1000 (512K), and was released later; but
by that time, memory prices must have dropped enough that they could offer it
for a significantly lower price - hence the lower type designation as it seems.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Um... what's wrong with malloc() and free()??
It exposes the internals of the memory allocations to the caller. And it's
difficult to manage if you don't have at least destructors. And it can be
inefficient if you do it a lot. And sometimes you need certain kinds of
memory (like DMA-accessible memory) so you wind up with multiple kinds of
malloc and free.
But mostly because it exposes the internals of the memory allocations to the
caller, which is usually less of a problem until you combine it with the
other problems, like threading.
Say you're generating some audio by reading hardware-compressed samples off
a microphone, then shipping it out over a connection that's packetized and
interleaved with other data (RTP, for example). You don't know how big the
data you're reading is, and you don't know how big the data you're writing
is. One thread is reading from the microphone and filling buffers. One is
coordinating. One is writing the buffers to the socket. Who is responsible
for allocating buffers? Who is responsible for freeing them? Especially
given that the buffers you're writing might not be the right size for the
buffers you're reading.
Sure, you can use malloc and free. But I've seen maybe 5% of the programs
I've worked with *not* layer other memory management stuff on top, and each
"on top" is incompatible with the other "on top"s. You can't read a buffer
from John's DVD reader, feed it into a Python data structure, then take that
and stuff it out to a MPEG decoder hardware interface without copying it
three times. Heck, Qt is written in C++ and it doesn't make use of any of
the STL *or* C strings. You know how you print out the URL stored in a
"QURL" object? myQurl.toAscii().constData() gives you an actual char* (or
something like that). Because Qt didn't like STL for some reason.
Everyone builds up big abstractions to help. If you have to do it yourself,
you're going to build abstractions suited to the program you're writing. If
you don't have to do it yourself, you have to haul around the whole library
from someone else and keep up with *their* changes. I think this is a big
part of what the .NET stuff is trying to solve with all the "component" part
of the framework.
--
Darren New, San Diego CA, USA (PST)
"We'd like you to back-port all the changes in 2.0
back to version 1.0."
"We've done that already. We call it 2.0."
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 28-7-2009 2:00, clipka wrote:
> "David H. Burns" <dhb### [at] cherokeetel net> wrote:
>> A convenient excuse anyway. "Everybody needs someone to look down on. If you
>> ain't got nobody else, well help yo'self to me!" -Kris Kristofferson
>> (quoted from
>> memory) :)
>
> "Jesus was a capricorn"
>
> (Identified from memory... man, it's been ages since I've last heard that song.)
"The earth is a libra"
quoting from memory. No points for identifying the source.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 28-7-2009 3:51, David H. Burns wrote:
> Jim Henderson wrote:
>
>>> I ought to apologize for my typos and irregular lines. The keyboard on
>>> this Timex Sinclair
>>> is rather small and my tail keeps getting in the way.
>>
>> Ah, the ZX-81? Had to use a rubber band to hold the 16 K expansion
>> pack on mine. ;-)
>>
>> Jim
>
> You go farther back than me. I wasn't lucky enough to get one of those.
> The Timex-Sinclair
> is a latter version.
I had (in fact have) a ZX-80, am I now more or less lucky?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Neeum Zawan wrote:
> Ever used Fractint on DOS? _That_ program probably supported more
> video cards than any other. The amount of collaboration for that piece
> of software was truly impressive.
>
>
Another *really* impressive piece of software. It won't run on an XP
machine, of course.
David
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 28-7-2009 20:43, andrel wrote:
> On 28-7-2009 3:51, David H. Burns wrote:
>> Jim Henderson wrote:
>>
>>>> I ought to apologize for my typos and irregular lines. The keyboard on
>>>> this Timex Sinclair
>>>> is rather small and my tail keeps getting in the way.
>>>
>>> Ah, the ZX-81? Had to use a rubber band to hold the 16 K expansion
>>> pack on mine. ;-)
>>>
>>> Jim
>>
>> You go farther back than me. I wasn't lucky enough to get one of
>> those. The Timex-Sinclair
>> is a latter version.
>
> I had (in fact have) a ZX-80, am I now more or less lucky?
For more irrelevant statistics. That one had 1K of memory, bought the
16K expansion a some years later.
I started programming at school on, IIRC, a TRS-80, no specs in my
memory. That must have been around '79. So, this years is my 30th
anniversary as a programmer (in the sense of someone who bugs and debugs
programs).
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
David H. Burns <dhb### [at] cherokeetel net> wrote:
> Another *really* impressive piece of software. It won't run on an XP
> machine, of course.
http://en.wikipedia.org/wiki/DOSBox
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
andrel <a_l### [at] hotmail com> wrote:
> a programmer (in the sense of someone who bugs and debugs programs).
I like that one :P
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
andrel wrote:
> On 28-7-2009 3:51, David H. Burns wrote:
>> Jim Henderson wrote:
>>
>>>> I ought to apologize for my typos and irregular lines. The keyboard on
>>>> this Timex Sinclair
>>>> is rather small and my tail keeps getting in the way.
>>>
>>> Ah, the ZX-81? Had to use a rubber band to hold the 16 K expansion
>>> pack on mine. ;-)
>>>
>>> Jim
>>
>> You go farther back than me. I wasn't lucky enough to get one of
>> those. The Timex-Sinclair
>> is a latter version.
>
> I had (in fact have) a ZX-80, am I now more or less lucky?
A lot more. Especially if you still have it!:)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> David H. Burns <dhb### [at] cherokeetel net> wrote:
>> Another *really* impressive piece of software. It won't run on an XP
>> machine, of course.
>
> http://en.wikipedia.org/wiki/DOSBox
>
I downloaded and installed DOSBox. When I tried to run John Beale's
"Hl.exe" , DOSBox
wanted another file it couldn't. I didn't look for it. I spent way too
much time this looking for
files and libraries that something needs in order to run or compile!
Thanks, anyway, for
putting me on to it. :)
David
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
andrel wrote:
> I started programming at school on, IIRC, a TRS-80, no specs in my
> memory.
16K, or up to 64K (with some holes for video ram).
--
Darren New, San Diego CA, USA (PST)
"We'd like you to back-port all the changes in 2.0
back to version 1.0."
"We've done that already. We call it 2.0."
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 28-7-2009 21:28, David H. Burns wrote:
> andrel wrote:
>> On 28-7-2009 3:51, David H. Burns wrote:
>>> Jim Henderson wrote:
>>>
>>>>> I ought to apologize for my typos and irregular lines. The keyboard on
>>>>> this Timex Sinclair
>>>>> is rather small and my tail keeps getting in the way.
>>>>
>>>> Ah, the ZX-81? Had to use a rubber band to hold the 16 K expansion
>>>> pack on mine. ;-)
>>>>
>>>> Jim
>>>
>>> You go farther back than me. I wasn't lucky enough to get one of
>>> those. The Timex-Sinclair
>>> is a latter version.
>>
>> I had (in fact have) a ZX-80, am I now more or less lucky?
> A lot more. Especially if you still have it!:)
I do, but the plastic is a bit broken in places, but that shows it was
used. If you want a picture to prove it, you have to wait until I
reorganize my room, it is behind a door that I can only open when I
dismantle my desk (that I designed such that it is easy). I estimate
that that will happen before this thread evaporates.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 07/28/09 14:00, Warp wrote:
> David H. Burns<dhb### [at] cherokeetel net> wrote:
>> Another *really* impressive piece of software. It won't run on an XP
>> machine, of course.
>
> http://en.wikipedia.org/wiki/DOSBox
I'll give this a try one day, but am not sure you can get the quality
that you could with DOS. If it can, I'll definitely play with it.
xfractint is full of deficiencies.
--
Why is the person who invests all your money called a broker?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
andrel wrote:
>>> I had (in fact have) a ZX-80, am I now more or less lucky?
>> A lot more. Especially if you still have it!:)
>
> I do, but the plastic is a bit broken in places, but that shows it was
> used. If you want a picture to prove it, you have to wait until I
> reorganize my room, it is behind a door that I can only open when I
> dismantle my desk (that I designed such that it is easy). I estimate
> that that will happen before this thread evaporates.
I wonder if it still works. It's a treasure anyway. This thread is like
a good theory:
it continues to mutate but never quite dies out until a change of fad.:)
David
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"David H. Burns" <dhb### [at] cherokeetel net> wrote:
> >>> I had (in fact have) a ZX-80, am I now more or less lucky?
....
> I wonder if it still works.
I'd guess so.
I recently revisited the old Amstrad CPCs we obtained over time (one for my dad,
one for my brother, one for me, and later one just for the sake of it :)), to
find that they were all still in perfect order - except for all the disc
drives. Replacing the drive belt got one back alive, and I expect the others to
respond positively to that treatment as well.
Ah well, one of the monitors' VSync was a bit unstable, too; and I really don't
expect to still be able to read *too* many of those disks :}
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> Warp wrote:
>> you could do a "GOTO xyz" where xyz was a variable.
>
> What, ON GOTO and ON GOSUB weren't good enough for you? :-)
What, no COMEFROM?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> Warp wrote:
>> you could do a "GOTO xyz" where xyz was a variable.
>
> What, ON GOTO and ON GOSUB weren't good enough for you? :-)
What, no COMEFROM?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> Visual Basic, too, might not have gained such popularity, had it not been
> chosen as the scripting language for the most popular office package. And
> who would be talking about JavaScript, had it not been the first scripting
> language to be integrated in a web browser?
>
> (And who would ever have heard of POV-Ray SDL if it wasn't bundled with
> the POV-Ray raytracer? ;))
And who would have ever heard of Ruby if someone hadn't made a web framework
with it?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> I've always wondered why people think C is good for writing kernel-level
> code, as the only facility in C that actually deals with the sorts of
> things you do in a kernel is "volatile".
http://www.mjmwired.net/kernel/Documentation/volatile-considered-harmful.txt
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> I've always wondered why people think C is good for writing kernel-level
> code, as the only facility in C that actually deals with the sorts of
> things you do in a kernel is "volatile".
http://www.mjmwired.net/kernel/Documentation/volatile-considered-harmful.txt
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> I've always wondered why people think C is good for writing kernel-level
> code, as the only facility in C that actually deals with the sorts of
> things you do in a kernel is "volatile".
http://www.mjmwired.net/kernel/Documentation/volatile-considered-harmful.txt
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Alvarez wrote:
> Darren New wrote:
>> I've always wondered why people think C is good for writing kernel-level
>> code, as the only facility in C that actually deals with the sorts of
>> things you do in a kernel is "volatile".
>
>
http://www.mjmwired.net/kernel/Documentation/volatile-considered-harmful.txt
Argh! Stupid newsreader segfaulting right before saving the message list,
then on restart thinking the message wasn't sent yet and sending it again.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Alvarez wrote:
> Darren New wrote:
>> Warp wrote:
>>> you could do a "GOTO xyz" where xyz was a variable.
>> What, ON GOTO and ON GOSUB weren't good enough for you? :-)
>
> What, no COMEFROM?
Actually, the problem with GOTO is not the GOTO, but the label. If you added
a COMEFROM, you'd actually have a much easier time figuring out the code.
--
Darren New, San Diego CA, USA (PST)
"We'd like you to back-port all the changes in 2.0
back to version 1.0."
"We've done that already. We call it 2.0."
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Alvarez wrote:
> Darren New wrote:
>> I've always wondered why people think C is good for writing kernel-level
>> code, as the only facility in C that actually deals with the sorts of
>> things you do in a kernel is "volatile".
>
>
http://www.mjmwired.net/kernel/Documentation/volatile-considered-harmful.txt
Argh! Stupid newsreader segfaulting right before saving the message list,
then on restart thinking the message wasn't sent yet and sending it again.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Alvarez wrote:
> Darren New wrote:
>> I've always wondered why people think C is good for writing kernel-level
>> code, as the only facility in C that actually deals with the sorts of
>> things you do in a kernel is "volatile".
>
> http://www.mjmwired.net/kernel/Documentation/volatile-considered-harmful.txt
That's why Ada distinguishes volatile, atomic, and "protected" (which means
basically critical section/monitor/atomic/Java-synchronized). Using
"volatile" to mean "other CPUs can modify this" isn't what it's for in C.
It's for hardware modifications, like status registers, not something you
can lock other CPUs running kernel code against.
"The spinlock primitives act as memory barriers" unless the shared data
structure is a UART status register.
--
Darren New, San Diego CA, USA (PST)
"We'd like you to back-port all the changes in 2.0
back to version 1.0."
"We've done that already. We call it 2.0."
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible wrote:
> I am 75% sure that the C64 would *automatically* indent your code. As
> in, if you wrote a FOR-NEXT loop, the loop body would automatically
> appear indented, and there was nothing you could do about it.
I had one, and I can guarantee that it didn't.
--
Chambers
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Chambers wrote:
> Invisible wrote:
>> I am 75% sure that the C64 would *automatically* indent your code. As
>> in, if you wrote a FOR-NEXT loop, the loop body would automatically
>> appear indented, and there was nothing you could do about it.
>
> I had one, and I can guarantee that it didn't.
Screenshots or it didn't happen.
--
Tim Cook
http://empyrean.freesitespace.net
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Tim Cook <z99### [at] gmail com> wrote:
> Chambers wrote:
> > Invisible wrote:
> >> I am 75% sure that the C64 would *automatically* indent your code. As
> >> in, if you wrote a FOR-NEXT loop, the loop body would automatically
> >> appear indented, and there was nothing you could do about it.
> >
> > I had one, and I can guarantee that it didn't.
> Screenshots or it didn't happen.
GIYF.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Alvarez <nic### [at] gmail com> wrote:
> Argh! Stupid newsreader segfaulting right before saving the message list,
> then on restart thinking the message wasn't sent yet and sending it again.
...... and again (QED).
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 29-7-2009 5:46, Darren New wrote:
> Nicolas Alvarez wrote:
>> Darren New wrote:
>>> Warp wrote:
>>>> you could do a "GOTO xyz" where xyz was a variable.
>>> What, ON GOTO and ON GOSUB weren't good enough for you? :-)
>>
>> What, no COMEFROM?
>
> Actually, the problem with GOTO is not the GOTO, but the label. If you
> added a COMEFROM, you'd actually have a much easier time figuring out
> the code.
>
The clasical comefrom has a syntax of "COMEFROM 110" and as soon as the
program comes to line 110 it will continue the line after the comefrom.
see also http://en.wikipedia.org/wiki/COMEFROM
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Tue, 28 Jul 2009 08:51:23 -0500, David H. Burns wrote:
> Bill Pragnell wrote:
>> "clipka" <nomail@nomail> wrote:
>>> "David H. Burns" <dhb### [at] cherokeetel net> wrote:
>>>> A convenient excuse anyway. "Everybody needs someone to look down on.
>>>> If you ain't got nobody else, well help yo'self to me!" -Kris
>>>> Kristofferson (quoted from
>>>> memory) :)
>>> "Jesus was a capricorn"
>>
>> "Capricorn, eh? What are they like?"
>> "He is the son of God, our Messiah! King of the Jews!" "And that's
>> capricorn, is it?"
>>
>>
> Well, I agree with the middle quote of the three. Of course whether He
> is a Capricorn in astrological terms depends on the date of His birth,
> which is disputed. Of course I doubt if that was what was meant. :)
>
> David
Bill was quoting Monty Python there, just in case you're unfamiliar with
The Life of Brian. :-)
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Henderson <nos### [at] nospam com> wrote:
> Bill was quoting Monty Python there, just in case you're unfamiliar with
> The Life of Brian. :-)
Duh - and I didn't recognize it...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 29 Jul 2009 13:47:58 -0400, clipka wrote:
> Jim Henderson <nos### [at] nospam com> wrote:
>> Bill was quoting Monty Python there, just in case you're unfamiliar
>> with The Life of Brian. :-)
>
> Duh - and I didn't recognize it...
What does that say about both of us? ;-)
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Henderson wrote:
> On Tue, 28 Jul 2009 08:51:23 -0500, David H. Burns wrote:
>
>> Bill Pragnell wrote:
>>> "clipka" <nomail@nomail> wrote:
>>>> "David H. Burns" <dhb### [at] cherokeetel net> wrote:
>>>>> A convenient excuse anyway. "Everybody needs someone to look down on.
>>>>> If you ain't got nobody else, well help yo'self to me!" -Kris
>>>>> Kristofferson (quoted from
>>>>> memory) :)
>>>> "Jesus was a capricorn"
>>> "Capricorn, eh? What are they like?"
>>> "He is the son of God, our Messiah! King of the Jews!" "And that's
>>> capricorn, is it?"
>>>
>>>
>> Well, I agree with the middle quote of the three. Of course whether He
>> is a Capricorn in astrological terms depends on the date of His birth,
>> which is disputed. Of course I doubt if that was what was meant. :)
>>
>> David
>
> Bill was quoting Monty Python there, just in case you're unfamiliar with
> The Life of Brian. :-)
>
> Jim
Thanks, I'm familiar with "The Life of Brian" only by name. :)
David
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 29 Jul 2009 20:04:59 -0500, David H. Burns wrote:
> Thanks, I'm familiar with "The Life of Brian" only by name. :)
No problem - very funny movie, at least for most people I know. Oddly
enough, the Pythons *claim* that they didn't intend it to be a religious
spoof, it just 'turned out that way', but that claim to me seems highly
suspect.... ;-)
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |