News for hackers. Stuff that matters.

me_vinayakakv

Funnily, I had a backend function that used `window`, which was then sent to frontend in this way. I think the project's tsconfig `lib` included `dom` for it to work.

Overall a nice technique!

Re:Node.js adds experimental support for TypeScript on Wednesday July 24, 2024 @11:55PM (#41064557)
Nice to see Node.js getting parity on this with Deno and Bun
Vercel AI SDK[1] shines in this aspect in JS ecosystem.

They have the concept of providers [2] and switching between them is easy as changing parameters of a function[3]

[1]:https://sdk.vercel.ai/docs/introduction

[2]: https://sdk.vercel.ai/docs/foundations/providers-and-models

[3]: https://sdk.vercel.ai/docs/ai-sdk-core/overview#ai-sdk-core

Re:Is there a BNF grammar of the TeX language? (2010) on Sunday June 09, 2024 @11:21AM (#40625033)
Typst[1] is another tool which implements document generation from the ground up.

Zerodha had a great article [2] how they migrated from LaTeX based pdf generation to Typst, which ended up saving time and compute.

[1]: https://typst.app/ [2]: https://zerodha.tech/blog/1-5-million-pdfs-in-25-minutes/

Re:GPT-4o is consistently hallucinating on Saturday June 01, 2024 @03:35AM (#40543682)
I am using GPT 4o and have observed both 1 and 2.

Based on a tweet in X[1], I had to add "I REPEAT" to the instruction to get the model to not to ignore instructions.

[1]: https://x.com/btibor91/status/1796077902959640893