Skip to content

Instantly share code, notes, and snippets.

View Fishrock123's full-sized avatar
💭
True AI would be insulted by calling LLMs "AI".

Jeremiah Senkpiel Fishrock123

💭
True AI would be insulted by calling LLMs "AI".
View GitHub Profile
@Fishrock123
Fishrock123 / readme.md
Last active May 7, 2018 21:18
unswallowable thenable

an unswallowable thenable

i presently make no claims that this is actually a good idea

WARNING: may not work correctly with async functions

@Fishrock123
Fishrock123 / master.profile
Created September 17, 2018 17:09
Node.js --prof of master @ ab5f789e3f3f726702b86bc7b9661895780d4d12 for benchmark/timers/timers-timeout-pooled.js n=10000000
Statistical profiling result from isolate-1-master-v8.log, (5687 ticks, 37 unaccounted, 0 excluded).
[Shared libraries]:
ticks total nonlib name
8 0.1% /usr/lib/system/libsystem_pthread.dylib
5 0.1% /usr/lib/system/libsystem_malloc.dylib
3 0.1% /usr/lib/libc++abi.dylib
[JavaScript]:
ticks total nonlib name
@Fishrock123
Fishrock123 / patch.profile
Created September 17, 2018 17:10
Node.js --prof of https://github.com/nodejs/node/pull/22842 @ 3fdbbb02caf5b6038e56f687aaf4089c1db096a6 for benchmark/timers/timers-timeout-pooled.js n=10000000
Statistical profiling result from isolate-2-patch-v8.log, (6806 ticks, 37 unaccounted, 0 excluded).
[Shared libraries]:
ticks total nonlib name
10 0.1% /usr/lib/system/libsystem_pthread.dylib
3 0.0% /usr/lib/libc++abi.dylib
1 0.0% /usr/lib/system/libsystem_platform.dylib
[JavaScript]:
ticks total nonlib name
@Fishrock123
Fishrock123 / iterator-break-yield.js
Created August 28, 2019 23:05
breaking an iteratable with yields in finally
function* f() {
try {
yield 1
yield 2
yield 3
} finally {
yield 4
yield 5
}
}
@Fishrock123
Fishrock123 / async-iterator-break-yield.js
Created August 28, 2019 23:06
async-iterator-break-yield.js
async function* f() {
try {
yield Promise.resolve(1)
yield Promise.resolve(2)
yield Promise.resolve(3)
} finally {
console.log('inside finally')
// yield Promise.resolve(4)
console.log('about to reject from finally')
yield new Promise((res, rej) => {
@Fishrock123
Fishrock123 / iterator-break-yield-not-done.js
Created August 28, 2019 23:09
iterator-break-yield-not-done.js
function* f() {
try {
yield 1
yield 2
yield 3
} finally {
yield 4
yield 5
}
}
@Fishrock123
Fishrock123 / interator-break-finally-recursion.js
Created August 28, 2019 23:28
interator-break-finally-recursion.js
function* f() {
try {
yield 1
yield 2
yield 3
} finally {
yield* f()
}
}
@Fishrock123
Fishrock123 / iterators-break-recursion-loop.js
Created August 29, 2019 00:22
iterators-break-recursion-loop.js
function* f() {
try {
yield 1
yield 2
yield 3
} finally {
yield* f()
}
}
@Fishrock123
Fishrock123 / cargo-json-output.json
Created April 27, 2020 19:42
`cargo doc` run on tide @ 28e5904 (0.8.0)
{
"reason":"compiler-message",
"package_id":"tide 0.8.0 (path+file:///Z:/Rust-Projects/tide)",
"target":{
"kind":[
"lib"
],
"crate_types":[
"lib"
],
@Fishrock123
Fishrock123 / Eaze_rust_lint_rules.rs
Last active July 12, 2022 20:48
Eaze rustc check & clippy lint rules
#![forbid(unsafe_code)]
#![deny(future_incompatible)]
#![warn(
missing_debug_implementations,
rust_2018_idioms,
trivial_casts,
unused_qualifications
)]
#![doc(test(attr(deny(rust_2018_idioms, warnings))))]
#![doc(test(attr(allow(unused_extern_crates, unused_variables))))]