Tyler Hillery
Explore posts from serversMModular
•Created by Tyler Hillery on 12/4/2024 in #questions
1 Billion nested loop iterations Mojo Implementation - seeking feedback
Hey everyone, first time writing mojo and I am seeking feedback for my implementation on 1 Billion nested loop iterations, it's making its rounds on X and I thought I give it go in Mojo. Here is my current working branch was wondering if there is a better way to do this? The goal is not to implement the fastest way but the most "straight forward". I had a hard time figuring out how to initialize a list of 10,000 elements to 0 without doing another loop.
67 replies
CDCloudflare Developers
•Created by Tyler Hillery on 3/5/2024 in #pages-help
Trouble getting Static Form Pages Plugin working with KV on Astro Site
WebDev noob here and struggling to integrate the Static Form Pages Plugin with KV on my Astro site. I followed the instructions here and updated my
astro.config.mjs
to use directory mode and src/env.d.ts
to include define Cloudflare runtime and KV type. Also updated KV namespace bindings on Cloudflare Pages > Settings > Fuctions. Also added a wrangler.toml
with the kv_namespaces.
Could someone just provide some psuedo code on how you would update this respondeWith
function that serializes the formData and saves it to a KV namespace?
For content here is the error I get from the real time function logs
here is what I tried
1 replies