hi
- User
hi
- Assistant
Hello! How can I assist you today?
- User
thoughts on this? import { Observable, Executable } from "../Kinds/Kinds";
type Noop = null | undefined | void;
type Hooks = | Observable<void, any, Function> | Executable<E | void, unknown> | Noop;
const Render = (thunk: () => E, hooks: Hooks[]): E | never => { let res: E;
try { res = thunk(); } catch (err) { console.error(err); return void 0 as never; }
let executables: Executable<E | void, unknown>[] = []; let unsubs: Function[] = [];
const CLEANUP = () => { for (let i = 0; i < unsubs.length; i++) unsubs[i]!(); res = void 0 as never; executables = void 0 as never; unsubs = void 0 as never; hooks = void 0 as never; thunk = void 0 as never; };
const DISCONNECED = () => res instanceof Node && !res.isConnected;
const RUN_EFFECTS = (res: E) => { try { for (let i = 0; i < executables.length; i++) executables[i]?.ex(res); if (DISCONNECED()) CLEANUP(); } catch (err) { console.error(err); } };
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.