What is Vim.Wasm?

Small introduction to Vim port to WebAssembly with screenshot and developer notes
16 July 2018   633

Vim.wasm is experimental fork of Vim editor to compile it into WebAssembly using emscripten and binaryen.

Developer added some notices:

  • Please access from a desktop browser (Chrome/Firefox/Safari/Edge). Safari seems the best on macOS.
  • Please avoid mobile networks. Your browser will fetch some large files (up to 2.5MB).
  • vim.wasm takes key inputs from DOM keydown event. Please disable your browser extensions which affect key inputs (incognito mode would be the best).
  • This project is very early phase of experiment. Currently only tiny features are supported. More features will be implemented (please see TODO section). And you may notice soon on trying it... it's buggy :)
  • If inputting something does not change anything, please try to click somewhere in the page. Vim may have lost the focus.

The goal of this project is running Vim editor on browser by compiling Vim C sources into WebAssembly. 

Vim.wasm screenshot
Vim.wasm screenshot 

WebAssembly frontend for Vim is implemented as a new GUI frontend. C sources are compiled to each LLVM bitcode files and then they are linked to one bitcode file vim.bc by emccemcc finally compiles the vim.bc into vim.wasm binary using binaryen and generates HTML/JavaScript runtime.

You can find more info at GitHub.

Cloudflare to Introduce Apps with Workers

Beta test of Apps and Workers joint usage by Cloudflare had begun 
19 November 2018   52

Cloudflare talked about the start of beta testing of Cloudflare Workers embedded scripts in web applications using Cloudflare Apps tools. The created solutions can be placed in the Cloudflare Marketplace store, where they will be moderated and a security check.

Application developers used Cloudflare Apps to integrate JavaScript, HTML, CSS, and modifications of Cloudflare settings such as DNS to websites. With the start of beta testing, they got the opportunity to experiment with personalization, A / B testing, security, content checking and localization.

To add code to the application, simply place the link to the script in the install.json file:

{
	"resources": [...],
	"hooks": [...],
	"workers": [{
		"src": "./worker.js"
	}]
}

The introduction of variables is also available with a link in the Workers script. They may contain the tokens necessary for installing the application.

// inside src/worker.js
addEventListener('fetch', event => {
  event.respondWith(workerFn(event.request))
  let someOptionFromInstall = INSTALL_OPTIONS.UserAgents // UserAgents was selected by siteowner in previewer
})

Cloudflare unveiled a stable version of Workers for cloud administration of web applications in JavaScript in mid-March 2018. The service allows you to deploy JS-scripts on the company's cloud network within 30 seconds. At the end of September 2018, Cloudflare launched the “key-value” repository of Workers KV. Cloudflare experts claim that Workers provides low latency data reading and allows you to create applications that are comparable in performance to content delivery networks (CDNs).