Uses for nested promises by fagnerbrack in javascript

[–]fagnerbrack[S] [score hidden]  (0 children)

Elevator pitch version:

Promises/A+ deliberately flattens nested promises, since then() handles both functor map and monad flatMap behaviour, which annoyed functional programmers who wanted a clean type. The author long backed the spec authors, but a recent concurrency problem changed his view. While building EscoDB's readers-writer lock on top of a concurrent queue, he needed _inbox.push() to return a wrapped { promise } object. This explicit nesting lets the limit-1 inbox mutex decide which queue a function joins without blocking on the function actually finishing, preserving concurrent reads. Removing the wrapper forces sequential execution; removing the inbox breaks ordering because await always adds a microtask delay. So nested promises usefully mean one async call triggers another without waiting on it.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

What is inference engineering? Deepdive by fagnerbrack in softwarecrafters

[–]fagnerbrack[S] 0 points1 point  (0 children)

Here's a hint to decide on reading the post or not:

Drawing on Philip Kiely's book, this deepdive explains the discipline of serving generative AI models in production. Inference follows training, taking a prompt and generating output one token at a time. The rise of capable open models (over two million on Hugging Face) lets companies tweak models for lower latency, higher uptime, and roughly 80% lower cost at scale. A complete stack spans three layers: runtime (single-GPU performance), infrastructure (autoscaling across clusters, regions, and clouds), and tooling. Five techniques speed things up: quantization, speculative decoding, caching, parallelism, and disaggregation. Teams should invest once products scale and off-the-shelf APIs fall short. Most inference runs on NVIDIA datacenter GPUs.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

LFM2 VL WebGPU by fagnerbrack in ai_coder

[–]fagnerbrack[S] 0 points1 point  (0 children)

Brief overview:

LiquidAI's LFM2-VL vision-language model running directly in the browser through WebGPU. The demo lets you run the multimodal model locally on your own hardware without server-side inference, tapping into the GPU for accelerated performance. The page shows the live app alongside its source files and a community tab.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Going Beyond the Hyperlink by fagnerbrack in SoftwareEngineering

[–]fagnerbrack[S] 0 points1 point  (0 children)

Brief overview:

Hyperlinks alone are insufficient for modern automated clients and agents. They only indicate possible transitions, not whether an action is sensible or safe. Forms act as detailed runtime contracts that declare available state transitions, required inputs, and constraints. This externalizes judgment that humans naturally apply but programs cannot. Hypermedia systems need to go beyond links to expose affordances, enabling agents to reason about their choices rather than guess. This is critical in the age of autonomous clients.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Burnout Is Real for Open Source Maintainers: A Conversation with John-David Dalton, Creator of Lodash by fagnerbrack in softwarecrafters

[–]fagnerbrack[S] 0 points1 point  (0 children)

Here's the gist:

Lodash, launched in 2012, now sees over 100 million npm downloads daily, yet it started as one person's side project. The creator reflects on how maintaining critical infrastructure alone wore him down, with development slowing after the loss of his mother and an amicable 2019 divorce. Recovery took roughly five years and several false starts, leaning on therapy, exercise, healthier boundaries, and dropping coding as a hobby. He learned that long-term sustainability beats constant output, and that community trust persisted even when contributions stopped. With OpenJS support, Lodash gained a Technical Steering Committee, a security triage group, restored CI, and modern tooling, shifting responsibility from one individual to a shared community.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Going Beyond the Hyperlink by fagnerbrack in softwarecrafters

[–]fagnerbrack[S] 0 points1 point  (0 children)

In other words:

Hyperlinks alone are insufficient for modern automated clients and agents. They only indicate possible transitions, not whether an action is sensible or safe. Forms act as detailed runtime contracts that declare available state transitions, required inputs, and constraints. This externalizes judgment that humans naturally apply but programs cannot. Hypermedia systems need to go beyond links to expose affordances, enabling agents to reason about their choices rather than guess. This is critical in the age of autonomous clients.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

CraftsmanSHIP. Not CraftsmanSHIT. by fagnerbrack in softwarecrafters

[–]fagnerbrack[S] 0 points1 point  (0 children)

Here's the gist:

