HDTenEightyP/NetNews huggingface dataset:
From: jaker@csugrad.cs.vt.edu (Jake Rose)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: LISP - Don't use it. (NOT!)
Date: 7 Nov 92 22:09:27 GMT
Organization: Virginia Tech Computer Science Dept, Blacksburg, VA

bjst@sth.frontec.se (Bjorn Stenberg) writes:

>I would, though, ask anyone considering LISP for script language to
>reconsider.

>LISP is VERY quick&easy to interpret, true. However, the language is
>designed with the target of being easily implemented instead of easily
>used...

>I urge developers to use another more user oriented script language like
>ARexx or FPL for any application-internal script programming.

>		-- Bjorn

>PS. No kick at the already implemented LISP works. I -LOVE- GNU Emacs, but I
>know a lot of people who refuse to use it because "the script language is
>so weird". We don't want that with new Amiga applications, do we?
>DS.

Scheme and other various stranger derivatives of LISP are extremely useful
programming languages for a very few applications.  While LISP languages are
usually quite slow on VonNeumann architecture computers, they do provide a
useful aide for teaching recursive concepts, processing text, developing
tree- or list-oriented algorithms, and more.  I agree with you that
development in LISP would *probably* not be a good idea, although there are
now LISP compilers available which allow it to be more useful as a
development language.  As for use as a scripting language, that too depends
on the particular application - LISP was probably a good choice for EMACS
because of the text processing involved in an editor (perhaps a successor
to DME would be so nice?).  On the other hand, there's a reason why vi
hacks call it "Eight Megs And Constantly Swapping"... :)

>       ///  Bjorn Stenberg, Stockholm, Sweden         bjst@sth.frontec.se
>      ///  main() { printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
> \\\ ///  "- Your documentation no longer confuses me, old version!"
-- 

Wulf                    |Two men look out through the same bars.
jaker@csugrad.cs.vt.edu |One sees mud, and one the stars.
Newsgroups: comp.sys.amiga.programmer
From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
Subject: How to proceed
Organization: Jet Propulsion Laboratory
Distribution: comp.sys.amiga.programmer
Date: Thu, 5 Nov 1992 22:46:45 GMT

	I've completed development of a major could be shareware or com-
mercial product. I've tested it under both O.S. 1.3 and 2.04 and guess
what? It works fine - naturally. Not so fast... Does it work ok on other
systems as well? I don't know. How to proceed beyond this point is a
real mystery. Please advise.

	This product would have to fall into the category of File
Management. In a nutshell, it mediates between physical file systems and
the RAM disk such that files are loaded on demand. This works for CLI
type commands (e.g. Info) and files requested by application programs 
(e.g. Includes). Inaddition to copying the file, the protection bits are
duplicated and the source path replicated (if appropriate). The net effect
is that only the files that are needed are copied into the RAM disk.

	Interested persons contact me at:

		jdickson@iems.jpl.nasa.gov

Thanks,

Jeff
From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
Newsgroups: comp.sys.amiga.programmer
Subject: Re:  How to program multi-threaded programs on Amiga ?
Date: 6 Nov 92 23:29:02 GMT
Organization: Edotronik GmbH

In article <RNlXr*DG7@garfield.fipnet.fi> vsaari@garfield.fipnet.fi (Ville Saari) writes:
>What is the right way for sub-process to exit and how can the main process
>be absolutely sure the sub-process has exited?

How about this pseudocode at the end of your sub process:

    Signal(the_main_process, i_want_to_go_sigmask);
    Forbid();
    Wait(ok_to_go_sigmask);
    Signal(the_main_process, i_am_gone_now_sigmask);
    [finalrts]

You signal the main process in some way that you want to go. Then you
forbid and break the forbid by waiting on an acknowledge signal. As soon as
the main process acknowledged your request, you're forbidden again. The
final rts, exit, whatever will remove your process immediately because of
the Forbid(). You're safely gone as soon as you get the acknowledge. The
main process can depend on that when it wakes up after Wait()ing on the
"i_am_gone" mask.

