home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / compiler / 1356 < prev    next >
Encoding:
Text File  |  1992-08-12  |  2.2 KB  |  57 lines

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!think.com!spdcc!iecc!compilers-sender
  3. From: brannon@stun4s.cs.caltech.edu (Terrence M. Brannon)
  4. Subject: Re: Shared memory design, was garbage collection
  5. Reply-To: brannon@stun4s.cs.caltech.edu (Terrence M. Brannon)
  6. Organization: Caltech Yoga Qi Gong Tai Chi
  7. Date: Wed, 12 Aug 1992 15:05:43 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <92-08-055@comp.compilers>
  10. Keywords: storage, architecture
  11. References: <92-08-015@comp.compilers> <92-08-043@comp.compilers>
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 42
  14.  
  15. >>(2) The UNIX process model is a good one, and should be preserved.  In
  16. >>particular, this means that (a) processes shouldn't be able to crash each
  17. >>other or (b) view each other's data.
  18.  
  19. >No. There are a lot of ways processes can view "each other's" data. One of
  20. >them, which is to map a common file, is very useful. I insist that
  21. >processes _should_ be able to do this, mainly by not buying versions of
  22. >UNIX where this is not possible.
  23.  
  24. -*- Another way, that I will be working on this morning is to force all
  25. other languages to be inferior process of Emacs. Emacs will serve as a
  26. global cache for Python, Tcl, and Perl interpreters. 
  27.  
  28. This is the first step. The next step is to let Emacs be the virtual
  29. shared memory for interpreters across the internet. For example let's say
  30. your local machine is A and you have remote machines R1 and R2.  Using
  31. only Python as an example, we spawn a Python interpreter on A.  This
  32. Python interpreter does the following:
  33.  
  34. import emacs
  35.  
  36. r1_pointer = emacs.spawn("tbrannon@R1:~/python-directory")
  37. r2_pointer = emacs.spawn("tbrannon@R2:~/python-directory")
  38.  
  39. r1_pointer.('import fibonacci')
  40. r2_pointer.('import fibonacci')
  41.  
  42. sum1 = r1_pointer.('fibonacci.generate(1000,2000)')
  43. sum2 = r2_pointer.('fibonacci.generate(2001,3000)')
  44.  
  45. local_sum = sum1 + sum2
  46.  
  47.  
  48. -*- Another point: BUY unix ? Wait until the GNU Hurd comes out and you
  49. wont have to buy another unix for two reasons: (1) no company will be able
  50. to outperform the GNU Hurd (2) free is always cheaper than any higher
  51. amount of money.
  52. --
  53. Terrence Brannon       (brannon@jove.cs.caltech.edu)  
  54. -- 
  55. Send compilers articles to compilers@iecc.cambridge.ma.us or
  56. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  57.