Skip to content

Instantly share code, notes, and snippets.

View khozaei's full-sized avatar

amin khozaei khozaei

View GitHub Profile
@khozaei
khozaei / cclsconfig.lua
Last active December 11, 2022 08:00
nvim config for c
-- .config/nvim/lua/cclsconfig.lua
require('ccls').setup({
lsp = {
use_defaults = true,
codelens = {
enable = true,
events = {"BufWritePost", "InsertLeave"}
}
}
})
@khozaei
khozaei / WhyILikeGo.md
Created May 28, 2017 20:54 — forked from freeformz/WhyILikeGo.md
Why I Like Go

A slightly updated version of this doc is here.

Why I Like Go

I visited with PagerDuty yesterday for a little Friday beer and pizza. While there I got started talking about Go. I was asked by Alex, their CEO, why I liked it. Several other people have asked me the same question recently, so I figured it was worth posting.

Goroutines

The first 1/2 of Go's concurrency story. Lightweight, concurrent function execution. You can spawn tons of these if needed and the Go runtime multiplexes them onto the configured number of CPUs/Threads as needed. They start with a super small stack that can grow (and shrink) via dynamic allocation (and freeing). They are as simple as go f(x), where f() is a function.