There are probably more trivial ways depending on the exact behaviour of
your sub-process.


> Ville Saari		      vsaari@garfield.fipnet.fi  ___	 ____

--
Heinz Wrobel, Edotronik GmbH (ECG018)
FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
"It's good to have a mouse, it's faster if you can do without one..."
"He who doesn't develop with an A2024 doesn't know about font independent
 user interfaces..."
Organization: Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.sys.amiga.programmer
Date: Wed, 11 Nov 1992 17:26:29 -0500 
From: William Bardwell <wbardwel+@CMU.EDU>
Subject: Re: New hardware reference guide?
	<BxK3ns.F5o@cck.coventry.ac.uk>

>We also won't have anywhere near the quality when it comes to games or
>demos
This is certainly true with <1.3 (and probably 2.04), the idea is that
some new versions of the OS fix this...(2.1? 3.0? 3.1? 4.0?)
So what people should be doing is whining for faster routines in the
OS.
(cause CBM isn't going to release hardware refs, cause it is in their!
best intrest not to, cause this way they can have some freedom about
their hardware.  (which is in our best intrest, cause it means cheaper
better graphics in the future (no/less backwards compatability)
(and it means competition for graphics systems from 3rd parties).)

William Bardwell
wbardwel+@[cs.]cmu.edu
Newsgroups: comp.sys.amiga.programmer
From: walker@twix.unx.sas.com (Doug Walker)
Subject: Re: Bug in SAS/C 6.0 library : strstr ()
Originator: walker@twix.unx.sas.com
Date: Fri, 13 Nov 1992 18:09:00 GMT
Organization: SAS Institute Inc.
Keywords: strstr, SAS/C 6.0


In article <Bxnw8z.CvD@unx.sas.com>, jamie@cdevil.unx.sas.com (James Cooper) writes:
|> A NULL character array has no size, so trying to access a member of it
|> at *all* is accessing "beyond the end" of it.
|> 
|> I can put this in as an enhancement request for strstr(), but it can be
|> argued that the current behavior is correct, at least according to ANSI
|> specifications.  Just check for NULL yourself before calling it.

He's not passing a NULL, he is passing a null string: i.e. "".

This should work - the existing behavior is a bug.  It was present
in V5.0, too, by the way.  I doubt if this will make the patch
unless something else occurs to make us pull it back from QA.

|> Jim Cooper

-- 
  *****
=*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
 *|. o.| ||                                          1200/2400/9600 Dual
  | o  |//     For all you do, this bug's for you!
  ====== 
usenet: walker@unx.sas.com                            bix: djwalker 
Any opinions expressed are mine, not those of SAS Institute, Inc.
From: rfentima@ub.d.umn.edu (Robert Fentiman)
Newsgroups: comp.sys.amiga.programmer
Subject: Voice sythesizing and Hi-Res screens
Date: 12 Nov 1992 00:03:50 -0600
Organization: University of Minnesota, Duluth
NNTP-Posting-Host: ub.d.umn.edu

I have a problem using the voice synthesizer when using a Hi-Res screen.
 It always sounds as if it is gurgling or something.  So far, this has
only happened to me in BASIC (as I haven't ordered the include files
from commodore yet).  Is there any way to solve this (besides using
lower res screens)?

Thanks
Robert Fentiman

UseNet: rfentima@ub.d.umn.edu
At: University of Minnesota, Duluth
From: mbs@adastra.cvl.va.us (Michael B. Smith)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Is the RKM: Libraries for 2.0 available yet?
Distribution: world
X-NewsSoftware: GRn 1.16g (10.31.92) by Mike Schwartz & Michael B. Smith
Date: 6 Nov 92 19:12:22 EDT
Organization: Well, I haven't decided on a name yet...

In article <jwWWr*Zf1@caleb.UUCP> jdp@caleb.UUCP (Jim Pritchett) writes:
> In article <XlVVr*Og7@sks.ppc.sub.org>, Stefan Scholl writes:
> > In article <Bwxx06.84x@unx.sas.com>, James Cooper writes:
> > > You can even get the complete source code from the Libraries and Devices
> > > manuals off the latest Fish disks (75? - 75?).  Check ux1.cso.uiuc.edu.
> >
> > Fish 741 and 742.
>
> Has anyone put these up for BMS yet?

I didn't know anyone wanted them.   :)
I don't do whole fish disks, but this is worthwhile stuff.

Maxtor_HD:UUCP_116/lib/bms/Pub > ls BMS:Pub/RKRM*
 ----rwxd    1     231994  30-Oct-92 23:00:20  RKRM_Lib2.lha
 ----rwxd    1     298662  30-Oct-92 22:56:12  RKRM_Lib1.lha
 ----rwxd    1     331095  30-Oct-92 22:56:32  RKRM_Devices.lha
 ----rwxd    1     184499  30-Oct-92 23:00:30  RKRM_Lib3.lha
                  1046250 bytes (2073 blocks)

Go for 'em. (My quick look at the copyright seemed to indicate this is OK,
if someone from CBM says otherwise though, I'll remove'em posthaste.)
--
  //   Michael B. Smith
