ãªã³ã¯ YAPC::Asia Tokyo 2015 Profiling & Optimizing in Go - YAPC::Asia Tokyo 2015 ä¸çæ大ãæå¼·ï¼YAPC::Asia Tokyoã®ãã£ãã¼ã¬ï¼ ãªã³ã¯ Google Docs YAPC: Go Debugging, Profiling, and Optimization Go Debugging, Profiling, and Optimization Brad Fitzpatrick YAPC::Asia Tokyo, 2015-08-22 bradfitz@golang.org, @bradfitz See speaker notes. Brad Fitzpatrick ð» @bradfitz I do computers. Married to @radkat. 3 kids. Xoogler. @gol
Go ã®è¨èªä»æ§ã¯ã·ã³ãã«ã§ä»ã®è¨èªã«æ¯ã¹ã¦ã¯ã¾ãã©ãããå°ãªãã¦å¦ç¿ã³ã¹ããå°ãããªè¨èªã®ããã«æãã¾ããããããããã§ãã¯ã¾ãã¨ããããªãããã§ã¯ãªãã®ã§ãèªåãã¯ã¾ã£ã¦æéãç¡é§ã«ãã¦ãã¾ã£ããã¨ãæ¸ãçãã¦ããã¾ãã 念ã®çºèª¤è§£ã®ãªãããã«è¿½è¨ãã¦ããã¨ããã®ææ¸ã®ç®ç㯠Go ãæ¹å¤ãããã¨ã§ã¯ãªã Go ã Go ã§ãããããã« C++/Java/Python ãªã©å©ç¨è ã Go ã使ãå§ããã¨ãã«å°æãããã¯èª¤è§£ããã§ããããã¤ã³ããã¾ã¨ãã¦ãããã¨ã§åã㦠Go ã触ã人ãã¹ã ã¼ãºã« Go ã使ãå§ããããããã«ãããã¨ã§ããç§å人㯠Go ã¯ãã©ã³ã¹ãã¨ããè¯ãè¨èªã§ã ã¨æãã¾ãããæ°ã«å ¥ã£ã¦ãã¾ãã ç®æ¬¡ interface 㨠nil (Go ã® interface ã¯åãªãåç §ã§ã¯ãªã) æç® ã¡ã½ããå ã§ã¬ã·ã¼ã(this, self)ã nil ã§ãªããã¨ããã§
1. Go㧠ãããã ã½ã¼ã¹ã³ã¼ãã® éç解æ 2017/02/10ï¼åï¼ @ããçåå¼·ä¼ ç¬¬46å The Go gopher was designed by Renee French. The gopher stickers was made by Takuya Ueda. Licensed under the Creative Commons 3.0 Attributions license. 2. èªå·±ç´¹ä» ã¡ã«ã«ãªï¼ã½ã¦ã¾ã¦ ä¸ç°æä¹ twitter: @tenntenn â ã³ãã¥ããã£æ´»å Google Cloud Platform User Group (GCPUG) Tokyo Goãã®ãã¼ãº golang.tokyo Go Conference â æ¥å GAE/Goã§ã¡ã«ã«ãªã¢ãããä½ã£ã¦ã¾ã GoãGCPã³ãã¥ããã£ãçãä¸ããä»äº Gopherãæãä»äºï¼LIN
Goè¨èªã§ã¯go/astãgo/parserãgo/tokenããã±ã¼ã¸ã使ç¨ãããã¨ã§ãGoè¨èªã§æ¸ãããã½ã¼ã¹ã³ã¼ãã解æãããã¨ãã§ãã¾ãã 解æããã½ã¼ã¹ã³ã¼ãã表ç¾ããæ½è±¡æ§ææ¨ï¼AST:abstract syntax treeï¼ã®å½¢ã§åºåããã¾ãã æç« ã§ã¯é£ããã®ã§å®éã®ãµã³ãã«ã§è©¦ãã¦ã¿ããã¨æãã¾ãã 以ä¸ã®æ§ãªè§£æ対象ã®ã½ã¼ã¹ã³ã¼ããç¨æãã¾ãã package main import ( "fmt" "time" ) type MyInterface interface { Greeting() } type MyStruct struct { Name string } func (m *MyStruct) Greeting() { fmt.Printf("%v, %sãããããã«ã¡ã¯ï¼\n", time.Now(), m.Name) } func (m *MySt
Goæ¸ãã¦ã¦ãªãã¨ãªãè¦ãã¦ãã Goã§ãã£ã¡ããããªããã¿ã¼ã³ WAFå°å ¥ãã¦ããããWebã¢ã㪠WAFèªä½ãç¾å¨ç¾¤éå²æ ç¶æ ã WAFæ¯ã«ãã³ãã©ã¤ã³ã¿ã¼ãã§ã¼ã¹ãéãã®ã§æ¢åã³ã¼ãã¤ãªãã«ã¯ã©ããã¼ãå¿ è¦ã ã©ã®WAFãLLè¨èªã«æ¯ã¹ãã¨ã¾ã ã¾ã ãã£ã¼ãã£ã¼ã®ç¶²ç¾ ç¯å²ãçãã ãªã®ã§ãã¡ããLLè¨èªã»ã©æ¥½ã«ã¯æ¸ããªããã¨ãå¤ãã ãªãã¬ã¯ã·ã§ã³ä½¿ãã¾ããã§ãã¼ã¿ã«æ§è½ã¯LLè¨èªä¸¦ã¿ã«é ãã®ãããã Go1.7ã®contextããã±ã¼ã¸ã®å°å ¥ã§æ¨æºã®HTTPãã³ãã©ã復権ããå¯è½æ§ãããæ´ã«èããäºæ³ã 追è¨: 楽ã§ããã®ãæå¾ ãã¦WAFãå°å ¥ããã®ããã£ã¡ããããªããã¨ã¾ã§ã¯è¨ãéãã ã£ããããããªãããã©ä¾ã®sqlã§Prepareãæ£ãã使ãã¦ããªãã§æ§è½åºãªãã£ã件ã¨ããå½é¢WAFã使ããªãèªåã§æ¦ãä¸èº«ãç解ãã¦ä½¿ãè¦æãå¿ è¦ã æ§é ä½ã¡ã½ããã«ãã¸ãã¯ãè©°ãè¾¼ã Goã®ææ³
Goè¨èªæ¨æºã®testingããã±ã¼ã¸ãå人çã«ä½¿ãã¥ããã£ãã®ããã£ãã å人çã«ã«ã¸ã¥ã¢ã«ã«TDDããããã£ãã®ã§ãPythonã§ããassertEqualã¿ãããªãã®ãç¡ãtestingããã±ã¼ã¸ãå人çã«ä½¿ãã¥ããã£ãã¨ããã ãã§ãã(â»çè ã¯Pythonããã使ã£ã¦ãã¾ã) åãªãã¦ããããã¹ããªãgithub.com/stretchr/testify/assertããã±ã¼ã¸ãè¯ãã¨æã£ã ããã§ãã https://github.com/stretchr/testify testifyããã±ã¼ã¸ã®ä¸ã«assert, http, mockããã±ã¼ã¸ããã£ã¦ãããããç¬ç«ãã¦ä½¿ããã¨ãåºæ¥ã¾ãã importããã¨ãã¯ãäºåã«go get github.com/stretchr/testifyãè¡ããã³ã¼ãå é¨ã§ãããªæãã«importããã°ä»¥ä¸ã®ããã«ä½¿ãã¾ããå ¬å¼ãµã¤ãã®ä¾ã®ã¾
Go ã® Test ã«å¯¾ããèãæ¹ ãã®è¨äºã¯ Go Advent Calendar 2013 ã® 9 æ¥ç®ã®æ稿ã§ãã ä»åã¯ã Go ã® testing ã¨ããããã±ã¼ã¸ã®ä½¿ãæ¹ã解説ãããã¨æã£ãã®ã§ããã ããã ã¨ã¤ã¾ããªãããã®ã§ãåãã㦠Go ã test ã¨ããã assert ã«ã¤ãã¦ã©ãããã¹ã¿ã³ã¹ãã¨ã£ã¦ããããæ¸ãã¦ã¿ã¾ãã Go ã§ãã¹ã ãã¦ãããã¹ãã®ãªãã³ã¼ãã¯ã¬ã¬ã·ã¼ã³ã¼ãããªã©ã¨è¨ããã¦ä¹ ãããæ§ã ãªè¨èªã test (主㫠Unittest) ã«ã¤ãã¦è¨èªã¬ãã«ã§ãµãã¼ãããããããã¡ã¯ããªã©ã¤ãã©ãªã確ç«ãããã¨ãã£ãç¶æ³ããä»æ¥ã§ã¯è³ã£ã¦æ®éã®ãã¨ã¨ãªã£ã¦ãã¾ãã ãããªè¨èªãç°å¢ã§ãæ¯ãããããã«ãã¹ããæ¸ãã¦ããã¿ãªããããã¯ãã㦠Go ã§ã³ã¼ããæ¸ãæã«è¦ãã¹ã㯠testing ããã±ã¼ã¸ã§ãã http://golang.org/pkg
Eureka EngineeringLearn about Eurekaâs engineering efforts, product developments and more.
golangãã¾ã©ãä¾å¤ãªãã®é ããããã£ã¦æã£ã¦ããã©ããããã«goroutineã¨ä¾å¤ããã¾ããããªãããgoroutineã®ã»ãåã£ã¦ä¾å¤æ¨ã¦ãã£ã¦ãã¨ãããã â Urabe, Shyouhei (@shyouhei) April 15, 2014 FAQ ã«æ¸ãã¦ããã¾ãã Why does Go not have exceptions? - Frequently Asked Questions (FAQ) - The Go Programming Language We believe that coupling exceptions to a control structure, as in the try-catch-finally idiom, results in convoluted code. It also tends to encourage programme
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}