diff --git a/NOTES b/NOTES index 517ca3c..5a7caa6 100644 --- a/NOTES +++ b/NOTES @@ -595,4 +595,65 @@ benchmarks being able to write modules in javascript -being able to bundle external resources (like images) \ No newline at end of file +being able to bundle external resources (like images) + + +---------------------------------------------------------------------- + + +June 2, 2011 + + +We need a mechanism for attaching external resources to a program and +to be able to refer to them. External resources refer to things like: + + Images + HTML files + Sounds + +Each of these should be findable by path, and they should also be +packaged when a program is built. The user should be able to say +something like this: + + (define my-html-file (local-resource-path ...)) + +and the packager should automatically be able to statically walk +though all local-resource-path calls. + + + These files must be represented as separate files. + + +There may be additional resources that need to be included, though +they aren't directly used in the program. (Say, for example, an image +is refered to in an html resource. Maybe we should have a toplevel +element (include-resources ...) that take in a bunch of +build-resource-path. + + (include-resources (build-resource-path ...) + ...) + + + +The Whalesong make system needs to know how to deal with resources. + + +I also want to be able to refer to external web resources, and somehow +capture or cache them during building. + + + +Imaginary: I would like to be able to write something like this: + + (define my-file (remote-resource-path ...)) + +and be able to treat my-file as if it were a local resource. During +packaging, the file should be directly downloaded. + + +Other things to consider: + + We may need to consider workarounds for same-origin policy +restrictions. + + Can resources be input-port sources?