HDTenEightyP/NetNews huggingface dataset:
From: mcg@waikato.ac.nz
Newsgroups: comp.sys.acorn
Subject: Passing N-dim array to a function in C?
Date: 21 Jul 92 17:31:07 +1200
Organization: University of Waikato, Hamilton, New Zealand

A question for those C moguls out there:-

     One can declare a function

    void matrix (double *m)
    {
     blah
   }

and pass it an array declared : double t[10];

     matrix(t);


 What is the data_type declaration that's necessary for an array of an array?

viz

    void  matrix(????)
    {   double *p = malloc(sizeof (m));
      m[1,4] = 1.0123;
      p[3,9] = 1.20394;
    ..}

 for declaration of : double t[10][10];

From Martin Glanvill		(mcg@waikato.ac.nz)

Dept. Maths 							      @@@@@/|@
University of Waikato						      @@@@/ |@
Hamilton							      @@@/__|@
New Zealand							      @@/   |@
								      @@@@@@@@

----------------****=====| A quote to make your day |======****-----------------
If a jury in a criminal trial stays out for more than twenty-four hours, it is
 certain to vote acquittal, save in those instances where it votes guilty.
                                        -- Joseph C. Goulden
-------------------------------------------------------------------------------
From: ssurawls@SUSSSYS1.RDG.AC.UK (Mister E)
Newsgroups: comp.sys.acorn
Subject: TeX
Date: 21 Jul 92 09:44:56 GMT

Does anyone know where I can get a recent version of TeX from without using
either phoibos (old version) rusinfo (about as fast as typing it in from BAU)
or newcastle (don't fancy having a 13 meg mailbox and then having to piece it
all together!)

It just took me 30 seconds to transfer a 987 byte file from rusinfo and I have
been changing directory for several minutes now!

Ian


Posted Tue Jul 21 10:44:55 BST 1992

=+=+=+=+=+ 8< =+=+=+=+=+=+=+=+=+=+=+=+ 8< =+=+=+=+=+=+=+=+=+ 8< =+=+=+=+=+=+=+
Mr Ian Rawlings, Telephone Reading (0734) 662301
	EMAIL ssurawls@susssys1.rdg.ac.uk

This car is constipated - it hasn't passed a thing for weeks.
From: 2105995@hydra.maths.unsw.EDU.AU ()
Subject: ARMatureII (BBS in Aus)
Organization: Ban the Mac Soc. Aust ltd
Date: Tue, 28 Jul 1992 00:09:51 GMT

An announcement:

Seeing as it seems as if all other BBSs have had their
advertisements flowing on c.s.a, I'll plug mine. :)



Australian Archimedes users now have their own BBS!


+--------------------------------------------------------+
|  ARMature II BBS : (02) 580-9938 within Australia      |
|                    drop 1st '0' if international!      |
|        24 hrs  using RiscBBS on an A5000!              |
+------------------All Archimedes users welcome----------+


                             Cheers!

+----------------------------+---------------------------------------------+
|___                         | Real Programmers (tm) code in 68000         |
||__| .  __  __ |\/|  __   _ | Real Artists (rm) use Macintoshes           |
|| \    |__ |   |  |  __\ | \| Real Musicians (c) use SoundBlaster Pros    |
||  \ | ___||__ |  | |__| | || Real Idiots (pat. pend) do all of the above | 
+-President of the Ban the Mac Society, Regd office ARMature II BBS Sydney-+
Newsgroups: comp.sys.acorn
From: Steve@klaatu.demon.co.uk (Steve Loft)
Subject: Correctly placed menus in C
Distribution: world
Organization: None to speak of
Date: Fri, 24 Jul 1992 21:15:26 +0000

I've read a lot of messages moaning (quite rightly) about PD programs
which don't pop up menus at the right height on the icon bar.  This is
a problem in C when your menu has dashed line entries acting as spacers,
because of what is apparently a bug in RISC_OSLib.  I was amazed to learn
from someone who has version 4 of C that the bug is still present.

Now, can someone tell me an easy way of circumventing the bug?  Possibly
with some code fragments to demonstrate?  Does the fix involve taking out
the event_process call and handling it all 'manually' in the way you
would in an assembler or Basic program, or is there an easier way?  
I don't really want to restructure my code.

Steve

|  Steve Loft                                  steve@klaatu.demon.co.uk   |
|  Doncaster,                                  s.loft@uk03.wins.icl.co.uk |
|  South Yorks.                                -------------------------- |
From: tim@parcplace.com (Tim Rowledge)
Newsgroups: comp.sys.acorn
Subject: WordHound
Date: 23 Jul 92 16:15:08 GMT

