Nue.js is a new JavaScript framework focusing on extreme performance and minimal bundle size for complex web apps. It achieves this through a reactive core inspired by SolidJS and Svelte, compiling templates to optimized vanilla JavaScript, and offering built-in features like routing, state management, and SSR. The blog post demonstrates Nue's efficiency by showcasing a full-featured to-do MVC app with a bundle size smaller than a single React button, while maintaining excellent performance metrics. This makes it particularly suitable for situations where performance and low bandwidth consumption are critical, such as mobile-first development and slow networks.
Threlte 8 introduces significant performance enhancements and new features to the Svelte Three.js wrapper. A key improvement is the move to a new, more efficient rendering loop using requestAnimationFrame
within Svelte's tick function, eliminating unnecessary re-renders and boosting FPS. Version 8 also embraces a new component-based architecture, improving code organization and maintainability. New components like <TCanvas>
and <TGroup>
simplify scene setup and object management. Additionally, Threlte 8 boasts improved developer experience through streamlined event handling, simplified camera controls, and a revamped documentation site. These updates solidify Threlte's position as a powerful and user-friendly tool for building 3D experiences with Svelte.
Hacker News users generally expressed enthusiasm for Threlte 8, praising its improvements to developer experience in using Three.js with Svelte. Several commenters highlighted the elegance of the new component-based approach and its similarity to React Three Fiber, making it easier to learn and use. Some discussed the benefits of Svelte's reactivity and smaller bundle sizes, while others appreciated the improved documentation and examples. One user raised a question about server-side rendering support, which the Threlte author clarified is being actively worked on. Overall, the sentiment was positive, with many commenters eager to try Threlte 8 in their projects.
Summary of Comments ( 308 )
https://news.ycombinator.com/item?id=43543241
Hacker News users discussed the performance benefits of Nue.js, particularly its small bundle size compared to React. Some expressed skepticism about the benchmark methodology and questioned whether the "lighter than a React button" claim held true in real-world scenarios. Others were interested in the framework's approach and appreciated its focus on simplicity and performance. Several commenters pointed out the difficulty of comparing frameworks based on microbenchmarks and emphasized the importance of overall developer experience and ecosystem maturity. The lack of TypeScript support was also mentioned as a potential drawback. A few users discussed the tradeoffs between using a smaller, less mature framework like Nue.js versus a more established option like React, Svelte, or Preact.
The Hacker News post "Show HN: Nue – Apps lighter than a React button" generated a moderate amount of discussion, with several commenters engaging with the premise of the framework being lighter than React.
Several users focused on the practicality and relevance of the comparison to a single React button. One commenter questioned the fairness and usefulness of comparing an entire framework to a single component of another, suggesting that a more appropriate comparison would be to a minimal React app. Another echoed this sentiment, pointing out that a button in React incorporates the entire React library, making the comparison somewhat misleading. This user suggested a more accurate metric would be to compare a basic "hello world" application in both frameworks.
The discussion also touched upon the perceived complexity introduced by the choice of Rust and WebAssembly. One user argued that the use of these technologies would increase the complexity of development and debugging, particularly for tasks like profiling, and questioned whether the performance benefits would outweigh these downsides. Another user expressed concern about the overall ecosystem surrounding WebAssembly and Rust for front-end development, highlighting the potential difficulties in integrating with existing JavaScript tooling and libraries. The comment also expressed concern for a smaller community which could lead to a lack of resources to fix issues.
Some commenters shifted the focus from the size comparison to the more general benefits of using Rust and WebAssembly for front-end frameworks. One user highlighted the potential for performance gains, while another pointed out that the claimed size reduction might not be the most significant advantage. This commenter suggested that the performance improvements, especially in computationally intensive applications, could be a more compelling selling point.
Others questioned the long-term viability of the project and the potential challenges of maintaining a Rust and WebAssembly based front-end framework. One commenter expressed concern about the learning curve and the potential difficulties in attracting and retaining developers familiar with these technologies.
Finally, a few commenters requested more concrete examples and demonstrations of the framework's capabilities beyond the basic comparisons presented. They expressed interest in seeing real-world applications built with Nue to better assess its performance and practicality. One commenter asked about the status of a to-do list application that was mentioned in the past and how that would stack up in comparison to different implementations.