Hello WASM Bidding with ORTBish Stuff
Here we see a cookie addict bidding on supply with whatever he has available. - iSac, ChatGPT, April 15, 2024.
Bidding Using WASM
Very basic R&D in getting this to work, meaning do simple things like:
- Write code in C that can log/print to the JS console for debugging.
- Expose functions from that C for calling JS side...preferably w/o having to do interesting memory writing/reading.
- Integrate this with the way Fledge instantiates and runs the generateBid JS and WASM.
Ideally I'd just link to some repo but since my setup here is optimized for somethings and not others that's not entirely easy...so for now I'm just syncing files here that I'm linking.
Approach
Broadly:
Fledge Code
C "Bidding" Code
The C code I'm emscripten compiling:
- Bidding Code
- Impression Request Code
- Impression Request Struct
- Bidding Candidate Code
- Bidding Candidate Struct
Emscripten Command
Expected Console Logs
At time of writing (US Tax Day, 2024):