Well, I ftp'd Wordhound yesterday and I'd like to congratulate Ian on an
interesting and rather nice app.
Suggestions for the future:
I couldn't find antidisestablishmentarianism (:-) fatal mistake), which
lead me to wonder how to add words to the system.
Scrolling only works for drag-the-marker type scrolling; button scrolling 
and paging do nothing. (On my A540 w/ROS3.07)
The templates define the maximum entry word length as 23(?) chars -far too
short. I changed the template to allow 35 as an experiment and it seems to 
accept it, but of course this might be causing memory overwrite somewhere.
I suggest expanding it to some ridiculous number like 512 or so. That should 
give plenty of room for future use (German say)
Heavens, there must be loads of neat things to add! Make it a module, with
a SWI interface for others to use. How about an indexer prog, so that any
bunch of text can be added and searched quickly.
It could end up better than NeXTs notebokk thingy!

I for oe will volunteer to help do some of these things if Ian is too busy,
though I'm kinda busy too. There's lots of us here, lets all help.

Tim Rowledge->tim@parcplace.com

: I used a PC once, but it's alright, I didn't inhale
From: ddevorchik@acorn.co.uk (David De Vorchik)
Newsgroups: comp.sys.acorn
Subject: Re: 3d icons for RO3.xx
Date: 22 Jul 92 15:00:51 GMT
Organization: Acorn Computers Ltd, Cambridge, England

In article <1992Jul21.101037.19560@doc.ic.ac.uk> ijp@oak9.doc.ic.ac.uk (Ian Palmer) writes:

>Jason Williams' 3d window icons posted to comp.sources.acorn contain
>one slight bug. As far as I can tell the close window icon (cicon)
>needs to be an even numner of pixels wide (it currently has an odd
>number). This leads to a strange gap between the close icon and the
>main title bar (only noticable at the top and bottom).
>

All window border icons should be an even number of pixels, if they are not
then they will not be tiled properly in modes that they get scaled.

[ some important notes about masking window borders deleted ]

>And one question about the various replacement window bits floating
>about, they all seem to have a spurious icon which appears to serve no
>useful purpose. I think it's called 'blicon' (if memory serves me
>right, but it usually doesn't). It always seems to be defined as a
>black bounded gery square, about 18x18 pixels. I tried changing it to
>semething very distinctive, and nothing happened - so I can only assume
>it's rather redundant - but it does appear in Roger Wilson's !SetIcons
>definitions, so I assume it must do something... But then again :-)

'bicon' is used for replacing the blank space at the bottom of the h-scroll
and v-scroll on a window, this can be seen if there is no resize box. 
Current versions of FormEd do not allow you to have this combination, but
hacking the window flags yourself does allow you to do this, looks kinda
stupid tho!

In RISC OS 3.10 'blicon' has another important meaning, that is that it
describes the depth and palette associated with the other window borders
with the same suffix, ie. the bicon22 describes the palette and depth of all
other xyz22 icons.

NB: Under R3.10 it is possible to have 8 bit-per-pixel window gadgets and
    sprite icons.  It is also possible to have a sprite icon which has
    a palette associated with it.

... stuff about Word Hound deleted

>Ian
>
>--
>                            E-mail : ijp@doc.ic.ac.uk
> ___           __       Snail mail : Department of Computing, Huxley Building,
>  /  _   _    /_/ _   / _ _   _  _   Imperial College, 180 Queens Gate,
>_/_ (_|_| )  /   (_|_(_| ) )_|/_)    London. SW7 2BZ. England.

  -- david

------------------------------------------------------------------------------
David De Vorchik                                               ddv@acorn.co.uk
RISC OS Development Team 
Acorn Computers Limited 
645 Newmarket Road, Cambridge, England. CB5 8PD     Tel: (+44) 223 214411 x524
Newsgroups: comp.sys.acorn
Subject: Re: Correctly placed menus in C
From: jwil1@cs.aukuni.ac.nz (TMOTA)
Date: Sat, 25 Jul 1992 01:36:15 GMT
Organization: Computer Science Dept. University of Auckland

Steve@klaatu.demon.co.uk (Steve Loft) writes:

>I've read a lot of messages moaning (quite rightly) about PD programs
>which don't pop up menus at the right height on the icon bar.  This is
>a problem in C when your menu has dashed line entries acting as spacers,
>because of what is apparently a bug in RISC_OSLib.  I was amazed to learn
>from someone who has version 4 of C that the bug is still present.

