Better HN
topnewbestaskshowjobs
Log inSign up

stephenblum

24 karma · joined Dec 6, 2013 (12y ago) · 47 submissions

www.pubnub.com
Submissions

1.

Three years migrating latency-sensitive services to Rust and one Tokio failure(reddit.com ↗)

2 points · by stephenblum · 1mo ago · discuss

comment 2mo ago · link · parent

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.

3.

We Rebuilt Jev's API on an Open Model and Used It to Play Doom(blocks.ai ↗)

2 points · by stephenblum · 2mo ago · 1 comment

comment 2mo ago · link · parent

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

comment 2mo ago · link · parent

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

comment 2mo ago · link · parent

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

comment 2mo ago · link · parent

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

8.

How AI tool calling works (40 lines of vanilla JavaScript)(buttercup.sh ↗)

15 points · by stephenblum · 2mo ago · 9 comments

comment 2mo ago · link · parent

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.

10.

WebLLM: Run a language model in the browser on WebGPU, Lesson 1(buttercup.sh ↗)

1 points · by stephenblum · 2mo ago · 1 comment

comment 2mo ago · link · parent

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

12.

Show HN: Building AI agents client-side JavaScript

1 points · by stephenblum · 2mo ago · 2 comments

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

Using native google sheets equations, you can build your own neural network. Google Spreadsheet: https://docs.google.com/spreadsheets/d/1VS1kn0zXbedx7JEJu1ui...

comment 3y ago · link · parent

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.

18.

HTTP/3 and QUIC: The Connection ID(pubnub.com ↗)

6 points · by stephenblum · 3y ago · 1 comment

comment 3y ago · link · parent

WFH is happiness. I want that. And I want that for my team.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Challenges with Kubernetes: 1. High Costs due to unoptimized initial deployments. 2. Steep learning curve of Kubernetes. 3. Tuning autoscaling for stability and efficiency.

22.

Three challenges to be aware of with Kubernetes(pubnub.com ↗)

2 points · by stephenblum · 3y ago · 3 comments

comment 3y ago · link · parent

Conversation from reddit thread: https://www.reddit.com/r/Python/comments/15i5je7/unlocking_p...

comment 3y ago · link · parent

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.

25.

Unlocking Performance: CPython 3.12 Global Interpreter Lock(pubnub.com ↗)

3 points · by stephenblum · 3y ago · 2 comments

comment 3y ago · link · parent

If you're considering upgrading your Python the the latest runtime, you may get the results we saw as well.

27.

We saw 2x Performance After Migrating Python 2 to Python 3(pubnub.com ↗)

5 points · by stephenblum · 3y ago · 1 comment

12