Sign in

Tim Smart

@timsmart.co
223 followers 8 following 9 posts

I hack on effect.website

PostsRepliesMedia
Tim Smart @timsmart.co · 01/09/2026
I remembered my password.
120
Tim Smart @timsmart.co · 23/12/2024
🎉
041
Tim Smart @timsmart.co · 17/12/2024
I'm using nix instead of homebrew :)
020
Tim Smart @timsmart.co · 16/12/2024
🤔
340
Tim Smart @timsmart.co · 05/12/2024
gist.github.com/tim-smart/ee...
gist.github.com
read-lines-reverse.ts
GitHub Gist: instantly share code, notes, and snippets.
110
Tim Smart @timsmart.co · 05/12/2024
Will need to do a bit more work for the "line by line" part.
110
Tim Smart @timsmart.co · 05/12/2024
import * as Fs from "node:fs/promises"

export async function* readReverse(path: string, chunkSize = 1024) {
  const file = await Fs.open(path, "r")
  const stat = await file.stat()

  let pos = stat.size
  while (true) {
    pos = Math.max(0, pos - chunkSize)

    const chunk = Buffer.alloc(chunkSize)
    const result = await file.read(chunk, 0, chunkSize, pos)
    yield chunk.subarray(0, result.bytesRead).reverse()

    if (pos === 0) break
  }
}
230
Tim Smart @timsmart.co · 02/12/2024
@effect-ts.bsky.social 3.11 has been released! Includes features like Effect.fn (auto-traced functions with better stack traces), Micro improvements and more. Blog post is here: effect.website/blog/release...
effect.website
Effect 3.11 (Release)
092
Tim Smart @timsmart.co · 27/11/2024
@attilavecerek.bsky.social is a great dev - was really interesting to hear the challenges his team faces at Zendesk!
041
Reposted by Tim Smart
Effect | TypeScript for the AI Era @effect-ts.bsky.social · 26/11/2024
How Zendesk incrementally adopted Effect in a polyglot environment with a large codebase. Cause & Effect Podcast with Attila Večerek – hosted by @schickling.dev Give it a listen and let us know what you think about their approach! www.youtube.com/watch?v=rNAq...
youtube.com
Adopting Effect at Zendesk with Attila Večerek | Cause & Effect #1
YouTube video by Effect | TypeScript at Scale
092
Reposted by Tim Smart
Effect | TypeScript for the AI Era @effect-ts.bsky.social · 10/11/2024
Effect Development: Second revision of HTTP API By Tim Smart @timsmart.co www.youtube.com/watch?v=Opuf...
youtube.com
Effect Development: Second revision of HTTP API
YouTube video by Effect | TypeScript at Scale
062