Skip to content

Pattern-adoption P1: BLAS LU, grad XOR, owned HttpBody - #193

Merged
godofecht merged 1 commit into
mainfrom
feat/pattern-adoption-p1
Aug 5, 2026
Merged

godofecht merged 1 commit into
mainfrom
feat/pattern-adoption-p1

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • Route tourist LU through stdlib/blas.flow (solve + new getrf/lu_factor); keep hand Doolittle as lu_decomposition_pedagogical.flow
  • Train tourist XOR via nn_autogen grad codegen; hand backprop → mlp_xor_from_scratch.flow; honest AD wording in README/overview
  • Land registry http/json packages with owned HttpBody (http_get / http_body_free) and update http_json_cache live path

Closes #168
Closes #170
Closes #167

Test plan

  • python3 -m flow.transpiler examples/linalg/lu_decomposition.flow --c --lenient -o /tmp/lu.c
  • python3 -m flow.transpiler examples/ml/models/mlp_xor.flow --c --lenient -o /tmp/mlp.c
  • On Darwin with Accelerate: link LU with -framework Accelerate and confirm residual ~0
  • Optional: ./flow run-native apps/http_json_cache/src/live_http.flow (libcurl)

Made with Cursor

Route tourist linalg/ML demos through blas.flow and nn_autogen, add getrf/lu_factor
wrappers plus registry http/json packages with an owned http_get surface, and demote
hand-written twins to pedagogical companions.

Co-authored-by: Cursor <[email protected]>
@godofecht
godofecht merged commit 2f25542 into main Aug 5, 2026
13 checks passed
@godofecht
godofecht deleted the feat/pattern-adoption-p1 branch August 5, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant