Elysia: Optimizing Java']JavaScript Web Framework

被引:0
作者
Archiwaranguprok, Chayapatr [1 ]
Khunpanitchot, Kongkeit [1 ]
Mano, Phoomparin [2 ]
Toahchoodee, Manachai [1 ]
机构
[1] Univ Thai Chamber Commerce, Bangkok, Thailand
[2] Creatorsgarten, Bangkok, Thailand
来源
39TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, SAC 2024 | 2024年
关键词
!text type='Java']Java[!/text]Script; RESTful API; Static Analysis; Optimization; Type Safety;
D O I
10.1145/3605098.3636068
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
As JavaScript and its backend web frameworks garnered mainstream adoption and played a pivotal role in today's industry, challenges of runtime performance, developer experience, and type safety are potential hindrances to scaling and maintainability. This paper suggests strategies for web frameworks in JavaScript to provide a balanced focus between performance and convenience by optimizing the performance of potentially expensive ergonomic features by utilizing JavaScript's interpreted nature and Just-In-Time compilation through the use of static analysis and dynamic code generation techniques in conjunction with adopting TypeScript's type system to provide an improved developer experience. The reference implementation of the optimization strategies and design for developer experience is illustrated through the implementations in the Elysia JavaScript web framework, in which the performance is evaluated against non-optimized code and benchmarked against other real-world backend web frameworks.
引用
收藏
页码:1789 / 1796
页数:8
相关论文
共 40 条
  • [1] Adams Sabin, 2022, End-To-End Type Safety: What, Why and How
  • [2] [Anonymous], 2017, Prepack
  • [3] Apache Software Foundation, 2023, Apache Thrift
  • [4] Brito T, 2023, Arxiv, DOI arXiv:2301.05097
  • [5] Brown E., 2019, Web Development with Node and Express: Leveraging the JavaScript Stack
  • [6] Bynens M., 2018, Celebrating 10 years of V8
  • [7] Cherny B., 2019, Programming TypeScript: making your JavaScript applications scale
  • [8] Della Vedova Tomas, 2023, find-my-way: A crazy fast HTTP router
  • [9] Della Vedova Tomas, 2023, @hapi/call: Simple HTTP Router
  • [10] Devographics, 2023, Stack Overflow Developer Survey 2023