SShortSingh.
Back to feed

How Computers Work: From Binary Switches to CPUs, Memory, and Processes

0
·21 views

Computers operate using only two states — on and off — represented as 1s and 0s, known as binary digits or bits. Groups of eight bits form a byte, which can encode letters, numbers, and images using agreed standards like ASCII. A CPU processes instructions in a continuous three-step cycle of fetch, decode, and execute, performing these operations billions of times per second. Computers use two types of memory: RAM for fast, temporary active work and ROM for slower, permanent storage, ensuring efficiency by loading only needed data at a time. RAM itself is organized into a stack for small, short-lived data and a heap for larger, flexible data, while the CPU runs separate isolated processes for each application, subdivided into threads for parallel tasks.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Four-Stage Incremental Indexing Keeps Financial Research Dashboards Fresh and Citable

A financial research dashboard must make corrected PDFs searchable while keeping earlier citations explainable, which shapes its architecture more than the choice of vector database. The article proposes four observable stages: document intake, chunk preparation, collection upsert, and bounded query, with stable source metadata carried into every result. It recommends designing a retrieval contract first, covering retrieval units, filterable metadata, freshness rules, and citation context. Ingestion and querying should remain separate so that failures can be traced to a specific stage rather than a vague quality problem. Chunk size is treated as an empirical question, to be resolved by testing representative documents and known failure cases such as tables and footnotes.

0
ProgrammingDEV Community ·

Anthropic Adds Spreadsheets, Whiteboards and Data Tools to Claude

Anthropic announced on November 10, 2026 that Claude is expanding into a broader workspace with spreadsheets, a whiteboard, and a data tool. Claude Sheets and Claude Whiteboards are in beta, while Claude Data, formerly called Dashboards, is available now and can pull from sources such as Snowflake and Salesforce. A meeting note-taker, Claude Meetings, has been announced but has no release date. The company is also broadly releasing interactive connectors that let users edit documents from apps like Confluence and Notion directly inside Claude, with partners including Adobe, Box, and HubSpot. Because the rollout is gradual, many users may not yet have access to these features.

0
ProgrammingDEV Community ·

JSLab adds Prettier formatting for JavaScript and TypeScript scratch code on macOS

JSLab, a JavaScript and TypeScript scratchpad for macOS, now uses Prettier to clean up messy code with a single shortcut, ⌥⇧F, which is also available in the Actions menu and command palette. Formatting is applied as one undo step with minimal edits, so folds, scroll position and cursor placement are preserved. Users can optionally format automatically before each run or on save, both disabled by default. A Formatting settings panel exposes Prettier options such as print width, tab width, semicolons and quote style, using Prettier's standard defaults. If code cannot be parsed, the status bar reports the error and the code is left unchanged, while formatting attempts that run too long are stopped to keep the editor responsive.

0
ProgrammingDEV Community ·

Go fintech DNS cutovers need separate checks for zone control, record match, and release approval

The article argues that a successful domain verification proves only that someone could publish a requested DNS record, not that a particular person or service is authorized to redirect a payment-facing hostname. It recommends keeping DNS verification, record reconciliation, and release authorization as distinct gates before any cutover. Using a hypothetical payments.example.com release, the author shows how a verification result, an approver's sign-off, and an operator's record change are three separate actions that should not be treated as interchangeable. The piece also notes that domains and personnel change over time, so verification should have a defined freshness policy rather than lasting indefinitely. Finally, it advises retaining both the desired and previously approved record sets, with the rollback target itself approved before the change.