arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1712.01161cs.PL
收藏

基于搜索的多层Web应用离线可用性优化层分配

Search-based Tier Assignment for Optimising Offline Availability in Multi-tier Web Applications

Laure Philips, Joeri De Koster, Wolfgang De Meuter, Coen De Roover

摘要:

Web程序员在开发现代富Internet应用程序的过程中经常面临一些挑战。必须为应用程序的不同层选择技术:服务器端语言,客户端的JavaScript、HTML和CSS的组合,以及数据库技术。满足当代Web应用程序的期望需要开发人员付出更多的努力:必须掌握许多最先进的库并将其粘合在一起。这会导致不同技术之间的阻抗不匹配问题,需要编程人员手动调整。多层或无层编程是一种Web编程范式,它为Web应用程序的不同层提供一种语言,允许程序员专注于实际的程序逻辑,而不是组合几种技术带来的意外复杂性。虽然当前的无层级方法因此减轻了必须将不同技术组合到一个应用程序中的负担,但代码的分发被明确地绑定到程序中。某些分发决策会影响横切关注点,如信息安全或离线可用性。此外,调整程序以使应用程序更好地遵守这些关注点通常会导致代码混乱,使程序更难以理解和维护。我们介绍了一种多层编程的方法,其中的无层次的代码是从层规范解耦。开发人员根据切片和将切片分配给层的外部规范来实现Web应用程序。推荐系统为那些没有固定位置的切片完成图片,并提出切片细化。这个推荐系统试图优化一个或多个横切关注点的层次规范。这与当前最先进的解决方案相反,这些解决方案向程序员隐藏了分发决策。在本文中,我们表明,片,再加上推荐系统,使开发人员能够试验不同的位置的片,直到分布的代码满足程序员的需求。我们提出了一个基于搜索的推荐系统,最大限度地提高了Web应用程序的离线可用性,并在分层工具Stip.js中具体实现了这些概念。

英文摘要:

Web programmers are often faced with several challenges in the development process of modern, rich internet applications. Technologies for the different tiers of the application have to be selected: a server-side language, a combination of JavaScript, HTML and CSS for the client, and a database technology. Meeting the expectations of contemporary web applications requires even more effort from the developer: many state of the art libraries must be mastered and glued together. This leads to an impedance mismatch problem between the different technologies and it is up to the programmer to align them manually. Multi-tier or tierless programming is a web programming paradigm that provides one language for the different tiers of the web application, allowing the programmer to focus on the actual program logic instead of the accidental complexity that comes from combining several technologies. While current tierless approaches therefore relieve the burden of having to combine different technologies into one application, the distribution of the code is explicitly tied into the program. Certain distribution decisions have an impact on crosscutting concerns such as information security or offline availability. Moreover, adapting the programs such that the application complies better with these concerns often leads to code tangling, rendering the program more difficult to understand and maintain. We introduce an approach to multi-tier programming where the tierless code is decoupled from the tier specification. The developer implements the web application in terms of slices and an external specification that assigns the slices to tiers. A recommender system completes the picture for those slices that do not have a fixed placement and proposes slice refinements as well. This recommender system tries to optimise the tier specification with respect to one or more crosscutting concerns. This is in contrast with current cutting edge solutions that hide distribution decisions from the programmer. In this paper we show that slices, together with a recommender system, enable the developer to experiment with different placements of slices, until the distribution of the code satisfies the programmer's needs. We present a search-based recommender system that maximises the offline availability of a web application and a concrete implementation of these concepts in the tier-splitting tool Stip.js.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