AppSec Stof
  • About
Subscribe
Tagged

go

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software

Precise vs Accurate on Arbitrary-precision Arithmetic
Machine Learning

Precise vs Accurate on Arbitrary-precision Arithmetic

When Math isn't accurate in code Precise vs Accurate So here's a simple example to get you started, punch a simple calculation 0.1 + 0.2 into any calculator, scientific, google, whatever. What result do you get? You should see 0.3 right? The code issues with arithmetic Now go

  • Stof
Stof Jun 28, 2017 • 3 min read
Only inexperienced developers use infinite loops
Opinion

Only inexperienced developers use infinite loops

A language agnostic look at this common programming pattern. My hope is that once you've read my post you'll never write an infinite loop again. My favourite number: 8 What are infinite loops I've chosen Python as the language to demonstrate due to its readability. 1. Loops The simplest loop

  • Stof
Stof Jun 17, 2017 • 8 min read
range over channels in go - Fibonacci example
go

range over channels in go - Fibonacci example

Fibonacci. This sequence of numbers occurs in nature, and has many uses. In a Fibonacci sequence, each number is equal to the previous two numbers added together. Fibonacci numbers are easily computed in modern programming languages. This computational task helps us learn about how a channel works in go and

  • Stof
Stof Nov 27, 2016 • 1 min read
AppSec Stof © 2022
Powered by Ghost