>Now, can someone tell me an easy way of circumventing the bug?  Possibly
>with some code fragments to demonstrate?  Does the fix involve taking out
>the event_process call and handling it all 'manually' in the way you
>would in an assembler or Basic program, or is there an easier way?  
>I don't really want to restructure my code.

Well, I'm afraid that (as with many bits of RISC OS Lib) the only way to
get it to do things *right* is to completely replace that portion of
ROLib with your on code (Makes ROLib very useful, he says sarcastically)

In DSEdit II, I wanted dotted lines in my main menu, so I replaced baricon
(which gave the same functionality and saved over 1kB of code size!)
and brought up the menu myself (a single call to Wimp_CreateMenu swi
using the menu definition created with Menu_New etc.)

The problem with this is that *^&%()!!! ROLib doesn't know when YOU made
that menu and when IT made the menu, so any menu selection on my main menu
was trapped by ROLib and returned to me as a hit on my sound-sample menu!

So I spent another 5 minutes on it, and popped up my own menus, and then
RISC OS Lib bowed out of the menu system altogether. The result:
My code is smaller but does more. (And most likely does it faster, too)

You will find that there are many places where you can significantly reduce
application size, speed up your code, and save a lot of time, by simply
writing the code to do things for yourself instead of trying to get RISC
OS Lib to work how you want it to... In this case of menus, the fix
is actually very quick and easy (half an hour total to completely fix all
my menu code in 150kB of source...)

(In fact, about 50% of my development time has been spent on getting around
RISC OS Lib rather than writing actual code... My suggestion: don't even
start using ROLib.)
-- 
_________________  "I'd like to answer this question in two ways:
  /____ _ _/_ __       First in my normal voice, and then
 // / //_//_ /_/       in a silly, high-pitched whine." (Monty Python)
Newsgroups: comp.sys.acorn
From: matthews@meiko.co.uk (Matthew Spencer)
Subject: When/where is the Acorn User Show?
Organization: Meiko Scientific Corp.
Date: Mon, 27 Jul 1992 12:11:53 GMT

Subject says it all. . .

Ta,
Mat
From: banksie@khantazi.welly.gen.nz (Philip R. Banks)
Newsgroups: comp.sys.acorn
Subject: Re: New MultiTOS PC (Atari Falcon)
Date: Wed, 29 Jul 1992 18:55:44 +1200
Reply-To: banks_p@kosmos.wcc.govt.nz
Organization: My Arc.

gta@st-andrews.ac.uk (Graham Allan) writes:

> Sadly, I think most applications have these filing system weaknesses
> hard-coded into them, ie: 10 character filenames, etc. I'm talking
> about where you enter a filename into a save-file window here; loading
> strangely-named files wouldn't cause any problem. Until any FS exists that
> doesn't have this limitation, there's not much incentive for application
> writers to allow for more. Of course, RISC-OS NFS doesn't have this
> limitation, but then, its number of users can probably be counted on the
> thumbs of one hand...
> 
> Sorry to prolong this discussion, but I think it's a valid (if minor)
> criticism of some RISC OS software.

    Standard technique when writing desktop software is to allow for a 256
character string to be passed to the application. The *only* assumption that
should be made is that there is at least *one* full stop in the pathname
delimiting, if you trace from the end of the path, the leaf name of the
file. Applications which don't follow this are by definition badly written.

   As long as you follow this convention then a Risc OS Application will
happily use the long filenames of a new FS. How else do things like MemPhs
work so well?

   So to sum up it is *not* a valid criticism of Risc OS but actually a
criticism of the application code that has failed to met Risc OS compliancy
specs. This is one of the whole points behind Risc OS's unique pathname
scheme for files, to allow applications to use any FS without being
concerned about the individual idiosyncracies of the FS they are on. And in
my opinion it is one of the features Acorn got *very* right.

    Philip

--
Philip R. Banks  Syntax: mail < banks_p@kosmos.wcc.govt.nz >            @@@@@/|
                                                                        @@@@/#|
                                                                        @@@/##|
I breathe the air, While they're running in a rat race,                 @@/---|
Way above it all, Standing on higher ground. ---A.P.P.                  @/    |
From: dbh@doc.ic.ac.uk (Denis Howe)
Newsgroups: comp.sys.acorn
Subject: Acorn User Show get-together
Date: 30 Jul 92 17:31:28 GMT
	    <1992Jul27.214540.22298@mnemosyne.cs.du.edu>
Organization: Computing Department, Imperial College, London, UK

>matthews@meiko.co.uk (Matthew Spencer) asked:
>When is the Acorn User Show?

In article <1992Jul27.214540.22298@mnemosyne.cs.du.edu>
amell@nyx.cs.du.edu (Andrew P.Mell) replied:

