Commit Graph

63 Commits

Author SHA1 Message Date
Ray Greenwell ccd6e2b81e Some stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3962 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:43:45 +00:00
Ray Greenwell add8f3f97c Work around a compiler bug by FQing the Log classname we're using.
We can revert these statements when/if that bug gets fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3960 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:04:34 +00:00
Ray Greenwell 3ecf7e311e Re-declare SUCCESS so that it can be referred to as ChatCodes.SUCCESS.
Setting up a prototype const doesn't work, which is possibly a compiler bug.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3959 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:02:48 +00:00
Ray Greenwell 091c7d2401 Checkpoint. This is not compiling right now due to three annoying problems:
- There seems to be a compiler bug that causes classes to be
  imported spuriously, or something. Classes that import only one of the Log
  classes are complaining about visibility of more than one of them.
- static constants are not inherited by subclasses, which is super annoying.
  I will try switching to prototype consts, but there seems to be a problem
  initializing those, and we don't want to make them vars...
- The fact that there are no inner classes combined with no method overloading
  is making things very inconvenient. I've been experimenting with faking
  an anonymous class by instantiating a dynamic object and attaching
  functions to it, but it's not working. I'll continue experimenting, because
  if we can't do this then someone shoot me.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3957 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-17 02:19:53 +00:00
Ray Greenwell d1b997b9ff Another note. There are 3 ways to cast and all of them suck in one
way or another!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3956 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-17 01:19:15 +00:00
Ray Greenwell 8fb271be33 Checkpoint.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3954 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-16 22:12:46 +00:00
Ray Greenwell 03d94291db More.
Made ObserverList work with a passed-in function, actionscript style.
I might reconsider some earlier decisions to go away from ObserverList.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3952 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-16 02:11:27 +00:00
Ray Greenwell ed1be4a0f2 All the latest and ... well, the latest anyway.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3950 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-15 03:28:02 +00:00
Ray Greenwell 4fe0d6e484 Another note about how as3 can #$^ @# @#$ ^@#$@ @#%&*.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3949 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-15 03:24:46 +00:00
Ray Greenwell 82c65b779f Added more notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3945 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-14 23:16:39 +00:00
Ray Greenwell 7c842a7e11 More progress.
Created adapters for invocation services so that I can do inner-class like
things by passing references to private functions out to an external entity.
I will see if it's possible to merge my adapter with the marshallers
because it's still to have multiple wrappy classes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3944 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-14 03:22:38 +00:00
Ray Greenwell 9f2ff310e7 Match changes to DSet.java streaming implementation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3939 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-11 02:49:02 +00:00
Ray Greenwell 600a74ee39 More progress.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3936 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-10 04:02:32 +00:00
Ray Greenwell ca66f91ac7 Started work on the 'crowd' package.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3935 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-10 03:05:37 +00:00
Ray Greenwell 13c0830908 Again updated note on constructors.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3933 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-09 22:23:07 +00:00
Ray Greenwell 2f2ffdabbe Notes, figured out how to make a static initializer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3932 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-09 22:14:08 +00:00
Ray Greenwell 704fbfaec3 Removed debugging for a heisenbug that seems to be gone now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3931 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-09 03:27:52 +00:00
Ray Greenwell 4bb90a9002 Jesus Christ, what is the point of all these typed variables and casting
if the compiler DOESN'T FUCKING CARE?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3930 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-09 03:00:10 +00:00
Ray Greenwell 04255b383b Checkpoint.
Never in my life have I spent so much time debugging so little.
I think the flash player is full of bugs, I've learned to just run
everything two or three times and chase the error that happens the most. Fun!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3929 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-09 02:55:07 +00:00
Ray Greenwell 15cf89770f Forgot to check this one in yesterday.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3928 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-09 02:48:14 +00:00
Ray Greenwell 486fd770c5 Another note.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3926 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-08 22:18:56 +00:00
Ray Greenwell b82b079469 It seems that Array streaming now works.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3924 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-08 03:28:09 +00:00
Ray Greenwell d8276bb4a9 More crap, some new discoveries, backtracking, annoyance.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3918 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-07 03:49:33 +00:00
Ray Greenwell a75f496e76 Checkpoint.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3912 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-04 02:43:14 +00:00
Ray Greenwell 15c258cdd4 Updated notes with the results of PITA explorations into introspection.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3911 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-04 00:37:23 +00:00
Ray Greenwell 5558ebd6ca Changed some things around with a few helper classes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3910 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-02 22:20:04 +00:00
Ray Greenwell aabc454801 Fixed typo.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3909 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-02 22:17:08 +00:00
Ray Greenwell 5241863bbd Further testing clarified something, it's not as bad as I thought it was.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3908 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-02 22:16:14 +00:00
Ray Greenwell ffdcaeb495 Added some more notes, and found another insane pitfall (possibly a bug).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3907 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-02 22:04:05 +00:00
Ray Greenwell cec3ffe59d Fixed up some things and added streaming translations.
I'm to the point where I need to go back to array streaming and straighten
that out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3905 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-02 03:44:37 +00:00
Ray Greenwell 961f3ffdfe More bits and hackery (and a hand-generated TimeBaseMarshaller, so that I
can get fully logged in).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3904 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-02 03:07:01 +00:00
Ray Greenwell 477fb777f6 More bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3903 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-02 01:30:04 +00:00
Ray Greenwell 8039de2dad Removed accidentally checked-in testy code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3901 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-01 23:54:51 +00:00
Ray Greenwell 740e00c731 More work on things.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3900 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-01 23:52:52 +00:00
Ray Greenwell 2ca83d0a29 Generate errors if an element's key is not simple or Equalable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3898 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-01 19:52:27 +00:00
Ray Greenwell 703b309108 Scrapped using a Comparable for the keys to a DSet on this side of things.
- There is no such thing as Comparable in ActionScript, I had made my own,
  but String (one of the most common keys) couldn't implement it, and String
  is a final class (like in Java). It would be a huge inconvenience to have
  to wrap String objects.