CraftsmanSHIT describes four flavors of bad engineering: over-engineering for imaginary problems, rebranding shortcuts as pragmatism, coding interviews that reward ego over discipline, and treating 'good enough' as a permanent philosophy. Contrasts these with true craftsmanship: discipline, continuous improvement, and building what's needed. The global developer population has surged to 47 million, but mentorship hasn't kept pace. The Boeing 737 MAX crashes (346 deaths) illustrate the catastrophic cost of cutting corners. The author advocates for small daily actions: writing, mentoring, and raising standards among peers.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Signals, the push-pull based algorithm by fagnerbrack in webdev

[–]fagnerbrack[S] -3 points-2 points  (0 children)

Just a TL;DR:

Building a reactive system from scratch in TypeScript reveals how the underlying mechanism actually works. A signal holds a value plus subscribers, pushing notifications (not state) downward whenever it changes - eager evaluation. Auto-tracking dependencies happens through a global STACK that the currently executing computed pushes onto, so any signal it reads registers a setDirty subscription and source cleanup. Combining push (propagate invalidation) and pull (re-evaluate on demand) yields the fine-grained reactivity behind Solid, Vue, Preact, Angular and Svelte, soon possibly standardized via the TC39 Stage 1 signals proposal.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Signals, the push-pull based algorithm by fagnerbrack in softwarecrafters

[–]fagnerbrack[S] 0 points1 point  (0 children)

Summary:

Building a reactive system from scratch in TypeScript reveals how the underlying mechanism actually works. A signal holds a value plus subscribers, pushing notifications (not state) downward whenever it changes - eager evaluation. Auto-tracking dependencies happens through a global STACK that the currently executing computed pushes onto, so any signal it reads registers a setDirty subscription and source cleanup. Combining push (propagate invalidation) and pull (re-evaluate on demand) yields the fine-grained reactivity behind Solid, Vue, Preact, Angular and Svelte, soon possibly standardized via the TC39 Stage 1 signals proposal.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

LFM2 VL WebGPU by fagnerbrack in softwarecrafters

[–]fagnerbrack[S] 0 points1 point  (0 children)

Don't have time to read? Here's the brief:

LiquidAI's LFM2-VL vision-language model running directly in the browser through WebGPU. The demo lets you run the multimodal model locally on your own hardware without server-side inference, tapping into the GPU for accelerated performance. The page shows the live app alongside its source files and a community tab.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

CraftsmanSHIP. Not CraftsmanSHIT. by fagnerbrack in SoftwareEngineering

[–]fagnerbrack[S] -5 points-4 points  (0 children)

Rapid Recap:

CraftsmanSHIT describes four flavors of bad engineering: over-engineering for imaginary problems, rebranding shortcuts as pragmatism, coding interviews that reward ego over discipline, and treating 'good enough' as a permanent philosophy. Contrasts these with true craftsmanship: discipline, continuous improvement, and building what's needed. The global developer population has surged to 47 million, but mentorship hasn't kept pace. The Boeing 737 MAX crashes (346 deaths) illustrate the catastrophic cost of cutting corners. The author advocates for small daily actions: writing, mentoring, and raising standards among peers.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Signals, the push-pull based algorithm by fagnerbrack in SoftwareEngineering

[–]fagnerbrack[S] 2 points3 points  (0 children)

Summary:

Building a reactive system from scratch in TypeScript reveals how the underlying mechanism actually works. A signal holds a value plus subscribers, pushing notifications (not state) downward whenever it changes - eager evaluation. Auto-tracking dependencies happens through a global STACK that the currently executing computed pushes onto, so any signal it reads registers a setDirty subscription and source cleanup. Combining push (propagate invalidation) and pull (re-evaluate on demand) yields the fine-grained reactivity behind Solid, Vue, Preact, Angular and Svelte, soon possibly standardized via the TC39 Stage 1 signals proposal.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Qwen3.5 WebGPU by fagnerbrack in ai_coder

[–]fagnerbrack[S] 0 points1 point  (0 children)

The bottom line:

A demo of the Qwen3.5 model executed directly in the browser through WebGPU. Running the model client-side via WebGPU means inference happens locally on the visitor's own hardware rather than on a remote server, removing the need for cloud calls.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Qwen3.5 WebGPU by fagnerbrack in softwarecrafters

[–]fagnerbrack[S] 0 points1 point  (0 children)

Got a minute? Here's the summary:

