stedolan / llvm

Context switching for LLVM
Other
15 stars 5 forks source link

The work done here is awesome, but how can I use it in 2020? #2

Open JoshuaWise opened 4 years ago

JoshuaWise commented 4 years ago

Hi, I've read your paper on Compiler Support for Lightweight Context Switching, and I was very impressed and inspired. I'm writing a new programming language with lightweight user-space threads analogous to the ones you described, and I was also planning on using LLVM as my backend (what a coincidence!).

However, despite your work being a decade old, I don't see that LLVM ever officially adopted your swapstack or newstack additions. Is there a good reason why? Did they ever read your paper, or did you ever try to convince them to adopt your extensions? If not, do you think your extensions could easily be updated to apply to the most recent version of the LLVM codebase?

I'm very interested in applying your ideas to real-world industry situations, but I wouldn't want to use a 9-year-old version of LLVM.

Thank you for your amazing research!

stedolan commented 4 years ago

Thanks! This work was done quite a while ago as part of a research internship, and I'm afraid I never got around to upstreaming it.

The changes to support swapstack were pretty minimal, but LLVM has changed a lot since I made them, so I imagine they'd have to be more-or-less reimplemented for current LLVM.