Regarding a new Annotation to convert recursive code to iterative code

14 views
Skip to first unread message

dinesh

unread,
Jul 11, 2025, 8:06:57 AMJul 11
to Project Lombok
Hi Team, 
I have a feature for lombok, which will greatly help when deep recursion is invovled in various use cases like goal seek calculation(binary search in a large sample space). The feature is "Conversion of  recursive code to iterative code so that for specific methods annotated, the recursion uses heap space, instead of stack space".

Please let me know about the idea, if it makes sense. If it does, I am ready to contribute to lombok.

Thanks and Regards
Dinesh

Mat Jaggard

unread,
Jul 11, 2025, 8:18:08 AMJul 11
to project-lombok
Sounds to me like a better use case for an LLM to convert to functional programming than a bytecode manipulation to iterations. You'll also end up with error stacktraces that make sense with the code.

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/project-lombok/bdd0654f-48b3-4192-8f72-e41e7149ce80n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages