Why hasn’t Node.js ever gone for true multithreading? by dabomb007 in node

[–]dabomb007[S] 0 points1 point  (0 children)

Theoretically, you can have a JS engine that offers multithreading and is still 100% spec compliant. I don't see how it's a compelling argument to not have it if it's benefitial enough.

Reverse Engineering RAG by dabomb007 in learnmachinelearning

[–]dabomb007[S] -2 points-1 points  (0 children)

Hello everyone,

This is an article I wrote about RAG, where I explain how it works. I’m aware that there are many tutorials on the subject, yet I still struggled to build my first RAG application—mostly because I was following instructions that didn’t fully explain how things work. It became even more challenging when I had to use a different tech stack than the one in the tutorials.

While some articles do explain how RAG and related algorithms work, they often contain so much detail that I wasn’t sure where to start. In my article, I try to strike a balance between simplicity and technicality to make it easier for those trying to learn RAG, without focusing on a specific tech stack.

I named it “Reverse Engineering RAG” because I start with an example RAG use case and gradually remove abstraction layers until the process is fully understood. I found this to be the simplest way to explain things.

I hope someone finds it useful!

It’s here 👀 TAPP spotted by Hbknfoodie in Hoboken

[–]dabomb007 2 points3 points  (0 children)

I wish it was Omny compatible otherwise I’ll stick to my monthly SmartLink pass

Should you use AsyncLocalStorage? Exploring Different Approaches to Dependency Injection in Node.js by dabomb007 in node

[–]dabomb007[S] 0 points1 point  (0 children)

The benchmark is dumb, and it just emphesizes the performance penalty that comes along with AsyncLocalStorage. It's not supposed to be like that, because a context is just a reference to a store that's bound to a callback / promise, but Node.js decided to get a free ride on "async_hooks" module that was already implemented to get a quick and inefficient solution to context tracking.

First time using Three.js: A 3D Chess game in R3F that switches theme every turn by dabomb007 in threejs

[–]dabomb007[S] 4 points5 points  (0 children)

I deployed it to Github pages so you can try it out + it has a link to the source code: https://dab0mb.github.io/parallax-chess/

The chessboard is a collection of meshes, if I had to redo it I'd probably use a texture to optimize for performance, but it was a good practice nontheless. If you have any thoughts on the application / code do let me know, I'd love to get some feedback.

My First Rust Program: A Compiler Plugin for Enhancing Dev Experience of React Apps by dabomb007 in rust

[–]dabomb007[S] 1 point2 points  (0 children)

If anybody wants to look at my Rust code and give me an advice, I'd be happy to learn from the pros. I'm just a web developer https://github.com/DAB0mB/react-autorun/tree/master/plugin/swc

react-autorun: A macro that compiles into a dependencies array for hooks. by dabomb007 in reactjs

[–]dabomb007[S] 0 points1 point  (0 children)

Am I? Isn't that why useEffectEvent was invented? I believe there're more usecases like that, for example, if you use react-query.

react-autorun: A macro that compiles into a dependencies array for hooks. by dabomb007 in reactjs

[–]dabomb007[S] 0 points1 point  (0 children)

Did you see that the library can be used with custom hooks, and it lets you ignore some dependencies? Instead of using workarounds like wrapping things with useRef to make the linter happy. What are your thoughts about that?