Urgent.News

What's breaking now, across thousands of outlets.

Tech

Go with ARM

What is ARM An ARM processor is a chip that follows the ARM instruction set architecture, a set of rules that defines which instructions the processor understands and how it executes them. It's a RISC architecture: simple, fixed-length instructions, focused on running each one fast and with low power consumption. That's where the main difference from x86 (Intel/AMD) lies: x86 is CISC, with more…

An ARM processor is a chip that follows the ARM instruction set architecture, a set of rules that define which instructions the processor can understand and execute. It is a RISC architecture, characterized by simple, fixed-length instructions that focus on executing each one quickly and with low power consumption. This contrasts with x86 processors (Intel/AMD), which are CISC (Complex Instruction Set Computing) and historically optimized for raw performance in desktops and servers.

Developed primarily for embedded and mobile applications, ARM processors are ideal for scenarios where battery life and heat dissipation are crucial. Examples of ARM-based systems include Apple's M-series processors, Qualcomm's Snapdragon, and AWS's Graviton.

When it comes to the Go programming language, there are no changes required to the code itself. The only modification needed is adding the parameter "GOARCH=arm64" during the build process. For maximum compatibility, setting "CGO_ENABLED=0" is recommended, resulting in a binary with no external dependencies by utilizing a solution already native to the compiler. However, selecting an appropriate Linux image as the base image for the project is essential.

In the cloud computing landscape, various providers offer ARM-based machines. This discussion focuses on AWS, which the author is most familiar with, drawing primarily from AWS's documentation to fill any gaps in knowledge. Assuming an average of 730 hours per month and using US dollars for pricing, the use of ARM-based machines can result in approximately a 20% reduction in overall costs. This cost-saving potential may vary depending on the specific application and the relevant variables involved.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Friday 11 September →