Skip to content

Instantly share code, notes, and snippets.

View dr2chase's full-sized avatar
💭
I am working on Go stuff

David Chase dr2chase

💭
I am working on Go stuff
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dr2chase
dr2chase / GolangBostonMeetup_2017_06_debugging.md
Created June 28, 2017 19:49
Notes from the Golang Boston Meetup 2017-06-27 debugging meeting

Here are my notes from the Golang Boston Meetup 2017-06-27 debugging meeting, such as they are. Corrections/elaborations welcome.

Notes from debugging group. TLDR: fmt.Println is still very common; nobody in the room knew everything -- i.e., there's debugging tricks and techniques that you probably don't know; there's ever so much "upside potential" in the current tools.

Techniques mentioned:

  • fmt.Println
@dr2chase
dr2chase / 18597-args-results-in-registers.md
Last active October 5, 2017 17:49
Browsable copy of golang proposal CL 35054

Proposal: Passing Go arguments and results in registers.

Author(s): David Chase

Last updated: 2017-01-10

Discussion at https://golang.org/issue/18597.

Abstract

@dr2chase
dr2chase / gogollvm3.log
Created July 9, 2019 15:28
Raw compilation and benchmark results, Go vs Gollvm -O3 (including stdlib)
This file has been truncated, but you can view the full file.
( GOPATH=/usr/local/google/home/drchase/work/bent/gopath GO111MODULE=auto go get -d -t -v github.com/ethereum/go-ethereum/common/bitutil )
( GOPATH=/usr/local/google/home/drchase/work/bent/gopath GO111MODULE=auto go get -d -t -v github.com/ethereum/go-ethereum/swarm/storage )
There was an error running 'go get', stderr = github.com/ethereum/go-ethereum (download)
package github.com/ethereum/go-ethereum/swarm/storage: cannot find package "github.com/ethereum/go-ethereum/swarm/storage" in any of:
/usr/local/google/home/drchase/work/go/src/github.com/ethereum/go-ethereum/swarm/storage (from $GOROOT)
/usr/local/google/home/drchase/work/bent/gopath/src/github.com/ethereum/go-ethereum/swarm/storage (from $GOPATH)
DISABLING benchmark ethereum_storage
( GOPATH=/usr/local/google/home/drchase/work/bent/gopath GO111MODULE=auto go get -d -t -v github.com/ethereum/go-ethereum/consensus/ethash )
( GOPATH=/usr/local/google/home/drchase/work/bent/gopath GO111MODULE=auto go get -d -t -v github.com/ethereum/go-ethereum/core/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Performance Result Comparison</title>
<style type="text/css">
#header h1 {
display: inline;
}
#search {
@dr2chase
dr2chase / transform.(*SBRT).Forward.html
Created May 17, 2021 20:00
1.16, ssa.html for transform.(*SBRT).Forward
This file has been truncated, but you can view the full file.
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
body {
font-size: 14px;
font-family: Arial, sans-serif;
}
h1 {
@dr2chase
dr2chase / transform.(*SBRT).Forward.html
Created May 17, 2021 20:03
1.17, ssa.html for transform.(*SBRT).Forward
This file has been truncated, but you can view the full file.
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
body {
font-size: 14px;
font-family: Arial, sans-serif;
}
h1 {
@dr2chase
dr2chase / transform.(*SBRT).Inverse.html
Created May 17, 2021 20:05
1.17, ssa.html for transform.(*SBRT).Inverse
This file has been truncated, but you can view the full file.
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
body {
font-size: 14px;
font-family: Arial, sans-serif;
}
h1 {
@dr2chase
dr2chase / transform.(*SBRT).Inverse.html
Created May 17, 2021 20:07
1.16, ssa.html for transform.(*SBRT).Inverse
This file has been truncated, but you can view the full file.
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
body {
font-size: 14px;
font-family: Arial, sans-serif;
}
h1 {