This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export memory memory(initial: 2, max: 0); | |
global g_a:int = 65536; | |
table T_a:funcref(min: 12, max: 12); | |
data d_syncunlockofunlockedMutexinv(offset: 65536) = | |
"\08\00\01\00\1e\00\00\00sync: unlock of unlocked Mutexinvalid syntaxre" | |
"flect: call of reflect.Type. on invalid typeTreflect: call of reflect." | |
"Value. on invalid type/proc/self/exeout of memorypanic: runtime error:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit dvga; | |
{$G+} { generate 286 instructions -- needed for shl 6/8 } | |
{ for rect, should I inline the hline routine, | |
and convert the rest to asm? } | |
interface | |
const | |
maxx=319; | |
maxy=199; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.model tiny | |
.radix 16 | |
.data | |
jmp start | |
;k1 dw 6255 | |
;k2 dw 3619 | |
k1 dw 24CD | |
k2 dw 1 | |
seed dw ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Ian Lance Taylor | |
After many discussions and reading many comments, we plan to move | |
forward with some changes and clarifications to the generics design | |
draft. | |
1. | |
We’re going to settle on square brackets for the generics syntax. | |
We’re going to drop the “type” keyword before type parameters, as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build gofuzz | |
package viaproxy | |
import ( | |
"bytes" | |
"io" | |
"net" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
laptop:cppgo dgryski$ cat gen.go | |
package main | |
//go:generate cpp-7 -E -P foo.gopp foo.go | |
laptop:cppgo dgryski$ cat foo.gopp | |
package main | |
import "fmt" | |
#define STRINGIFY(x) #x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dgryski@kamek[go] \ʕ◔ϖ◔ʔ/ > ag '// [A-Z]+(\([^\)]*\))?: ' |sed 's/.*\/\/ //; s/:.*//; s/(.*)/(username)/' |sort |uniq -c |sort -n | |
1 ARM | |
1 ASCII | |
1 BP | |
1 BX | |
1 CAVEAT | |
1 D | |
1 DATABUNDLE | |
1 DATABUNDLEEND | |
1 EXCEPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"strings" | |
"testing" | |
) | |
var m = map[string]bool{"hello.goodbye": true} | |
func old(req string, filter map[string]bool) string { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BenchmarkKetama8-4 5000000 373 ns/op | |
BenchmarkKetama32-4 5000000 394 ns/op | |
BenchmarkKetama128-4 3000000 433 ns/op | |
BenchmarkKetama512-4 3000000 538 ns/op | |
BenchmarkKetama2048-4 2000000 672 ns/op | |
BenchmarkKetama8192-4 2000000 978 ns/op | |
BenchmarkChash8-4 10000000 129 ns/op | |
BenchmarkChash32-4 10000000 136 ns/op | |
BenchmarkChash128-4 10000000 220 ns/op | |
BenchmarkChash512-4 5000000 318 ns/op |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dgryski@kamek[w] \ʕ◔ϖ◔ʔ/ > cat main.go | |
package main | |
import "log" | |
type X struct { | |
body string | |
} | |
type Message interface { |
NewerOlder