Open in app

Sign In

Write

Sign In

Val Deleplace
Val Deleplace

467 Followers

Home

About

Published in Google Cloud - Community

·Mar 8

Cutting cost: stopping the Cloud SQL instance is not enough!

If you know me, you know I love paying less. Who doesn’t? When you look at the Google Cloud Free Tier page, you’ll notice that BigQuery has a generous free quota of 10 GB of storage and 1 TB of querying per month, but Cloud SQL is conspicuously absent from…

Cloud Computing

2 min read

Cutting cost: stopping the Cloud SQL instance is not enough!
Cutting cost: stopping the Cloud SQL instance is not enough!
Cloud Computing

2 min read


Aug 17, 2020

Cost of a bool slice in Go

How much memory do 10 million bools take up? Short answer 10MB. This is 8x as large as the number of bits that I actually care about. Details In Go all elements of a slice are addressable. The smallest addressable unit being the byte, a slice of bools looks in memory like a…

Golang

2 min read

Cost of a bool slice in Go
Cost of a bool slice in Go
Golang

2 min read


Aug 17, 2020

7 ways to implement a Bit set in Go

Some data is best modeled as a bit set. For example, the essential information about which students successfully passed a test, out of 3000 students, consists in 3000 bits (375 bytes only). It turns out that Go doesn’t have a Bitset type in the standard library! Abstract type: interface First, let’s say that…

Golang

9 min read

7 ways to implement a Bit set in Go
7 ways to implement a Bit set in Go
Golang

9 min read


Feb 28, 2020

App Engine under heavy load

Yesterday I opened the Logs page of my App Engine Standard application in the Google Cloud console to check a specific log, only to discover much more traffic than I expected. Confirmation in the App Engine “Summary” dashboard:

Google Cloud Platform

5 min read

App Engine under heavy load
App Engine under heavy load
Google Cloud Platform

5 min read


Dec 11, 2019

Tiny evil factor

Have you ever tried to design an algorithm to solve a problem on an input of arbitrary length n, and nailed it in only O(n) running time? Sometimes it’s easy, like “Find the minimum in the following list of n integers” The inconvenient truth Most of the time you actually don’t end up…

Programming

2 min read

Programming

2 min read


Oct 17, 2019

A sample of source transformation of Go code

gofmt is not only about formatting — TL;DR $ gofmt -w -r 'strings.Index(a, b) >= 0 -> strings.Contains(a, b)' . What I was trying to achieve Until recently, Javascript didn’t have the includes method to test if a string b is a substring of a string a. The idiomatic way to test this was if (a.indexOf(b) !== -1) { // b is a…

Golang

2 min read

A sample of source transformation of Go code
A sample of source transformation of Go code
Golang

2 min read


Published in Google Cloud - Community

·Oct 9, 2019

Surviving traffic spike from Hacker News: my dreaded Google Cloud invoice

This story relates events that happened on September 26th, 2019. They are all true. A website that I built, “Programming Idioms”, hit the first page of the “orange site” (aka Hacker News). My cloud provider monitoring console let me find out if the sudden traffic had caused an outage or…

Hacker News

10 min read

Surviving traffic spike from Hacker News: my dreaded Google Cloud invoice
Surviving traffic spike from Hacker News: my dreaded Google Cloud invoice
Hacker News

10 min read


Published in Google Cloud - Community

·Jan 24, 2019

Dancing gopher with Cloud Functions

The Beta support for Go 1.11 on Google Cloud Functions has been announced last week. Here are a few details about the Dancing Gopher factory function that I tweeted about. First, it’s easier to have some code already working on my local machine, before throwing it to GCF. …

Google Cloud Platform

3 min read

Dancing gopher with Cloud Functions
Dancing gopher with Cloud Functions
Google Cloud Platform

3 min read


Dec 21, 2018

App Engine standard in Go: en route to 1.11

TL;DR migrating to the new runtime is a good idea, give it a try! I’ve been running a website on the App Engine standard go runtime for years (since ~2013), and I’ve always been thankful for how well it is managed by the cloud provider: What I deploy simply keeps…

Google Cloud Platform

6 min read

App Engine standard in Go: en route to 1.11
App Engine standard in Go: en route to 1.11
Google Cloud Platform

6 min read


Aug 9, 2018

Race-free doesn’t mean deterministic

In this article about the Go race detector, I emphasize that violating the Memory model with unprotected concurrent accesses is a serious error. I must add that fixing the data races doesn’t make a program execution trace deterministic. …

Golang

2 min read

Race-free doesn’t mean deterministic
Race-free doesn’t mean deterministic
Golang

2 min read

Val Deleplace

Val Deleplace

467 Followers

Engineer on cloudy things @Google. Opinions my own. Twitter @val_deleplace

Following
  • Aliaksandr Valialkin

    Aliaksandr Valialkin

  • Alexis MP

    Alexis MP

  • Damian Gryski

    Damian Gryski

  • Robert Grosse

    Robert Grosse

  • Alex Grigoryan

    Alex Grigoryan

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech