tailcall icon indicating copy to clipboard operation
tailcall copied to clipboard

Dynamically Load JS Execution Engine

Open tusharmath opened this issue 1 year ago • 11 comments

Currently, JS execution is behind a feature flag and you need to rebuild the application using those flags to write any custom JS code. This makes it harder to try out the JS features using Tailcall.

Technical Requirements

  • Build on top of optimizations done in #611 by @meskill
  • JS Execution should be downloaded and integrated dynamically if a @js is detected anywhere in the configuration
  • Download and linking should happen only if the user consents to downloading the feature.

tusharmath avatar Dec 25 '23 10:12 tusharmath

/bounty 350

tusharmath avatar Dec 25 '23 10:12 tusharmath

~~💎 $350 bounty created by tailcallhq~~ ~~🙋 If you'd like to work on this issue, comment below to get assigned~~ ~~👉 To claim this bounty, submit a pull request that includes the text /claim #781 somewhere in its body~~

~~📝 Before proceeding, please make sure you can receive payouts in your country.~~ ~~💵 Payment arrives in your account 2-5 days after the bounty is rewarded.~~ ~~💯 You keep 100% of the bounty award.~~ ~~👍 If you go above and beyond by cleaning up or enhancing aspects beyond the scope of the PR, a tip may be awarded as a token of appreciation.~~ ~~🙏 Thank you for contributing to tailcallhq/tailcall!.~~ ~~🙋‍♂️ Join our discord channel if you need help.~~

~~👉 Add a bountyShare on socials~~

algora-pbc[bot] avatar Dec 25 '23 10:12 algora-pbc[bot]

/attempt #781

Khalid6468 avatar Dec 25 '23 12:12 Khalid6468

@Khalid6468: The Tailcall Inc. team prefers to assign a single contributor to the issue rather than let anyone attempt it right away. We recommend waiting for a confirmation from a member before getting started.

algora-pbc[bot] avatar Dec 25 '23 12:12 algora-pbc[bot]

/attempt #781

I'd like more information on one unclear thing: Can you give use-case examples about how this will be used? What we could/need to execute on/with JS?

wesleymatosdev avatar Dec 25 '23 13:12 wesleymatosdev

@ologbonowiwi: The Tailcall Inc. team prefers to assign a single contributor to the issue rather than let anyone attempt it right away. We recommend waiting for a confirmation from a member before getting started.

algora-pbc[bot] avatar Dec 25 '23 13:12 algora-pbc[bot]

@ologbonowiwi check out #611. It has tests and examples. Lets connect on discord if something is not clear.

tusharmath avatar Dec 26 '23 06:12 tusharmath

thread on discord discussing about this issue.

I'm dropping this here as context to help whoever will work on this one. Unfortunately, there is much to do here, and I'd need more time/focus to handle it. Unassigning from me; everyone else, feel free to attempt :smile:

wesleymatosdev avatar Dec 28 '23 12:12 wesleymatosdev

@Khalid6468 Let me know if you'd want to try this.

tusharmath avatar Dec 29 '23 07:12 tusharmath

@tusharmath I would like to attempt this if no one else is currently working on this

shashitnak avatar Jan 01 '24 16:01 shashitnak

Go ahead

tusharmath avatar Jan 01 '24 17:01 tusharmath

This needs to be closed, no @tusharmath?

wesleymatosdev avatar Jan 27 '24 18:01 wesleymatosdev

Action required: Issue inactive for 30 days. Status update or closure in 7 days.

github-actions[bot] avatar Feb 26 '24 19:02 github-actions[bot]

Issue closed after 7 days of inactivity.

github-actions[bot] avatar Mar 04 '24 19:03 github-actions[bot]