ιαηδαπα

platform

homoiconic

A self-contained JavaScript runtime: units, types and routines are live values that the core compiles and reproduces into descendant artifacts. Generated artifacts embed their language, cryptography and compression code; they do not require runtime packages, node_modules or a network service.

como usar

ver todas as 51 tarefas
  • task homoiconic:compileNasce uma linhagem de nivel 1: a carta da raiz, sem frase, e o core aberto compilado, sem units, assinado pela raiz
  • task homoiconic:compression.extractRecupera uma unica vez as fontes de compressao embarcadas, sem sobrescrever fontes existentes
  • task homoiconic:demoGera e testa HTML standalone com uma unit, num core de uma linhagem descartavel
  • task homoiconic:demo.assetsImporta as duas imagens legadas de Belchior, com origem e hashes, para a demo offline
  • task homoiconic:helpersGrava os ajudantes que o core emite (unit.mjs e artifact.mjs) numa pasta dada
  • task homoiconic:orbit.demoGera e testa o HTML standalone de Orbit, com a interface em uma unit web/dom .ia
  • task homoiconic:orbit.demo.checkTesta o HTML de Orbit em Chromium offline, incluindo mobile e controles
  • task homoiconic:reproduceUm no pare o nivel seguinte: fonte, linhagem publica, recibo no cofre e carta do filho
  • task homoiconic:sampleGera e testa a amostra de quatro geracoes de core: gen1 > gen2 > gen3 > gen4, cada uma dizendo ola num iframe
  • task homoiconic:testGenese em memoria, nivel 1, filho e neto, portao da API-KEY, linhagem ate a ancora, DSL, async, carta e cofre
  • task homoiconic:test.bindingsTesta preservacao de escopos JavaScript na ligacao de nomes da DSL
  • task homoiconic:test.bufferProva o numeric_buffer (copia, limites, forma canonica, erros) e o enumerate agrupado no core real
  • task homoiconic:test.compressionCompressao sem perdas de codigo, cifra e Unicode contra codec RFC 1951 independente
  • task homoiconic:test.coreProva o core inteiro numa genese em memoria: nivel 1 compilado, filho e neto, portao, linhagem, DSL, async, carta e cofre
  • task homoiconic:test.corechainTesta corechain, forks, checkpoints e fixture REST do Firestore sem credenciais reais
  • task homoiconic:test.corechain.emulatorProva o corechain REST direto nos emuladores indicados pelo ambiente; recusa projeto vivo ou host remoto
  • task homoiconic:test.dnaProva o DNA: units sobem pelo core, descem inteiras e fechadas para o filho, presas ao certificado, e so descem
  • task homoiconic:test.exitsProva result com template, produtos falsy e saidas da DSL atraves de callbacks
  • task homoiconic:test.functionalTesta contratos funcionais do core, DSL, armazenamento e malha
  • task homoiconic:test.grantProva o grant de execucao: vida de outra lang so roda com a autorizacao do no que a gerou, no mundo dela, com o code dela
  • task homoiconic:test.httpTesta gateway DSL em HTTP local, mounts, HEAD, autenticacao e limites do transporte
  • task homoiconic:test.instanceProva o core na semente do aparelho: instancia valida e nao certificada, claim intacta, filho nascido da instancia
  • task homoiconic:language.vendorWrite the iandara language engine (ESM bundle + base unit symbols) into a folder under orgs/, or --check it.
  • task homoiconic:test.languageProva lint, formatter, plugin Prettier e carregamento das units .ia
  • task homoiconic:test.memoryProva coleta de resultados temporarios e retencao limitada do cache no core real
  • task homoiconic:test.meshTesta cordao binario, politicas WebSocket, limite pre-upgrade, fechamento da malha, bilhete e canal dos pares
  • task homoiconic:test.mesh-policyProva a politica da malha: pares exatos, units do certificado, expiracao, revogacao e retomada sob politica nova
  • task homoiconic:test.orbitValida a orbita em oito e os cinco pontos de Lagrange no core real; PERIODS=10 TIMEOUT_MS=300000
  • task homoiconic:test.peerProva a corda dos pares da malha sobre o RTCPeerConnection do Chromium, sem trickle e sem rede de fora
  • task homoiconic:test.presetsVerifica extracao de presets legados sem executar codigo e o oraculo SVG
  • task homoiconic:test.restTesta desafios, sessoes assinadas e provas contra replay pela DSL e cripto reais
  • task homoiconic:test.schedulingIsola fila fria/quente, espacamento de lotes e cancelamento de loop no core real
  • task homoiconic:test.scheduling.profilePerfila o teste focado de scheduling para localizar custo de execucao fria
  • task homoiconic:test.scopesProva persistencia automatica da DSL, referencias, colecoes e genes em processos distintos
  • task homoiconic:test.securityAtaques ao boot, linhagem, armazenamento autenticado, gate e reproducao isolada
  • task homoiconic:test.snapshotTesta snapshot cifrado, erasure coding, perda de partes e restauracao atomica no core reproduzido
  • task homoiconic:test.transferProva capsulas com identidade propria e emissor de instancia autorizado pelo host
  • task homoiconic:units.bindGrava nas units a chave literal do core local da demo, aberta do recibo DPAPI
  • task homoiconic:units.formatFormata a DSL com seus niveis de dois espacos, preservando os labors
  • task homoiconic:units.format.checkConfere a formatacao das units sem escrever
  • task homoiconic:units.inventoryMapeia contextos legados por AST sem executar seu codigo
  • task homoiconic:units.lintValida fontes .ia sem executar units ou abrir o core
  • task homoiconic:units.organizeOrganiza units em subpastas e migra fontes e consumidores para can.
  • task homoiconic:units.sugarRefatora retornos dos labors para result e reduz blocos simples, preservando callbacks e try/catch
  • task homoiconic:units.testTesta units migradas no Chromium offline com o core gerado da demo

