User loginNavigation |
archivesanother multi language learning/overview sitepossibly interesting, PLACE is something I stumbled across while googling to read up on Oz. not canonical in any way, but advertising polyglotism seems like a nice public service to me. Another multimedia dataflow programming systemDidn't find it mentioned previously on LtU, although Pd is apparently wizened so I'd figure some folks here would already have checked it out? Considered to be in the "Max" family, I guess.
By raould at 2008-09-18 00:06 | LtU Forum | login or register to post comments | other blogs | 3893 reads
Content Addressable Type SystemsHello, I have an interesting problem that this site's audience may have an opinion on. I'm assuming that people know what content addressable storage is. Let's say it uses SHA1; we put some binary blob in it, get its hash back, which we can later use to retrieve the blob again. Now imagine I have a primitive type system that looks something like this (pseudo-code): struct TypeInfo { string name; MemberInfo [] members; } struct MemberInfo { string name; Hash type; } I can use the TypeInfo and MemberInfo structures to describe types, and insert them into the content addressable store. The type field in the MemberInfo structure contains the hash of the field type. This all works fine and dandy, until a type refers to itself. The trivial case is a direct reference, for example: struct BinTreeNode { BinTreeNode left; BinTreeNode right; } But one can imagine more complicated type relations where a type only refers to itself indirectly (i.e., Foo refers to Bar refers to Pep refers to Foo). Suddenly, I can no longer build a type description using the content addressable store. After all, it means generating a SHA1 hash value for a binary blob that is supposed to contain that very hash itself. Next thing I know, I'm looking at fixed point combinators and I'm trying to crack SHA1. Clearly that isn't going to work - not given the machine power and time available to me... :-) Does anybody have some creative suggestions on how to solve this problem. So far, my work arounds include various combinations of losing type safety and/or introducing an extra level of indirection. The former would involve dropping from a typed reference to an untyped one (a void* if you will). The latter would result in breaking the invariant of my content addressable store, namely that the SHA1 of each blob is the hash used to refer back to it. Another interesting question is how to decide where in a type relation cycle it makes the most sense to insert such a work around. Theoretically, interpreting and inserting types can begin on any point on a cycle, so it seems arbitrary to pick the first time my parser detects a cycle; it would lead to non-deterministic type descriptions. If the problem description is too vague, I can provide more detail if necessary. It's language agnostic. I'm suspecting that there won't really be a clean solution; I'm looking for the least ugly work around. Note that I'm aware we could generate hashes from just the type names instead of the full type description. But the whole point of the exercise is to capture a type's complete content in the system; this has numerous interesting benefits once types start evolving (in the area of database and schema upgrades). Thanks, Jaap Suter - http://jaapsuter.com General admin notesWe are experiencing a surge of new members, and that's great! We always value new members. Let me remind everyone to pursue the policies document (available through the FAQ page). I want to emphasize two policy items in particular: We discourage nicknames, and when they are used encourage members to provide a url of a home page or related information in their profile. Second, LtU is in general not intended for detailed design discussions. More relevant forums are listed in the policies document. Genericity over tuplesOne of Haskell's less elegant corners is the gaggle of zip functions specialized for tuples of different length (zip, zip2, zip3, etc..). Does anyone know what sort of language features would enable one to elegantly write a tuple agnostic zip function? My personal SchemeI have created a highly personalized Scheme programming environment based on MzScheme. Still in beta stage, but useful. Visit http://spark-scheme.wikispot.org/ for more details. Contributors are welcome. By vijay at 2008-09-18 04:18 | LtU Forum | login or register to post comments | other blogs | 4158 reads
SourceIDE: A Semi-live Cross-development IDE for ColaSourceIDE: A Semi-live Cross-development IDE for Cola Scott Wallace, Viewpoints Research Institute, 2008
Here's a peek at bootstrapping a new programming environment. The author has written an IDE for the new Cola programming language by adapting Squeak's IDE to operate on external source files written in a language other than Smalltalk. This was done as temporary scaffolding to help develop (amongst other things) a successor IDE written in the target language itself. Oj what a lot of disposable code to write for bootstrap! This is a part of Alan Kay and Viewpoints Research's Inventing Fundamental New Computing Technologies project. I've just started hacking on this project myself and I'm really excited so expect more about it in the coming weeks! Slug Cola - Losing Big Is EasyWhat makes a programming language successful? An humorous perspective on A Nickel's Worth. |
Browse archivesActive forum topics |
Recent comments
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago
44 weeks 3 days ago
48 weeks 5 days ago
50 weeks 2 days ago
50 weeks 2 days ago
1 year 6 days ago
1 year 5 weeks ago
1 year 5 weeks ago