[ Sender Isolate ] [ Target Isolate Mailbox ]
│ ┌───┬───┬───┬───┐
send(target, msg) ─────(Full!)───────X │msg│msg│...│msg│ (256/256)
│ └───┴───┴───┴───┘
▼
Returns .mailbox_full
(Zero allocation, O(1) fast rejection)
Great question — C# has grown a lot in the last decade, and there are several features in the language and ecosystem that make it very capable for building high-performance systems while still being relatively high-level compared to C or Rust. Let’s break it down by categories of features relevant to algorithms, data flows, and concurrency:
- Value types allocated on the stack (or inline in arrays/fields).
- Avoid GC overhead compared to reference types.
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
| //! By convention, root.zig is the root source file when making a library. If | |
| //! you are making an executable, the convention is to delete this file and | |
| //! start with main.zig instead. | |
| const std = @import("std"); | |
| const xev = @import("xev"); | |
| const testing = std.testing; | |
| fn onConnectionClosed( | |
| _: ?*void, | |
| _: *xev.Loop, |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>CookieStore API Demo - Theme Switcher</title> | |
| <style> | |
| body { | |
| font-family: system-ui, -apple-system, sans-serif; | |
| line-height: 1.6; |
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
| package main | |
| import ( | |
| // "fmt" | |
| "strings" | |
| "sync" | |
| "ergo.services/ergo/act" | |
| "ergo.services/ergo/gen" | |
| "ergo.services/meta/websocket" |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Embed Banner</title> | |
| <style> | |
| .vite-host-banner { | |
| display: flex; | |
| align-items: center; |
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
| export async function handler() { | |
| const topStoriesUrl = "https://hacker-news.firebaseio.com/v0/topstories.json"; | |
| // Fetch the top stories IDs | |
| const response = await fetch(topStoriesUrl); | |
| const storyIds = await response.json(); | |
| const top5StoryIds = storyIds.slice(0, 5); | |
| // Fetch the story details for each top story in parallel | |
| const storyDetailsPromises = top5StoryIds.map((id) => | |
| fetch(`https://hacker-news.firebaseio.com/v0/item/${id}.json`).then((res) => |
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
| apiVersion: configuration.konghq.com/v1 | |
| kind: KongPlugin | |
| metadata: | |
| name: hello-service-host-rewrite | |
| # The plugin must be created in the same namespace as the ingress. | |
| namespace: kong | |
| plugin: request-transformer | |
| config: | |
| add: | |
| headers: |
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
| createNotification(message) { | |
| return new Notification(`${message.author.name} sent a message`, { | |
| body: message.text | |
| }); | |
| } |
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
| checkNotificationPromise() { | |
| try { | |
| Notification.requestPermission().then(); | |
| } catch (e) { | |
| return false; | |
| } | |
| return true; | |
| } |
NewerOlder