Skip to content

Instantly share code, notes, and snippets.

View bokuweb's full-sized avatar
👾
Working from home

bokuweb bokuweb

👾
Working from home
View GitHub Profile
@kripken
kripken / NonNullableLocals.markdown
Last active July 26, 2022 07:53
Options for Non-Nullable Locals in Wasm GC

Options for Non-Nullable Locals in Wasm GC

This document attempts to summarize the current state of discussions around non-nullable locals in Wasm GC, as of late June 2022. To do so I re-read in their entirety the main thread on this topic as well as adjacent ones, and this document is an attempt to compare the main options being discussed and their tradeoffs, with links to the relevant parts of those discussions. This is far from a perfect document, in particular because I do not completely grasp some of the more subtle points being debated. But hopefully this document is helpful as a summary of where we are at a high level. Please let me know if I missed or misunderstood anything!

Background (that might be mostly useful for people not already involved in the discussions): Why do we want non-nullabile locals in wasm at all? In theo

@ableasdale
ableasdale / v8.md
Last active August 26, 2021 01:02 — forked from kevincennis/v8.md
V8 Installation and d8 shell usage

Installing V8 on a Mac

My Troubleshooting Notes

I had issues which I initially believed were related to python 3 but may have been XCode issues - I got it to work by doing all of these things but I'm not sure what was actually necessary - so I'll put all the steps in that I can recall.

Ultimately, I was seeing python stack traces when running tools/dev/v8gen.py x64.optdebug; the resulting stack trace looked like this:

tools/dev/v8gen.py x64.optdebug
export const h=(t,p,...c)=>({t,p,c,k:p&&p.key})
export const render=(e,d,t=d.t||(d.t={}),p,r,c,m,y)=>
// arrays
e.map?e.map((e,p)=>render(e,d,t.o&&t.o[p])):
// components
e.t.call?(e.i=render((render.c=e).t(Object.assign({children:e.c},e.p),e.s=t.s||{},t=>
render(Object.assign(e.s,t)&&e,d,e)),t.i||d,t&&t.i||{}),d.t=t=e):(
// create notes
m=t.d||(e.t?document.createElement(e.t):new Text(e.p)),
// diff props
@qnighy
qnighy / rust-patterns.md
Last active March 6, 2025 19:03
Rustのパターンっぽいやつメモ

パターンとはその言語が抽象化できなかった敗北の歴史である。 しかしどんなに優れた言語であってもあらゆる繰り返しに勝てるわけではない。 人は必ずメタ繰り返しを欲するからだ。 そしてそれはRustも例外ではない。

ここでは、OOPでも知られているパターンよりも、Rustに特有のパターンを思いつく限りまとめてみた。名前は適当。

  • crate splitting
    • でかいcrateを分割して、見通しを良くする・再コンパイルの分量を削減する・並列コンパイルを可能にする
  • 親玉crate(全てにdependする)と殿crate(全てにdependされる)があることが多いので、だいたい束みたいな形になる。

良いswagger documentについて

(良いは概ねstrictの意味。v2.0,v3.0どちらでも通用する話)

  • 必ずコード生成によってコードとドキュメントの同期を取る
  • required オプションはしっかり付ける
  • required オプションを付けた場合には、必ず additionalProperties:false を付ける
  • (新規に作るなら)値にnullが含まれるフィールドは存在しない(requiredなしのundefined的なものをnullとして扱う)
  • (既存のものに当てはめるなら)諦めてx-nullable(v2.0),nullable(v3.0)を使う
@okohs
okohs / whitelist.md
Last active September 7, 2019 22:57
20180122_定時前に帰宅できた企業

はじめに

書き方

該当する各社の対応欄に企業名を書いてください。備考があれば適宜カッコ書きしてください。

目的

  • 定時前に帰宅させてくれるホワイトな会社のりすとを気軽に作りたい
  • 定時前に帰宅させてくれるホワイトな会社がホワイトアピールできる場があれば良いな

@tenpoku1000
tenpoku1000 / AC_2017-12-02.md
Last active April 19, 2024 10:10
2 年以上かけて自作 OS 開発のための資料を集めた話

2 年以上かけて自作 OS 開発のための資料を集めた話

2024/04/19 更新

この記事は、自作OS Advent Calendar 2017の 12/2 の記事として書かれました。

2015 年以降に収集・整理した資料

ブックマーク(サイズは 10MB 超)の収集を先行させ、それを整理することで Gist にメモを書いたり、非公開のテキストファイルにメモをするなどしました。

version: "2"
services:
node:
build:
context: ./
dockerfile: docker/node/Dockerfile
volumes:
- ./client:/app/client
- ./yarn.lock:/app/yarn.lock
- node_modules:/app/node_modules