This website requires JavaScript.
Explore
Help
Register
Sign In
jarod
/
unkernel
Watch
1
Star
0
Fork
0
You've already forked unkernel
mirror of
https://github.com/pithings/unkernel.git
synced
2026-12-02 10:09:47 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
3f7bb3849b79eeace52eb9410bc4e92766e10a47
unkernel
/
web
History
Pooya Parsa
3f7bb3849b
web: free the Mac's select all and Ctrl-A: on Apple devices the shortcut prefix is ⌘J (it was Ctrl-A and ⌘A), so ⌘A selects all and Ctrl-A always reaches the guest; Ctrl-C in a terminal there sends ^C also with text selected, and keys pressed with ⌘ in the Display window are released when ⌘ comes up (browsers send no keyup for them); elsewhere Ctrl-A in a text field of the page with text in it is select all
2026-11-25 14:28:57 +00:00
..
public
web: WebSockets in the guest preview: the service worker puts the shim /vm-ws.js into the HTML documents it relays, whose WebSocket reaches the guest (ws://localhost:<port>, /vm/<id>/<port>/, root-relative paths) through the page over a BroadcastChannel, where websocketOver() (js/core/ws.ts, RFC 6455 over vm.connect()) runs it, with credits, a socket cap and Web Locks for teardown; a preview document's root-relative requests are relayed to its port, so a Vite dev server's client and HMR work
2026-11-22 15:22:51 +00:00
scripts
Add guest Vulkan on the page's WebGPU (kwvk): a Vulkan 1.2 ICD in the base (vk/icd, libvulkan_kw.so under the stock loader) sends commands over vsock port 1018 to a renderer in the SDK (createKernel({ vk }), js/core/vk*.ts) that implements them on a GPUDevice, with SPIR-V translated to WGSL by naga as wasm (vk/naga); Wayland, X11 and headless presentation by readback; the page's Guest Vulkan option, Environment row and vkcube, vkmark and GTK tiles; checks in test/vk
2026-11-24 07:23:03 +00:00
server
Fetch a distro image's warm set in the background and read ahead for sequential readers: the Debian image lays out what apt and dpkg read after the prompt (guest/distro/debian/warm-files, traced like boot-files, no fragments) right after the boot set, and its distro header (now 136 bytes) names that range, which HttpBase fetches in 4 MiB pieces once the boot is quiet (not with Save-Data); HttpBase streams every range per chunk and, after a miss next to chunks it has, fetches 1 MiB ahead, doubling to 4 MiB while the reader keeps up (readAhead). With 100 ms of added latency apt-cache show bash takes 1.0 s after a quiet prompt (3.3 s typed at once) instead of 8.1 s
2026-11-21 14:32:21 +00:00
src
web: free the Mac's select all and Ctrl-A: on Apple devices the shortcut prefix is ⌘J (it was Ctrl-A and ⌘A), so ⌘A selects all and Ctrl-A always reaches the guest; Ctrl-C in a terminal there sends ^C also with text selected, and keys pressed with ⌘ in the Display window are released when ⌘ comes up (browsers send no keyup for them); elsewhere Ctrl-A in a text field of the page with text in it is select all
2026-11-25 14:28:57 +00:00
test
web: rewrite the page as a desktop
2026-11-22 23:19:14 +00:00
.gitignore
Rebuild the guest packages for aarch64, add ~/.local/bin and the stand-ins
2026-11-19 00:12:38 +00:00
index.html
web: hide the Dock and darken the top bar while a window is maximized, and make the Dock a lower full-width bar in compact mode
2026-11-24 19:30:45 +00:00
package.json
vk: present Wayland windows without copying (wland 0.1.0-261124-3c987e5 external buffers: the ICD names each swapchain image to the compositor and the page resolves it from the WebGPU texture; readback stays the fallback and for X11), track descriptor writes that spill over bindings and read back only the ranges the GPU wrote (device-local and host-visible memory types only), take a read-only marking from a buffer's members in the translator; web: Vulkan in the resource monitor, no guest Vulkan where WebGPU has no adapter, llama.cpp and D3D12 (vkd3d) gears and triangle apps, the Agents folder renamed AI
2026-11-24 10:45:38 +00:00
profile.html
web: boot in a worker on the suggested CPUs by default, and add /profile.html
2026-11-19 16:36:29 +00:00
smp-probe.html
web: add /smp-probe.html, the SMP probes for an engine (threads, waits, atomics, compiles, GC, the kernel on 1 to 8 CPUs), and build it and /profile.html as pages
2026-11-23 09:01:43 +00:00
tsconfig.json
Initial commit
2026-11-15 23:27:04 +00:00
vite.config.ts
Add guest Vulkan on the page's WebGPU (kwvk): a Vulkan 1.2 ICD in the base (vk/icd, libvulkan_kw.so under the stock loader) sends commands over vsock port 1018 to a renderer in the SDK (createKernel({ vk }), js/core/vk*.ts) that implements them on a GPUDevice, with SPIR-V translated to WGSL by naga as wasm (vk/naga); Wayland, X11 and headless presentation by readback; the page's Guest Vulkan option, Environment row and vkcube, vkmark and GTK tiles; checks in test/vk
2026-11-24 07:23:03 +00:00