Coder Social home page Coder Social logo

Comments (4)

katopz avatar katopz commented on May 24, 2024 1

The title maybe mislead 🤔. It would be "Do api have Run endpoint for rust client? If not (it's not i guess), maybe you can provide current api Docker file so I can I help add that Run endpoint.

I expected something like rust playground + solana related create.
After that in ui should have separated section for both program and client side and run button something like...

image

and when click run it should call https://api.solpg.io/run and get the result back at cli.

Motivation

When user open the repos that contain both program and (simple) rust client. They should able to run both in playground.

Anyway JIT ts and lazy load module should be more suitable (widely used) than rs client example.
But I'm kinda bore to mess with ts so I propose to take care of rust client example instead. 😅

And again, nothing serious here, just itchy to having fun with the playground.

from solana-playground.

katopz avatar katopz commented on May 24, 2024 1
  1. i can see nearly most example and test use new KeyPair() in ts or embed byte keypair in rs which mean it should be fine for example purpose on devnet and maybe some serious warning (or blocking) for mainnet

2. 3. 4. Can be address with money or subscription (no joy), anyway I'm agree we should get back to this when things viable.

I will try POC ts way while wait. 👍

from solana-playground.

acheroncrypto avatar acheroncrypto commented on May 24, 2024

Can you expand on this? Would love to hear how exactly this would work.

from solana-playground.

acheroncrypto avatar acheroncrypto commented on May 24, 2024

Would love to have something like this but I think there are a few problems with this approach.

  1. The server would need the keypair of the user to make this work
  2. The server would need internet access
  3. The server would need premium RPC endpoints on all networks to serve all those requests. Any free RPC provider would block the IP since we are sending it from the same location
  4. This would also add lots of load to the server(trying to do as little as possible from the server, that's why we are using wasm for the CLI's even though it would have been much easier to just have a server for it)

TS/JS sounds good for this purpose to do everything in the client. For now though, the main goal is to do the tests from the UI to have a different value proposition.

This would be great to return back to when browser tooling for Rust improves and we can do most if not all of these from the client.

from solana-playground.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.