Opencl Dot product kernel fails on specific data

Summary The OpenCL kernel for dot product multiplication is experiencing a significant error when run on specific data, particularly when the values are evenly distributed around zero. The error is much larger than expected, with a percent error of -8240276.0, compared to a percent error of -0.011454765 when run on random numpy arrays. Root Cause … Read more

eval(substitute()) within a R6 object

Summary The issue at hand is using eval(substitute()) within an R6 object to evaluate an expression. The problem arises when trying to use basic operators like ==, +, etc., which are not defined within the object’s environment. This leads to errors, as seen in the example provided. Root Cause The root cause of this issue … Read more

Monorepo + AI tools (Copilot, Cursor): does having full codebase context provide real advantages in practice?

Summary The use of monorepos in conjunction with AI-assisted development tools like GitHub Copilot or Cursor has the potential to provide significant advantages in practice. By having full codebase context, these tools can access the entire system, including contracts, types, and usages, which can lead to improved refactors, consistency, and reusability. Root Cause The root … Read more

Backend for Frontend (BFF) – Spring Boot vs Node JS

Summary The decision to use Spring Boot or Node.js for a Backend for Frontend (BFF) layer in a web application architecture involves weighing the pros and cons of each technology. Key considerations include security, performance, and development complexity. While Node.js is a popular choice for BFFs due to its fast development cycle and lightweight nature, … Read more

Global AsyncClient Reuse Best Practices

Summary The use of a global AsyncClient in Python 3.14 for making HTTP requests can be optimized for better performance and parallelism. This article discusses the best practices for reusing a global httpx client, especially when dealing with Celery workers and FastAPI. Key considerations include event loop management, parallelism, and IO blocking. Root Cause The … Read more