>16th-18th October, Wembley Conference Centre, London.
>
>See you there.

How about arranging a time and place to gather to say hello?  It would
be nice to put faces to the names.
--
Denis Howe <dbh@doc.ic.ac.uk>
There is water at the bottom of the ocean.
Newsgroups: comp.sys.acorn
Subject: CBA/CSA update...
From: jwil1@cs.aukuni.ac.nz (TMOTA)
Date: Thu, 23 Jul 1992 01:34:21 GMT
Organization: Computer Science Dept. University of Auckland

comp.{binaries,sources}.acorn update, 23/07/92
==============================================

The following files have been posted to comp.binaries.acorn recently:
date    parts    description
	3        Forth
	8        Drawfiles
	1        CBADecode 1.01
	2        !Larger
	2        djpeg
	3        datasuite (datavox/dataload)
01/07   5        DSEdit II demo
07/07   3        SysBeep
08/07   7        PlaySong
12/07   4        A4Scanned (picture of A4 circuitboard)
14/07            (playsong posting continues)
16/07   1        Wimp example application : cf comp.sources.acorn
16/07   1        !HackSpr
21/07   8        Archimedes colour UMoria 5.4.0.
		 (Still undergoing posting)

It is *possible* that we will post FORTH and midi programs next.

---

The following files have been posted to comp.sources.acorn:
date    parts    description
	1        Edit (Archimedes, BASIC)
	1        Pre-empt (Archimedes, ARM)
	1        basic detokenisor (Arc/Unix, C)
	1        Life & examples (BBC, BASIC/6502)
	1        Demon (BBC, BASIC)
	1        Spark.c (Arc/UNIX, C)
	1        podinfo (Arc, BASIC)
01/07   9        DeskLib 1.04  (Arc, C & ARM)
06/07   1        hackwin (Arc, BASIC)
06/07   2        Repost, parts 4 &5 of DeskLib 1.04
14/07   1        RISC OS 3.10 window icons
14/07   1        File/desktop icons
15/07   1        Inter-application data transfers (Arc, Docs)
15/07   1        Floppy/Hard drive disc errors (Arc, Docs)
16/07   1        Desktop !Boot system (Arc, BASIC)
16/07   1        WIMP programming example (Arc, BASIC) : cf comp.binaries.acorn
17/07   1        RO3 icon border validation strings (Arc, Docs)

---

I will try to keep this list up to date. If you see anything on it that
you missed the first time around, then after a sufficient amount of time
has passed we might be persuaded to re-post it. However, binaries usually
are updated fairly regularly, so it's only sources that are likely to
need to be reposted at your request.

We could do with some more source material...

Jason Williams
-- 
_________________  "I'd like to answer this question in two ways:
  /____ _ _/_ __       First in my normal voice, and then
 // / //_//_ /_/       in a silly, high-pitched whine." (Monty Python)
From: mcg@waikato.ac.nz
Newsgroups: comp.sys.acorn
Subject: Re: Curve fitting program needed...please help
Date: 31 Jul 92 14:47:15 +1200
Organization: University of Waikato, Hamilton, New Zealand

	------------------| MATHLIB UPDATE |------------------


In article <1992Jul27.105343.5767@syma.sussex.ac.uk>, mppu3@syma.sussex.ac.uk (Conor McMenamin) writes:
> Dear all,
> 	I apologise if this is a FAQ for this group, I'm posting for a
> colleague and don't normally read comp.sys.acorn. He needs a program to
> perform a polynomial fit on an archimedes. Initially he only needs to
> fit a quadratic, but may need to fit higher order polynomials after
> that. Does anyone know of a program that will do this, preferably
> PD/shareware?
> 
> 		Many thanks in advance,
> 		Conor McMenamin



O.k....   I've now completed:

	 Spline interpolation
         Least Squares (interpolation)
	 Lagrange (interpolation)
	 Bezier
	 B-spline
	 LU decomposition with pivoting (linked with Spline & Least Squares)
	 Matrix Solving : Ax=b ; via LU decomposition.

 
These are going to be included in the final (PD) distribution of my Mathlib.

Source & minimal documentation available for those algs on a "need to use 
urgently" basis by e-mailing to the below address

P.s. no guarentees about the code until it is fully tested for the final 
distribution, but it works sufficiently well for limited useage at the moment.

From Martin Glanvill		(mcg@waikato.ac.nz)

Dept. Maths 							      @@@@@/|@
University of Waikato						      @@@@/ |@
Hamilton							      @@@/__|@
New Zealand							      @@/   |@
								      @@@@@@@@

