A few months ago I introduced gb as a proof of concept to the audience at GDG Berlin. Since then, together with a smallband of contributors and an enthusiastic cabal ofearly adopters, gb has moved from proof of concept, written mostly on trains during a trip throughEurope, to something approaching ausablebuild tool. This post gives an introduction to gb, and explains the benefits of adopting
【追記】2023年3月21日 YAPC::Kyoto2023で、ジョブキューシステムFireworqの設計と運用実績も含めて発表されました。id:tarao ++ 【加筆修正】 2020年2月16日 執筆時から6年も経過していますが、たまたまこの記事を振り返る機会があったので、日本語がおかしいところを一部修正したり、一緒に取り組んだ方々の名前が書かれていなかったところを修正しました。 【追記】2017年12年24日 このエントリのジョブキュー実装がFireworqという名でOSSとして公開されました。id:tarao ++github.com この記事ははてなエンジニアアドベントカレンダー2014の4日目です。 前回はMackerelで採用している技術一覧とその紹介 -Hatena DeveloperBlog でした。 社内の開発合宿で、 id:taraoさん、id:hakobe

Introduction toGo 1.4 The latestGo release, version 1.4, arrives as scheduled six months after 1.3.It contains only one tiny language change, in the form of a backwards-compatiblesimple variant of for-range loop, and a possiblybreaking change to the compiler involving methods on pointers-to-pointers. The release focuses primarily on implementation work, improving the garbage collector and pre

Today we announceGo 1.4, the fifth major stable release ofGo, arriving six months after our previous major releaseGo 1.3.It contains a small language change, support for more operating systems and processor architectures, and improvements to the tool chain and libraries. As always,Go 1.4 keeps the promise of compatibility, and almost everything will continue to compile and run without change

ISUCON4 予選1日目に、 lily white というチームで参戦してきました。 試合中に 62000 点は出していたのですが、最終的に提出したスコアは 60344 点でした。 以降、予選終了までと、その後に気づいたさらにスコアを上げる方法について書いていきます。 実際の提出時のコードは methane/isucon4q-go リポジトリの "final" タグを見てください。 準備 (~前日) 予選方式が発表された時点で、 isucon3 予選と同じ方式だったので、有効な作戦もほぼ同じになる事が予測できました。 具体的には以下のとおりです。 PIOPS な EBS を使わないので、性能が不安定なディスクがネックになる問題は無いでしょう。 1インスタンスのみを使うということから、ネットワーク帯域がネックになる可能性も無いはずです。 ほぼ確実にCPU ネックな問題が出るはずです。 ア

Introduction This weekDocker announced official base images forGo and other major languages, giving programmers a trusted and easy way tobuild containers for theirGo programs. In this article we’ll walk through a recipe forcreating aDocker container for asimpleGo web application and deploying that container toGoogle Compute Engine. If you’re not familiar withDocker, you should read Under

Go ForPerl Mongers (or, for Lightweight Language lovers) Daisuke Maki Engineer,LINE Corporation Who Is This Guy? @lestrratLINE / JapanPerl Association / YAPC::Asia (2008~2013) STF / peco (new!) 2 俺とGoGoしてみて約1年弱 概算10~12万行くらい書いた。lived○○rBl○g の裏方にもこっそりgo入れてる 最初の4万行くらいまでにgoの落とし穴にほぼ全て落ちた 自信がある 今日はその落とし穴から学んだ諸々の話 3 対象観客層 もともとPerl/Python/Ruby/PHPあたりから来た人Goは最低限とりあえずかじった程度はやった人 かじってみたけど「Go、便利そうだけどなん
簡単なチャットプログラムは、ネットワークプログラミング用のフレームワークでは定番のサンプルプログラムです。 echo サーバーが Hello World とするなら、チャットは FizzBuzz といったところでしょう。 とりあえず動くだけのチャットならだれでもすぐに作れるようになりますが、まじめにチャットを作ることで、 ネットワークプログラミングで考えないといけない点やエラー処理の重要な基礎を学ぶことができます。 ということで、Go でシンプルなチャットを実装してみました。 (ソースコード) 以降、何を考えてどういう設計を採用したのかを解説していきます。 考慮すべきポイント 特定のクライアントへの送信に長時間待たされた場合に、他のクライアントへの送信が遅れないようにする。 クライアントを切断するのは、 (1)ルーム側から kick する場合, (2)受信エラー, (3)送信エラー の3

What isGoji?Goji is a HTTP request multiplexer,similar tonet/http.ServeMux.It compares incomingrequests to a list of registered Patterns, and dispatches to the Handler that corresponds to the first matching Pattern.Goji also supports Middleware (composable shared functionality applied to every request) and uses the standard context to store request-scoped values. Quick Start InstallGoji by
golangいまどき例外ないの頭おかしいって思ってたけどようするにgoroutineと例外がうまくいかないからgoroutineのほう取って例外捨てたってことかねえ。 — Urabe, Shyouhei (@shyouhei) April 15, 2014 FAQ に書いてあります。 Why doesGo not have exceptions? - Frequently Asked Questions (FAQ) - TheGoProgramming 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

Go言語の名前の由来について、デマを思いついたGo言語の名前の由来について、デマを思いついたので、ちょっと面白いと思った人は広めてほしい。Go言語の名前の由来って知ってる? あれは日本語の数字の5(ゴー)から来てるんだよ。 5は4(シー)、つまりC言語の次だから。 つまりC++やC#と同じ由来なのね。 あ、C#はC++++なんだよ。知ってた?(注:これは本当) こんな感じで。Go言語はブレイク寸前であり、かなりの関心を集めているが、まだ詳しく知られてはいないので、デマを広めるには今が絶好と思う。 なんでロブ・パイクやケン・トンプソンが日本語を知ってるんだ、ともっともな指摘を受けた場合こんな感じで返していただきたい。 ロブ・パイクやケン・トンプソンがUTF-8の考案者だということは知ってる?(注:これは本当) で、彼らがそれを考案するきっかけは、慶應の村井純先生が、ベル研で「日本語」につ

そういやまだ新しい経験だから覚えてるし、golang を勉強していった過程を書いておく。 正しさとかは気にせず、動くものが出来るまでがむしゃらに。 Hello, world まで 特にひねりはない。 homebrew は便利だ。 $ brew installgo $ cd ~ $ mkdir -pgo/src/hello_world $ exportGOPATH=${HOME}/go $ cdgo/src/hello_world $ cat main.go package main import "fmt" func main() { fmt.Println("hello, world") } $go run main.go hello, world 手軽。 入門、そして組み込みパッケージを使う http://golang.org/pkg/ に組み込みパッケージの一覧があるので

1リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く