I went to the typescript tag and tried to read a few other articles and got 404 errors. Just wanted to let ya know.
Nice blog and good work!
11–20 of 43 posts
I went to the typescript tag and tried to read a few other articles and got 404 errors. Just wanted to let ya know.
Nice blog and good work!
I'm reminded of that old Eugene Wigner quote: "The most incomprehensible thing about the universe is that it is comprehensible."
It’s a nice post, but “using array methods” probably shouldn’t be placed in the “Efficient Implementation” section. As often happens with high-level languages, a single plain old loop is faster than three array methods. Similarly, if you plan to query those vectors in search, you should consider continuous `TypedArray` types and smaller scalars than the double precision `number`. I know very little about JS, but some…
Im doing a bunch of 3D rotation transforms on millions of points in javascript .. this looks like what I need.
Earlier quoted context omitted.
Thank you for the good feedback. I tried to improve that. I was writing the blog post for myself to understand Cosine Similarity, which is why it's maybe a bit repetitive, but this is the best way for me to learn something. I get your point. Next time I will write it better. Good feedback - I love that.
Ha, when you put it that way, I can totally see why it read like that! It looks super great now. What you have here leaves an entirely different impression, and a stylish one! Two last suggestions: * Now I'm thinking the Why Cosine Similarity Matters for Modern Web Development section belongs at the top, right after your intro. * The angle indicator is still a bit wonky in the diagram. I might even take direction onl…
As a physicist, I always found it funny that in ML people renamed 'the angle between vectors' into something as fancy-feeling as 'cosine similarity'.
I do all my work in Rust now via o3-mini-high and convert to WASM... JS just for DOM and event handling. What is the point of building these CPU-bound functions in TS. Why not Rust->WASM?
I do all my work in Rust now via o3-mini-high and convert to WASM... JS just for DOM and event handling. What is the point of building these CPU-bound functions in TS. Why not Rust->WASM?
Because op knows TS and doesn't know Rust?
Earlier quoted context omitted.
Ha, when you put it that way, I can totally see why it read like that! It looks super great now. What you have here leaves an entirely different impression, and a stylish one! Two last suggestions: * Now I'm thinking the Why Cosine Similarity Matters for Modern Web Development section belongs at the top, right after your intro. * The angle indicator is still a bit wonky in the diagram. I might even take direction onl…
I think the web animation is really useful for people new to the concept.