ischeme:ischeme
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ischeme:ischeme [2010/07/28 13:14] – ebainomu | ischeme:ischeme [2011/03/23 00:19] (current) – ebainomu | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== iScheme ====== | ====== iScheme ====== | ||
- | iScheme is a prototype implementation of [[http:// | + | [[http:// |
+ | \\ | ||
+ | |||
+ | {{: | ||
iScheme is built on top of an R5RS [[http:// | iScheme is built on top of an R5RS [[http:// | ||
Line 9: | Line 12: | ||
iScheme provides developers with an event-driven programming style for accessing iPhone capabilities as well as interacting with native applications, | iScheme provides developers with an event-driven programming style for accessing iPhone capabilities as well as interacting with native applications, | ||
- | < | + | < |
(begin | (begin | ||
(CURRENT-LOCATION | (CURRENT-LOCATION | ||
Line 21: | Line 24: | ||
Scheme programs are directly executed on the iPhone and it is possible to write scripts that interact with native applications e.g., making a phone call by simply evaluating '' | Scheme programs are directly executed on the iPhone and it is possible to write scripts that interact with native applications e.g., making a phone call by simply evaluating '' | ||
+ | |||
Line 28: | Line 32: | ||
When writing distributed iPhone applications in iScheme, the developer does not need to deal with low-level distribution concerns in Objective-C such as dealing with the Bonjour framework for service discovery, and socket APIs for remote communication. iScheme provides distribution constructs that abstract away these low-level distribution issues. | When writing distributed iPhone applications in iScheme, the developer does not need to deal with low-level distribution concerns in Objective-C such as dealing with the Bonjour framework for service discovery, and socket APIs for remote communication. iScheme provides distribution constructs that abstract away these low-level distribution issues. | ||
- | Let us demonstrate these constructs with an example: Consider a simple news service that allows news editors to submit news articles to news publishers in the surroundings as they move about. Then, the news publisher broadcasts the news to nearby iPhone devices of potential customers that have announced their interest in the current news trends. | + | Let us demonstrate these constructs with an example: Consider a simple news service |
So, how do we realise such an application in iScheme? Read on... | So, how do we realise such an application in iScheme? Read on... | ||
+ | |||
==== Exporting functions as services ==== | ==== Exporting functions as services ==== | ||
Line 38: | Line 43: | ||
In the example of the news service application, | In the example of the news service application, | ||
- | < | + | < |
(define news-service (service-type iPhone-news)) | (define news-service (service-type iPhone-news)) | ||
(export-service news-publisher news-service) | (export-service news-publisher news-service) | ||
Line 50: | Line 55: | ||
Service discovery in iScheme is by way of registering an event handler on a service type, which is triggered whenever a function exported under that type is encountered in the network. | Service discovery in iScheme is by way of registering an event handler on a service type, which is triggered whenever a function exported under that type is encountered in the network. | ||
- | < | + | < |
(when-discovered news-service | (when-discovered news-service | ||
(lambda (publisher-ref) | (lambda (publisher-ref) | ||
Line 63: | Line 68: | ||
Once a reference to the remote function is obtained, remote function invocations can be performed by means of the '' | Once a reference to the remote function is obtained, remote function invocations can be performed by means of the '' | ||
- | < | + | < |
(define (submit-news publisher-ref) | (define (submit-news publisher-ref) | ||
(for-each | (for-each | ||
| | ||
| | ||
- | | + | list-of-articles)) |
</ | </ | ||
The '' | The '' | ||
Line 74: | Line 79: | ||
In order to get the return value of a remote invocation, iScheme provides '' | In order to get the return value of a remote invocation, iScheme provides '' | ||
- | < | + | < |
(define (submit-news publisher-ref) | (define (submit-news publisher-ref) | ||
.... ;;iterator over news articles | .... ;;iterator over news articles | ||
Line 85: | Line 90: | ||
</ | </ | ||
The '' | The '' | ||
+ | |||
+ | |||
Line 91: | Line 98: | ||
===== Example Applications ===== | ===== Example Applications ===== | ||
iScheme has been used to develop a couple of non-trivial iPhone applications. | iScheme has been used to develop a couple of non-trivial iPhone applications. | ||
- | * [[example_applications|AmbiScrabble: | + | * [[example_applications# |
+ | |||
+ | * [[example_applications# | ||
+ | |||
+ | ===== Publications ===== | ||
+ | |||
+ | * Engineer Bainomugisha, | ||
===== What about Apple' | ===== What about Apple' | ||
- | iPhone apps developed in iScheme do not require any modifications to the iPhone OS, therefore, they can be deployed to the iPhone like any other third party apps. So far we have used Apple' | ||
+ | < | ||
+ | iPhone apps developed in iScheme do not require any modifications to the iPhone OS, therefore, they can be deployed to the iPhone like any other third party apps. So far we have used Apple' | ||
+ | |||
+ | < | ||
+ | [[http:// | ||
+ | </ |
ischeme/ischeme.1280315658.txt.gz · Last modified: 2010/07/28 13:14 (external edit)