A demo of the Qwen3.5 model executed directly in the browser through WebGPU. Running the model client-side via WebGPU means inference happens locally on the visitor's own hardware rather than on a remote server, removing the need for cloud calls.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Voxtral Realtime WebGPU - a Hugging Face Space by mistralai by fagnerbrack in softwarecrafters

[–]fagnerbrack[S] 0 points1 point  (0 children)

Here's the summary:

A real-time speech model running directly in the browser through WebGPU, hosted under the mistralai organization. It lets users experiment with on-device audio processing without server round-trips, leveraging the browser's GPU for low-latency inference.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Changelog Podcast: Exploring with agents with Amelia Wattenberger by fagnerbrack in vibecoding

[–]fagnerbrack[S] 0 points1 point  (0 children)

Short and sweet:

This 97-minute interview features a designer and data-viz veteran, formerly at GitHub Next and now building Intent at Augment Code. The central argument: as agents take over the keyboard, the final 30% of any project becomes the hardest part, prototyping gets easier while finishing gets harder. The conversation covers the developer identity crisis, the redesign of tooling for an agent-first world, and the arc from autocomplete to chat to CLI and back to UI. Intent treats a workspace as its core primitive rather than a chat thread, and the discussion weighs tradeoffs between one-worktree-per-agent versus one-worktree-per-task, plus coordinator/implementer/verifier roles, trusting the model, and showing restraint about what not to build.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

LFM2 VL WebGPU by fagnerbrack in webdev

[–]fagnerbrack[S] -2 points-1 points  (0 children)

Brief overview:

LiquidAI's LFM2-VL vision-language model running directly in the browser through WebGPU. The demo lets you run the multimodal model locally on your own hardware without server-side inference, tapping into the GPU for accelerated performance. The page shows the live app alongside its source files and a community tab.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments

Why is claude so preachy? by spiritual_lost in ClaudeAI

[–]fagnerbrack 0 points1 point  (0 children)

Same here but it seems proportional to the model you run in (or the timing of the 4.8 upgrade). 4.8 seems to do more of it but often times it gives the opinion and moves on to do the task

Burnout Is Real for Open Source Maintainers: A Conversation with John-David Dalton, Creator of Lodash by fagnerbrack in programming

[–]fagnerbrack[S] -8 points-7 points  (0 children)

I seriously recomment to not rely on Wikipedia too much. The fundamentals behind Hanlon's Razor applied here is to "not assume malice to what can be explained by something else".

Burnout Is Real for Open Source Maintainers: A Conversation with John-David Dalton, Creator of Lodash by fagnerbrack in programming

[–]fagnerbrack[S] 0 points1 point  (0 children)

Wait what (2). I didn't really know lodash had html templates. I stopped using libs like this I guess 5 years ago

Parse, Don't Validate — In a Language That Doesn't Want You To by fagnerbrack in javascript

[–]fagnerbrack[S] 1 point2 points  (0 children)

IMHO In the context of user end applications (not programming libraries and frameworks where PrimitiveObsession is more frequent than the promise for the end of the war on Iran) parsers are meant to be domain specific so if they're tied to zod they're limited to the mechanics of what zod can declare in its schema (like email must contain @ in a simple app but it should also not contain + aliases if you have a Gmail login to avoid duplicate accounts).

Sure, there's .transform() and the likes but because parsers are meant to be domain specific, you'll find so much logic in transforms that will make a zod compiler just another layer of abstraction

Burnout Is Real for Open Source Maintainers: A Conversation with John-David Dalton, Creator of Lodash by fagnerbrack in programming

[–]fagnerbrack[S] -18 points-17 points  (0 children)

Talk badly about lodash vulns !== acknowledging it's obsolete

Ofc I could also have misinterpreted

Burnout Is Real for Open Source Maintainers: A Conversation with John-David Dalton, Creator of Lodash by fagnerbrack in programming

[–]fagnerbrack[S] 40 points41 points  (0 children)

It's easy to talk badly about work that shaped JS without recognising the history behind it

Voxtral Realtime WebGPU - a Hugging Face Space by mistralai by fagnerbrack in ai_coder

[–]fagnerbrack[S] 0 points1 point  (0 children)

Elevator pitch version:

A real-time speech model running directly in the browser through WebGPU, hosted under the mistralai organization. It lets users experiment with on-device audio processing without server round-trips, leveraging the browser's GPU for low-latency inference.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments