Skip to content

Instantly share code, notes, and snippets.

Avatar

Taegyun Kim taegyunkim

View GitHub Profile
@taegyunkim
taegyunkim / monad.hs
Last active Apr 3, 2021
monad in 5 min
View monad.hs
-- Import this for fromJust
import Data.Maybe
data Expr = Val Int | Div Expr Expr
-- Example expressions
one = Val 1
two = Div (Val 6) (Div (Val 3) (Val 1))
three = Div (Val 6) (Val 2)
View gist:f8e8b8142a7ff4fb36fa0332d5729ffd
...
Fixing bazel-out/wasm-fastbuild-ST-629647e12a78/bin/external/boost/_objs/container/global_resource.d
ERROR: /private/var/tmp/_bazel_taegyunkim/f4d9c414e12983e771160994f3d3fd11/external/boost/BUILD.bazel:518:14: undeclared inclusion(s) in rule '@boost//:container':
this rule is missing dependency declarations for the following files included by 'external/boost/libs/container/src/dlmalloc_ext_2_8_6.c':
'/private/var/tmp/_bazel_taegyunkim/f4d9c414e12983e771160994f3d3fd11/external/boost/libs/container/src/dlmalloc_ext_2_8_6.c'
'/private/var/tmp/_bazel_taegyunkim/f4d9c414e12983e771160994f3d3fd11/external/boost/libs/container/src/dlmalloc_2_8_6.c'
Adding directories to PATH:
PATH += /private/var/tmp/_bazel_taegyunkim/f4d9c414e12983e771160994f3d3fd11/external/emscripten_toolchain
PATH += /private/var/tmp/_bazel_taegyunkim/f4d9c414e12983e771160994f3d3fd11/external/emscripten_toolchain/upstream/emscripten
PATH += /private/var/tmp/_bazel_taegyunkim/f4d9c414e12983e771160994f3d3fd11/external/emscripten_toolchain/
View istioctl upgrade --force
Control Plane - citadel pod - istio-citadel-bc69f964d-5gq5d - version: 1.4.6
Control Plane - galley pod - istio-galley-57d74676f6-xkqhb - version: 1.4.6
Control Plane - ingressgateway pod - istio-ingressgateway-6855988795-9dlnk - version: 1.4.6
Control Plane - pilot pod - istio-pilot-b6866b4d9-qqzjc - version: 1.4.6
Control Plane - policy pod - istio-policy-698f74bc98-clj7d - version: 1.4.6
Control Plane - sidecar-injector pod - istio-sidecar-injector-d5485f495-xvt2c - version: 1.4.6
Control Plane - telemetry pod - istio-telemetry-58769bf595-htrtf - version: 1.4.6
Upgrade version check passed: 1.4.6 -> 1.5.2.
View gist:8d45175554cf81729c63032cd3258dca
$> cargo run --release -- ./examples/use-local.wat
   Compiling rocinante v0.1.0 (/mnt/c/Users/ktaeg/Workspace/rocinante)
    Finished release [optimized] target(s) in 5.27s
     Running `target/release/rocinante ./examples/use-local.wat`
(module
  (type (;0;) (func (param i32) (result i32)))
  (func $use-local (type 0) (param i32) (result i32)
    (local i32)
    local.get 0
View lu.wat
(module
(type (;0;) (func (param i32) (result i32)))
(type (;1;) (func (param i32 i32 i32) (result i32)))
(type (;2;) (func (param i32 i32) (result i32)))
(type (;3;) (func (param i32)))
(type (;4;) (func (param i32 i32 i32)))
(type (;5;) (func (result i32)))
(type (;6;) (func (param i32 i32)))
(type (;7;) (func))
(type (;8;) (func (param i32 f64 i32 i32 i32 i32) (result i32)))
View flame4.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taegyunkim
taegyunkim / flame3.svg
Last active Feb 17, 2020
CPU time analysis for `cargo run --release ./examples/hackers_delight/p7.wat` @ b4c89610
View flame3.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taegyunkim
taegyunkim / flame2.svg
Last active Feb 17, 2020
CPU time analysis for `cargo run --release ./examples/hackers_delight/p7.wat` @ b4c89610
View flame2.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taegyunkim
taegyunkim / flame.svg
Last active Feb 17, 2020
Perf analysis of ./examples/hackers_delight/p7.wat at 15b989c
View flame.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taegyunkim
taegyunkim / flame.svg
Last active Feb 14, 2020
CPU time analysis for `cargo run --release ./examples/hackers_delight/p1.wat` @ b4c89610
View flame.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.