Explorer

html-ui.about-page

description
The page /about: what definy is, in the display language
type
Fn(language: String) -> @definy.service-io
expression
fn(language$990) =>
  @html-ui.page(
    language: $990,
    title: @html-ui.text(language: $990, en: "About definy", ja: "definy について", eo: "Pri definy"),
    body: [
      @html-ui.text-element(
        name: "h1",
        text: @html-ui.text(language: $990, en: "About definy", ja: "definy について", eo: "Pri definy")
      ),
      @html-ui.text-element(
        name: "p",
        text: @html-ui.text(
          language: $990,
          en: "definy is a programming language and its environment whose programs are kept not as text files but as signed events of syntax trees. definy is written in definy: the type checker, the compiler to WebAssembly, the server and this HTML version are parts of definy.",
          ja: "definy は, プログラムをテキストのファイルではなく, 署名した構文木のイベントとして持つプログラミング言語とその環境です。definy は definy で書かれています。型検査器, WebAssembly へのコンパイラ, サーバー, この HTML 版も definy のパーツです。",
          eo: "definy estas programlingvo kaj ĝia medio, kies programoj estas konservataj ne kiel tekstaj dosieroj, sed kiel subskribitaj eventoj de sintaksarboj. definy estas skribita en definy: la tipkontrolilo, la kompililo al WebAssembly, la servilo kaj ĉi tiu HTML-versio estas partoj de definy."
        )
      ),
      @html-ui.text-element(
        name: "h2",
        text: @html-ui.text(
          language: $990,
          en: "Syntax trees, not text",
          ja: "テキストではなく構文木",
          eo: "Sintaksarboj, ne teksto"
        )
      ),
      @html-ui.text-element(
        name: "p",
        text: @html-ui.text(
          language: $990,
          en: "A part (a function, a type or a value) is stored as a syntax tree in deterministic CBOR. The text you see and write here is only one way to show it, so changing how the text is written never breaks the history. Every snapshot is type-checked before it is accepted.",
          ja: "パーツ (関数・型・値) は決定的な CBOR の構文木として保存します。ここで見て書くテキストは表し方の 1 つにすぎないので, テキストの書き方を変えても履歴は壊れません。スナップショットは受け付ける前に必ず型検査します。",
          eo: "Parto (funkcio, tipo aŭ valoro) estas konservata kiel sintaksarbo en determina CBOR. La teksto, kiun vi vidas kaj skribas ĉi tie, estas nur unu maniero montri ĝin, do ŝanĝi la skribmanieron neniam rompas la historion. Ĉiu momentfoto estas tipkontrolata antaŭ ol esti akceptita."
        )
      ),
      @html-ui.text-element(
        name: "h2",
        text: @html-ui.text(language: $990, en: "Content addressing", ja: "コンテンツアドレス", eo: "Enhav-adresado")
      ),
      @html-ui.text-element(
        name: "p",
        text: @html-ui.text(
          language: $990,
          en: "Contents are identified by their SHA-256 hashes, so a snapshot always refers to exactly the same contents, and anyone can check them.",
          ja: "中身は SHA-256 のハッシュで識別するので, スナップショットが指す中身はいつも同じで, 誰でも確かめられます。",
          eo: "Enhavoj estas identigataj per siaj SHA-256-haketoj, do momentfoto ĉiam referencas ĝuste la samajn enhavojn, kaj ĉiu povas kontroli ilin."
        )
      ),
      @html-ui.text-element(
        name: "h2",
        text: @html-ui.text(language: $990, en: "Signed events", ja: "署名したイベント", eo: "Subskribitaj eventoj")
      ),
      @html.element(
        name: "p",
        attributes: [],
        children: @html-ui.text-nodes(
          language: $990,
          en: [
            @html.text(
              text: "Creating an account and taking a snapshot are events signed with Ed25519. Servers exchange only signed events (receiving and sending), and each server checks the signatures, so no server has to be trusted. Each "
            ),
            @html-ui.link(href: "/events", text: "event"),
            @html.text(text: " and "),
            @html-ui.link(href: "/accounts", text: "account"),
            @html.text(text: " can be seen here.")
          ],
          ja: [
            @html.text(
              text: "アカウントの作成とスナップショットは Ed25519 で署名したイベントです。サーバー同士は署名したイベントだけを渡し合い (受信と送信), それぞれのサーバーが署名を確かめるので, どのサーバーも信用する必要がありません。"
            ),
            @html-ui.link(href: "/events", text: "イベント"),
            @html.text(text: "と"),
            @html-ui.link(href: "/accounts", text: "アカウント"),
            @html.text(text: "はここで見られます。")
          ],
          eo: [
            @html.text(
              text: "Krei konton kaj fari momentfoton estas eventoj subskribitaj per Ed25519. Serviloj interŝanĝas nur subskribitajn eventojn (ricevado kaj sendado), kaj ĉiu servilo kontrolas la subskribojn, do neniu servilo devas esti fidata. Ĉiun "
            ),
            @html-ui.link(href: "/events", text: "eventon"),
            @html.text(text: " kaj "),
            @html-ui.link(href: "/accounts", text: "konton"),
            @html.text(text: " oni povas vidi ĉi tie.")
          ]
        )
      ),
      @html-ui.text-element(name: "h2", text: @html-ui.text(language: $990, en: "Editing", ja: "編集", eo: "Redaktado")),
      @html.element(
        name: "p",
        attributes: [],
        children: @html-ui.text-nodes(
          language: $990,
          en: [
            @html.text(
              text: "Editing and taking snapshots are done with the HTML version served by your own local definy server ("
            ),
            @html-ui.text-element(name: "code", text: "npm run serve"),
            @html.text(
              text: "), signed with your own key, or from an AI through its MCP server. The public HTML version only reads."
            )
          ],
          ja: [
            @html.text(text: "編集とスナップショットは, 自分の手元の definy サーバー ("),
            @html-ui.text-element(name: "code", text: "npm run serve"),
            @html.text(
              text: ") が配る HTML 版で, 自分の鍵で署名して行います。AI からは MCP サーバーを通して行えます。公開の HTML 版は読むだけです。"
            )
          ],
          eo: [
            @html.text(
              text: "Redakti kaj fari momentfotojn oni faras per la HTML-versio servata de via propra loka definy-servilo ("
            ),
            @html-ui.text-element(name: "code", text: "npm run serve"),
            @html.text(
              text: "), subskribite per via propra ŝlosilo, aŭ el AI per ĝia MCP-servilo. La publika HTML-versio nur legas."
            )
          ]
        )
      ),
      @html-ui.text-element(name: "h2", text: @html-ui.text(language: $990, en: "More", ja: "もっと知る", eo: "Pli")),
      @html.element(
        name: "ul",
        attributes: [],
        children: [
          @html.element(
            name: "li",
            attributes: [],
            children: [
              @html-ui.link(
                href: "/p/definy/main",
                text: @html-ui.text(
                  language: $990,
                  en: "The definy project",
                  ja: "definy プロジェクト",
                  eo: "La projekto definy"
                )
              ),
              @html.text(
                text: @html-ui.text(
                  language: $990,
                  en: " (definy written in definy)",
                  ja: " (definy で書いた definy)",
                  eo: " (definy skribita en definy)"
                )
              )
            ]
          ),
          @html.element(
            name: "li",
            attributes: [],
            children: [
              @html-ui.link(
                href: "https://definy.narumincho.com/about/",
                text: @html-ui.text(
                  language: $990,
                  en: "Introduction slides",
                  ja: "紹介のスライド",
                  eo: "Enkondukaj lumbildoj"
                )
              )
            ]
          ),
          @html.element(
            name: "li",
            attributes: [],
            children: [
              @html-ui.link(
                href: "https://github.com/narumincho/definy",
                text: @html-ui.text(
                  language: $990,
                  en: "Source code of the host (GitHub)",
                  ja: "ホストのソースコード (GitHub)",
                  eo: "Fontkodo de la gastiganto (GitHub)"
                )
              )
            ]
          )
        ]
      )
    ]
  )
visibility
public
html-ui.about-page (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: MovcyheBDdhw2xa6GM_xFKHXB2XtQFiKa0cR3AEJ6HY
content hash: iYiqo0tOsRl6FWTLdwKjBIjH5J5CLT2s4wSA_igMVhc