News for hackers. Stuff that matters.

stephenblum

TypeSafe AI's Jev turns unstructured input into typed decisions and probabilities. We rebuilt the API with an open model, reached 113ms median latency on an M4 Mac, and used it to play Doom.
Re:How AI tool calling works (40 lines of vanilla JavaScript) on Tuesday September 15, 2026 @03:49PM (#49717924)
nice! like HTML tags. I remember seeing this back with meta Llama 2. the <|start_header_id|>assistant<|end_header_id|> style. And [TOOL_CALLS] ... [/TOOL_CALLS] style with Mistral
Re:How AI tool calling works (40 lines of vanilla JavaScript) on Tuesday September 15, 2026 @03:45PM (#49717878)
Yes! You saw it immediately. Article was written by Claude. It has a distinct cadence that matches all the way through writing. It's the same in the CLI claude code. I'll make sure the upcoming lesson will be less ai generated text. I usually like to focus on writing the most read parts. Like the intro and core focus of the article
Re:How AI tool calling works (40 lines of vanilla JavaScript) on Tuesday September 15, 2026 @03:44PM (#49717852)
You a are right as The article doesn't mention KV cache. Also, yes the writing is slop, and does not mention the LLM special tokens. Only discusses the use through the OpenAI-style JSON wrapper that allows you to define the schema of a tool call in JSON. For most of the audience, they are looking to build AI agents, and the high-level tool calling interface is what they would be using
Re:How AI tool calling works (40 lines of vanilla JavaScript) on Tuesday September 15, 2026 @03:41PM (#49717815)
Yes this is true, you even got the model correct. I relied too much on Claude this time. I'm starting to work on the next AI agent lesson this week. I'll do better on the upcoming lesson. The next lesson is A2A focused
Early to be using this technology for coding in the browser. Our consumer devices are underpowered. It is fun to see how far we can take it today. Here is the walkthrough for running LLMs client-side with WebLLM using WebGPU. Initializing and using @mlc-ai/web-llm with model downloads, caching, and progress tracking. Using the streaming completions sent to pre element with zero network calls after it is loaded. Also handling WebGPU memory limits. Includes code blocks and an end-to-end video walkthrough.
Re:Show HN: Building AI agents client-side JavaScript on Thursday September 03, 2026 @06:14PM (#49557870)
that is the strongest point I've heard. who would this be for? Replit, Bolt.new and Lovable are mostly-in browser vibe code engines. Target audience would be for a free local version alternatives. Though maybe that isn't something that anyone needs.

The original intent for this project is for learning how to build agents, and finding what are the limits in the browser. Especially now that we have WebLLM. Maybe we can find a use for it with local agents

Show HN: Building AI agents client-side JavaScript

Hey HN, most agent systems default to server-side Python inside containers and chain frameworks. I wanted to see how far we could push agent in the browser with vanilla JavaScript https://buttercup.shThe reason this is interesting is because agent loops in the browser keeps infrastructure costs low. No need for proxy or API calls. And ollama/vLLM can be used for 100% offline. Also WebLLM for...

( Read More... | 2 comments | on HN )
Re:I Am So Sick of Leetcode-Style Interviews on Wednesday June 05, 2024 @01:49PM (#40588058)
You are right, there's not enough time to filter a bad hire. Not enough time to fully vet anyone during an interview. We can work a challenge together to see how you work collaboratively
Re:I Am So Sick of Leetcode-Style Interviews on Wednesday June 05, 2024 @01:43PM (#40587978)
Interviews cover collaboration compatibility. Not enough time to quiz you on tech knowledge. Leetcode-style interview represents your ability to work a problem collaboratively with a team
You made real-life Clippy! for the Mac. This would be great to be for other mac apps too. Add context of current running apps.
Re: on Tuesday November 28, 2023 @01:51PM (#38449612)
Using native google sheets equations, you can build your own neural network. Google Spreadsheet: https://docs.google.com/spreadsheets/d/1VS1kn0zXbedx7JEJu1ui...
Re:HTTP/3 and QUIC: The Connection ID on Friday August 11, 2023 @02:07PM (#37091837)
HTTP/3 maintains a unique connection ID through the QUIC protocol. The connection ID is not dependent the device's IP address. This allows the connectivity to remain persistent even as users switch between different networks such as 5G and Wi-Fi. In a way you can consider this as a "connectionless" session. The session isn't tied between two IP addresses.
WFH is happiness. I want that. And I want that for my team.
Re:Three challenges to be aware of with Kubernetes on Tuesday August 08, 2023 @01:43PM (#37052803)
This is problem for our planet. Carbon emissions are high.

Here's our current CPU Utilization. https://images.ctfassets.net/3prze68gbwl1/1wy7lTmXHA1liIlcMW...

We're paying AWS for servers that remain hot that we don't use effectively.

Re:Three challenges to be aware of with Kubernetes on Tuesday August 08, 2023 @01:35PM (#37052705)
Challenges with Kubernetes: 1. High Costs due to unoptimized initial deployments. 2. Steep learning curve of Kubernetes. 3. Tuning autoscaling for stability and efficiency.
I was initially excited about the possibility of disabling the Global Interpreter Lock (GIL) in Python 3.12, as it promised to enable new opportunities for performance gains. It's true, however we have so many options already! Disabling the GIL would only allow for the use of threading patterns and threads within Python, which I am not a fan of this programming pattern. My preferred method for achieving high concurrency and efficient programs is to use multiple processes with message passing.
If you're considering upgrading your Python the the latest runtime, you may get the results we saw as well.
Re:Dashcam JavaScript Debugging Network on Wednesday July 26, 2023 @02:37PM (#36882710)
This is a new way to provide even more detail debugging javascript app. We show how to screen record and get network traffic for your js app.

Older »