Posted to tcl by mookie at Tue Oct 27 01:55:27 GMT 2026view raw

  1. namespace eval crystal { puts "-> [file tail [info script]]" }
  2. namespace eval crystal {
  3. namespace export {[a-z]*}
  4. namespace ensemble create
  5. }
  6.  
  7. ;# Set up a vFS (Virtual Forest System)
  8. variable b32_forestPath "/forest/neoncrystal"
  9. variable b32_crystal "$b32_forestPath/crystal"
  10. variable b32_mainPath "$b32_crystal/main"
  11. variable b32_systemPath "$b32_crystal/system"
  12. variable b32_resourcePath "$b32_crystal/resource"
  13.  
  14. ;# SubSet 0
  15. ;# NeonCrystal :: CrystalForest
  16. ;# CrystalScript Transformer
  17.  
  18. ;# Load our Digital Intelligence Module
  19. source $b32_systemPath/load/crystal/memory.ix
  20.  
  21. ;# Chicken or the Egg
  22. ;# The cast procedure does not yet exist yet we require the cast procedure to launch our action
  23. ;# Minimilistically implement the procedures via native level tools
  24. variable soul [crystal::memory::create $b32_resourcePath/system.soul]
  25.  
  26. variable b32_open_file [open $b32_systemPath/load/cast/procedures.ix r] ;# open the file
  27. variable b32_crystal [read $b32_open_file] ;# referenced in boot.ix
  28. close $b32_open_file
  29. crystal::memory::insert $soul "cast" "procedures" "$b32_crystal"
  30.  
  31. ;# our ctx "soul" is now open let's work with this.
  32. ;# execute our procedures in current stack
  33. ;# query our soul for the procedures
  34. variable b32_crystal_cast [crystal::lidx [crystal::memory::query $soul "cast" "procedures"] 0]
  35. uplevel #0 $b32_crystal_cast
  36.  
  37. ;# We now have action to our cast procedures
  38. crystal::memory::insert $soul "boot" "procedures" "[crystal::cast::action open 00ff 00 "$b32_systemPath/load/boot/procedures.ix"]"
  39. crystal::memory::insert $soul "math" "hex" "[crystal::cast::action open 00ff 00 "$b32_systemPath/load/math/hex.ix"]"
  40.  
  41. set b32_boot [crystal::lidx [crystal::memory::query $soul "boot" "procedures"] 0]
  42. set b32_math [crystal::lidx [crystal::memory::query $soul "math" "hex"] 0]
  43.  
  44. uplevel #0 [dict get $b32_boot 32]
  45. uplevel #0 [dict get $b32_math 32]
  46.  
  47. crystal_close $soul
  48. crystal::debug 1 [crystal::timedate 32] [crystal::timedate 16]

Add a comment

Please note that this site uses the meta tags nofollow,noindex for all pages that contain comments.
Items are closed for new comments after 1 week