home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / hypercar / 3113 < prev    next >
Encoding:
Text File  |  1992-08-15  |  2.3 KB  |  65 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!cs.utexas.edu!usc!rpi!usenet.coe.montana.edu!news.u.washington.edu!nntp.uoregon.edu!oregon.uoregon.edu!ccyang
  3. From: ccyang@oregon.uoregon.edu (Chun-Ching Yang)
  4. Subject: Re: How magic is the CompileIt?
  5. Message-ID: <15AUG199222312529@oregon.uoregon.edu>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: news@nntp.uoregon.edu
  8. Organization: University of Oregon
  9. References: <15AUG199209103159@oregon.uoregon.edu> <1992Aug16.033156.6692@reed.edu>
  10. Date: 15 Aug 1992 22:31 PDT  
  11. Lines: 52
  12.  
  13. In article <1992Aug16.033156.6692@reed.edu>, sharvy@reed.edu (V Headshape) writes...
  14. >In article <15AUG199209103159@oregon.uoregon.edu> ccyang@oregon.uoregon.edu (Chun-Ching Yang) writes:
  15. >>I have heard that there is a aaplication that can compile HyperTalk in
  16. >>Hypercard into XCMD to speed up HyperCard.
  17. >>I found a Demo in Sumex-aim. It looks good and when using HyperTalk to do math
  18. >>(FPU), the compiled hypertalk is very fast. (I used a loop of 10000 times to
  19. >>test FPU math, the compiled HyperTalk is about 50 times faster.)
  20. >>I don't know if anyone who has bought this application can tell me how magic in
  21. > I thought HC 2.0 compiled scripts on its first execution of them and
  22. >stashed them in RAM, so why would compileIt be faster?  At least, why
  23. >would it be 50 times faster?
  24. >-- 
  25. I am the one who posted this question. Since I did not tell my question
  26. clearly, I want to add something here.
  27. As I know, the CompileIt can compile any HyperTalk scripts into XCMD. After
  28. compiling HyperTalk scripts, your buttons can call this XCMD which was the
  29. hypertalk scripts.
  30.  
  31.  
  32. c
  33.  
  34. a
  35.  
  36.  
  37. My test script is something like this:
  38. On testScript
  39.   repeat with i=1 to 100000
  40.      put i*2.875649323 into t
  41.   end repeat
  42.   put t
  43. end testScript
  44.  
  45. Then I use CompileIt Demo (which can compile 10 lines only by Demo) to compile
  46. this script into XCMD. After compiling this script into XCMD, script in the
  47. button will be like this:
  48.  
  49. On mouseup
  50.   testScript
  51. End mouseup
  52.  
  53. I have tried the normal HyperTalk script (not compiled) as mentioned above, it
  54. will take about 2 minutes to finish this loop. However, when I used the
  55. compiled script by compileIt, it took about 1 and half SECONDs.
  56. That's what I said about 50 times faster.
  57.  
  58.  
  59. Yang
  60.  
  61.  
  62.  
  63. >Liberate the Weirdoes and You Liberate the Squares
  64.