----------------****=====| A quote to make your day |======****-----------------
The difference between science and the fuzzy subjects is that science
 requires reasoning, while those other subjects merely require scholarship.
                                        -- Lazarus Long
-------------------------------------------------------------------------------
Newsgroups: comp.sys.acorn
From: yegerleh@cortez.ecn.purdue.edu (James D Yegerlehner)
Subject: info?
Organization: Purdue University Engineering Computer Network
Date: Sun, 26 Jul 1992 08:23:15 GMT

Hi,
I know almost nothing about this computer, but was enticed by a
runor that it is low cost and is built around a RISC chip.
Can anyone supply details? What about ports, OS, video modes?
Is it distributed in the US by anyone? How much does it cost?
Thanks,
Jim

Oh, and are there software development tools available?

Xref: sparky comp.sys.acorn:8008 misc.test:8892
From: andreasf@cs.rhbnc.ac.uk (Andreas Fuchsberger)
Newsgroups: comp.sys.acorn,misc.test
Subject: Viking II 19" monitor nearly free
Date: 23 Jul 92 18:10:40 GMT
Distribution: uk
Organization: Royal Holloway & Bedford New College, University of London,
	Department of Computer Science


Moving country forces me to sell or nearly give away everything I
can't carry with me [sniff, sniff :-(]. I therefore have one

*	Taxan Viking II 19" monochrome monitor made by Moniterm in the USA 
	For use with hi-res mode 21 of any Archimedes but the not A3000, 
	don't know about A5000. 

	Refresh rate >70 Hz
	Black and White
	Resolution >1000 x 900
	seperate video and comp. sync inputs
	2 years old hardly used and in very good condition

	Retail price approx 700 pounds, best offer over 99 pounds secures

	Contact:

	Andy Fuchsberger on (0784) 443691 from 10am - 8pm or e-mail
	(see signature). Egham is near Staines on the A30 just outside London
	15 mins from Heathrow airport.
--
Janet: andreasf@uk.ac.rhbnc.cs       |     c/o Department of Computer Science
Internet: andreasf@cs.rhbnc.ac.uk    |   Royal Holloway & Bedford New College
UUCP: ...!mcsun!uknet!rhbnc!andreasf |       University of London, Egham Hill
Fax: (0784) 434348                   |                Egham, Surrey, TW20 0EX
From: lithgow@upjomon.usl.com (Malcolm Lithgow)
Newsgroups: comp.sys.acorn
Subject: Re: Graphics context switching.
Date: 23 Jul 92 23:57:29 GMT

[In message "Graphics context switching.", Ug! writes:]
>I thought I might have a wee spiel about Graphics context switching; excuse me
>if this is all boring stuff.

I'll just add my 2 cents worth, since I've already commented on this
extensively a few months ago...

>Okay, perhaps it's worth it though.  Fast graphics context switching would
>not only improve the multitasking capabilities of the printer drivers, but
>it would also decrease overall 'task latency' (latency is the time it takes
>to switch from one task to another), making RiscOS appear just that little
>bit faster.

As far as I am aware, there are only two cases where graphics context is
actually switched: when switching output to the printer, and when
switching output to a sprite. There is no need to swap graphics context
at task swaps because task swaps are co-operative, and only occur when a
program has finished playing with its output. (As for things like VMode,
it writes to a sprite, so it is forced to swap the graphics context,
anyway.) Task swaps are a bit slow because all the handler vectors have
to be saved and restored, I think.

Other than that, I agree with what Ug! said in his post, and hope that
this improvement is made to RISC OS at some time in the (near) future.

-Malcolm.  lithgow@usl.com  These are merely my opinions.
From: mcg@waikato.ac.nz
Newsgroups: comp.sys.acorn
Subject: Mathlib (update?)
Date: 29 Jul 92 17:39:18 +1200
Organization: University of Waikato, Hamilton, New Zealand

I've just got LU decompostion (with pivoting) working; Spline and Lagrange 
interpolation done but untested.

Also: C.E.S. code and B-spline/Bezier fits are done, but messy. (Possible 
Cohen-Sutherland Clipping alg as well...god knows what use this might be to a 
numerical mathematician!)

If anyone wants the (raw) algs urgently, to test/use, just send me e-mail.  
From Martin Glanvill		(mcg@waikato.ac.nz)

Dept. Maths 							      @@@@@/|@
University of Waikato						      @@@@/ |@
Hamilton							      @@@/__|@
New Zealand							      @@/   |@
								      @@@@@@@@

----------------****=====| A quote to make your day |======****-----------------
Since we have to speak well of the dead, let's knock them while they're alive.
                                        -- John Sloan
-------------------------------------------------------------------------------