\X/    mbs@adastra.cvl.va.us  -or-  uunet.uu.net!virginia.edu!adastra!mbs
Newsgroups: comp.sys.amiga.programmer
From: willw@extro.ucc.su.OZ.AU (William Waring)
Subject: Re: Listview Help
Organization: Sydney University Computing Service, Sydney, NSW, Australia
Date: Sun, 8 Nov 1992 23:48:41 GMT

kmccoy@nyx.cs.du.edu (Kevin McCoy) writes:

>How do you read the line selected in a GadTools Listview Gadget?

Heres a little code segment...

...

Class = Msg->Class;
Code = Msg->Code;
Iaddress = Msg->Code;
...

switch (Msg->Class)
{
	case IDCMP_GADGETUP :
		gid = ((struct Gadget *)Iaddress)->GadgetID;
		switch (gid)
		{
			case LIST_GADGET :
			/*
			**	LIST_GADGET is the GadgetID of the
			**	ListView gadget. Now the line that
			**	was selected is returned in Code.
		}
		break;
}

	There you go, this tells you the position in the list of node that
was select, if you want the actual node then you have to get it yourself.
Depending on the way you build the list, there are sevral ways to do this

i) If you allocate the list at compile time (ie have a array of Nodes
pointing to each other) then the node is just NodeArray[Code].

ii) If you Dynamically build the list using AllocMem/AddTail then you'll
eed to shoot along the list, for 'Code' nodes using the Node->ln_Succ.

iii) Another way I thought of was to Dynmically allocate an Array, using
ReallocMem, but this function seem to get a bit shirty after about 1000
Nodes, the beauty about this method is you can still access *(List+Code) 
directly, but adding/deleting is kinda funky....

<No doubt someone is gonna tell me I'm doing something wrong>

hope this helps you... 

---
* Will    Waring |            The X-Comm Development Team
  Edward Lawford |              willw@extro.ucc.su.OZ.AU 
  Michael Lorant |             9107957@chico.cs.su.OZ.AU
------------------------------------------------------------------------------
Newsgroups: comp.sys.amiga.programmer
From: mwm@contessa.palo-alto.ca.us (Mike Meyer)
Subject: Re: New hardware reference guide?
Newsgroups: comp.sys.amiga.programmer
Distribution: world
X-NewsSoftware: Amiga Yarn 3.4, 1992/08/12 15:49:52
Keywords: 
Summary: 
Date: 11 Nov 92 08:58:58 PST
Organization: Missionaria Phonibalonica

In <1992Nov11.150305.14966@imada.ou.dk>, breese@monet.imada.ou.dk (Bjoern Reese) wrote:
> It's my computer, I bought it, and I can use it as I like.

This is, of course, always correct.

> If C= wants any
> order in the chaos, I think they'll better release a new hardware reference
> guide.

But you've got this one backwards. Any action that prevents commercial
software from hitting the hardware directly induces order in the chaos.

	<mike
Newsgroups: comp.sys.amiga.programmer
Subject: Re: AMOS PROFESSIONAL
From: platt@mhd1.moorhead.msus.edu (Vinnie)
Date: 5 Nov 92 03:09:33 -0600
Organization: Moorhead State University

In article <Bx8EsK.Cux@news.cso.uiuc.edu> miller@mrcnext.cso.uiuc.edu 
(Geoffrey M. Miller) writes:

>I would like to get in contact with other AMOS programmers and
>get some example files... are there any tutorial books available?
>I have programmed in BASIC a long time ago and more recently in
>PASCAL... AMOS looks very easy to pick up with little experience
>but I'd like to see some professional quality programs to get
>some ideas of the techniques employed... is there a AMOS mailing
>list or ftp site for programs on internet?  Anything?  Anyone?

I would also like contact with other AMOS programmers out there. I have used
AMOS long enough with virtually no support.

There are a couple of books available on AMOS but I'm not sure if you can
get them in the US. I've only heard about them, not seen them. 

There's no mailing list or ftp site per se, however, there is a collection
of PD disks named "Amoner" which circulates around on some sites. I believe
either ux1 or wustl maintains them. Currently there are 5 disks.

As far as AMOS Pro goes: how is it? Can you give us a complete run down? Are
you a previous AMOS user? Is it worth the money? I have been using AMOS since
version 1.2 and I would like to get the upgrade but I'm reluctant to shell
out some $50 for an upgrade.

Also, I would consider maintaining a mailing list for AMOS users out there 
if there is enough interest.  Anyone?
         __
        / /    "We apologize for the inconvenience."
Amiga  / /       -God's last message to all in
RULEZ / /           _Hitchhiker's Guide to the Galaxy_
 __  / /
 \ \/ /        "All you need is love."
  \  /           -Beatles                      Vincent Platt
   \/                                     platt@mhd1.msus.moorhead.edu

Newsgroups: comp.sys.amiga.programmer
From: shf@well.sf.ca.us (Stuart H. Ferguson)
Subject: Re: Objective C
Organization: Whole Earth 'Lectronic Link
Date: Thu, 5 Nov 1992 09:08:51 GMT

| ---- Mike Meyer writes:
| I vaguelly recall that there was an Objective C preprocessor available
| for the Amiga. Anyone know where I could find a copy?

Brian Witt wrote one called OCT.  The release came with base classes and
libraries and usefull stuff.  It was NeXT-style Objective-C.  Last address
I have for him is brian@babbage.ecs.csus.edu.
-- 
		Stuart Ferguson		(shf@well.sf.ca.us)
			Prepare to Surge to Sublight Speed!
Newsgroups: comp.sys.amiga.programmer
From: leto@opal.cs.tu-berlin.de (Manuel Fischer)
Subject: Re: where is PATCH for gcc v2.2.2
Organization: Techn. University of Berlin, Germany
Date: Mon, 9 Nov 1992 19:13:38 GMT

tw5232@albnyvms.bitnet (Teddy Wang) writes:

>Simple question, I was just applying gcc fix #2 and it says that I need a 
>program called patch.  Does anybody know were it is?  Please e-mail me the
>ftp site and location as I frequent this group not so often...

Please don't email this, I also look for this PATCH, but didn't find
it yet.

>Thanks
>
>Teddy
>
>     ////////                                         twang@csc.albany.edu
>       //                                             twang@thor.albany.edu
>      //                                              TWANG@ALBNYVMS.BITNET
>     //  eddy Wang                                    TW5232@ALBNYVMS.BITNET
>    //   Computer Art and Animation at SUNY Albany
>         New Illusions      Albany, NY                  "Increase the Peace..."

Thanks,
        Manuel.
--
Mail  : Manuel Fischer                                  ///   Only
Phone : +49-30-8247337               Germany           /// Amiga makes
e-mail: leto@cs.tu-berlin.de                       \\\///  it possible 
Z-Netz: M_Fischer@bamp.zer                          \XX/  -->A2000/28<--
From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
Newsgroups: comp.sys.amiga.programmer
Subject: HDToolBox useless? (Was: Re:  Colours, Datatypes & 68040.library)
Date: 30 Oct 92 20:17:17 GMT
Organization: Edotronik GmbH

In article <1992Oct29.204253.18943@ugle.unit.no> geirh@Siri.Unit.NO (Geir Haugen) writes:
>HDToolBox didn't find a checksum error on my disk, and reported it was OK,
>even though I was unable to write to the disk ("validating"). The error

That's a _filesystem_ problem. It's _not_ a "bad block". The block is ok,
but the data "inside" it is messed up. HDToolBox is more to work on and
adjust "physical" stuff related to your HD like bad blocks and partition that
limits. It doesn't really care what filesystem you use on these partitions
you select. So you used the wrong tool. You need a filesystem check/repair
utility like DiskSalv.

>I got a requester saying "Checksum error in block XXX". Well, I started
>HDToolBox and started it's 'mark out bad blocks' function. After going through

Wrong. It's not a "bad block" in the HDToolBox way of thinking. It's just
messed up data inside a "good block".

>experience. They said HDToolBox was useless under 3.0, and I should wait
>for DiskSalv 2.10(?) instead.

Hmm ... They probably meant that HDToolBox is useless for _filesystem_
_repair_. That's true. It was never meant to do that. But it's perfectly
useable for 3.0 as it used to be.

>WHY does CBM release 3.0 without a proper HD-program knowing the new
>3.0-spesific file systems??

To my knowledge C= didn't ever release any filesystem check/repair tool
with the OS except for "DiskDoctor" which has disappeared by now because of
"malpractice" (end of quote :-)

>      //COMMODORE		     Geir Haugen, Trondheim, Norway

--
Heinz Wrobel, Edotronik GmbH (ECG018)
FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
From: pejanes@descartes.uwaterloo.ca (Peter Janes)
Subject: Wrong font in some IntuiText's (but not others)?
Organization: University of Waterloo
Date: Tue, 10 Nov 1992 14:41:05 GMT

Here's an interesting problem:

I'm having problems programming fonts under 2.04.  Here's what I've done:

  Opened a custom screen, with screen.Font=&my_font;
  Created two sets of (global) IntuiText structures: one for gadget text, one
    for instruction text.
  Opened a window on the custom screen.

Both sets of structures have ITextFont=NULL.  From what I understand, this
should render the text in the screen's font (my_font).

The problem is, the gadget text is rendered correctly (i.e. in the font
specified in the Screen structure); the instruction text, printed via
PrintIText(), is rendered in the "default system font".

IntuiText that's initialized locally in a function and PrintIText()'ed is also
rendered in the "default system font".

What am I doing wrong?  From what I understand, IntuiText with
ITextFont=NULL is supposed to be rendered in the window's rastport font,
which is taken from the screen's font.  I've tried opening the screen with a
normal NewScreen structure, an ExtNewScreen structure, and an ExtNewScreen
structure with the SA_Font tag.  No luck.

net.Thanks for any help,
-- 
-------------------------------------+-----------------------------------------
 Peter Janes                       //|"Now, here's a song that answers the
  (pejanes@descartes.uwaterloo.ca)// | rhetorical question 'Is that any good?'"
    Certified Amiga Developer   \X/  |   --Moxy Fruvous, "That's Any Good"
From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Amiga Application Framework
Date: 3 Nov 92 19:35:43 GMT
Organization: Edotronik GmbH

In article <68764@cup.portal.com> Lee_Robert_Willis@cup.portal.com writes:
>Now if you want to add support for multiple windows, this event loop
>gets really ugly.

Why? Each window has a UserData field which you can use to point to your
window-specific project data. With each IntuiMessage you get the window
ptr. So there's not really a problem.

>If you want to add support for multiple projects, you can't have all
>those global gadgets.	(You need new copies for each project)

Global gadgets? What do you mean? global gadget structures? You can't add
that to multiple windows anyway. If you use gadtools or some small wrapper
functions around gadtools, you get copies of your gadgets for free ;^)

>If you want to add support for multiple screens, you need some
>way of keeping track of the screens.

True. I keep an exec list for each _used_ screen including the DrawInfo and
the font sizes I typically need. It's like an extended LockPubScreen call
that behaves like OpenFont. It manages a usecount for a list entry and
discards it if it is no longer needed. Not much work at all. Really just a
few lines compared to other things.

>Lee	  Lee_Robert_Willis@cup.portal.com

--
Heinz Wrobel, Edotronik GmbH (ECG018)
FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
From: monster@mbear.apana.org.au (Martin Ozolins)
Newsgroups: comp.sys.amiga.programmer
Subject: 64bit / 32 bit = 32 bit code for 68000 
Distribution: world
X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
Date: 5 Nov 92 19:25:19 PST
Organization: Bears Incorporated

Could someone EMail me some examples of how to do

64 bit / 32bit = 32bit Divide code for assembler for a 68000 processor.

I need it so that I can write my program to run on either a 680x0 or 68000 system.

I already have a 32 * 32 = 64 bit Mul routine so I only need the above.

Any examples would be appreciated.

Tanx

-- 

Martin Ozolins :Internet   monster@mbear.apana.org.au
Victoria       :FIDO       3:633/359.6
Australia      :AMIGANET   41:300/359.6
               :TRINET     42:8699/8.6
From: 832root@gw.wmich.edu
Newsgroups: comp.sys.amiga.programmer
Subject: Executing DOS commands in C
Date: 13 Nov 92 10:54:28 EST
Organization: Western Michigan University

Is there a relatively simple way in C to have a program execute an
external command (for instance 'dir'), and have it direct the output
to where ever the program's output is going?

I'm using DCC and WB2.04.

 ----------------------------------------------------------------------------
 Rick Root         root@areality.UUCP    832root@gw.wmich.edu
                   99root@grog.lab.cc.wmich.edu
 ----------------------------------------------------------------------------

Newsgroups: comp.sys.amiga.programmer
From: jamie@cdevil.unx.sas.com (James Cooper)
Subject: Re: Bug in SAS/C 6.0 library : strstr ()
Originator: jamie@cdevil.unx.sas.com
Date: Fri, 13 Nov 1992 15:55:47 GMT
Organization: SAS Institute Inc.
Keywords: strstr, SAS/C 6.0


In article <hadig.721653082@rama>, hadig@rama.informatik.rwth-aachen.de (Thomas Hadig) writes:
>Hi,
>
>i have found a bug in the SAS/C Amiga 6.0 library function strstr :
>
>char * strstr (char *s1, char *s2);
>
>strstr searches the substring s2 in the string s1 and returns the
>starting address of the substring s2 in s1 or NULL if not found.
>
>BUG :
>
>If you call strstr with an empty string s1, strstr will continue the
>search instead of returning NULL.

While strstr() is not an ANSI function, it *was* patterned after the
other ANSI string functions.

Basically, ANSI states that "If an array is accessed beyond the end of
an object, the behavior is undefined."  (Section 4.11.1, first para.)

A NULL character array has no size, so trying to access a member of it
at *all* is accessing "beyond the end" of it.

I can put this in as an enhancement request for strstr(), but it can be
argued that the current behavior is correct, at least according to ANSI
specifications.  Just check for NULL yourself before calling it.

>[Example deleted]
>
>(Has been reported to EMITS)

Thanks.
-- 
---------------
Jim Cooper
(jamie@unx.sas.com)                             bix: jcooper

Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
and not necessarily those of my employer.
Newsgroups: comp.sys.amiga.programmer