forked from x/ContextOS
947 B
947 B
context
context: 通过提供自由的模块,简洁的接口,动态的结构,让编程变得更简单,让世界变得更美好。
设计理念
- 让用户轻松学会编程
- 让系统轻松学会编程
- 让自己轻松学会编程
设计规范
- 协议与流程
- 框架与接口
- 语句与表达式
接口设计CCC(command, config, cache)
-
服务管理server
-
模块管理context
-
消息管理message
-
命令管理command
-
配置管理config
-
缓存管理cache
-
Cap() Conf() Cmd()
-
Spawn() Begin() Start() Close()
-
Request[] History[] Session[]
-
detail[] option[] result[] append[]
-
Context Master Owner
-
Search() Choice() Assert() Figure()
结构设计
- 功能树
- 权限树
- 消息树
分支管理
- 0.1 ctx cli aaa ssh
- 0.2 nfs tcp mdb web
- 0.3 lex yac log gdb
终端管理
- 寻址 指令 事件 函数 资源
- 文件 进程 配置 框架 模块
- 表示 会话 认证 搜索 交互