 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Mon, 27 Jul 2009 20:51:25 -0500, 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.
*Now* I feel old. ;-)
The PET was the first computer I used, back in 1981 or so. Unless you
count the teletype terminal my dad would bring home from work
occasionally and hook up to the phone with an acoustic coupler.
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"David H. Burns" <dhb### [at] cherokeetel net> wrote:
> > What makes it ironic is that a large part of C/C++ programs out there are
> > heavily graphical (most prominently the computer games), and seems like
> > everybody just somehow manages to get the graphics done, but when you ask
> > for a simple way of getting graphics, they will usually shrug and say that
> > it's a bit complicated... (Because it *is* a bit complicated.)
>
> If it is (and I can't believe that it's all that complicated), why is it??
Legacy.
While nowadays computers would most likely have the memory to provide a frame
buffer for each application to write to, and display that as necessary - with
plenty of support from the graphics card - that wasn't the case when Windows
was initially designed. (It even wasn't the case when Windows 3.1 came out.)
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.
This made it impossible to apply the classic straightforward approach of drawing
the window contents when the application saw fit. Applications to still use this
approach would now have to allocate a buffer to draw in, and upon request of the
operating system blit the appropriate portions of the buffer to the screen.
Things were made even more complicated by the application no longer having
control over which video mode to choose: That would be fixed for all
applications. And it could be anything, from 2-color 720x348 over 16-color
640x480 to, say, 256-color 1024x768 (which was an awful lot back then).
Limited, by the way, to a standard palette.
How was such data to be handled when an application would use its own buffer and
just copy portions of it? Memory and computing power were still valuable, and
all those potential candidates for a standard format were rather arbitrary
anyway (with non-palette-based 15/16-bit High- and 24-bit TrueColor modes
nowhere to be seen yet), so from that point of view it seems logical to me to
go for what would be known as "device-dependent bitmaps".
Some of those modes a user might have chosen posed another problem, in that they
were highly anisotropic (e.g. that 720x348 Hercules format intended to be
displayed on a 4:3 monitor), so it was also logical to compute the dimensions
and positions of applications' dialog elements not based on pixels, but some
other - necessarily somewhat arbitrary - distance unit.
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, and the
bane of backward compatibility has kept these complications alive to this day.
> Maybe, but why are the graphics for Windows itself so complicated? It's a
> single operating system running mainly on similar hardware.
Oh, if only it had always been that simple!
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.
> And again Pov-Ray does
> it for images at lease. How does it do it? So it's complicated, even
> *hard*, surely
> someone knows how it is done and can tell me, or tell me where to find
> out.
Let's see if we can shed *some* light on this, at least to the point where you
can start asking "stupid" questions about it; i'm not really familiar with
using the Windows API though, and typically relying on Microsoft frameworks
(MFC or the .NOT framework [duh, what a typo! I guess it deserves to be left in
here just for laughs :P]), but maybe... ah, we'll see.
I'm taking the POV-Ray 3.7 (beta 33) source for reference, because I have that
right at my fingertips; the file to look at there is "pvdisplay.cpp" in the
"windows" subdirectory, which defines a WinLegacyDisplay object (well, an
object class, to be precisely).
WinLegacyDisplay::WinLegacyDisplay(...)
WinLegacyDisplay::~WinLegacyDisplay()
These are a constructor and destructor, respectively, which don't do anything
exciting. Consider it some of the C++ overhead for object classes.
bool WinLegacyDisplay::TakeOver(...)
This is just there to handle a special case where a window can be re-used from
one render to the next, so I leave that to you for later study.
bool WinLegacyDisplay::CreateRenderWindow (void)
This is meat; I'll quote some of it:
rect.right = GetWidth() ;
rect.bottom = GetHeight() ;
flags = WS_OVERLAPPEDWINDOW ;
AdjustWindowRectEx (&rect, flags, false, 0) ;
This picks the desired "net" size (insert anything you like for GetWidth() and
GetHeight() respectively), chooses some window style (whether it has a title
bar, which title bar buttons can be seen, how thick the border is, etc.) and
has Windows calculate the "gross" size that would be required for such a
window.
What follows are computations to make sure the window is not larger than the
total desktop, and to decide where to place the window.
The m_Bitmap stuff sets up the rules for the drawing space to be used; you'll
want to pretend m_Depth8Bit=false. m_Bitmap.biBitCount = 24 will give you the
3x8 bits RGB you want. The m_Bitmap.m_BytesPerLine formula is designed to round
up the number of bytes required per line to a multiple of 4; I'm not sure
whether Windows actually needs that, so just keep it.
m_BitmapSurface is then set to point to newly allocated memory (in pure C, you'd
use malloc() here), and will serve as the actual drawing space, with bytes laid
out as RGBRGBRGB... per line; don't forget that the lines are padded to
multiples of 4.
Clear() just fills the drawing space with that grey-and-white pattern each
render starts with.
CreateWindowEx (...) is one of the uglier beasts. This actually requests Windows
to create a new window with the following properties:
- 0: matches parameter #4 in AdjustWindowRectEx
- PovLegacyRenderWinClass: a value allowing Windows to identify where to send
"events" pertaining to the window (e.g. user interaction, or requests to redraw
itself); we'll have to come back to this later.
- "POV-Ray"; the title text; choose anything you like.
- flags | renderwin_flags: matches parameter #2 in AdjustWindowRectEx, plus
whether the window is initially minimized, maximized or neither.
- renderwin_left, renderwin_top: position of the window
- width, height: "gross" size of the window
- RenderwinIsChild ? main_window : NULL: If you just want to pop up a window
from a command line tool, set this to NULL.
- NULL: this is for defining a menu bar; set this to NULL for simplicity.
- hInstance: You can leave this to NULL, at the cost of Win95/98/ME
compatibility.
- NULL: Looks like this last parameter is not needed either.
The result value will be NULL in case of failure, or a code uniquely identifying
"your" window.
SetWindowLongPtr (m_Handle, 0, LONG_PTR (this)); stores a reference to the
WinLegacyDisplay object; if you're not using C++, skip this one.
What follows looks like code to insert scroll bars if necessary, in some cases
give focus to the new window, and to request a non-standard cursor to be used
when over the window (the crosshairs); I guess you don't need these for
starters.
InvalidateRect (m_Handle, NULL, false) ; informs Windows that the whole window
needs to be redrawn (we haven't displayed the contents of our drawing area in
the window yet); Windows will subsequently request us to actually redraw the
window (or portions thereof) as soon as it gets visible.
void WinLegacyDisplay::Initialise()
This seems to be some POV-Ray internal thing, and I guess you don't need any of
this.
void WinLegacyDisplay::Close()
This rolls back all the stuff from WinLegacyDisplay::CreateRenderWindow.
SendMessage (main_window, WM_COMMAND, CM_RENDERDESTROY, (LPARAM) m_Handle); is
some POV-Ray internal stuff again, ultimately leading to a call to
"DestroyWindow ((HWND) lParam)"; you want to substitute "DestroyWindow
(m_Handle)" here, which will discard the window.
m_BitmapSurface memory is released (in pure C you'd use free() instead of
delete)
Not sure what the m_ErrorBitmap is about. I guess some "can't display this, it's
too large" fallback image.
Never mind the PVEnableMenuItem stuff.
void WinLegacyDisplay::Show()
void WinLegacyDisplay::Hide()
These demonstrate how to show or hide a window without really killing it. The
meat is in the "ShowWindow (m_Handle, ...) ;", never mind the rest.
inline void WinLegacyDisplay::SetPixel (...)
This is meat that demonstrates how to actually use the drawing area. Note
however that it doesn't actually draw to the window, it just draws to the
buffer. It seems that for performance reason Windows is not informed that part
of the image is now in need of being redrawn; that's done somewhere else.
void WinLegacyDisplay::DrawPixel(...)
void WinLegacyDisplay::DrawRectangleFrame(...)
void WinLegacyDisplay::DrawFilledRectangle(...)
void WinLegacyDisplay::DrawPixelBlock(...)
These are some helper functions; not any particular meat in there (there is some
in DrawPixelBlock(), but that's for some specialty here).
void WinLegacyDisplay::InvalidatePixelBlock(...)
This code is called whenever a significant portion of our drawing area has been
updated, and tells Windows via InvalidateRect (m_Handle, &rect, false) ; that
the particular region needs re-drawing; the code before that deals with
converting picture coordinates to the coordinate system Windows expects here -
which may be a bit complicated if the window is maximized (IsZoomed
(m_Handle)), but that's application choice; for starters you may want to always
display your drawings at 100% size.
void WinLegacyDisplay::Clear()
This just draws the already mentioned grey-white checkerboard pattern to our
drawing area.
void WinLegacyDisplay::SetRenderState(bool IsRendering)
This just picks a different cursor, depending on whether POV-Ray is currently
rendering or has finished.
LRESULT WinLegacyDisplay::WindowProc (...)
LRESULT CALLBACK WinLegacyDisplay::StaticWindowProc (...)
Pure Meat! This is called by Windows when something special happens. We've yet
to see how Windows knows that this is the thing to call.
You definitely want to implement some reactions for the cases WM_CLOSE (which is
passed to this function when the user requests to close the window) and WM_PAINT
(which is called when Windows requests to re-draw portions of the window; this
is where we actually make the drawing area visible. You should also hndle
WM_DESTROY, as it will tell you when for some reason the window is destroyed.
return (DefWindowProc (m_Handle, message, wParam, lParam)) ; should be called
for all other events, telling Windows that we don't consider it any of our
bloody business.
In a pure C environment, you can combine the two functions into a single one;
WinLegacyDisplay::StaticWindowProc() is just there to call the other one.
´
HPALETTE WinLegacyDisplay::CreatePalette (...)
This seems to be irrelevant for 24-bit RGB operation.
The pvdisplay.cpp leaves us with a few loose ends; if I'm not mistaken, the
following code from the register_classes function in pvengine.cpp should tie
them up:
WNDCLASSEX wc ;
...
wc.cbSize = sizeof (wc) ;
wc.hIconSm = NULL ;
wc.cbClsExtra = 0 ;
wc.cbWndExtra = 0 ;
wc.hInstance = hInstance ;
wc.lpszMenuName = NULL ;
wc.hbrBackground = NULL ;
...
wc.style = CS_BYTEALIGNCLIENT ;
wc.lpfnWndProc = WinLegacyDisplay::StaticWindowProc ;
wc.hIcon = renderIcon ;
wc.hCursor = LoadCursor (NULL, IDC_CROSS) ;
wc.hbrBackground = NULL ;
wc.lpszClassName = PovLegacyRenderWinClass ;
wc.cbWndExtra = 8 ;
if (RegisterClassEx (&wc) == false)
return (false) ;
This must be executed prior to the stuff in pvdisplay.cpp.
We haven't tackled renderIcon yet, but you can leave that to NULL for starters.
I'm not sure whether you can leave hInstance set to NULL as well, but I guess
not; we'll most likely need yet another function defined in pvengine.cpp, which
is actually the official entry point for a full-fledged Windows application
(instead of main()):
int PASCAL WinMain (...)
There's a lot in there though that we'll not need, and I guess I'll leave this
up to later to sift through this. Suffice it to say here that the only stuff I
expect to be of relevance is in the while (!exit_loop) very near the end - you
need to run this after you have set up everything as outlined above; it's
basically the code that "does everything", including an occasional check for
inbound events (the while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE)) loop).
For comparison, here's some sample code from the Windows documentation from
Visual Studio:
------------------
HINSTANCE hinst;
HWND hwndMain;
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpszCmdLine, int nCmdShow)
{
MSG msg;
BOOL bRet;
WNDCLASS wc;
UNREFERENCED_PARAMETER(lpszCmdLine);
// Register the window class for the main window.
if (!hPrevInstance)
{
wc.style = 0;
wc.lpfnWndProc = (WNDPROC) WndProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon((HINSTANCE) NULL,
IDI_APPLICATION);
wc.hCursor = LoadCursor((HINSTANCE) NULL,
IDC_ARROW);
wc.hbrBackground = GetStockObject(WHITE_BRUSH);
wc.lpszMenuName = "MainMenu";
wc.lpszClassName = "MainWndClass";
if (!RegisterClass(&wc))
return FALSE;
}
hinst = hInstance; // save instance handle
// Create the main window.
hwndMain = CreateWindow("MainWndClass", "Sample",
WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, (HWND) NULL,
(HMENU) NULL, hinst, (LPVOID) NULL);
// If the main window cannot be created, terminate
// the application.
if (!hwndMain)
return FALSE;
// Show the window and paint its contents.
ShowWindow(hwndMain, nCmdShow);
UpdateWindow(hwndMain);
// Start the message loop.
while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0)
{
if (bRet == -1)
{
// handle the error and possibly exit
}
else
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
// Return the exit code to the system.
return msg.wParam;
}
------------------
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"David H. Burns" <dhb### [at] cherokeetel net> wrote:
> A peek function would still be useful, but a poke function on a multi
> tasking system where
> the operating system is in RAM ... well at best, you might reboot a lot.
Would be very boring these days: At worst, poking around would get that
particular app jam itself, and you'd have to kill it via the task manager.
The operating system (with lots of hardware support from the CPU) does a good
job at not allowing any app to peek or poke around in memory allocated to other
programs or the OS. Applications even typically get to see different sections of
physical memory at any particular address.
BTW, in C you can actually peek & poke around as you like on virtually all
platforms, simply by assigning an arbitrary integer value to a pointer and then
accessing the memory location pointed to.
May result in the application getting terminated for an access violation though,
courtesy of Intel's "protected mode" and paging mechanisms, which can be used to
automatically trigger a hardware interrupt when certain memory address ranges
are accessed, so that the OS can take over and handle the access accordingly
(killing a misbehaving program, swapping virtual memory back in, or the like).
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"David H. Burns" <dhb### [at] cherokeetel net> wrote:
> > "Jesus was a capricorn"
> >
> > (Identified from memory... man, it's been ages since I've last heard that song.)
> >
> >
> Me too. I have it somewhere on a reel to reel tape. I wonder how long it
> would take
> me to find it.:)
I gotta ask my dad to copy that vinyl record to mp3... I didn't really like
"Jesus was a Capricorn", but I guess one or two other songs from the album were
ok, though the only other one I recall was "Jesse Younger" (which I quite
liked).
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"David H. Burns" <dhb### [at] cherokeetel net> 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.
Ook!
(Or was that some other thread? ;))
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"David H. Burns" <dhb### [at] cherokeetel net> wrote:
> >> The graphics routines in John Beales wonderful
> >> heightfield programs don't work, though the rest of the program does.
> >
> > The name doesn't ring a bell.
> >
>
> You took me aback! I had to call up Pov-Ray links to make sure had had
> the name right.
> Have you every played with heightfields? I can't imagine anyone who has
> not being familiar
> with John Beale's "Gforge".
Indeed I haven't done much heightfield stuff.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Henderson wrote:
> Oh, there have been much longer threads in here.... :-)
So... is religion good or bad? :)
<ducks>
--
Chambers
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Chambers wrote:
> David H. Burns wrote:
>> You took me aback! I had to call up Pov-Ray links to make sure had had
>> the name right.
>> Have you every played with heightfields? I can't imagine anyone who
>> has not being familiar
>> with John Beale's "Gforge".
>
> (Warning! Thread is becoming dangerously on-topic! :) ).
>
> I'm aware of it, but I never used it. I prefer making my height fields
> with POV-Ray instead :)
>
Gforge has a lot of tools for modifying the basic heightfield. It's fun
to play with
in itself. It has its own display routine (16 bit) but this fails on XP
and maybe on 98 and
2000 -- I can't remember.
David :)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> the file to look at there is "pvdisplay.cpp" in the
> "windows" subdirectory, which defines a WinLegacyDisplay object (well, an
> object class, to be precisely).
Well, it *is* complicated. I'm still not convinced that, even with
legacy considered,
that it need be so. But since it is, that's what I'll have to work with.
The 3.6 code that I have doesn't have "pvdisplay.ccp"
but I take it that the code wherever it is (pvengine, I suspect) is
similar. It looks like
I am going to have to delve into the mysteries of WINAPI (which I have
already looked
into a little.) Your post should help. Unfortunately Microsoft
documentation is rather obscure
too me, and I don't read well for very long on a computer screen. It's
gonna be a long learning curve, the
question is, is it worth it? I'm beginning to think not. But, then, when
once mastered, I should be
able to write routines that could with relative ease be adapted to about
any language. I need
not fear that they won't work on future Windows versions, because unless
I go completely senile,
I will *never* purchase another Windows machine! Even now I'm wondering
if graphic programming
with a Mac is this complicated.
Thanks a lot. I will study this and will no doubt have "stupid"
questions. :)
David :) :)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> BTW, in C you can actually peek & poke around as you like on virtually all
> platforms, simply by assigning an arbitrary integer value to a pointer and then
> accessing the memory location pointed to.
I didn't know that, if I ever did, I had forgotten it. Thanks :)
>
> May result in the application getting terminated for an access violation though,
> courtesy of Intel's "protected mode" and paging mechanisms, which can be used to
> automatically trigger a hardware interrupt when certain memory address ranges
> are accessed, so that the OS can take over and handle the access accordingly
> (killing a misbehaving program, swapping virtual memory back in, or the like).
>
I blamed those "access violations" that occasionally show up on Windows. So
their really due to a "safety" feature in Intel's hardware. Is that why
machines with
AMD processor's (reportedly) crash and hangup less frequently?
David :)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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?"
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"clipka" <nomail@nomail> wrote:
> "David H. Burns" <dhb### [at] cherokeetel net> wrote:
> > A peek function would still be useful, but a poke function on a multi
> > tasking system where
> > the operating system is in RAM ... well at best, you might reboot a lot.
>
> Would be very boring these days: At worst, poking around would get that
> particular app jam itself, and you'd have to kill it via the task manager.
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... :)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka <nomail@nomail> wrote:
> Neeum Zawan <m.n### [at] ieee org> wrote:
> > I wonder when such editors came around. Ever since I used BASIC, there
> > was the RENUM command. Of course, I _started_ using BASIC long, long
> > after its invention.
> IIRC one of the main factors of BASIC's popularity - the all-time famous C-64 -
> did *not* have a "RENUM" command.
> The first computer *I* used, the Amstrad CPC, *did* - hehe :P
Of course even in editors which did have a renum command, it would mess
up any numbering scheme you might have been using. For example, if you
started every subroutine using line numbers starting from multiples of 1000
(so that you could easily remember that "this subroutine started at line
3000, and that one at line 5000" etc) the renumbering would mess up all
that and you lost the semi-logical numbering.
There were some BASIC interpreters (eg. in the ZX Spectrum) which supported
jumping to a line which number was specified by a variable. In other words,
you could do a "GOTO xyz" where xyz was a variable. The interpreter would
then jump to the line which number was the value of that variable, or the
next line closest to that number if it didn't exist. (This allowed writing
some elementary switch/case constructs etc.) Naturally the renumbering command
would have no idea about this, and it would break your code.
Overall, BASIC programs were quite hard to read and understand. Most
editors in the old days did not support such a basic technique as code
indenting (iow. even if you tried to indent the code manually, the editor
didn't support it and you couldn't). This means that every single line of
code started from the same column, which made reading long nested blocks of
code a bit difficult.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka <nomail@nomail> wrote:
> I guess the graphics card would be perfectly fine with it - even today's
> graphics card still include backwards compatibility with VGA, if only for
> booting and just in case someone decided to run some old DOS.
If you are having problems running old DOS programs with a modern PC,
all you have to do is to use the DosBox emulator. It's a full PC/DOS emulator
(ie. it emulates the entire hardware) and it works very well. Most DOS programs
run flawlessly and without having to configure anything. The emulator is
available for many systems (including Windows and Linux).
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Overall, BASIC programs were quite hard to read and understand. Most
> editors in the old days did not support such a basic technique as code
> indenting (iow. even if you tried to indent the code manually, the editor
> didn't support it and you couldn't). This means that every single line of
> code started from the same column, which made reading long nested blocks of
> code a bit difficult.
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.
But sure, the whole concept of using line numbers for editing, must less
flow control, is fundamentally flawed...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> wrote:
> The problem with all the low-level languages like C and C++ and such is that
> they don't really come with the libraries you need to do modern stuff.
> There's nothing built in for threading, graphics, sound, IPC, etc. That's
> all left to libraries developed well after the language was standardized.
The reason why languages like C++ don't come up with libraries which would
be handy (such as graphics and sound) is complicated.
There is no one single unambiguous, clear way of drawing graphics easily
and as efficiently as possible in all systems (never mind the fact that C++
is designed to be portable and not all computers even *support* any kind of
graphics). For example, if you were in Windows, how should a graphics library
work? Should it be a full GUI library like Qt or WxWidgets? Or should it be
simply a library which draws on some drawing surface/frame buffer, but leaving
GUI elements up to the (non-standard) system libraries? Should the graphics
be drawn using the Windows API, DirectX or maybe OpenGL? These are mutually
incompatible techniques which have their advantages and disadvantages, and
it's very difficult to create a library which would be agnostic to the choice
(and still be fully useful). Also if you wanted to draw accelerated 3D
graphics, there is no one single unambiguous, clear way of doing that either.
You could try to replicate OpenGL or something like DirectX, but since hardware
is constantly developing, the standard library would get old really quick.
It would be basically useless for anything new.
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.
A standard library to play sounds would run into similar problems, as well
as its own. The source of the sound would be a difficult question. Usually
you would want to play a sound from a file. Which sound file formats should
be supported by a standard library? Many of the most useful formats have
license restrictions, which is something you really don't want to be using
in a programming language standard. Usually international standards for a
portable programming language try to be neutral with respect to proprietary
licensed file formats and such, for a good reason. Thus a standard sound
library would necessarily be very limited and mostly useless. It would also
probably get old quickly, as new, better formats are being developed all the
time.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"David H. Burns" <dhb### [at] cherokeetel net> wrote:
> I blamed those "access violations" that occasionally show up on Windows. So
> their really due to a "safety" feature in Intel's hardware. Is that why
> machines with
> AMD processor's (reportedly) crash and hangup less frequently?
No, not really: AMD processors use the very same features.
They do have a fierce and long-standing competition however, as to who can get
the most computing power out of a single chunk of silicon; naturally, this
involves pushing the CPUs quite close to their limits of stable operation; if
these limits are exceeded, once in a while a glitch may occur and just throw
the computer off-track; in such a case, anything might happen then, from a
computation error, to a messed up address pointer or misread programm command
that may have the CPU's / operating system's safety measures kick in as
response.
I guess it is worth noting here that not every such access violation message is
due to a glitch in the CPU; probably the vast majority of such messages in
everyday use is due to straightforward programming errors (often flawed pointer
handling in C/C++ code). Instead, true glitches are most frequently observed by
high-end gamers trying to push the system even closer to its limits than AMD or
Intel decided to, by operating them beyond the official operational parameters
(bus clock, clock multiplier, memory access timings, voltages and the like).
The allegations about processor stability tend to change over time, too: A few
years ago, it was Intel CPUs that were considered more stable.
So to wrap it up, those "access violations" are actually the applications' fault
- even though they seem to be a rather Windows-typical phenomenon, but I
attribute this to some good degree to the fact that Windows just happens to be
the most popular target for unexperienced or lazy program authors.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Bill Pragnell" <bil### [at] hotmail com> 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... :)
No need to tell me that - I had an Amstrad CPC, which featured 16K of display
RAM so there was plenty of poking you could do :)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp <war### [at] tag povray org> wrote:
> > The first computer *I* used, the Amstrad CPC, *did* - hehe :P
>
> Of course even in editors which did have a renum command, it would mess
> up any numbering scheme you might have been using. For example, if you
> started every subroutine using line numbers starting from multiples of 1000
> (so that you could easily remember that "this subroutine started at line
> 3000, and that one at line 5000" etc) the renumbering would mess up all
> that and you lost the semi-logical numbering.
Actually, the Amstrad CPC's BASIC was remarkably sophisticated about that,
allowing you to renumber only a subset of lines, to start from a specified new
number and at specified intervals.
IIRC, really the *only* problematic statements were GOTOs to non-existent lines,
which would by default go to the next higher existing line number; these could
indeed be broken.
Truly computed GOTOs, as far as I can remember, weren't supported by the Amstrad
CPC's BASIC (except with some obscure RSX tools) - only a "ON ... GOTO
line1,line2,line3,..." to pick one of a predefined set of jump targets.
> Overall, BASIC programs were quite hard to read and understand. Most
> editors in the old days did not support such a basic technique as code
> indenting (iow. even if you tried to indent the code manually, the editor
> didn't support it and you couldn't). This means that every single line of
> code started from the same column, which made reading long nested blocks of
> code a bit difficult.
Still, with some discipline it was possible to write well-maintainable code.
(Though I agree that there are languages that make it far easier.)
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)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka <nomail@nomail> wrote:
> Instead, true glitches are most frequently observed by
> high-end gamers trying to push the system even closer to its limits than AMD or
> Intel decided to, by operating them beyond the official operational parameters
> (bus clock, clock multiplier, memory access timings, voltages and the like).
Many games do indeed stress the CPU and the GPU to their limits, even
without any overclocking. For regular non-overclocked systems it then
becomes a question of ventilation: If the CPU or the GPU gets too hot,
it might start glitching, in which case the game usually hangs, gives a
"this application performed an illegal operation" message or outright
reboots the computer.
Of course in practice this is probably less common than one would think,
and by far the most common reason for games crashing is simply that the game
(or in some cases a driver, eg. the display driver) is buggy. Some games are
really stable and basically never crash, while other games seem to be
constantly crashing. This would seem to be indicative of a software bug
rather than a hardware problem (although it wouldn't be completely implausible
that the crashing game is stressing some part of the hardware that the
non-crashing one isn't).
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka wrote:
> 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...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible <voi### [at] dev null> wrote:
> Hmm. Perhaps it was the Sinclare Spectrum then...
No such computer has existed. In the *Sinclair* Spectrum there was no
indentation.
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |