From 76755b2836b0dadd88f82635f661f9d9df77604d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 10 Nov 2015 21:35:42 -0800 Subject: 2423 - describe shape-shifting in html docs --- index.html | 69 ++++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 22 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index d011ebde..b40d92af 100644 --- a/index.html +++ b/index.html @@ -37,9 +37,12 @@ single function or 'recipe'.
  • screen.mu: example program showing print primitives that inject a screen dependency which can be faked for testing. -
  • chessboard.mu: putting it all -together, a little console program along with thorough tests of its behavior -including both screen and keyboard handling. +
  • static_dispatch.mu: example +program showing mu's ability to define recipes with headers, and allow recipes +with the same name but different headers to coexist. +
  • chessboard.mu: a little program for +2 people to play chess, with thorough tests of its behavior including both +screen and keyboard handling. Now a listing of every layer in mu. Recall that you can stop @@ -72,21 +75,25 @@ of recipes and how it's turned into the data structures. programs are loaded but before they are run they can be transformed in an extensible manner akin to lisp macros. Think of this as the core of Mu's ‘compiler’ for providing high-level features atop the core. -
    013literal_string.cc: extend +
    013update_operation.cc: +our first transform: check for unknown recipes before the program runs. +
    014literal_string.cc: extend the loader to support literal strings in various instructions. -
    014literal_noninteger.cc: +
    015literal_noninteger.cc: extend the loader to support non-integer numbers.
    020run.cc: executing Mu recipes by -executing the list of instructions they contain. -
    Various primitive operations: on numbers, -booleans, for control flow, -and comparing values. -
    Primitive operations to help with testing: tracing/logging, -assert and -debug by print. - -
    030container.cc: compound types -akin to records, structs or classes. +executing the list of instructions they contain. Future layers will define +more primitive operations that can be used in instructions. +
    021check_instruction.cc: +harness for adding per-primitive checks to run before running a program. +
    Various primitive operations: on numbers, +booleans, for control flow, +and comparing values. +
    029tools.cc: various primitive +operations to help with testing and debugging. + +

    030container.cc: Mu supports +compound types akin to records, structs or classes.
    031address.cc: adding and removing layers of indirection to Mu data.
    032array.cc: all Mu data structures @@ -110,7 +117,7 @@ synchronization between routines.

    Part III: transforms to provide 80% of the benefits of high-level languages.
    040brace.cc and -041jump_label.cc: how Mu provides +041jump_target.cc: how Mu provides structured goto-less programming without introducing the syntax of conditionals and loops other languages require.
    042name.cc: how Mu transforms variable @@ -128,16 +135,34 @@ can implement lexical scope.
    047global.cc: support for 'global' variables that are always available inside a single routine. Mu has no variables that are available transparently across routines. -
    048typecheck.cc: a simple -transformer to insert missing types in instructions. +
    048check_type_by_name.cc: +a simple transform to deduce missing types in instructions on the basis of +previous instructions in the same recipe.
    050scenario.cc: Mu's first syntax — not for code but for tests. (example)
    052tangle.cc: support for layers in Mu programs. They've been so good to us. -
    053continuation.cc: -first-class and delimited continuations, primitives for yield, exceptions and -much else besides. -

    999spaces.cc.html: Maps summarizing +
    Support for shape-shifting or generic data structures that can +contain type ingredients: 054dilated_reagent.cc, +a new syntax for allowing spaces in types; 055parse_tree.cc, +a new syntax for representing complex types using trees; +056recipe_header.cc, a new syntax +for introducing ingredients and products with the name of a reagent; +057static_dispatch.cc, +allowing multiple variants of a recipe to coexist with support for different +headers; +058shape_shifting_container.cc, +a new syntax for wildcard type ingredients in containers; and finally +059shape_shifting_recipe.cc, +support for type ingredients in recipes. Everytime you call a shape-shifting +recipe with a new set of types for its type ingredients, it creates a +new variant of the recipe for you matching those types. +

    098check_type_pointers.cc.html: +After all our messing about with types, a final pass to make sure we didn't +introduce any invalid types. +
    999spaces.cc.html: Maps summarizing +various address spaces in the core, and the conventions that regulate their +use in previous layers. various address spaces in the core, and the conventions that regulate their use in previous layers. -- cgit 1.4.1-2-gfad0