- The language also has no .equals() method in the base class. The strict
  equality operator (===) works like equals() except that objects that
  aren't one of the base types (String, Number, Boolean, int) are compared
  by reference. I added a "Equalable" interface, if the key in a DSet
  implements that interface then equals() is called, otherwise the strict
  equality operator is used.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3897 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-01 19:43:22 +00:00
Ray Greenwell ee25f8f1a8 Updated note on accessibility domains: I was smoking crack.
'protected' members can be accessed by subclasses, but ONLY subclasses:
other classes in the same package don't have visibility, unlike in Java.
I think I got screwed up when protected members were not accessible
to other classes in the same package.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3896 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-28 01:46:34 +00:00
Ray Greenwell abd7f75ae9 Started work on invocation/receiver stuff, but jeez ActionScript is making
it a pain in the ass.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3893 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-27 21:56:39 +00:00
Ray Greenwell 72f33bbbc0 Added another note about helper classes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3892 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-27 21:55:51 +00:00
Ray Greenwell 69d0b35e0f Some notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3891 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-25 03:35:18 +00:00
Ray Greenwell 54d465b61f More notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3889 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-24 01:37:15 +00:00
Ray Greenwell 76ae4d5f5a Added Log facilities like we're used to, and discovered a host of
new wacky things (and possible compiler bugs) on the way.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3888 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-24 01:28:55 +00:00
Ray Greenwell 465b680aa2 Fixed some bugs with reading data back from the server, including
subtracting 4 from the length of the frame and fixing the reading
of fields for which we have a basic streamer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3885 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-23 22:22:57 +00:00
Ray Greenwell bd235efe20 Ah, the length of the frame is the length of the data plus the length of
the bytes used to transmit the length! So for our purposes, we just add 4.

I now have the ActionScript client authenticating with our server code!
Lots more to do...


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3882 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-23 01:45:13 +00:00
Ray Greenwell 43f956c32d Lowercase letters so that it matches StringUtil.hexlate() output.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3881 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-23 01:43:56 +00:00
Ray Greenwell 990d0b840f Added another note about a 'gotcha' in actionscript.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3879 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-22 14:02:42 +00:00
Ray Greenwell 5a9a018867 Commented a few classes as abstract,
debugging..


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3878 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-22 06:28:27 +00:00
Ray Greenwell 334bf08331 Need to use UsernamePasswordCreds to log in (Credentials is abstract in
Java, but there's no such thing in actionscript).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3877 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-22 04:31:25 +00:00
Ray Greenwell 605eca8565 Bugfixes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3876 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-22 03:45:46 +00:00
Ray Greenwell ea0a3dce06 Well, it compiles.
It's not functional, there are still large holes in the implementation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3868 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-20 03:53:04 +00:00