How do you use Scheme in OS X? - macos

I downloaded scheme from http://www.gnu.org/software/mit-scheme/
I now have some sketchy X11 window...
and now I have no idea what to do... Shouldn't this have returned 3?

Give Racket a try. It's very user-friendly, has a nice GUI and runs fine in OS X.

M-z evaluates the definition that point is in
…according to TFM. That means Meta-Z, which usually means Alt-Z.

If you have Xcode installed, you may find it easier to build and use this or a different Scheme from the command line (the Terminal app). Try Chibi or Gambit.

Related

Running Scheme in Jupyter (fka iPython)

I'd like to run Scheme under Jupyter. The traditional cell magic approach, which works in other cases (using %%bash, %%latex or %%ruby), is not available.
Note: I am not interested in Scheme Calypso, which does not have the whole Scheme functionality. I just want to run my Scheme installation at /usr/bin/scheme.
You can't. You can't just run an arbitrary installation in Jupyter - you need a dedicated kernel. You've already ruled out the existing Scheme kernel so I don't know what you're expecting. Perhaps ou can write your own Scheme kernel?
Calysto Scheme has much of a full Scheme language specification. You can try it live here: https://jupyter.org/try
If you find it missing something that you would really like to have, please let us know!

Can anyone make the code in Cocoa Design Patterns by Buck and Yacktman work?

I am working through the book Cocoa Design Patterns by Buck and Yacktman and it seems their sample code is out of date. When I try to run it, xcode says: "The run destination My Mac 64-bit is not valid for Running the scheme." Is there an easy way to get the code to run?
Thanks
The answer is to change the Base SDK in the Build Settings to Latest Mac OS X

Smalltalk with GUI on Mac OS X Lion (10.7)

I need some smalltalk with GUI for my homework, and I'm running Mac OS X Lion (10.7).
I've seen that unix users usually use GNU Smalltalk and GTK+.
I've tried to install them from different versions of sources and all of them give some errors.
Then I've used MacPorts, but that installation breaks GTK+ bindings for gst.
Finally I've tried to install it using fing package manager (because GNU states that I should install everything nice) but there is no smalltalk package for 10.7 OS (though there is for previous ones).
Is there some way to use smalltalk under Mac OS Lion, or should I for example run Ubuntu on virtual machine?
You could also try Pharo, which is a fork of Squeak.
http://www.pharo-project.org/home
Uko,
Have you looked at Squeak? Its an open source version of Smalltalk which is really fun to use and is supported on most platforms.
See:
http://squeak.org/
You will need a specific SqueakVM for the Mac:
http://www.squeakvm.org/mac/
Let me know if you have any further questions...
Squeak or Pharo are real Smalltalks (unlike GNU). This means they have a Smalltalk specific IDE. IDEs were invented by the creators of Smalltalk, so whatever you think you know about IDEs, you probably don't.
My video series, Squeak from the very start, shows how to download the latest Squeak Smalltalk and get started with it. Pharo isn't any harder to install either.
http://www.youtube.com/playlist?list=PL6601A198DF14788D&feature=view_all
You can also give the Personal Use version of VisualWorks a spin:
http://www.cincomsmalltalk.com/main/developer-community/trying-cincom-smalltalk/try-cincom-smalltalk/
I'm assuming you'll get a 7.8(.1?) version there. The OSX skin is pretty dated. I promise it's getting better. Look for 7.9 soon now.

Coding a Mac OS X terminal emulator?

I'd like to create a terminal emulator for Mac OS X. The problem is: I have no idea where to start. Can I just use a whole bunch of NSTasks? Or do I have to read through tons of source code for programs like xterm, urxvt, etc?
I don't want a lot of customizability (= no config file parsing), nor complex features, and I'm only gonna use bash as the shell.
Thanks for answers!
-Mike
I'd check out Visor: http://code.google.com/p/blacktree-visor/ It's a Quake-style terminal that slides up and down from the edge of the screen.
iTerm (http://iterm.sourceforge.net/) would also be a good project to look at (perhaps even better than Visor).
As Dave said, iTerm is probably the best place to start.
As for others, xterm/urxvt might not be the easiest thing to read for this, since they'll be mapping between VT100 and Xlib, which is kind of low-level. An implementation that might be easier to read is VTE terminal, which GNOME uses, since it'll be mapping between VT100 and GLib/GTK+, which is probably a lot closer to what Mac OS X provides.
Good luck!

Is PackageMaker considered the standard for Mac OS X software installation? Or is there something else out there?

I've put together my very first package with PackageMaker (for a system service), but I am not happy about several faults:
Frequent crashes while applying target permissions to my source files
Package source files are not automatically or easily refreshed
File filter does not work
Is there something else out there more capable of this task? Free is not a requirement.
Yes it is, and yes it's buggy. Apple uses the command line version pretty much exclusively so the GUI tends to have the feeling that it's been slapped together by a summer intern and never tested.
PackageMaker is the standard, for things that need an installer (many regular applications just use a DMG, often with a background image telling the user to copy the bundle to /Applications - eg Firefox does this)
MindVision VISE is a commercial solution you can look at, used by some people, but personally I think the look & feel of the resulting installers is subtly wrong (and slightly retro) - that's a subjective viewpoint of course.
Package Maker works pretty well for many people - though documentation is rather scant; are you sure the problems you're experiencing aren't fixable?
There (now) is a great free alternative to PackageMaker with the simple name "Packages":
http://s.sudre.free.fr/Software/Packages/about.html
It's really easy to use, very stable and mature and even open source (in case you need to hack anything). Plus: it has a well written documentation!
I had the same problem until I added #!/bin/sh at the top of the script. Apparently PackageMaker needs it; I wish the log was a bit more clear about it.
IHIH, Oren
Since Mac OS X 10.6 Snow Leopard it is recommended to use pkgbuild and productbuild instead of PackageMaker.

Resources