Live data from Hacker News

Viewing profile — colinmcd

colinmcd

HN member
Joined
Tue, Aug 27, 2013, 4:15 PM UTC
HN karma
1,410
Public activity
216 items

About colinmcd

Creator of Zod Formerly at EdgeDB and Bun Ride-or-die TypeScripter

Recent public activity

  1. story
  2. story
  3. story
  4. comment
    Comment #48669502

    You can continue using pnpm if you want. Nub is a la carte. Nub's runtime or script runner functionality will work with any package manager that uses node_modules (actually Yarn Pn…

  5. comment
    Comment #48668200

    Exactly this. TypeScript also ended up being many users' entrypoint to JSX, decorators, etc as it became a catchall transpiler surface so respecting tsconfig is vital here (Node un…

  6. comment
    Comment #48666446

    Indeed, Nub intentionally introduces no Nub-specific APIs: no Nub global, no nub: prefixed built-in modules, no Nub-named config file / lockfile, no "nub" field in package.json, no…

  7. comment
    Comment #48664641

    Certainly. We're using subtrees now instead of submodules, lets avoids some tricky worktree/submodule interactions during local dev. We've already pulled changes since that PR land…

  8. comment
    Comment #48664558

    EDIT: Sorry, I understand you're talking about package.json. Would be fun to try to get the Node & package mgmt teams aligned to add support for comments in the package.json. Bun t…

  9. comment
    Comment #48664172

    I almost called it "oi" but I'm not sure anyone would have gotten the joke :P

  10. comment
    Comment #48664127

    Right now, you should use Nub on the backend if you are relying on its augmentations. If you specifically want to disable Nub's augmentations (so you have a guarantee that your app…

  11. comment
    Comment #48663218

    We use this to register our preload purely for performance reasons. In this and many other cases CommonJS is still faster than ESM. Using --require is about 0.5ms overhead vs 4.6ms…

  12. comment
    Comment #48662444

    It entered public beta last week, but just getting on HN now.

  13. comment
    Comment #48662432

    Coming very soon!

  14. comment
    Comment #48661393

    Thanks :) Highly recommend clicking the link too!

  15. comment
    Comment #48661387

    Yep, full support on macOS, Linux, Windows. No official image yet (I'll start on this now) but you can get started with something like this. FROM node:26-slim RUN npm i -g @nubjs/n…

  16. comment
    Comment #48661271

    Cloudflare Workers is a different runtime and has its own toolchain around it. Nub could theoretically support it when executing files (spawn `wrangler dev` instead of `node` if wr…

  17. comment
  18. story
    Show HN: Nub – A Bun-like all-in-one toolkit for Node.js

    Colin here, creator of Nub. I’ve had the general shape of this in mind for years. Nub runs your code with stock `node`, augmented with a `--require` preload hook[0] that adds a tra…

  19. story
  20. story
  21. comment
    Comment #44044693

    As you allude to: your aliased "zod-next" dependency wouldn't be able to satisfy the requirements of any packages with a peer dep on Zod. But this approach has a more fundamental f…

  22. comment
    Comment #44044591

    It won't typecheck, which is good in this case, because as you say that's a very bad idea :)

  23. comment
    Comment #44044539

    I understand this as a knee-jerk reaction. I didn't do this lightly. > Perhaps publish a 4.x along with the 3.x stuff You have some misconceptions about how npm works. Unfortunatel…

  24. comment
    Comment #44044474

    No, that kind of interop, especially static interop (assignability), would've been totally unworkable. Despite the length of the changelog, there are very few breaking changes to t…

  25. comment
    Comment #44038742

    Yes! Zod now differentiates between `z.string().optional()` and `z.union([z.string(), z.undefined()])` (as in TypeScript itself). Details: https://x.com/colinhacks/status/191929150…