Git Product home page Git Product logo

Comments (7)

partouf avatar partouf commented on June 8, 2024

#4315

from compiler-explorer.

partouf avatar partouf commented on June 8, 2024

#6413 merged

from compiler-explorer.

partouf avatar partouf commented on June 8, 2024

Follows that design of execution request in "message queue" (however we do that) should be at least this:

type NameValueThing = {
   name: string;
   value: string;
};

type ConfiguredTool = {
   name: string;
   options: NameValueThing[];
};

type ExecutionParams = {
   args: string[];
   stdin: string;
   runtimeTools: ConfiguredTool[];
};

Then the question is, what does the rest look like, maybe this?

type ExecutionMessage = ExecutionParams & {
   result_id: string; // unique identifier that we can lookup and store things under? maybe?
   execute_hash: string; // the hash the executable package has gotten after compilation - in the test endpoint this is a url parameter
   arch: string; // should be something like: `aarch64-linux`?
};

amd64-linux-nvidia-gpu / amd64-linux-amd-gpu / amd64-linux-intel-gpu?

from compiler-explorer.

partouf avatar partouf commented on June 8, 2024

It depends on how the selected queue would look like, but if you can only get or peek at 1 or a limited amount of messages, then you would need multiple queues? 1 per arch

from compiler-explorer.

partouf avatar partouf commented on June 8, 2024

It would be better to only use websockets and just work with DynamoDB, but there might be something something locking via queue or something. (depends on how the concurrency model of aws lambda websockets works, maybe its not needed)

from compiler-explorer.

partouf avatar partouf commented on June 8, 2024

Resources for websockets that I'll be using:

from compiler-explorer.

partouf avatar partouf commented on June 8, 2024

While writing a websocket I remember again why a naive websocket model is suboptimal.
But there's a solution somewhere

from compiler-explorer.

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.