We've all heard this sentence: "Neural networks learn from data." But what does learn actually mean? Does the model somehow understand the data? Does it remember every example? And how does it know when it's getting something wrong? The answer is surprisingly simple. A neural network basically follows this loop: Predict → Check the Error → Adjust → Repeat Let's see what that actually means. Let's Start With a Simple Example Imagine we're building a model that predicts whether a student will pass an exam based on how many hours they studied. Our data could look like: Hours Studied Result 2 Fail 4 Fail 5 Pass 7 Pass 9 Pass We give the model: 6 hours and ask: "Will this student pass?" The model makes a prediction. Maybe it says: 35% chance of passing But the actual answer is: Pass So the model got it wrong. Now comes the interesting part: how does it improve? The Model Starts With Weights Inside a neural network, there are lots of numbers called weights. You can think of weights as the importance given to different inputs. A very simple neuron looks roughly like this: Input ↓ × Weight ↓ + Bias ↓ Activation ↓ Output Mathematically: output = (input × weight) + bias At the beginning, these weights are usually initialized with small values. The model doesn't know the correct values yet. So it starts making predictions with basically a rough guess. First, It Makes a Prediction This is called forward propagation. Data moves through the network: Input ↓ Hidden Layers ↓ Output ↓ Prediction For example: 6 hours ↓ Neural Network ↓ Prediction = 0.35 But how do we know whether 0.35 is good or bad? We compare it with the actual answer. Then It Measures How Wrong It Was This is where the loss function comes in. The loss function basically asks: "How far was the prediction from the actual answer?" Prediction ↓ Compare with Actual ↓ Calculate Loss Large loss: ❌ Very wrong Small loss: ✅ Pretty close The goal of training is to make this loss smaller. Now the Model Has to Fix Itself This
The final 24 hours of the 2026 fall Prime Day is rolling and time is running out to land the best deals. Highlights here include one of the lowest prices to date on AirPods Pro 3 and $120 off AirPods Max 2, as well as the M6 Mac mini lineup at up to $150 off and all-time lows on Apple Watch Series 12. But you’ll also find loads of fantastic charger and accessories deals including rare offers on Nomad’s brilliant Find My wallet card from $23, the new Bose QuietComfort Ultra Headphones to match your burgundy iPhone 18 Pro, a giant collection of Elevation Lab AirTag 2 mounts, Anker gear, and much more waiting below. more…
95% think they can see their AI agents. Only 36% do. Why agent governance is an identity problem, and the seven-layer control plane that closes the gap.
Nadrieril is a long-time Rust contributor, and the maintainer of the rustc pattern-matching infrastructure. During his involvement with Rust, he has noticed a problem with the usability of the language: it is difficult to automatically extract information from a Rust crate for use with other tooling. The Charon project aims to fix that by providing a stable API for accessing internal information from the Rust compiler.
SpaceXAI’s Grok Bot kicked off the consumer-friendly AI agent app wave this summer. Facing competition from Meta’s Muse and OpenAI’s ChatGPT Dot, Grok Bot just got a new capability upgrade with the help of Anthropic’s Claude. more…
Parallel Systems raised $100M to scale production of its autonomous electric rail vehicle, which can shuttle thousands of pounds of freight up to 500 miles.
I want, and not even especially deep down, to like Silver Pines more than I do. Wych Elm’s debut game – a Twin Peaks-inspired, neo-noir detective mystery that quickly repaints itself in survival horror red – is endearingly unusual, an angular mishmash of different genre staples that, nonetheless, stays coherently glued together by its expressively moody visual style and an intriguing missing-person tale. It’s just... well, put it this way. I’m only about three hours in, and if I have to backtrack my slouching private dick through one more thicket of locked doors and collection puzzles, the next crime he’ll be investigating will be the aggravated assault of a desktop monitor. Read more
Anti-Patterns in Software Blogging Some excellent writing advice from Michael Lynch. Michael warns against "meandering intros", misjudging your reader's existing knowledge, assuming they'll read your previous posts, and excessive formality. He also warns against overreliance on links as an excuse not to explain terminology. This one hurt! I do this all the time, but I have a nagging suspicion that almost nobody ever clicks on them. This point about using your own voice is crucial: Beginner software bloggers suffer from a mass delusion that you have to write in a stiff, overly formal way for people to take you seriously [...] Just write the way you talk. With so many developers delegating their writing to AI, software blogging is becoming bland and homogenous. Readers are hungry for writing with personality. Via Lobste.rs Tags: blogging , writing , michael-lynch
Nodejs Queue Publish for Offline Users: 12-Minute Live Poll Notifications Short answer: in a Nodejs-style service, queue the result before you publish it so offline users still get notified. The live channel is an acceleration path; the queue and durable record are the delivery contract. A B2B SaaS session may have 4,000 participants answering within 12 minutes, including browsers that disappear during the session. That ordering is the whole design. The useful question is not “can the server publish?” It is “what evidence proves that each intended recipient can obtain the event after reconnecting?” The invariants are a stable event id, deduplication, a reconnect cursor or durable inbox, and retries that cannot delete the only copy. Option Guarantee Failure boundary Direct request publish Low latency Crash can lose the event Queue first, then fan out Replayable work Needs idempotency and retention Shared session transcript Easy replay No per-user unread state Per-recipient inbox Auditable offline recovery More writes and cleanup For a user-specific result, I choose the per-recipient inbox. A shared session log can supplement it, but should not carry the entire delivery promise. The poll-closing request validates the result, assigns an event id, creates inbox entries, and enqueues a fan-out job in one transactional boundary. A worker publishes to connected clients and records attempts. The broker is replaceable; ordering and idempotency are not. def close_poll(tx, queue, event, recipient_ids): tx.insert_event(event.event_id, event.session_id, event.payload) for recipient_id in recipient_ids: tx.insert_inbox(recipient_id, event.event_id, "pending") tx.commit() queue.enqueue({"event_id": event.event_id}) def fan_out(store, live_connections, job): for row in store.pending_inbox_rows(job["event_id"]): envelope = {"id": row.event_id, "type": "poll.closed", "data": store.event_payload(row.event_id)} if live_connections.send(row.recipient_id, envelope): store.mark_delivered(