feat(stdlib): modulos de IA, matrizes, tensores, banco vetorial e aprimoramentos de runtime - #5
Merged
Conversation
added 3 commits
August 4, 2026 09:31
…rial e matematica expandida - Adiciona suporte a redes neurais (Perceptron e MLP) e banco vetorial em memoria com busca por cosseno - Implementa pacotes de álgebra linear (matrizes e tensores N-dimensionais) - Expande stdlib de matematica com trigonometria, exponenciais e geradores de numeros aleatorios - Atualiza registros de embutidos e exportacoes da stdlib em portugues
…e vm - Melhora transpilaçao de componentes JSX, Virtual DOM e sinais reativos no runtime web - Refina resoluçao de caminhos no dev server (harpia servir) e servidor HTTP - Ajusta gerenciamento de mapas, imports dinamicos e opcodes na VM Direct-Threaded - Adiciona suporte a graphify e configuracoes do ambiente de desenvolvimento
…orte a IA - Sincroniza especificacoes das novas bibliotecas da stdlib (IA, matrizes, tensores) - Atualiza catalogo de instruçoes e exemplos no manifesto para consumo por LLMs
There was a problem hiding this comment.
Sorry @mat-dgruber, your pull request is larger than the review limit of 150000 diff characters
Reviewer's GuideEsta PR estende a stdlib do Harpia com módulos de IA, matrizes, tensores e banco vetorial em memória, além de melhorias no runtime web (animações, SSR/browser stubs, roteador SPA) e no Dev Server/CLI (hot‑reload SSE, execução de comandos/sandbox Harpia) e ajustes na VM/compilador/transpiler para suportar novas construções da linguagem. Sequence diagram for Dev Server SSE hot-reload flowsequenceDiagram
actor Dev
participant HarpiaDevServer as comandoServir
participant FileWatcher as watcherProjeto
participant SSEHandler as handlerHotReload
participant Browser as EventSource
Dev->>HarpiaDevServer: comandoServir()
HarpiaDevServer->>FileWatcher: go watcherProjeto()
HarpiaDevServer->>SSEHandler: http.Handle("/hot-reload", handlerHotReload)
Browser->>SSEHandler: GET /hot-reload
SSEHandler-->>Browser: "data: conectado" (SSE)
loop monitorar arquivos
FileWatcher-->>FileWatcher: filepath.Walk()
FileWatcher-->>HarpiaDevServer: notificarClientes()
HarlpiaDevServer->>SSEHandler: ch <- true
SSEHandler-->>Browser: "data: recarregar" (SSE)
Browser-->>Browser: window.location.reload()
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Ajusta o alinhamento e formatacao de codigo Go em todos os pacotes do projeto para conformidade com as regras do linter e CI do repositório.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Resumo das Alterações
Esta Pull Request adiciona novos pacotes de alta performance à Standard Library (stdlib) do Harpia, estendendo a linguagem com suporte a Inteligência Artificial, Álgebra Linear, Armazenamento Vetorial e otimizações de compilação web.
🚀 Novas Funcionalidades:
stdlib/ia): Implementação nativa de Perceptron e redes neurais Multi-Layer Perceptron (MLP) com treinamento e retropropagação em Go.stdlib/bd/vetores): Indexação de embeddings e busca por similaridade de cosseno ($O(n)$) para consultas semânticas e busca em RAG.stdlib/matriz&stdlib/tensor): Manipulação de matrizes 2D e tensores N-dimensionais para operações matemáticas avançadas.stdlib/matematica): Suporte a trigonometria (Seno,Cosseno,Tangente), logaritmos, exponenciais e funções randômicas.harpia servir).🧪 Plano de Testes
go test ./...com 100% dos pacotes aprovados.stdlib/ia/redeneural_test.go.stdlib/matriz/matriz_test.go.cmd/compilar_test.goe testes do compilador VM sem regressões.Summary by Sourcery
Extend Harpia’s stdlib and web/runtime with native AI, linear algebra, vector store, and web animation utilities, while enhancing dev tooling, module import behavior, and VM logical operators.
New Features:
Enhancements:
CI:
Documentation:
Tests: