arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.06428cs.NIcs.SE
收藏

VSC-WebGPU:一个基于Selenium的VS代码扩展,用于WebGPU上的本地编辑和云编译

VSC-WebGPU: A Selenium-based VS Code Extension For Local Edit And Cloud Compilation on WebGPU

Hao Bai

摘要:

随着信息传输的快速发展,软件即服务(SaaS)的发展速度越来越快,原本本地的一切都倾向于移植到服务器上,在云上执行。WebGPU是一个SaaS系统,它拥有GPU服务器来执行学生的CUDA代码,并发布RESTful前端网站供学生编写代码。但在基于HTML的界面上编程并不令人满意,因为缺乏语法突出显示和自动关键字补充。另一方面,Visual Studio Code由于其强大的社区和兼收并蓄的功能,现在正成为最受欢迎的编程接口。因此,我们提出了这样一个系统,学生使用VS Code及其编码辅助扩展在本地编写代码,并使用我们的VSC-WebGPU扩展仅按下一个按钮即可将代码推到WebGPU。该扩展分为4个部分:登录过程,用于自动将学生登录到WebGPU;拉取过程,将代码拉到本地工作区;推送过程,将代码复制到浏览器进行编译和运行;退出过程,退出浏览器并关闭连接。这个4步架构也适用于任何其他自动化工具,可以使用Web自动机将本地代码推送到需要授权的SaaS系统。

英文摘要:

With the rapid development of information transmission, Software as a Service (SaaS) is developing at a rapid speed that everything originally local tends to be transplanted onto servers and executed on the cloud. WebGPU is such a SaaS system that it holds the GPU-equipped server to execute students' CUDA code and releases the RESTful front-end website for students to write their code on. However, programming on an HTML-based interface is not satisfactory due to a lack of syntax highlighting and automatic keyword complement. On the other side, Visual Studio Code is now becoming the most popular programming interface due to its strong community and eclectic functionalities. Thus, we propose such a system that, students write code locally using VS Code with its coding-auxiliary extensions, and push the code to WebGPU with only one button pressed using our VSC-WebGPU extension. The extension is divided into 4 parts: the login process for automatically logging the student into WebGPU, the pull process that pulls the code down to the local workspace, the push process that copies the code to the browser for compiling and running, and the exit process to exit the browser and close the connection. This 4-step architecture is also applicable for any other automated tools to push local code to authorization-required SaaS systems using Web automata.

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

↑