[gambit-list] A couple of random questions

mikel evins mevins at me.com
Fri Jul 22 04:41:46 EDT 2011

Question 1:

I'm setting up tooling to build another app using Gambit Scheme. This time around there's more than one programmer involved, and more than one platform. 

I'd like to set up Gambit so that I can build libraries (static and shared) and apps for Mac OS X, for iPhones, and for iPads.

What's more, I'd like to set up and configure Gambit for development, along with some local libraries and tools, and package the resulting development platform as a file tree that other programmers can simply check out or untar on their systems to obtain the tools, with no (or minimal) additional configuration.

I've set up Gambit a number of times to build OSX apps (indeed, I have a Gambit-based app on the App Store). I've also set up and built iOS projects.

What I would like to do now is set up for both, and on iOS both for simulators and for devices, preferably with everything in a common containing directory so that the whole set of tools can conveniently be cloned from one machine to another. That way, that all involved programmers can easily set up identical toolsets.

Marc, or anyone who has an idea how to accomplish this, can you offer advice?

Question 2:
(I asked this one before, but didn't see an answer.)

Suppose I have a file containing data serialized by calling object->u8vector and then written to a file. Suppose, further, that I happen to know that an object of interest to me starts at a specific byte offset within the file.

What's the right way to read that object from the file?

An additional constraint is that I don't want to have to read the entire contents of the file in order to read the object; I want to be able to read just enough bytes to reconstitute the object whose serialized representation starts at the given offset.



More information about the Gambit-list mailing list