SShortSingh.
Back to feed

Go 1.27 SIMD matches NumPy on large data but lags when dataset fits in cache

0
·1 views

Go 1.27 introduced an experimental SIMD package in its standard library, prompting a performance comparison against NumPy on a speaker-search index task involving 346,000 vectors and 66 million multiplications per query. On a 253 MB dataset that exceeded cache capacity, Go SIMD and NumPy posted nearly identical median times of 9.54 ms and 9.76 ms respectively, a gap within measurement noise. However, on a 31 MB dataset that fit in L3 cache, NumPy's OpenBLAS backend was 2.4 times faster, reflecting years of hand-tuned, architecture-specific optimisation. Parallelisation across eight cores yielded only about 3x speedup in both languages, suggesting memory bandwidth rather than compute was the true bottleneck at larger sizes. The findings indicate that cache residency, not language choice, is the dominant factor in this class of workload.

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
ProgrammingHacker News ·

Teen engineers launch DIY weather balloon over Montana, lose it mid-flight

Two young developers built and launched an independent high-altitude balloon payload called UpLink over Montana, following a prior launch with Hack Club. The 491-gram payload was designed to test insulation properties of 3D-printed filaments and transmitted 320x240 images via radio link during its flight. Despite successfully receiving data and images on the ground, the team was unable to recover the balloon after it came down. The project involved custom electronics designed in KiCad, original firmware, and fully open-source hardware and software published on GitHub. The writeup details their engineering process, lessons learned, and the logistical challenges that led to the payload going missing.

0
ProgrammingHacker News ·

New Tool Lets ATProto PDS Users Store URL Shortener Links Natively

A new service called atpr.to has been introduced for users of the AT Protocol (ATProto) decentralized network. The tool allows shortened URLs to be stored directly within a user's Personal Data Server (PDS), the core data repository in the ATProto ecosystem. This approach ties URL shortening to the user's own decentralized identity and data store, rather than relying on a centralized third-party service. The project was shared on Hacker News, where it garnered modest early attention from the developer community.

0
ProgrammingDEV Community ·

Why Enterprise Identity Security Must Go Beyond Directories to Credential Safety

Enterprise identity infrastructure encompasses directories, identity providers, access management systems, and credential stores, but most organizations focus investments primarily on directory tools like Active Directory, Okta, or Entra ID. These platforms manage identity lifecycle and access policy effectively, yet they cannot detect whether credentials such as API keys, service account tokens, or OAuth secrets have leaked into source code, CI/CD pipelines, or collaboration tools. Non-human identities, credential sprawl, and secrets that outlive their owners represent growing blind spots that directory-level controls are not designed to address. In 2025, GitGuardian detected millions of hardcoded secrets across customer environments, each capable of granting attackers legitimately authorized access that bypasses standard directory checks. Experts argue that mature identity infrastructure must secure both the governance plane and the credential plane, extending visibility into code, pipelines, and developer environments.

0
ProgrammingDEV Community ·

GreatUI Launches Open-Source React Component Library Built with Tailwind and Framer Motion

A developer has publicly launched GreatUI, a curated collection of copy-paste React UI components built using Tailwind CSS and Framer Motion. The project was born after the creator spent a year building custom components and interactive shaders privately, prompted by repeated requests from others wanting access to the code. Unlike traditional UI libraries, GreatUI is not an installable package — users copy the code directly into their own projects and retain full ownership. The collection includes layout components, dark mode transitions, card hover effects, and WebGL shader animations, all with TypeScript support and native light/dark theme compatibility. The project is open-source and available via a dedicated website and GitHub repository.

Go 1.27 SIMD matches NumPy on large data but lags when dataset fits in cache · ShortSingh