Exploring Neuro-Symbolic AST Parsing for Dynamic Metaprogramming #4162
aditya-8108
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
We have not explored anything of the sort yet. Performance is indeed critical as any delays will cause lack of responsiveness in the editor, but I can't judge the proposal as I don't quite understand it yet. Can you provide an example case and how it would be handled by the engine? Let's say you have this: class Foo
LIST_1 = [:bar, :baz]
LIST_2 = [:qux, *LIST_1]
LIST_2.each do |name|
define_method(name) do
puts "hello"
end
end
endHow would you be able to statically understand what is defined here? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have been looking into the limitations of static indexers handling dynamic DSLs and
define_methodgeneration. Relying on manual add-ons or strict RBS annotations works for now, but I wanted to explore if we could solve Ruby's dynamic method problem directly at the AST level.I just built a lightweight Python proof-of-concept called SymbIONet (https://github.com/aditya-8108/symbionet).
It uses a hybrid neuro-symbolic approach:
Has the LSP team explored secondary inference passes for dynamic boundaries like this, or is the architecture strictly limited to static parsing for performance reasons? I would love to hear your thoughts on this approach as I continue refining the prototype.
All reactions