Sign in

Vanessa Freudenberg

@codefrau.bsky.social
227 followers 129 following 25 posts

I design and implement interactive and collaborative systems: Co-founder of Croquet.io • Chief Architect Multisynq.io • Creator of Squeak.JS.org • Formerly at Alan Kay’s groups (VPRI.org, CDG Labs, YCR HARC) • Dr (EngD) • German living in Los Angeles 🏳️‍🌈

PostsRepliesMedia
Vanessa Freudenberg @codefrau.bsky.social · 04/04/2025
Yes you need to allow that
010
Vanessa Freudenberg @codefrau.bsky.social · 04/04/2025
Prompts: aistudio.google.com/prompts/1uwR... The example app given in the first prompt: github.com/multisynq/mu...
110
Vanessa Freudenberg @codefrau.bsky.social · 04/04/2025
I spent an afternoon vibe-coding a multiplayer game with @multisynq.bsky.social and @threejs.org using Gemini Pro 2.5 – 100% AI coded, although I had to explain how to correct the errors. Zero server code, client-side multiplayer. Live and source on @codepen.io: codepen.io/codefrau/ful...
codepen.io
Multi-player 3D Asteroids using Three.js & Croquet vibe coded by Gemini
...
160
Vanessa Freudenberg @codefrau.bsky.social · 03/04/2025
The docs are so pretty, OMG. Congrats!
040
Vanessa Freudenberg @codefrau.bsky.social · 16/03/2025
You wouldn’t believe how long it took me to find my very obvious typo 🤦🏻‍♀️ The symptom was that the output looked red and white 🔴⚪️ when it was supposed to be rainbowey 🌈
#version 300 es
in      ivec2 xyIdIx;          // position in upper 16 bits, id and index in lower 16 bits
uniform vec2  screenScale;     // half width/height of screen
uniform float spotSize;        // size of spot
uniform uint  colorIdx;        // start of spots in display table
out     vec3  v_color;         // color of spot

vec3 hue(float h) {
    h = mod(h, 1.0);
    float r = abs(h * 6.0 - 3.0) - 1.0;
    float g = 2.0 - abs(h * 6.0 - 2.0);
    float b = 2.0 - abs(h * 6.0 - 4.0);
    return clamp(vec3(r, g, b), 0.0, 1.0);
}

void main() {
    ivec2 pos = xyIdIx >> ivec2(16, 16);                   // sign extend 16 bits to 32
    uint idx = uint(xyIdIx.y & 65536);                     // 16 bit index
    if (idx < colorIdx) {
        float fraction = float(idx) / float(colorIdx);     // map to [0, 1)
        v_color = hue(float(idx) / float(colorIdx));       // color by table index
    } else {
        v_color = vec3(1.0);                               // default: white
    }
    gl_Position = vec4(vec2(pos) / screenScale, 0.0, 1.0);
    gl_PointSize = spotSize * 512.0 / max(screenScale.x, screenScale.y);
}
020
Vanessa Freudenberg @codefrau.bsky.social · 12/03/2025
“in terms of program debugging difficulty the problem was a lulu.” — Ivan Sutherland (1963!), “Sketchpad,” pg. 76
In concept the edge detection problem is trivial. In terms of program time for lines and circles the problem is a small fraction of the total computational load of the system, but in terms of program debugging difficulty the problem was a lulu. For example, the computation of the intersection of a circle with any of the edges of the scope is easy, but computation of the intersection of a circle with all four edges may result in as many as eight intersections, same pairs of which maybe identical, the scope corners. Now which of these intersections are actually to be used as starts of circle arcs?
010
Vanessa Freudenberg @codefrau.bsky.social · 06/03/2025
I figured out how to keep my fixed-aspect canvas centered but as-large-as-possible in pure CSS 🥳 (I didn’t want to use object-fit because it distorts JS event positions) Try it here (resize the window or turn your phone) codefrau.github.io/Smalltalk78/...
#canvas {
    width: auto;
    height: 100%;
}
@media (max-aspect-ratio: 4/3) {
    #canvas {
        width: 100%;
        height: auto;
    }
}
010
Vanessa Freudenberg @codefrau.bsky.social · 04/03/2025
Thank you
000
Vanessa Freudenberg @codefrau.bsky.social · 25/02/2025
𝗖𝗼𝗱𝗲𝗳𝗿𝗮𝘂 𝘾𝙤𝙙𝙚𝙛𝙧𝙖𝙪 𝘊𝘰𝘥𝘦𝘧𝘳𝘢𝘶 CODEFRAU ᴄᴏᴅᴇꜰʀᴀᴜ ᶜᵒᵈᵉᶠʳᵃᵘ ℭ𝔬𝔡𝔢𝔣𝔯𝔞𝔲 𝕮𝖔𝖉𝖊𝖋𝖗𝖆𝖚 𝙲𝙾𝙳𝙴𝙵𝚁𝙰𝚄 ᑕOᗪEᖴᖇᗩᑌ 𝓒𝓞𝓓𝓔𝓕𝓡𝓐𝓤 🅒🅞🅓🅔🅕🅡🅐🅤 🅲🅾🅳🅴🅵🆁🅰🆄 ⒸⓄⒹⒺⒻⓇⒶⓊ 🄲🄾🄳🄴🄵🅁🄰🅄
030
Vanessa Freudenberg @codefrau.bsky.social · 18/02/2025
I see we had the same idea. Nice!
020
Vanessa Freudenberg @codefrau.bsky.social · 18/02/2025
In a way I like this best because it’s straightforward to explain: * No damage? Nice, shield doesn’t break * This attack breaks the shield? Okay, return the number of this attack * Otherwise, this attack does damage, and we look at the next attack I’ll admit that “straightforward” is … subjective 😇
020
Vanessa Freudenberg @codefrau.bsky.social · 18/02/2025
Played a bit more – recursion is fun! 👸🏻🛡️ 🐢🐢🐢 🐢🐢 🐢 💃🏻 codepen.io/codefrau/pen...
findShieldBreak = (dmgs, shld, pos=0) =>
    dmgs.length == 0 ? -1
    : shld <= dmgs[0] ? pos
    : findShieldBreak(dmgs.slice(1), shld - dmgs[0], pos + 1)
