Skip to content

Instantly share code, notes, and snippets.

View maxwindiff's full-sized avatar
🇭🇰

Max Ng maxwindiff

🇭🇰
View GitHub Profile
julia> Metal.code_llvm(load_store, Tuple{MtlDeviceArray{Float32}, MtlDeviceArray{Float32}})
; @ REPL[4]:1 within `load_store`
define void @julia_load_store_1697({}* nonnull %0, {}* nonnull %1) local_unnamed_addr #0 {
top:
%2 = alloca {}*, i32 2, align 8
; @ REPL[4]:2 within `load_store`
; ┌ @ /Users/kichi/.julia/dev/Metal/src/device/intrinsics/simd.jl:9 within `#simdgroup_load` @ /Users/kichi/.julia/dev/Metal/src/device/intrinsics/simd.jl:9 @ /Users/kichi/.julia/dev/Metal/src/device/intrinsics/simd.jl:9
; │┌ @ Base.jl:38 within `getproperty`
%3 = getelementptr inbounds {}*, {}** %2, i32 0
store {}* %0, {}** %3, align 8
{
"type": "g2c",
"data": {
"gameStateMessage": {
"type": "GameStateType_Diff",
"players": [
{
"lifeTotal": 20,
"systemSeatNumber": 1,
"maxHandSize": 7,
$ jq '.[] | . as $parent | .cities[] | $parent.provinceName + "," + .cityName + "," + (.confirmedCount | tostring)'
[
{
"provinceName": "Guangdong",
"cities": [
{
"cityName": "Guangzhou",
"confirmedCount": 10
},
{