home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7685 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.5 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: toy operating systems, like AmigaOS
  5. Date: 20 Apr 1996 16:21:30 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4lb2ua$dun@nadine.teleport.com>
  8. References: <skllsf.984983.4.5@groomlake.mil> <4kplgo$o9r@canyon.sr.hp.com> <4ksu6q$haa@nadine.teleport.com> <19960417.7BBC9E0.3B7F@asd01-01.dial.xs4all.nl> <4l6037$9la@nadine.teleport.com> <31774642.46FE@info.unicaen.fr>
  9. NNTP-Posting-Host: kelly.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Samuel Devulder (devulder@info.unicaen.fr) wrote:
  13. : Stephan Schaem wrote:
  14. : > 
  15. : > Jeroen T. Vermeulen (jtv@xs4all.nl) wrote:
  16. : > 
  17. : > : In article <4ksu6q$haa@nadine.teleport.com> sschaem@teleport.com (Stephan Schaem) writes:
  18. : > : >
  19. : > : >  This tell that the amiga OS is bad for programmers in genreral.. more
  20. : > : >  or less depanding on the methode you choose to write code.
  21. : > 
  22. : > : It means that the Amiga OS is a _bad debugging tool_--much like my wristwatch is
  23. : > : a poor screwdriver.  An important factor in user-friendly, desktop OS's is that
  24. : > : the user is not a programmer and the two may have different requirements.
  25.  
  26. : >  I dont code in C on the amiga, but I sure running all those hack like
  27. : >  enforcer, mungwall, etc... help reduce crash. but I find that little,
  28. : >  very little.
  29.  
  30. : Well, may I suggest to check out APurify on aminet (a program of mine :-).
  31. : It is something like unix Purify (if you know it). By the way, a new 
  32. : version of APurify will be released soon (I hope).
  33.  
  34.  I haven't used purify on unix system.
  35.  
  36. : But I agree, Amiga-os is missing some security features for programmers.
  37. : Memory protection is one of those missing things, but I'd like to add 
  38. : a dynamical stack management. That could be achieved by using a MMU to
  39. : track stack overflow and increase stack size when a MMU is available. When
  40. : there is no MMU, the scheduler could test the stack and do the expansion
  41. : (it should not cost a lot more cycles since it already has to fill exec 
  42. : fields). The last method is not 100% safe, but it is certainly safer than
  43. : nothing.
  44.  
  45.  I really hate programs that dont know their stack requirment and just
  46.  crash because they dont check the default size.
  47.  This feature to me is nice for progy that have size can fluctuate alot
  48.  from 'small' to 'big'... Basicly saves you some memory at times VS 
  49.  setting your stack to the 'big' size all the time.
  50.  
  51.  My programing methode on the amiga require VERY little stack space, 4k
  52.  is enought even for complex projects.
  53.  
  54. : Resource tracking is also a nice thing, because I find strange that when
  55. : breaking some programs with ^C, its windows is left on the screen. That
  56. : is dangerous since the name of the window is a pointer to a string in the
  57. : code an since the code is no more present in memory, it displays some
  58. : garbage. That could lead to potential guru later.
  59.  
  60.  ^C work because the programmer is waiting to receive it, and so is aware
  61.  to terminate all of its related task and free all related resource.
  62.  If this do not happen, the program as a bug.
  63.  
  64.  Something that would help to have remtask() work like a unix kill is to
  65.  have task register a kill() function... with that kill function doing
  66.  its own resource tracking. Its not perfect, but when the task crash 99%
  67.  of its own resource could be freed. Its a bit like a 'fail' exit point 
  68.  function.(You can goto it at anytime to exit prematurly the function and
  69.  cancel it)
  70.  
  71.  For those windows I think you can find hacks to close them.
  72.  
  73.  Stephan
  74.  
  75.