Revamping my 15 puzzle

6 views
Skip to first unread message

pixel...@gmail.com

unread,
3:06 AM (12 hours ago) 3:06 AM
to Medley Interlisp core
Taking some time to clean up my InterLisp game from 2 years ago. I've learned quite a bit and even stomped out a bug or three. Also got my function definitions out to a .lisp file this time.

A few things:
- I've got some dummy functions in my .lisp file I want gone now.
- Can I just pass out my .lisp file for others to test or do I need to do additional work?
- I recall Herb and Larry saying InterLisp doesn't have formalized packages but I don't want my functions to pollute the user's environment. My game consists of about 10 or so functions. Do I provide a nice way so that the functions get clearned with a command or something?

Anyway, updated screenshot. (I removed the button bezels since the machine seems to be drawing more slowly than 2 years ago. Different computer though.)

Screenshot_20250928_005653.png

Larry Masinter

unread,
11:51 AM (4 hours ago) 11:51 AM
to pixel...@gmail.com, Medley Interlisp core
>  Do I provide a nice way so that the functions get clearned with a command or something?

Eliminating the side effects of loading something isn't really done, so it isnt expected. System components that are widely shared should just be written so they don't impact other code.  

>> I removed the button bezels since the machine seems to be drawing more slowly than 2 years ago. Different computer though.)

there's something going on that isn't right if the time to draw buttons with bezels is any different from the time to draw them without. Or that drawing is so slow as to be visible at all. 

as for releasing this, I don't think we've settled on a policy of where to publish user-contributed code (a modern "LispUsers" ). The difficulty has to do with access control and updatability. We should open an issue to discuss. In the short term I'd suggest you add your own repo RyanBurnside/fifteen. A TEdit file of documentation would be nice.



--


--
You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lispcore/1abc116e-1c33-4589-96a7-8a015d7db907n%40googlegroups.com.

Arun Welch

unread,
12:44 PM (3 hours ago) 12:44 PM
to pixel...@gmail.com, Medley Interlisp core
The contents of the file are defined in the associated COMS variable for the file. You can remove your dummy functions by editing FIFTEENCOMS, removing them from the FNS list and resaving the file.

Medley uses the packages, you can create a new package that uses IL instead of CL. There’s really no need to do that though, the environment starts fresh when you load a fresh sysout.
> <Screenshot_20250928_005653.png>
> --
> You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/lispcore/1abc116e-1c33-4589-96a7-8a015d7db907n%40googlegroups.com.
> <Screenshot_20250928_005653.png>

Ron Kaplan

unread,
12:57 PM (3 hours ago) 12:57 PM
to pixel...@gmail.com, Medley Interlisp core, Arun Welch
You can also call (DELDEF 'dummyfunction). That will delete the current in-memory and remove it from the COMS.
> To view this discussion visit https://groups.google.com/d/msgid/lispcore/C64DFED2-11FB-45CB-A1CE-C1A9C8679774%40anzus.com.

Paolo Amoroso

unread,
2:00 PM (1 hour ago) 2:00 PM
to Larry Masinter, pixel...@gmail.com, Medley Interlisp core
Reply all
Reply to author
Forward
0 new messages