Treffer: IMPROVING MICROINTERFACE PERFORMANCE BY EXECUTING C CODE IN JAVASCRIPT EXECUTION ENVIRONMENTS USING BUN
Weitere Informationen
This paper explores a new feature introduced in Bun that allows for direct compilation and execution of native C code from JavaScript, opening up new horizons for integrating system libraries and improving the performance of JavaScript applications. We analyze the limitations of existing methods such as N-API and WebAssembly, focusing on their complexity and performance impact, especially in the context of using microinterfaces. Bun's approach, based on direct compilation and the use of a lightweight wrapper, is seen as a potentially more efficient alternative. Although detailed information on the performance of Bun's C is not yet available, we propose a comprehensive research plan that will cover various usage scenarios, including microinterface performance analysis, data transfer, and integration with popular C libraries. This research will allow us to evaluate the effectiveness of Bun's C and its potential for developing JavaScript applications on both the server side (Node.js) and, possibly, the client side. Special attention will be paid to the ability to create highly efficient and safe microinterfaces between JavaScript and C using Bun, which opens up new possibilities for developing modular and flexible applications. Keywords: compilation, performance, micro-interface, JacaScript, N-API, WebAssembly, Bun.