Open in app

Sign In

Write

Sign In

Isshiki🐈
Isshiki🐈

6 Followers

Home

About

Jan 23, 2021

PostgreSQL for MacOS on Docker

If you are just like me, want to learn PostgreSQL but don’t want to mess up your system, docker is for you.

Docker

1 min read

Docker

1 min read


Jan 18, 2021

Why Go(routines)?

To understand the importance of goroutines, we must first understand concurrency and parallelism. As we all know, it’s the CPU, or more precisely, its core, that executes our code, and one CPU core can handle only one instruction at a time. It’s OK back in the days when people still…

Golang

3 min read

Golang

3 min read


Jan 16, 2021

Golang: Modules and Build Tools

Based on this Stack Overflow answer Before the introduction of Go modules, the file structure of local Go projects were like // an executable $GOPATH/github.com/you/project1 -> $GOPATH/github.com/you/project1/package_main -> $GOPATH/github.com/you/project1/package1 -> $GOPATH/github.com/user_a/project1/package2 // imports project3 -> $GOPATH/github.com/user_a/project1/package3 // an executable $GOPATH/github.com/user_b/project2 -> $GOPATH/github.com/user_b/project2/main_package -> $GOPATH/github.com/user_b/project2/package_a -> $GOPATH/github.com/user_b/project2/package_b…

Golang

2 min read

Golang

2 min read


Jan 11, 2021

Go Slices Are Dynamic Arrays

Despite what’s said about Go slices in this blog post, if you really know what dynamic arrays are internally, you should immediately recognize the resemblance between Go’s slices and a dynamic array. To be more precise, a typical dynamic array implementation is like typedef struct { int *array…

Golang

1 min read

Golang

1 min read


Jan 11, 2021

Why Interface, and when.

Based on https://www.calhoun.io/how-do-interfaces-work-in-go/ Coming from a C background, I did not understand the importance of interfaces at first, but as it turns out, in some way, interfaces can make object oriented programming a lot easier. What confused me about Go’s interface was that if we still have to write the…

Golang

3 min read

Golang

3 min read


Jan 9, 2021

AB Benchmark

Test your HTTP server with ApacheBenchmark (shipped along with apache2) like ab -n 100 -c 10 -rkl http://127.0.0.1:1234 Check out man ab to find out what each of these options means. An similar alternative to ab is wrk.

1 min read

1 min read


Jan 5, 2021

pacman

Install packages using pacman # update and yes to all questions sudo pacman -Syyu # install a package, apache in this case sudo pacman -S apache

1 min read

1 min read


Jan 1, 2021

select/poll/epoll

Based on this medium post Long story short, when you use epoll, the kernel keeps relevant data in the kernel space, monitors files in the interest list behind the scene and sends back only a short list of ready descriptors. On the contrary, poll/select is more like an on-demand service…

Computer Science

1 min read

Computer Science

1 min read


Jan 1, 2021

Anything?

Based on The Linux Programming Interface Today, if you are writing a server (HTTP daemon) program, you should be expecting tens of thousands of connections already, and oftentimes, after these connections are established, most of them will just remain alive for the minutes to come to save unnecessary hand-shakings. But…

Programming

3 min read

Programming

3 min read


Dec 29, 2020

Call and Ret

Based on this Stack Overflow answer and this Stack Exchange answer Just like cmp and jl, the call and ret instructions accomplish many tasks using a single instruction so it’s a bit hard to see what they are doing (if you don’t know about it already). If you take a…

Assembly

2 min read

Call and Ret
Call and Ret
Assembly

2 min read

Isshiki🐈

Isshiki🐈

6 Followers

Writing short notes.

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech