Repository navigation
chore(website), perf(runtime): SvelteKit 3.4.0 security bump and event-driven I/O readiness - #338
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolve Dependabot &
bun auditAdvisories (@sveltejs/kit3.4.0)@sveltejs/kit(^3.4.0),@sveltejs/adapter-static(^4.0.1),@sveltejs/vite-plugin-svelte(^7.3.2),svelte(^5.57.1),vite(^8.3.8), and@tailwindcss/vite/tailwindcss(^4.3.5) inapps/website, plus rootoverrides(@sveltejs/kit,dompurify,katex,lodash-es) to bringbun auditfrom 13 advisories down to 0 vulnerabilities (resolving Dependabot alerts#402,#403,#404).apps/websiteto SvelteKit 3 conventions: movesadapter-staticdirectly intosveltekit({ ... })inapps/website/vite.config.ts(removing legacysvelte.config.js), switches+error.sveltefrom$app/storesto$app/state, adopts#lib/*Node subpath imports across website sources, and keeps a Vite$libalias for@tiramisu-docs/kitsource components.Event-Driven Socket & File Readiness (
std/net&FileSystemRuntime)native/runtime/SocketPoller.h(kqueueon macOS,epoll+eventfdon Linux,WSAPollon Windows) with bounded1024-slot capacity, zero runtime heap allocations, ABA-safe generation tickets, full-duplex reader/writer co-registration for split TCP streams (split->takeReader+takeWriter),std::shared_ptr<tcp::Socket>descriptor lifetime pinning while monitored, and<= 5 msbounded wait slices so task cancellation never blocks on idle peers.native/runtime/FileSystem.cppandnative/runtime/TcpOperations.incto distinguishPauseKind::{Yield, Executor, Socket, Timer}onOperation:EAGAIN/EWOULDBLOCK/EINPROGRESS): wakes viaSocketPolleron OS readiness instead of a blind 5 ms sleep.Executorcompletion: signalsExternalCompletion(orwaiterCvin closed synchronous mode) immediately when the worker finishes while retaining a cancellable 5 ms safety ticket in case an OS call blocks during cancellation.socketBytes16-turn cap /try_to_lockcontention): yields immediately to the tail of the scheduler FIFO ready queue (0 msartificial delay).TcpSourceTests.py4.2 MiB full-duplexexchange): drops from~850 ms(~4.9 MiB/s) to20 ms(~200 MiB/s, ~42x faster) on 4 workers (65 mson 1 worker), and cuts 2,000-iterationnative-filesystem-source-*runs to18.9s–25.7s.Verification
bun audit(0 vulnerabilities found)bun run check(prettier,tsc,svelte-kit sync,svelte-check0 errors / 0 warnings,bun test,vite buildstatic prerender)bun run verify:docs -- --tools build/native/native(52pages,155native examples,125executable CPU programs)ctestacrossnative-tcp-lifecycle,native-tcp-source-{debug,optimized,sanitized,thread-sanitized},native-stream-source-{debug,optimized,sanitized},native-process-runtime-{debug,optimized,sanitized,thread-sanitized},native-process-streams-{debug,optimized,sanitized,thread-sanitized},native-filesystem-runtime-{debug,optimized,sanitized,thread-sanitized},native-filesystem-source-{debug,optimized,sanitized},native-resumable-calls-{debug,optimized,sanitized,thread-sanitized}, andnative-subscription-lifecycle(28/28passed)