Visually described as textual code when needed, but aimed as graphical code for mobile touch or spatial 3d environments.
The first expression type matches traditional if..else
or a ? : b
.
____________________________ __ | |
/ [__ZL__] [__ZR__] \ | | |
/ [__ TL __] [__ TR __] \ | Front Triggers | |
__/________________________________\__ __| | |
/ _ \ | | |
/ /\ __ (N) \ | | |
/ || __ |MO| __ _ _ \ | Main Pad | |
| <===DP===> |SE| |ST| (W) -|- (E) | | | |
\ || ___ ___ _ / | | |
/\ \/ / \ / \ (S) /\ __| |
(module | |
(type (;0;) (func (param i32 i32) (result i32))) | |
(func $add (type 0) (param i32 i32) (result i32) | |
local.get 1 | |
local.get 0 | |
i32.add) | |
(table (;0;) 1 1 funcref) | |
(memory (;0;) 2) | |
(global (;0;) (mut i32) (i32.const 66560)) | |
(export "memory" (memory 0)) |
const std = @import("std"); | |
const File = std.fs.File; | |
const InputEvent = packed struct { | |
sec: u64, | |
usec: u64, | |
type: u16, | |
code: u16, | |
value: i32, | |
}; |
β’β‘β β‘β β‘β β‘β β‘β β‘β£ | |
π Emojis πΆ | |
β₯β‘β β‘β β‘β β‘β β‘β β‘β€ | |
ββ β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β | |
π π π€ π πΏ π© | |
π€‘ πΉ πΊ π» π½ πΎ π€ | |
π π πΊ πΎ π¦ π | |
ββ β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β‘β β | |
ββββββββββββββββ |
I hereby claim:
To claim this, I am signing this object:
I've designed a lot of RPC protocols in my career. One pattern that's worked well basically goes as follows:
// Client calls: print('Hello World\n')
-> [1, "print", "Hello World!\n"]
// Server sends return value (or lack of return vvalue)
<- [-1]
// Client calls: add(1, 2)
-> [2, "add", 1, 2]
local ffi = require 'ffi' | |
local bit = require 'bit' | |
local bxor = bit.bxor | |
local rol = bit.rol | |
local lshift = bit.lshift | |
local band = bit.band | |
local bor = bit.bor | |
local function gimli(state) | |
for round = 24,1,-1 do |
var neopixel = require("neopixel"); | |
var pin = D14; | |
var count = 16*16; | |
var pixels = new Uint8Array(count * 3); | |
function rgb(o, r, g, b) { | |
pixels[o] = g; | |
pixels[o + 1] = r; | |
pixels[o + 2] = b; |