Comments (7)
from compiler-explorer.
#6413 merged
from compiler-explorer.
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.
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.
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.
Resources for websockets that I'll be using:
- https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-develop.html
- https://registry.terraform.io/providers/hashicorp/awscc/latest/docs/resources/apigatewayv2_api (awscc??)
- terraform-aws-modules/terraform-aws-apigateway-v2#8
- https://github.com/aws-samples/simple-websockets-chat-app
from compiler-explorer.
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)
- ppc64 and ppc64le nightly cross gcc failures HOT 1
- [REQUEST]: Permit "Add Executor" to Conformance View
- [BUG]: Xtensa ESP32 LEND loop targets are filtered as directives HOT 4
- [COMPILER REQUEST]: GraalVM Native Image
- [BUG]: code compiles to either infinite loop or nothing with -O3 HOT 3
- [COMPILER REQUEST]: QuickJS
- TypeError: opcodes is not iterable
- Can't link with gcc 4.7.1 and 4.7.2 HOT 1
- [BUG]: recompiling resets scroll position to the top
- [LIB REQUEST] pycryptodome & cryptography
- [COMPILER REQUEST]: sh-elf-gdc HOT 4
- [BUG]: Mobile mode can't be edited? HOT 1
- [BUG]: Browser tab refresh resets all renamed CE tabs
- [COMPILER REQUEST]: Groovy HOT 1
- [BUG]: char8_t not declared even with -std=c23 HOT 1
- Make lines linkable HOT 3
- [BUG]: preprocessor output is empty when using MS compiler
- [BUG]: permission denied opening /dev/null HOT 5
- [BUG]: Mfem library not loading: single vs double precision not specified
- [BUG]: Internal Compiler Explorer error: Error: Unexpected basic block terminator: HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compiler-explorer.