Directories
¶
| Path | Synopsis |
|---|---|
|
accelerate
|
|
|
matmul
command
Command matmul benchmarks matrix multiplication using Apple Accelerate BLAS (cblas_sgemm) versus a naive pure-Go implementation.
|
Command matmul benchmarks matrix multiplication using Apple Accelerate BLAS (cblas_sgemm) versus a naive pure-Go implementation. |
|
ane
|
|
|
blockrace
command
Command blockrace runs the same feed forward network on the Neural Engine and on the GPU, first one at a time and then both at once, to measure whether the two engines contend when one process drives them together.
|
Command blockrace runs the same feed forward network on the Neural Engine and on the GPU, first one at a time and then both at once, to measure whether the two engines contend when one process drives them together. |
|
bundlereuse
command
Command bundlereuse compiles a MIL program to a Neural Engine bundle once, then reopens that bundle — in this process and in a second process, with the source MIL and its weights deleted — and checks that every arm computes the same answer as a float64 CPU reference.
|
Command bundlereuse compiles a MIL program to a Neural Engine bundle once, then reopens that bundle — in this process and in a second process, with the source MIL and its weights deleted — and checks that every arm computes the same answer as a float64 CPU reference. |
|
e5rtblock
command
Command e5rtblock runs a transformer block on the Neural Engine through the private e5rt direct-dispatch route, and checks what comes back against a float64 CPU reference of the whole block.
|
Command e5rtblock runs a transformer block on the Neural Engine through the private e5rt direct-dispatch route, and checks what comes back against a float64 CPU reference of the whole block. |
|
e5rtdispatch
command
Command e5rtdispatch runs a MIL program on the Apple Neural Engine through Espresso's private e5rt_* direct dispatch route, and checks the answer.
|
Command e5rtdispatch runs a MIL program on the Apple Neural Engine through Espresso's private e5rt_* direct dispatch route, and checks the answer. |
|
e5rtprobe
command
Command e5rtprobe reports what the x/ane/e5rt binding of Espresso's e5rt_* direct-dispatch route can be shown to do, and refuses to report anything else.
|
Command e5rtprobe reports what the x/ane/e5rt binding of Espresso's e5rt_* direct-dispatch route can be shown to do, and refuses to report anything else. |
|
e5rtstack
command
Command e5rtstack runs a stack of transformer blocks on the Neural Engine through the private e5rt direct-dispatch route, in one dispatch, and checks what comes back against a float64 CPU reference of the whole stack.
|
Command e5rtstack runs a stack of transformer blocks on the Neural Engine through the private e5rt direct-dispatch route, in one dispatch, and checks what comes back against a float64 CPU reference of the whole stack. |
|
espressoe5rtblock
command
Command espressoe5rtblock runs a transformer block on the Neural Engine through the private e5rt direct-dispatch route, and checks what comes back against a float64 CPU reference of the whole block.
|
Command espressoe5rtblock runs a transformer block on the Neural Engine through the private e5rt direct-dispatch route, and checks what comes back against a float64 CPU reference of the whole block. |
|
espressoe5rtdispatch
command
Command espressoe5rtdispatch runs a MIL program on the Apple Neural Engine through Espresso's private e5rt_* direct dispatch route, and checks the answer.
|
Command espressoe5rtdispatch runs a MIL program on the Apple Neural Engine through Espresso's private e5rt_* direct dispatch route, and checks the answer. |
|
espressoe5rtprobe
command
Command espressoe5rtprobe reports what the generated private/espresso binding of Espresso's e5rt_* direct-dispatch route can be shown to do, and refuses to report anything else.
|
Command espressoe5rtprobe reports what the generated private/espresso binding of Espresso's e5rt_* direct-dispatch route can be shown to do, and refuses to report anything else. |
|
espressoe5rtstack
command
Command espressoe5rtstack runs a stack of transformer blocks on the Neural Engine through the private e5rt direct-dispatch route, in one dispatch, and checks what comes back against a float64 CPU reference of the whole stack.
|
Command espressoe5rtstack runs a stack of transformer blocks on the Neural Engine through the private e5rt direct-dispatch route, in one dispatch, and checks what comes back against a float64 CPU reference of the whole stack. |
|
internal/anedrestart
command
Command anedrestart reopens an E5RT bundle compiled under a previous aned instance and checks the answer, to measure whether bundle reuse survives a restart of the daemon.
|
Command anedrestart reopens an E5RT bundle compiled under a previous aned instance and checks the answer, to measure whether bundle reuse survives a restart of the daemon. |
|
internal/espressoe5rt
Package espressoe5rt adapts Espresso's generated e5rt bindings for examples.
|
Package espressoe5rt adapts Espresso's generated e5rt bindings for examples. |
|
linkedstate
command
Command linkedstate measures what happens when retained E5RT state flows through a pipeline-style link: two separately compiled functions encoded in one stream whose state inout ports share one buffer object.
|
Command linkedstate measures what happens when retained E5RT state flows through a pipeline-style link: two separately compiled functions encoded in one stream whose state inout ports share one buffer object. |
|
modelchain
command
Command modelchain runs a transformer block on the Neural Engine through the public x/ane API, chaining two compiled models by sharing an IOSurface, and checks the result against a float64 CPU reference.
|
Command modelchain runs a transformer block on the Neural Engine through the public x/ane API, chaining two compiled models by sharing an IOSurface, and checks the result against a float64 CPU reference. |
|
pipelinelogits
command
Command pipelinelogits runs a language model's logits tail — final RMSNorm, classifier projection, softmax — as one linked e5rt.Pipeline on the Neural Engine, and checks every probability against a float64 CPU reference.
|
Command pipelinelogits runs a language model's logits tail — final RMSNorm, classifier projection, softmax — as one linked e5rt.Pipeline on the Neural Engine, and checks every probability against a float64 CPU reference. |
|
portlayout
command
Command portlayout sweeps ordinary input and output E5RT ports across tensor shapes with the same self-indexing technique that mapped the state buffer layout, and checks the claim that only the state carries padding.
|
Command portlayout sweeps ordinary input and output E5RT ports across tensor shapes with the same self-indexing technique that mapped the state buffer layout, and checks the claim that only the state carries padding. |
|
slotgauge
command
Command slotgauge measures how many distinct compiled ANE functions one process can keep encoded in a stream, and whether another process holding that resource moves the number — the occupancy signal any scheduler around the function ceiling has to consult.
|
Command slotgauge measures how many distinct compiled ANE functions one process can keep encoded in a stream, and whether another process holding that resource moves the number — the occupancy signal any scheduler around the function ceiling has to consult. |
|
statecache
command
Command statecache keeps mutable state resident on the Neural Engine across executions, and across two separately compiled programs, through one retained E5RT inout port.
|
Command statecache keeps mutable state resident on the Neural Engine across executions, and across two separately compiled programs, through one retained E5RT inout port. |
|
surfaceffn
command
Command surfaceffn runs an Apple Neural Engine matmul over IOSurface pages that another Go process wrote — the ANE arm of the surfacecompute family (examples/iosurface/tensorshare, examples/metal/surfacecompute).
|
Command surfaceffn runs an Apple Neural Engine matmul over IOSurface pages that another Go process wrote — the ANE arm of the surfacecompute family (examples/iosurface/tensorshare, examples/metal/surfacecompute). |
|
appkit
|
|
|
alert
command
Alert shows a native macOS alert dialog from the command line.
|
Alert shows a native macOS alert dialog from the command line. |
|
alert-dialog
command
Command alert-dialog shows the smallest NSAlert example in this tree.
|
Command alert-dialog shows the smallest NSAlert example in this tree. |
|
counter
command
Command counter displays a small AppKit window with a label and two buttons.
|
Command counter displays a small AppKit window with a label and two buttons. |
|
file-picker
command
Command file-picker opens an NSOpenPanel and prints the selected paths.
|
Command file-picker opens an NSOpenPanel and prints the selected paths. |
|
hello-window
command
Command hello-window opens a macOS window with one centered label.
|
Command hello-window opens a macOS window with one centered label. |
|
menubar-clock
command
Command menubar-clock shows the current time in the macOS menu bar.
|
Command menubar-clock shows the current time in the macOS menu bar. |
|
pbd
command
Pbd is a pasteboard tool, an improvement over pbcopy/pbpaste.
|
Pbd is a pasteboard tool, an improvement over pbcopy/pbpaste. |
|
sf-symbols
command
Command sf-symbols shows a small grid of SF Symbols in an AppKit window.
|
Command sf-symbols shows a small grid of SF Symbols in an AppKit window. |
|
swiftui-host
command
Command swiftui-host loads a Swift package that defines SwiftUI content and hosts it inside an AppKit window.
|
Command swiftui-host loads a Swift package that defines SwiftUI content and hosts it inside an AppKit window. |
|
todo-app
command
Command todo-app builds a small multi-window todo list in AppKit.
|
Command todo-app builds a small multi-window todo list in AppKit. |
|
audiotoolbox
|
|
|
rtsynth
command
Command rtsynth renders audio from a Go thread promoted to the real-time scheduling class and joined to the audio device's workgroup.
|
Command rtsynth renders audio from a Go thread promoted to the real-time scheduling class and joined to the audio device's workgroup. |
|
avfaudio
|
|
|
audiosay
command
Command audiosay speaks text using Apple's speech synthesis APIs.
|
Command audiosay speaks text using Apple's speech synthesis APIs. |
|
escaping-tap-regression
command
escaping-tap-regression demonstrates the original use-after-free that motivated applegen's escaping-block classifier (appledocs c09228c541).
|
escaping-tap-regression demonstrates the original use-after-free that motivated applegen's escaping-block classifier (appledocs c09228c541). |
|
inputtap
command
Command inputtap captures audio from the default microphone via AVAudioEngine + tap, resamples it to PCM16 mono at 24 kHz with AVAudioConverter, and prints frame counts and peak amplitude every second.
|
Command inputtap captures audio from the default microphone via AVAudioEngine + tap, resamples it to PCM16 mono at 24 kHz with AVAudioConverter, and prints frame counts and peak amplitude every second. |
|
speechbuffers
command
Command speechbuffers renders an utterance into AVAudioBuffer callbacks.
|
Command speechbuffers renders an utterance into AVAudioBuffer callbacks. |
|
avfoundation
|
|
|
audiomix
command
Command audiomix demonstrates editing audio with AVAudioMix.
|
Command audiomix demonstrates editing audio with AVAudioMix. |
|
capture
command
Command capture saves a camera frame as PNG and one second of microphone audio as WAV using AVFoundation capture outputs.
|
Command capture saves a camera frame as PNG and one second of microphone audio as WAV using AVFoundation capture outputs. |
|
compute
|
|
|
ane_fwtofw
command
Command ane_fwtofw demonstrates configuring firmware-to-firmware (FWToFW) signal options and hardware cross-synchronization options between ANE and GPU.
|
Command ane_fwtofw demonstrates configuring firmware-to-firmware (FWToFW) signal options and hardware cross-synchronization options between ANE and GPU. |
|
threeaccel
command
Command threeaccel runs the same matrix multiplication on all three of Apple silicon's matrix engines from one Go process: the AMX blocks (via Accelerate's cblas_sgemm), the GPU (three ways: a naive Metal kernel, a simdgroup-matrix tiled kernel, and MPSMatrixMultiplication — Apple's tuned GEMM), and the Apple Neural Engine (via x/ane/dynamicmatmul).
|
Command threeaccel runs the same matrix multiplication on all three of Apple silicon's matrix engines from one Go process: the AMX blocks (via Accelerate's cblas_sgemm), the GPU (three ways: a naive Metal kernel, a simdgroup-matrix tiled kernel, and MPSMatrixMultiplication — Apple's tuned GEMM), and the Apple Neural Engine (via x/ane/dynamicmatmul). |
|
coreaudio
|
|
|
blackhole
command
Package main implements a virtual audio loopback driver equivalent to Existential Audio BlackHole.
|
Package main implements a virtual audio loopback driver equivalent to Existential Audio BlackHole. |
|
switchaudio
command
Command switchaudio lists and switches macOS audio input, output, and system devices.
|
Command switchaudio lists and switches macOS audio input, output, and system devices. |
|
systap
command
Command systap records macOS system or per-process audio output to a WAV file using Core Audio process taps.
|
Command systap records macOS system or per-process audio output to a WAV file using Core Audio process taps. |
|
voltap
command
Command voltap demonstrates per-process audio volume control and muting using Core Audio process taps.
|
Command voltap demonstrates per-process audio volume control and muting using Core Audio process taps. |
|
corebluetooth
|
|
|
blescan
command
Command blescan scans for nearby Bluetooth Low Energy peripherals and prints each advertisement as it arrives.
|
Command blescan scans for nearby Bluetooth Low Energy peripherals and prints each advertisement as it arrives. |
|
coregraphics
|
|
|
displays
command
Command displays lists the attached displays and their current configuration using the Core Graphics display services API.
|
Command displays lists the attached displays and their current configuration using the Core Graphics display services API. |
|
coreimage
|
|
|
imgfilter
command
Command imgfilter processes images using Apple's CoreImage framework.
|
Command imgfilter processes images using Apple's CoreImage framework. |
|
corelocation
|
|
|
whereami
command
Command whereami prints the device's current location using Core Location.
|
Command whereami prints the device's current location using Core Location. |
|
coremidi
|
|
|
midimon
command
Command midimon lists the MIDI sources on the system and prints the messages they send, decoding MIDI 1.0 channel voice messages.
|
Command midimon lists the MIDI sources on the system and prints the messages they send, decoding MIDI 1.0 channel voice messages. |
|
coreml
|
|
|
gomodel
command
Command gomodel authors, packages, compiles, and runs a CoreML model entirely from Go — no Python, no coremltools, no Xcode.
|
Command gomodel authors, packages, compiles, and runs a CoreML model entirely from Go — no Python, no coremltools, no Xcode. |
|
multiarray-bytes
command
Command multiarray-bytes creates an MLMultiArray and reads its backing bytes.
|
Command multiarray-bytes creates an MLMultiArray and reads its backing bytes. |
|
predict
command
Command predict loads a CoreML model and prints its description as JSON.
|
Command predict loads a CoreML model and prints its description as JSON. |
|
coreservices
|
|
|
fsevents
command
Command fsevents watches a directory with Apple's journal-backed FSEvents service and prints each file-level event delivered to the Go callback.
|
Command fsevents watches a directory with Apple's journal-backed FSEvents service and prints each file-level event delivered to the Go callback. |
|
corespotlight
|
|
|
index
command
Command index indexes a few items into Spotlight with Core Spotlight and then deletes them again by unique identifier, leaving the index as it was.
|
Command index indexes a few items into Spotlight with Core Spotlight and then deletes them again by unique identifier, leaving the index as it was. |
|
coretext
|
|
|
glyphruns
command
Command glyphruns lays out a string with Core Text and reports its glyph runs.
|
Command glyphruns lays out a string with Core Text and reports its glyph runs. |
|
corewlan
|
|
|
wifiinfo
command
Command wifiinfo reports the state of each Wi-Fi interface on the system: power, mode, SSID, BSSID, RSSI, noise, channel, and transmit rate.
|
Command wifiinfo reports the state of each Wi-Fi interface on the system: power, mode, SSID, BSSID, RSSI, noise, channel, and transmit rate. |
|
diskarbitration
|
|
|
lsdisks
command
Command lsdisks lists the mounted volumes and prints the Disk Arbitration description of each one.
|
Command lsdisks lists the mounted volumes and prints the Disk Arbitration description of each one. |
|
dispatch
|
|
|
memorysqueeze
command
Command memorysqueeze simulates an inference server holding a large cache and shows what DISPATCH_SOURCE_TYPE_MEMORYPRESSURE buys it.
|
Command memorysqueeze simulates an inference server holding a large cache and shows what DISPATCH_SOURCE_TYPE_MEMORYPRESSURE buys it. |
|
parallel-work
command
Parallel-work dispatches concurrent tasks using GCD groups and semaphores.
|
Parallel-work dispatches concurrent tasks using GCD groups and semaphores. |
|
queues
command
Command queues demonstrates a serial queue, a group, and a semaphore.
|
Command queues demonstrates a serial queue, a group, and a semaphore. |
|
espresso
|
|
|
espresso-infer
command
Command espresso-infer runs a minimal Espresso neural network using github.com/tmc/apple/x/espresso.
|
Command espresso-infer runs a minimal Espresso neural network using github.com/tmc/apple/x/espresso. |
|
foundation
|
|
|
appnap
command
Command appnap shows the effect of an NSProcessInfo activity on a timer.
|
Command appnap shows the effect of an NSProcessInfo activity on a timer. |
|
http-fetch
command
Command http-fetch downloads a URL with Foundation and prints a short preview.
|
Command http-fetch downloads a URL with Foundation and prints a short preview. |
|
nsdefaults
command
Command nsdefaults reads and writes NSUserDefaults values.
|
Command nsdefaults reads and writes NSUserDefaults values. |
|
process-info
command
Command process-info prints basic details about the current process.
|
Command process-info prints basic details about the current process. |
|
sysinfo
command
Command sysinfo prints system information and optionally lists running applications.
|
Command sysinfo prints system information and optionally lists running applications. |
|
user-defaults
command
Command user-defaults shows a small round-trip through NSUserDefaults.
|
Command user-defaults shows a small round-trip through NSUserDefaults. |
|
uuid-date
command
Command uuid-date prints the current NSDate and a freshly generated NSUUID.
|
Command uuid-date prints the current NSDate and a freshly generated NSUUID. |
|
gamecontroller
|
|
|
padstate
command
Command padstate prints the state of connected game controllers.
|
Command padstate prints the state of connected game controllers. |
|
gpu
|
|
|
iogpucensus
command
Command iogpucensus reports the Objective-C class identity of the objects the public Metal API vends.
|
Command iogpucensus reports the Objective-C class identity of the objects the public Metal API vends. |
|
hypervisor
|
|
|
hvinfo
command
|
|
|
imageio
|
|
|
imgprops
command
Command imgprops prints the properties of an image file using the Image I/O framework.
|
Command imgprops prints the properties of an image file using the Image I/O framework. |
|
iosurface
|
|
|
tensorshare
command
Command tensorshare demonstrates zero-copy tensor handoff between two Go processes via IOSurface.
|
Command tensorshare demonstrates zero-copy tensor handoff between two Go processes via IOSurface. |
|
javascriptcore
|
|
|
jseval
command
Command jseval evaluates a JavaScript expression with JavaScriptCore and prints the result, reporting any uncaught JavaScript exception.
|
Command jseval evaluates a JavaScript expression with JavaScriptCore and prints the result, reporting any uncaught JavaScript exception. |
|
kernel
|
|
|
amfidont
command
Command amfidont relaxes one nominated code-signing verdict inside the running amfid daemon, for one binary, once, and then exits.
|
Command amfidont relaxes one nominated code-signing verdict inside the running amfid daemon, for one binary, once, and then exits. |
|
machexc
command
Command machexc demonstrates a Mach-exception crash reporter: it catches EXC_BAD_ACCESS at the task level, prints the faulting thread's full register state with a symbolized fault PC, then lets the crash proceed to Go's normal signal handling.
|
Command machexc demonstrates a Mach-exception crash reporter: it catches EXC_BAD_ACCESS at the task level, prints the faulting thread's full register state with a symbolized fault PC, then lets the crash proceed to Go's normal signal handling. |
|
machportkevent
command
Command machportkevent demonstrates waiting on Mach ports with kqueue's EVFILT_MACHPORT filter.
|
Command machportkevent demonstrates waiting on Mach ports with kqueue's EVFILT_MACHPORT filter. |
|
searchfs
command
Command searchfs searches a volume catalog with searchfs(2).
|
Command searchfs searches a volume catalog with searchfs(2). |
|
vmremap
command
vmremap demonstrates a shared mapping within the current Mach task.
|
vmremap demonstrates a shared mapping within the current Mach task. |
|
localauthentication
|
|
|
authcheck
command
Command authcheck reports which local authentication policies this machine can evaluate, using the LocalAuthentication framework.
|
Command authcheck reports which local authentication policies this machine can evaluate, using the LocalAuthentication framework. |
|
mach
|
|
|
modelservice
command
Command modelservice demonstrates one resident copy of model weights serving many client processes — the shape of Apple's own on-device model daemon, built from this repo's mach and iosurface bindings.
|
Command modelservice demonstrates one resident copy of model weights serving many client processes — the shape of Apple's own on-device model daemon, built from this repo's mach and iosurface bindings. |
|
metal
|
|
|
escaping-block-regression
command
escaping-block-regression demonstrates an ObjC API pattern that broke before applegen learned to skip `defer block.Release()` for escaping blocks.
|
escaping-block-regression demonstrates an ObjC API pattern that broke before applegen learned to skip `defer block.Release()` for escaping blocks. |
|
metal4-triangle
command
metal4-triangle renders a rotating triangle using the Metal 4 API.
|
metal4-triangle renders a rotating triangle using the Metal 4 API. |
|
surfacecompute
command
Command surfacecompute demonstrates GPU compute over an IOSurface shared between two Go processes with zero copies.
|
Command surfacecompute demonstrates GPU compute over an IOSurface shared between two Go processes with zero copies. |
|
metalperformanceshaders
|
|
|
copyallocator
command
Command copyallocator is a failing regression gate for two applegen defects that together make the MPS fallback copy allocator unusable from Go.
|
Command copyallocator is a failing regression gate for two applegen defects that together make the MPS fallback copy allocator unusable from Go. |
|
imagefilter
command
Command imagefilter runs MPSImageGaussianBlur over a Metal texture.
|
Command imagefilter runs MPSImageGaussianBlur over a Metal texture. |
|
matrixmultiply
command
Command matrixmultiply multiplies two matrices with MPSMatrixMultiplication.
|
Command matrixmultiply multiplies two matrices with MPSMatrixMultiplication. |
|
metalperformanceshadersgraph
|
|
|
customfunction
command
Command customfunction adds a custom function to an MPSGraph.
|
Command customfunction adds a custom function to an MPSGraph. |
|
executable
command
Command executable demonstrates the MPSGraphExecutable deployment path: compile a graph once, ship the compiled package, load it later without rebuilding the graph.
|
Command executable demonstrates the MPSGraphExecutable deployment path: compile a graph once, ship the compiled package, load it later without rebuilding the graph. |
|
mnistdraw
command
Command mnistdraw is an interactive version of Apple's "Training a Neural Network using MPS Graph" sample: draw a digit with the mouse and watch the network classify it as you draw.
|
Command mnistdraw is an interactive version of Apple's "Training a Neural Network using MPS Graph" sample: draw a digit with the mouse and watch the network classify it as you draw. |
|
mnisttrain
command
Command mnisttrain trains a small MNIST digit classifier with MPSGraph.
|
Command mnisttrain trains a small MNIST digit classifier with MPSGraph. |
|
mpsgraph
command
Command mpsgraph runs a small MLP forward pass on the GPU with MPSGraph.
|
Command mpsgraph runs a small MLP forward pass on the GPU with MPSGraph. |
|
naturallanguage
|
|
|
embedding
command
Command embedding computes word distances and nearest neighbors using Apple's NaturalLanguage word embeddings.
|
Command embedding computes word distances and nearest neighbors using Apple's NaturalLanguage word embeddings. |
|
ngrep
command
Command ngrep searches lines for semantic similarity to a query using Apple's NaturalLanguage embeddings — a neural alternative to grep.
|
Command ngrep searches lines for semantic similarity to a query using Apple's NaturalLanguage embeddings — a neural alternative to grep. |
|
nlp
command
Command nlp provides Unix-native text analysis using Apple's NaturalLanguage framework.
|
Command nlp provides Unix-native text analysis using Apple's NaturalLanguage framework. |
|
nsort
command
Command nsort sorts lines by semantic similarity using Apple's NaturalLanguage sentence embeddings — a neural alternative to Unix sort.
|
Command nsort sorts lines by semantic similarity using Apple's NaturalLanguage sentence embeddings — a neural alternative to Unix sort. |
|
network
|
|
|
netperfbench
command
Command netperfbench measures TCP echo latency and throughput over three transports so they can be compared on identical work:
|
Command netperfbench measures TCP echo latency and throughput over three transports so they can be compared on identical work: |
|
plaintcp
command
Command plaintcp configures cleartext TCP parameters from a block callback.
|
Command plaintcp configures cleartext TCP parameters from a block callback. |
|
txtrecord
command
Command txtrecord creates and reads a Network TXT record.
|
Command txtrecord creates and reads a Network TXT record. |
|
udpbatchbench
command
Command udpbatchbench measures the Darwin batched UDP datapath (sendmsg_x/recvmsg_x via x/udpbatch) against the one-syscall-per-datagram path every Go program uses today.
|
Command udpbatchbench measures the Darwin batched UDP datapath (sendmsg_x/recvmsg_x via x/udpbatch) against the one-syscall-per-datagram path every Go program uses today. |
|
networkextension
|
|
|
networkextension-filter-dns-provider-demo
command
Command networkextension-filter-dns-provider-demo exercises DNS proxy and content-filter provider callbacks without installing an extension.
|
Command networkextension-filter-dns-provider-demo exercises DNS proxy and content-filter provider callbacks without installing an extension. |
|
networkextension-flow-callback-demo
command
Command networkextension-flow-callback-demo exercises NetworkExtension flow/session callback block signatures without provider-owned flow objects.
|
Command networkextension-flow-callback-demo exercises NetworkExtension flow/session callback block signatures without provider-owned flow objects. |
|
networkextension-manager-config-demo
command
Command networkextension-manager-config-demo exercises local NetworkExtension manager objects without loading or saving preferences.
|
Command networkextension-manager-config-demo exercises local NetworkExtension manager objects without loading or saving preferences. |
|
networkextension-policy-config-demo
command
Command networkextension-policy-config-demo exercises local NetworkExtension policy/configuration objects without saving preferences.
|
Command networkextension-policy-config-demo exercises local NetworkExtension policy/configuration objects without saving preferences. |
|
networkextension-provider-callback-demo
command
Command networkextension-provider-callback-demo exercises provider-style NetworkExtension completion callbacks without installing an extension.
|
Command networkextension-provider-callback-demo exercises provider-style NetworkExtension completion callbacks without installing an extension. |
|
networkextension-provider-wrapper-demo
command
Command networkextension-provider-wrapper-demo exercises generated provider wrapper methods against local Objective-C callback objects.
|
Command networkextension-provider-wrapper-demo exercises generated provider wrapper methods against local Objective-C callback objects. |
|
networkextension-settings-demo
command
Command networkextension-settings-demo exercises local NetworkExtension settings objects without installing a Network Extension.
|
Command networkextension-settings-demo exercises local NetworkExtension settings objects without installing a Network Extension. |
|
networkextension-tcp-auth-demo
command
Command networkextension-tcp-auth-demo exercises NetworkExtension TCP authentication delegate callbacks without creating a connection.
|
Command networkextension-tcp-auth-demo exercises NetworkExtension TCP authentication delegate callbacks without creating a connection. |
|
networkextension-value-object-demo
command
Command networkextension-value-object-demo exercises local NetworkExtension value and state objects.
|
Command networkextension-value-object-demo exercises local NetworkExtension value and state objects. |
|
objc
|
|
|
exception-handler
command
Exception-handler demonstrates observing Objective-C exceptions from Go.
|
Exception-handler demonstrates observing Objective-C exceptions from Go. |
|
os
|
|
|
logdemo
command
Command logdemo exercises every capability of the x/oslog and x/signpost packages so the output can be inspected in Console.app or `log stream`.
|
Command logdemo exercises every capability of the x/oslog and x/signpost packages so the output can be inspected in Console.app or `log stream`. |
|
osdemo
command
Command osdemo exercises the generated os and oslog bindings from Go:
|
Command osdemo exercises the generated os and oslog bindings from Go: |
|
signpostweb
command
Command signpostweb serves HTTP and emits one os_signpost interval per request, making the Go server legible to Instruments.
|
Command signpostweb serves HTTP and emits one os_signpost interval per request, making the Go server legible to Instruments. |
|
oslog
|
|
|
logread
command
Command logread emits log entries at several levels and reads them back from the unified logging store.
|
Command logread emits log entries at several levels and reads them back from the unified logging store. |
|
pdfkit
|
|
|
pdfinfo
command
Command pdfinfo reports document metadata and per-page information for a PDF file using the PDFKit framework.
|
Command pdfinfo reports document metadata and per-page information for a PDF file using the PDFKit framework. |
|
rdma
|
|
|
rdmainfo
command
Command rdmainfo probes Apple's RDMA userspace bindings.
|
Command rdmainfo probes Apple's RDMA userspace bindings. |
|
rdmaperf
command
Command rdmaperf measures TCP and RDMA readiness paths.
|
Command rdmaperf measures TCP and RDMA readiness paths. |
|
screencapturekit
|
|
|
gpucompute
command
Command gpucompute applies a Metal luminance reduction to live ScreenCaptureKit frames.
|
Command gpucompute applies a Metal luminance reduction to live ScreenCaptureKit frames. |
|
screenshot
command
Command screenshot captures a screenshot of a display or window using the ScreenCaptureKit framework and saves it as a PNG file.
|
Command screenshot captures a screenshot of a display or window using the ScreenCaptureKit framework and saves it as a PNG file. |
|
streamframes
command
Command streamframes captures screen frames with SCStreamOutput.
|
Command streamframes captures screen frames with SCStreamOutput. |
|
windowlist
command
Command windowlist enumerates all windows, displays, and running applications using the ScreenCaptureKit framework and outputs the results as JSON.
|
Command windowlist enumerates all windows, displays, and running applications using the ScreenCaptureKit framework and outputs the results as JSON. |
|
security
|
|
|
auth-dialog
command
Command auth-dialog triggers the macOS authentication dialog using LocalAuthentication's LAContext.
|
Command auth-dialog triggers the macOS authentication dialog using LocalAuthentication's LAContext. |
|
keychain
command
Command keychain demonstrates macOS Security framework keychain operations using the generated security and corefoundation bindings.
|
Command keychain demonstrates macOS Security framework keychain operations using the generated security and corefoundation bindings. |
|
soundanalysis
|
|
|
listen
command
Command listen classifies the sounds in an audio file using the SoundAnalysis framework's built-in classifier, printing each result's time range and its top labels with confidence.
|
Command listen classifies the sounds in an audio file using the SoundAnalysis framework's built-in classifier, printing each result's time range and its top labels with confidence. |
|
spritekit
|
|
|
bounce
command
Command bounce shows a SpriteKit physics simulation in an AppKit window: colored sprites fall under gravity and bounce off the walls of the scene.
|
Command bounce shows a SpriteKit physics simulation in an AppKit window: colored sprites fall under gravity and bounce off the walls of the scene. |
|
systemconfiguration
|
|
|
reachability
command
Command reachability reports whether a host is reachable with the current network configuration, using the SystemConfiguration framework.
|
Command reachability reports whether a host is reachable with the current network configuration, using the SystemConfiguration framework. |
|
uniformtypeidentifiers
|
|
|
file-types
command
Command file-types shows a few common Uniform Type Identifier lookups.
|
Command file-types shows a few common Uniform Type Identifier lookups. |
|
typeid
command
Command typeid resolves Uniform Type Identifiers for file extensions, MIME types, and UTI strings.
|
Command typeid resolves Uniform Type Identifiers for file extensions, MIME types, and UTI strings. |
|
usernotifications
|
|
|
notify
command
Command notify requests notification authorization and schedules a local notification using the UserNotifications framework.
|
Command notify requests notification authorization and schedules a local notification using the UserNotifications framework. |
|
videotoolbox
|
|
|
codecs
command
Command codecs reports the video encoders VideoToolbox exposes on this machine, the codecs it can decode in hardware, and the properties an encoder supports for a given frame size.
|
Command codecs reports the video encoders VideoToolbox exposes on this machine, the codecs it can decode in hardware, and the properties an encoder supports for a given frame size. |
|
virtualization
|
|
|
vminfo
command
Command vminfo queries Apple Virtualization framework capabilities.
|
Command vminfo queries Apple Virtualization framework capabilities. |
|
vision
|
|
|
face-detect
command
Face-detect uses the Vision framework to detect faces in an image.
|
Face-detect uses the Vision framework to detect faces in an image. |
|
ocr
command
Command ocr extracts text from an image file using the Vision framework.
|
Command ocr extracts text from an image file using the Vision framework. |
|
redact
command
Command redact detects faces and text in an image with the Vision framework and writes a PNG copy with those regions obscured using Core Image.
|
Command redact detects faces and text in an image with the Vision framework and writes a PNG copy with those regions obscured using Core Image. |
|
screenctx
command
Command screenctx captures screen context by combining CGWindowListCopyWindowInfo with Vision OCR to produce an XML map of on-screen text attributed to the owning application.
|
Command screenctx captures screen context by combining CGWindowListCopyWindowInfo with Vision OCR to produce an XML map of on-screen text attributed to the owning application. |
|
vndetect
command
Command vndetect detects objects in images using the Vision framework.
|
Command vndetect detects objects in images using the Vision framework. |
|
vnocr
command
Command vnocr extracts text from images using the Vision framework.
|
Command vnocr extracts text from images using the Vision framework. |
|
webkit
|
|
|
minibrowser
command
Command minibrowser opens a window containing a WKWebView, loads a URL, and runs JavaScript in the page once the load finishes.
|
Command minibrowser opens a window containing a WKWebView, loads a URL, and runs JavaScript in the page once the load finishes. |
|
xpc
|
|
|
addclient
command
Command addclient calls the addservice XPC service.
|
Command addclient calls the addservice XPC service. |
|
addservice
command
Command addservice is an XPC service that adds two numbers.
|
Command addservice is an XPC service that adds two numbers. |
|
machdemo
command
Command machdemo is a runnable XPC round trip over a Mach service.
|
Command machdemo is a runnable XPC round trip over a Mach service. |
|
swiftinterop/goclient
command
Command goclient is the Go half of direction A: an xpc.Session talking to a Mach service served by Swift's XPCListener.
|
Command goclient is the Go half of direction A: an xpc.Session talking to a Mach service served by Swift's XPCListener. |
|
swiftinterop/goservice
command
Command goservice is the Go half of the Swift/Go XPC interoperability examples: a Mach-service listener that a Swift XPCSession client talks to.
|
Command goservice is the Go half of the Swift/Go XPC interoperability examples: a Mach-service listener that a Swift XPCSession client talks to. |
Click to show internal directories.
Click to hide internal directories.