Skip to content

feat: psi modernization scaffold (CMake, tests, FunctionRef plan)#5

Merged
psiha merged 2 commits into
masterfrom
feat/psi-modernization
Jun 17, 2026
Merged

feat: psi modernization scaffold (CMake, tests, FunctionRef plan)#5
psiha merged 2 commits into
masterfrom
feat/psi-modernization

Conversation

@psiha

@psiha psiha commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

functionoid modernization arc — aligned with psi::sweater and psi::vm:

  • ** unctionoid.cmake** — psi_functionoid INTERFACE + psi::functionoid alias
  • Standalone CMakeLists.txt — CPM + psi/build, GTest smoke + ref/invoke/vtable tests
  • psi::functionoid namespace migration complete (58331ca) — headers under include/psi/functionoid/; include/boost/ shims removed; historical README notes restored
  • psi::functionoid::function_ref — moved from rama obj_proxy.hpp
  • Vtable fn-pointer attribute hooks — PSI_FUNCTIONOID_DETAIL_*_FN_ATTR macros wired into callable_base.hpp

Related PRs

Test plan

  • Rama
    ama_node_addon DevRelease embed (Windows clang-cl)
  • GTest: smoke, function_ref, callable_invoke, vtable_attrs
  • Standalone configure + CI (Linux/macOS)
  • Port legacy Boost.Build tests to GTest (follow-up)

psiha and others added 2 commits June 17, 2026 09:38
Migrate Boost.Functionoid to Psi.Functionoid: psi::functionoid namespace,
CMake embed target Psi::Functionoid, standalone build with CPM + LLVM 22 CI.

- Modernize callable_base; policy-driven callable with vtable fn attrs
- Add function_ref (non-owning, pointer SBO, exception tunneling for C/V8)
- GTest smoke, move-only/callable invoke/function_ref/vtable attr tests
- Drop redundant include guards; remove legacy boost/function.hpp shim path

Co-authored-by: Cursor <cursoragent@cursor.com>
Features vs std::function, std::move_only_function, and std::copyable_function;
function_ref SBO and exception tunneling; embedding notes for host projects.

Co-authored-by: Cursor <cursoragent@cursor.com>
@psiha psiha force-pushed the feat/psi-modernization branch from 27faafc to 6810da2 Compare June 17, 2026 07:39
@psiha psiha merged commit 92515f3 into master Jun 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant