Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
Phoronix

Rustls 0.23.46 Released With Four Security Fixes

Rustls as the modern TLS library written in the Rust programming language with an emphasis on memory safety is out today with its v0.23.46 release in order to ship four new security fixes...

SegurançaDev
Interesse
Rock Paper Shotgun

"No more hand-written code": Epic reportedly impose "AI-first" model on creators of new Disney shooter with Marvel and Star Wars characters

The happy-go-lucky bigwigs at Epic Games have instructed the creators of an unannounced shooter that features Marvel and Star Wars characters to complete their project using an "AI first" production model, according to a report, with generated art and code. The Disney collaboration in question was allegedly due for release in March, but has now been delayed indefinitely. The game's makers are, we're told, being ordered to make heavier use of Anthropic's Claude and similar tools. Read more

GamesIA
Interesse
dev.to

.NET: how to consume a scoped service from a singleton?

This is a short post about a very specific C#/.NET topic. They say one needs to pick their battles. Here I decided to pick a battle with a StackOverflow answer from 2018 and a couple of fellow tech bloggers, because I have opinions. This is not exactly a tutorial, so I assume the reader has some basic understanding of .NET, its DI mechanisms and service lifetimes. Q: In .NET, how to consume a scoped service from a singleton? A: Just google it. One of the first search results is a StackOverflow question. It has an accepted answer with 270+ upvotes. The answer solves the original poster's problem and is technically correct, thus having the worst type of correctness. To nobody's surprise, it's also the answer LLMs regurgitate if asked. I believe the answer is wrong and detrimental for application architecture. I'm generally done with SO, and SO itself is in its death throes, so instead of fighting over an answer from 2018 on a dead website I'll write about it here. So our .NET app has two services. One is scoped and another one is singleton, and the former can't be directly consumed from the latter: // Program.cs builder.Service.AddSingleton (); builder.Service.AddScoped (); // elsewhere class MySingleton: IMySingleton { private IMyScoped _myScoped; public MySingleton(IMyScoped myScoped) { _myScoped = myScoped; // Runtime error, can't consume scoped from singleton! } } You can't inject scoped dependencies into singletons, because the scoped instance lifetime is tied to its scope. The instance will be disposed as soon as its scope ends, but the singleton won't be aware of that. Still, oftentimes it's necessary to use a scoped class from a singleton, e.g. from a background service. The solution promoted by everyone is to create a scope on demand using IServiceScopeFactory: public class MySingleton: IMySingleton { private readonly IServiceScopeFactory _scopeFactory; public MySingleton(IServiceScopeFactory scopeFactory) { _scopeFactory = scopeFactory; } public void DoWork(

Dev
Interesse
dev.to

Day 31: The Transformer Decoder Architecture

What Is a Transformer Decoder? A transformer decoder is a type of neural network for generating sequences, such as sentences, one piece at a time. You can think of it as an intelligent “writer” that produces each next word by considering what it’s already written. The decoder architecture powers models like GPT (Generative Pretrained Transformer), enabling them to generate fluent, context-aware language. Older neural models, like recurrent neural networks (RNNs) and long short-term memory networks (LSTMs), process sequences step by step. Transformers changed this: the decoder looks at all previous words at once, deciding which ones matter most. This approach allows it to “remember” and use information from far back in a sequence, leading to more coherent generation. Transformer decoders rely on two major ideas: attention mechanisms and positional encoding. Attention mechanisms: Imagine writing a story and being able to instantly reread any word you’ve written so far, paying more attention to some parts than others when considering what to write next. That’s what attention does. Specifically, “self-attention” means the decoder examines all the tokens it has already generated, weighting how important each is for the current decision. Positional encoding: Transformers can’t tell the order of tokens by themselves—they process inputs in parallel. Positional encoding fixes this. It attaches a unique numerical signal to each word’s representation, marking "first word," "second word," and so on. This encoding can be a fixed pattern (like a wave) or learned by the model. A transformer decoder block has a distinct structure. Here’s how data flows through it: Masked Self-Attention Layer This is the heart of the decoder. At each step, a token can “attend to” (look at) all tokens up to its own position, but never the future. Without this mask, the model could cheat by seeing parts of the sequence not yet generated. Masking ensures the model generates text one piece at a time, ju

IA
Interesse
dev.to

Why a square picture needs 24 x 30 stitches: gauge math for a crochet chart tool

I built a small, free, browser-only tool that turns an image into a single-crochet color chart. This post covers the one idea that makes it more useful than a plain pixelator: gauge. Tool: https://crochet-graph-maker.netlify.app/ (no sign-up, images are processed locally in your browser) A crochet stitch is not square. If your swatch is 16 stitches and 20 rows per 4 inches, a stitch is 0.25 in wide and 0.20 in tall. A 24 x 24 grid looks square on screen but comes out 6 in wide and 4.8 in tall. Compute rows from the image ratio and your measured gauge: width_in = stitches * 4 / stitches_per_4in height_in = rows * 4 / rows_per_4in rows = stitches * (image_h / image_w) * (row_gauge / stitch_gauge) For a square picture at 24 stitches with 16 st / 20 rows per 4 in: 24 * 1 * 20 / 16 = 30 rows. So the chart is 24 x 30. Draws the image to a canvas at the target grid size and reduces it to 2 to 6 colors Lets you paint cells to clean up stray single stitches Row counter, undo, save as JSON, export SVG, print Limits: 8 to 80 stitches wide, 2 to 100 rows It is a chart tool, not a full pattern. It does not estimate yardage or pick a color-change technique. Photos with fine detail turn muddy at small grid sizes; simple graphics and logos work best. More worked guides: https://crochet-graph-maker.netlify.app/gauge-guide.html Disclosure: I am the maker, and this post was written with AI assistance.

Dev
Interesse
dev.to

Designing a Thumbnail Research Workflow With Provenance and Review Gates

Design a thumbnail workflow around meaning, not just files Thumbnail tooling often begins with an image input and ends with an export button. That framing hides three different jobs: studying a public reference, packaging a lesson, and presenting a comparison. A clean file can be useful in all three cases, but the review contract is not the same. This memo is based on publicly visible workflows and general UI-design practice. It does not describe a private API, source code, model, or production behavior. The visible flow for a Minecraft Thumbnail Downloader accepts public YouTube video, batch, or channel URLs and retrieves the best image version the source exposes. The meaningful product boundary is that availability depends on a public, reachable source; a file is useful for analysis, not a blanket reuse license. type ReferenceAsset = { kind: "public-thumbnail"; sourceUrl: string; availability: "available" | "missing" | "restricted"; intendedUse: "analysis" | "authorized-brief"; rightsNote?: string; }; intendedUse should not silently default to publishing. A creator can inspect composition, focal scale, and text density, then write a new brief for their own footage. Keeping that note visible makes it harder to mistake inspiration for permission. An educational cover is not a shorter slide deck. The public Educational Thumbnail flow invites a creator to choose a teaching format and describe a question, misconception, comparison, result, or skill. Those concepts should remain explicit rather than becoming an opaque prompt string. type LessonBrief = { lessonType: "experiment" | "math" | "history" | "software" | "language" | "course"; learnerQuestion: string; proof: "diagram" | "object" | "finished-project" | "comparison"; shortHook?: string; ratio: "16:9"; }; The UI can then warn when shortHook repeats the video title instead of adding useful context, or when the image tries to show several unrelated concepts at once. That is not a quality score; it is a prompt for hu

Dev
Interesse
dev.to

I built RefreshLaunch to show what first-time visitors actually understand from your website

A website can look polished and still leave a first-time visitor wondering: What exactly does this product do? Who is it for? Why should I care? What should I do next? I built RefreshLaunch around that problem. Instead of starting with a sales pitch, RefreshLaunch gives you a free Website Clarity Preview of your existing homepage. You enter your website URL and it looks at the public homepage from the perspective of a first-time visitor. The preview shows: what a visitor is likely to understand within the first few seconds your biggest clarity gap 3 problems worth fixing how your current opening section communicates the offer an example of how that opening section could be clearer The goal isn't to give you a generic website score. It's to answer a much more useful question: Does someone arriving at this website actually understand what we're offering? If the preview shows that the messaging or structure needs more work, RefreshLaunch also offers complete website redesign options. You can try the free preview here: https://refreshlaunch.com I'd especially like feedback from other developers and SaaS builders: When you try it on your own website, does the preview identify the same clarity problems you already suspected — or does it notice something you hadn't considered? If you test it, I'd love to hear what it gets right or wrong.

Geral
Interesse
dev.to

Architecting Location-Aware Services on Android Without Killing the Battery

It happened during a quiet Friday sermon at my local mosque. I had carefully checked my pocket before walking in, or so I thought. Halfway through the speaker's closing remarks, a sharp, high-pitched ringtone cut through the silence like a knife. Every head in the room turned toward me. My face burned as I scrambled to silence the device, eventually killing the call, but the damage was done. I wasn't the only one; I watched three other people reach for their pockets in a panic over the next twenty minutes. It was a shared, silent frustration that happened every single week. That moment was the birth of Muffle. The core issue isn't just about silence; it is about human fallibility. We are distracted, we are busy, and we are forgetful. I found that I constantly forgot to unmute my phone after a meeting, only to miss critical calls later in the afternoon. Manual toggling is a failure-prone process because it requires the user to remember a state change at the exact moment they are most distracted by a new environment. I wanted a system that was truly 'set and forget,' meaning the phone had to understand its own context without me touching a single button. When I started building Muffle, I realized that relying on a simple foreground service to poll GPS coordinates would be an absolute disaster for battery life. Android systems are aggressive about killing processes that drain power, and users are even more aggressive about uninstalling apps that show up at the top of their battery usage statistics. I needed a way to trigger sound changes based on location, but I needed it to be as lightweight as possible. I decided to pivot away from manual location polling and instead leverage the GeofencingClient within the Google Play Services location APIs. Using the GeofencingClient allows the OS to handle the heavy lifting of location monitoring at the firmware level. Instead of my app asking, 'Where am I?' every thirty seconds, I register a set of circular regions with the syste

Mobile
Interesse
dev.to

A small search win: Google's AI Overview cited my Figma multiplayer teardown

I write about production system design on Buildopsy. Recently, I published a teardown of Figma’s multiplayer architecture: how edits move between browsers and servers, how conflicts get resolved, and where the system’s scaling costs come from. I later searched for “how Figma’s multiplayer technology works.” Figma’s own engineering post appeared in the results. In the AI Overview below it, I noticed two Buildopsy citations beside explanations of optimistic rendering and the server’s role in ordering edits. I saved a screenshot because I didn’t expect to see my article cited there. It’s one result for one query—not proof of a lasting ranking or a traffic increase. A browser applies an edit immediately, then sends the operation over a WebSocket to the process that owns that document. The owner orders the change and broadcasts the accepted version to the other clients. The conflict rule is more specific than “the server wins.” In the architecture described in my teardown, the server orders operations, same-property conflicts use last-writer-wins, and tree changes get an additional validation step to prevent cycles. That’s a product-specific trade-off: a design canvas can tolerate some conflicts that would be painful in a collaborative text editor. The Rust rewrite addressed another boundary. A slow document could stall unrelated documents sharing a TypeScript worker. Figma moved document operations into a Rust child process while Node.js kept handling the network layer. Figma reported that serialization became more than 10× faster in its engineering write-up. The numbers make the next question more interesting. In one scenario, 1.5 million concurrent users sending two coalesced cursor frames per second produce 3 million ephemeral frames per second. That’s modeled math, not a Figma disclosure. The design question is: which events need durable ordering, and which can be dropped when they’re stale? The full teardown works through that boundary, a 65k-RPS scenario, and a mo

Dev
Interesse
9to5Mac

Apple’s MacBook Pro overhaul is coming soon, here’s what to expect

Apple just released a MacBook Pro update in March, but there’s more coming soon. Apple is expected to debut one of its biggest MacBook Pro updates ever as soon as later this year. Here’s everything we know so far … including details on a surprising recent twist. more…

Geral
Interesse
dev.to

Your Browser

Developers constantly need small utilities for everyday tasks: formatting JSON, encoding Base64, compressing data, and more. So I built CodeUnpack, a collection of simple developer tools designed to make these tasks faster and easier. 🛠️ Available tools Many tools run entirely in the browser, so there's no need to upload your data to a server for basic operations. The goal is simple: Fast, free, and useful developer utilities without unnecessary complexity. 🔗 Try it: codeunpack.com I'm continuously adding new tools based on common developer needs.

Dev
Interesse
dev.to

Two things nobody was watching

First published on openspec-ui.dev. OpenSpec Workbench's whole pitch is watching an agent while it works. Two A working directory is removed in two steps: git forgets it, then whatever That is not a hypothetical. A shell from an already-archived change, a-change-knows-its-stage, sat under the worktree root from one day to the packages/extension/.vscode-test, which the extension's own test run had Two things had kept that retry from happening. The rule for "is this ours The fix changes what "ours" means: a shell named after a change this .git of its own, is cleared whatever is inside Checked live against the real worktree root this repository uses: 320 .vscode-test. Read correctly DeepSeek's CLI reports no cost, no credits, no token split - the answer to usage_update, carrying how many of the model's window It is a strange number to build a ceiling on, and the reasoning for budget.maxContextShare is a share of the window - 0.8 for eighty (0, 1] is refused up front, so someone who means 80 is told rather than handed a ceiling that Checked live: a chain running deepseek-cli-acp with the ceiling set dsh refused to an earlier article budget.maxContextShare is 0.0%, and the agent reported 8,277 of The product also now knows, and says, which agents this can even work on. contextGauge is a separate question from whether an agent reports "none" where that is certain, "sends" for deepseek-cli-acp "unknown" for every other ACP agent nobody here Neither of these was a code path that ran and did the wrong thing. Both The code is at github.com/VeryComplexAndLongName/OpenSpec-UI, The leftover shell, the rule that excused it, and the fix: the archived change the-sweep-comes-back-for-what-it-left, and its own tasks.md for the live numbers (320 known change names, the 54 MB find). The context ceiling, the live cancellation message, and the Node-version refusal: the archived change a-run-can-outgrow-its-context and its tasks.md. maxContextShare, why it is not counted as spend, and con

IADev
Interesse
dev.to

What Makes Something Worth Understanding?

The Question That Matters Some things are useful because they solve a problem. Others are worth understanding even when you are not going to use them tomorrow. That sounds obvious, but it is easy to forget when learning software development. We tend to measure everything by usefulness. Will this help me write better code? Will I use it at work? Is this worth remembering? Sometimes the answer is simply: it is interesting. And I think that is a perfectly good reason. Take something like CSS margin collapsing. You can go years without deliberately using it. You might even work around it without knowing exactly what is happening. But once you understand it, a strange behavior stops being strange. That matters. Understanding something gives you a better model of how the thing works. You do not need to use that knowledge every day for it to be valuable. The same applies to things like how JavaScript evaluates expressions, how a browser calculates layout, or why a particular TypeScript type behaves the way it does. You might not need the answer today. But the next time you encounter the problem, you already have a place to start. More importantly, you start recognizing similar problems. A weird layout issue might not look exactly like the one you saw before. A TypeScript error might happen in a completely different part of the application. A JavaScript behavior might appear in an API you have never used. The details change. The mental model stays. There is a difference between learning something because you need it and learning something because it makes the system make more sense. The first gets you moving. The second changes how you see things. That distinction is important because software is full of behavior that is technically easy to ignore. You can memorize that something happens. You can also understand why it happens. The second one tends to stick. Think about debugging. You can memorize a fix for a particular problem. Add this property. Move this code. Await this

Dev
Interesse
dev.to

Strikethrough

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend I built Strikethrough for a friend who regularly has to coordinate plans through a busy group chat. The problem is simple: plans change, but old messages don't. A venue gets changed, a time moves, someone cancels, someone else confirms something again, and 50 messages later, nobody is sure which information is still valid. Strikethrough lets you paste the conversation and works out what was later changed, cancelled, corrected, or replaced. Instead of giving you another chat summary, it crosses out the information that stopped being true and leaves a Current Reality view with the latest facts. Every fact also links back to the message that established it, so you can check where it came from. The idea was to make a small problem feel like something that should have had version control all along. Live: https://strikethrough.onrender.com Open the app and there is already a sample conversation ready to resolve. Paste your own conversation, press Resolve, and Strikethrough analyses the messages and shows which ones became obsolete. GitHub: https://github.com/BigBang001/Strikethrough The project is intentionally small: a single-page frontend and a lightweight Node.js server. The core reasoning is handled by Gemma. I didn't use the model to write a generic summary. It has a more specific job: decide whether each message is still relevant, superseded, or just noise identify which later message replaced outdated information determine the current value of changing facts attach each current fact to the message that established it The server then validates that output before rendering it. For example, a conversation might contain: "Dinner is at 8." followed later by: "Actually, make it 9." Gemma needs to understand that the first statement is no longer current, rather than simply repeating both. The interface turns that reasoning into the main interaction: outdated messages are crossed out with a re

Dev
Interesse
dev.to

I built a focusing study app for my friend

This is a submission for the "Hacktoberfest Weekend Challenge: Build for a Friend" (https://dev.to/challenges/hacktoberfest-weekend-2026-10-01) What I Built I built FocusFriend, an AI-powered focus companion for my friend, who often struggles to stay focused while studying. Most study apps give you a fixed timer and expect you to figure out the rest. FocusFriend takes a different approach: it learns how the person actually works. The user tells FocusFriend what they want to study, how much time they have, and how focused they currently feel. The AI then creates a personalized focus session with a recommended focus duration, break duration, study strategy, and soundscape. After each session, the app records things like session length, focus rating, task, and sound environment. Over time, it builds a personal focus pattern and uses that information to improve future recommendations. The app also includes an AI Soundscape that lets the user mix sounds such as brown noise, rain, library ambience, and white noise, and an "I Can't Focus" mode that helps turn an overwhelming task into a small, manageable starting point. The goal wasn't to build another Pomodoro timer. I wanted to build something that gradually learns what actually helps one person focus. How I Built It FocusFriend is built as a web application using React, Vite, Tailwind CSS, FastAPI, Python, and SQLite. It generates structured recommendations for: Focus duration Break duration Number of focus blocks Study strategy Recommended soundscape The application stores completed sessions and focus ratings so that future recommendations can be based on the user's actual history. I also separated the AI model from the rest of the application through a model-provider layer. This means the model can be replaced with another open model without having to rebuild the application. The application has a deterministic fallback when the AI model is unavailable, so the core timer and focus workflow continue to work. I used Ant

IADev
Interesse
dev.to

I built my friend an AI speaking partner because knowing English isn't the same as speaking it.

My friend understands English. They can read it. They can watch English videos. They know a decent number of English words. But ask them to speak. There is a pause. They first think in Hindi, then translate the sentence into English, then worry whether the grammar is correct, and sometimes the sentence never comes out. And when they do make a mistake, they often don't know why it was wrong. I noticed something else too. The problem wasn't a lack of English content. There are thousands of videos, grammar lessons, vocabulary apps and courses available. The problem was practice. There wasn't someone available every day who would patiently listen, correct the important mistakes, explain them, and then say: "Okay. Now say it again." So I decided to build that person as an AI. That's how TalkSaathi AI started. TalkSaathi AI is an English-speaking companion designed for someone who understands English but struggles to speak confidently. Its core idea is simple: Listen → Understand → Recall → Speak → Correct → Repeat → Converse → Track → Adapt Instead of completing a grammar exercise and moving on, TalkSaathi turns a mistake into the next practice opportunity. For example, imagine my friend says: "I take breakfast at 8 and I go college." TalkSaathi doesn't just say "wrong." I take breakfast at 8 and I go college. I have breakfast at 8 and I go to college. We usually say "have breakfast" in natural English. We also use "to" before a destination. I usually have breakfast at 8 and then go to college. And then comes the important part: 🎤 Now say it again. The learner repeats the sentence. The AI checks the new attempt. That creates a much more useful loop: ┌─────────────┐ │ Mistake │ └──────┬──────┘ │ ▼ ┌─────────────┐ │ Correction │ └──────┬──────┘ │ ▼ ┌─────────────┐ │ Explanation │ └──────┬──────┘ │ ▼ ┌─────────────┐ │ Repeat │ └──────┬──────┘ │ ▼ ┌─────────────┐ │ Re-check │ └──────┬──────┘ │ ▼ ┌─────────────┐ │ Improvement │ └─────────────┘ │ └──────────────► 🔄 Next Prac

IA
Interesse
BleepingComputer

Microsoft says threat actors are ahead in the early AI race

Microsoft says cyberattackers are currently benefiting from artificial intelligence faster than defenders, allowing threat actors to speed up vulnerability discovery, malware development, and post-compromise activity while security teams struggle to keep pace. [...]

Segurança
Interesse