Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [trampoline]

Trampoline (programming) has a number of meanings, and is generally associated with jumps (i.e., moving to different code paths).

Filter by
Sorted by
Tagged with
6 votes
1 answer
344 views

Implement Scala-like Trampoline to gain tail call optimization in Rust

On the topic of tail call optimization, I found two RFCS: 271 and 1888. Until this gets implemented, I wanted to do something inspired from Scala's Trampoline ...
user2011659's user avatar
8 votes
0 answers
385 views

C++ constexpr trampoline

For fun, I implemented a trampoline function for C++ constexpr functions, since the recursion limit for constexpr functions is ...
Justin's user avatar
  • 3,295
2 votes
1 answer
517 views

Static to Instance method trampolining with templates

I finally have a working trampoline mechanism. Would anyone care to critique it? Ideone ...
P i's user avatar
  • 629
3 votes
1 answer
1k views

Recode C -> C++ trampoline function macros using templates [closed]

I'm reworking PyCXX (C++ wrapper for Python). I'm currently examining the following macro code, and wondering whether there is a way to write it using templates rather than macros. If so, the ...
P i's user avatar
  • 629
8 votes
1 answer
289 views

Factorial using trampolines

I've translated this Java code into Delphi code: ...
Johan's user avatar
  • 417
12 votes
1 answer
748 views

Trampoline Interceptor

Aim In C#, the following method will cause a StackOverFlowException if called with parameter 0: ...
Ben Aaronson's user avatar
  • 5,734
2 votes
1 answer
2k views

Nios 2 interrupt handler

This is homework for which we have prepared Nios 2 assembly: ...
Niklas Rosencrantz's user avatar