Explore >> Select a destination


You are here

gcc.godbolt.org
| | zig.godbolt.org
0.2 parsecs away

Travel
| | const std = @import("std"); const testing = std.testing; const utfValidator = struct { const State = enum(u6) { ok, one, two, three, fail, }; fn step(char: u8, state: State) State { return switch (state) { .ok => switch (char) { 0x00...0x7f => .ok, 0xc0...0xdf => .one, 0xe0...0xef => .two, 0xf0...0xf7 => .three, else => .fail, }, .one => switch (char) { 0x80...0xbf => .ok, else => .fail, }, .two => switch (char) { 0x80...0xbf => .one, else => .fail, }, .three => switch (char) { 0x80...0xbf => .two, else => .fail, }, .fail => .fail, }; } }; fn pext(val: u64, mask: u64) callconv(.Inline) u64 { return asm("pext %[m],%[v],%[r]":[r] "=r" (-> u64) : [v] "r" (val), [m] "r" (mask)); } pub fn is_utf8(data: []const u8) bool { const table1 = comptime init: { var tmp = ...
| | danilafe.com
7.0 parsecs away

Travel
| | [AI summary] The author discusses transitioning from a custom-built blog to a static site generator for improved efficiency and features like version control and code integration.
| | rust.godbolt.org
0.2 parsecs away

Travel
| | pub fn mid(data: &[i32]) -> Option { if data.is_empty() { return None; } return Some(data[data.len()/2]); }
| | ericlathrop.com
13.3 parsecs away

Travel
| This weekend I gave a presentation on the Jekyll static site generator at MOSSCon.