110
Vanessa Freudenberg @codefrau.bsky.social · 17/02/2025
findShieldBreak = (dmgs, shld) => dmgs.findIndex(dmg => (shld -= dmg) < 0) 👸🏻🛡️🔥🔥🔥🐉 codepen.io/codefrau/pen...
findShieldBreak = (dmgs, shld) => 
    dmgs.findIndex(dmg => (shld -= dmg) < 0)
240
Vanessa Freudenberg @codefrau.bsky.social · 10/02/2025
Especially using single digit numbers to avoid having to tokenize was brilliant. It let us focus on the actual problem instead of incidental complexity
010
Vanessa Freudenberg @codefrau.bsky.social · 10/02/2025
It’s not very readable, admittedly, even though it’s very succinct. But whittling it down to almost a one-liner was a fun exercise. Thank you for the prompt!
120
Vanessa Freudenberg @codefrau.bsky.social · 10/02/2025
Okay now that I’ve seen all the other submissions I wonder if an actual interviewer would object to my use of `eval()`. Then again, the `splice(-2)` is neat to get the operands in the right order for sub/div. They should appreciate that
220
Vanessa Freudenberg @codefrau.bsky.social · 04/02/2025
It’s been a while, yes, but I’m still reading your letter every week. One of the few highlights right now 💜
010
Vanessa Freudenberg @codefrau.bsky.social · 04/02/2025
It’s how you combine subexpressions in RPN (see en.m.wikipedia.org/wiki/Reverse...) Try this: evaluatePostfix('123*+123++*')
en.m.wikipedia.org
Reverse Polish notation - Wikipedia
030
Vanessa Freudenberg @codefrau.bsky.social · 04/02/2025
Clever! But evaluatePostfix('123++') should be 6 🤓
120
Vanessa Freudenberg @codefrau.bsky.social · 04/02/2025
That was fun! function evaluatePostfix(s) { let a = [] for (let c of s) a.push(isNaN(+c) ? eval(a.splice(-2).join(c)) : c); return a.pop() } My CodePen does the infix conversion first and evals at the end: codepen.io/codefrau/pen...
Screenshot of the codepen and its output
250
Vanessa Freudenberg @codefrau.bsky.social · 30/01/2025
When I work with JWTs this is incredibly helpful: jwt.io
jwt.io
JWT.IO
JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
010
Vanessa Freudenberg @codefrau.bsky.social · 28/01/2025
This is one of the many awesome projects you can play with at squeak.js.org/etoys/ which has the 2005 version of Etoys running on my virtual machine. It’s in the Project Gallery (3rd row, 3rd item)
140
Vanessa Freudenberg @codefrau.bsky.social · 28/11/2024
Trying a new profile picture www.instagram.com/p/CvqRxdlPGsg/
Selfie of me smiling into the camera with asymmetric, purple hair, matching purple lipstick and glasses, in a navy summer dress with small flower ornaments, a golden necklace with a V pendant sitting on a bench in front of an ivy-covered wall
020
Vanessa Freudenberg @codefrau.bsky.social · 28/11/2024
Ohhhhh amazing list 😍
120
Vanessa Freudenberg @codefrau.bsky.social · 14/11/2024
Thank you for this Award, and congrats to my co-authors! It’s been an incredible 10 years. Check out SqueakJS at squeak.js.org
squeak.js.org
SqueakJS by Vanessa Freudenberg
0101