documentação

A self-contained JavaScript runtime: units, types and routines are live values that the core compiles and reproduces into descendant artifacts. Generated artifacts embed their language, cryptography and compression code; they do not require runtime packages, node_modules or a network service.

Security contract

The host and authorized units are trusted. The evaluator intentionally executes the DSL and its JavaScript routines; it is not a sandbox for hostile JavaScript.

  • Boot verifies compressed language and library checksums before evaluating language code, validates identity and lineage, and fails without delivering a gate on error.
  • Checksums detect inconsistency. Before loading a received artifact, a trusted instance must approve its source and certified lineage with identity.verify_artifact(source, lineage, trusted_anchor).
  • Authentication depends on the API key. Invalid access raises FORBIDDEN; automatic banishment and destructive storage operations are commented out and inactive.
  • Unicode names and their auxiliary watermark are obfuscation, not an authorization boundary. The pool and urn are private to each instance.
  • Storage uses iandara.storage.v2: secret-derived keys, identity namespaces, AEAD binding, an authenticated manifest and a commit pointer written last. Old storage is refused without conversion or deletion.
  • Cryptography uses the existing Noble implementations. No predictable randomness fallback is available; the host must supply a compatible CSPRNG.

See SECURITY.md for the threat model, format/API changes, acceptance matrix and limitations.

A first unit

Replace <api_key> below with the actual expected key before loading the unit. Names such as LANG or MY_API_KEY are refused; the language itself goes through the same gate.

iandara`<api_key>`.
  mod`hello`.
    type`greeting`.
      has`who:text*`.
      can`say[text]`[o=>'hello, ' + who.get].
    bean`greeter::main`.
      scope`system`.
      override`begin`[x=>logger.info(greeting.up('world').say)]();

task homoiconic:bench.profile -- --rounds 3 locates boot costs without dumping code or secrets. To compare revisions in alternating fresh processes without sampling, use task homoiconic:bench.profile -- --rounds 5 --compare <40-character-commit> --no-profile. Profiling is diagnostic; the complete parent/child/grandchild benchmark remains task homoiconic:bench -- --rounds 5 --no-view.

Open the live stage with task homoiconic:bench.live. The page starts fresh runs, chooses rounds, time per measure and reproductions, and shows the active scene, elapsed time, latest measures, lineage and result charts as events arrive. Only one benchmark or test run is active at a time. Reconnecting replays the current run; another run releases the previous history. The last complete report remains available in benchmark/.generated/report.yaml.

The full benchmark accepts integer --rounds and --reproductions from 1 to 20, and --budget from 50 to 5,000 milliseconds. Each round runs in a fresh process with a parent-enforced deadline scaled to those settings. Invalid options, process errors, termination by signal and timeouts fail the run.

For a runnable browser example, open demo/index.html directly. It embeds the exact generated demo/iandara.js, its test credentials and demo/unit.js, which computes a greeting and a sum through the DSL and opens the refactored Belchior home scene. No server or network is needed. task homoiconic:demo rebuilds the HTML from the local DPAPI receipt and tests it in Chromium offline, including repeated inputs and the mobile layout.

  • docs/DSL.md: writing units, every word and everything a labor can reach, with examples.
  • docs/UNITS.md: migration status, loading order and browser tests for the new units.
  • docs/HTTP.md: the Node HTTP adapter, REST routing, static mounts and authorization still being migrated.
  • docs/CORE.md: the layers, the boot, the gate, the compiler, the scheduler, storage and crypto.
  • docs/REPRODUCTION.md: custody of the keys, the API-KEY, the lineage, a birth and the wu-ji.
  • docs/DICTIONARY.md: every word, with one meaning each.
  • docs/PLAN.md: the journal, the corechain and the cloud.
  • docs/CORECHAIN.md: embedded synchronization, signed receipts, forks and the Firestore host adapter.
  • docs/DECENTRALIZED-DATABASE.md: ionized database snapshots, custody among active users and parallel restoration.
  • docs/TODO.md: what is still open, and why.

Layout

The chain is genesis → compilation → level 1 → lang → units → reproduction.

  • core.js: the primary core. The built crypto lives inside it, and only there.
  • units/: pure .ia DSL grouped in language/, examples/, dom/, layout/, web/, home/, svg/, orbit/, security/ and protocol/. catalog.mjs owns their logical names, paths and dependency order. Trusted hosts supply wrappers and bind literal keys; the authoral files have the local demo's actual key.
  • host/: what raises and uses a core from outside. compile.mjs (a level 1 lineage: the root's card, the level 1 core and its receipt), reproduce.mjs (a node bears the next level and seals its receipt), lineage-fixture.mjs (an ephemeral level 1 for tests) and test.js (an in-memory genesis; level 1, child and grandchild; every rule of the DSL and of the gate).
  • util/: crypto.mjs (the crypto source), card.mjs (the card: a seed in 32 pairs of homoglyphs, drawn in SVG), build.mjs (writes the crypto and the lang into the core) and vault.mjs (the system vault).
  • benchmark/: rounds in fresh processes, with a live view and a report in benchmark/.generated/report.yaml. The view's second tab runs host/test.js and shows each check as it passes or fails.

The tasks are under homoiconic: (task ? -- homoiconic:test).