サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
パリ五輪
darkcoding.net
Updated 2023-01-15 At the start of this year I argued that epoll is the API that powers the modern Internet, but what can you actually do with epoll? Once we structure our application around an epoll event loop or use an async engine such as Go or Rust’s tokio, it becomes really useful to integrate everything else into that event loop. What types of file descriptors can you add to epoll_ctl? What
Continuing our dive into the Internet Protocol Suite from Go (See part 1 Raw sockets in Go: IP layer), we are going to the link layer, so we can see the IP headers. This will also allow us to craft our own IP headers, or handle address families outside IP. We’ll send ping packets (ICMP echo request) and watch the kernel’s response. Receive This isn’t wrapped in Go, so we need a syscall. Otherwise
In the Internet protocol suite we usually work at the transport layer, with TCP or UDP. Go (golang) has good support for working with lower layers. This post is about working one layer down, at the IP layer. If you want to use protocols other than TCP or UDP, or craft your own packets, you need to connect at the IP layer. Receive Let’s read the first ICMP packet on localhost: package main import (
tl;dr: It looks like Facebook is getting the textbook results of ignoring code quality. Update: More examples, and insights from ex-employees in the reddit discussion Facebook has a software quality problem. I’m going to try to convince you with three examples. This is important because it demonstrates the time-honored principle that quality matters. In demonstrates it, as Facebook engineers like
My current project has a realtime part, using socket.io on nodejs, and a web part using django on nginx / gunicorn. Here’s a setup to put them both on the same port, and make them both go over SSL. I’m assuming you’re on Ubuntu. Disclaimer: I got this working last night, so no promises. You’ll certainly want to tweak haproxy’s config for performance. I also only tested it with socket.io’s web sock
On paternity leave for my second child, I found myself writing an in-memory hashmap (a poor-man’s memcached), in Go, Python and C. I was wondering how hard it would be to replace memcached if we wanted to do something unusual with our key-value store. I also wanted to compare my knowledge of the languages, and, well, I get bored easily! The code is on github as Key-Value-Polyglot. Each version imp
Credit card numbers that conform to the Luhn formula (MOD 10 check). Usefull for testing e-commerce sites (because they should get past any pre-validation you do, and be declined at the card processor or bank stage). In testing situations any expiry date within the next 3 years should work Feedback forces me to clarify this: These are NOT valid credit card numbers. You can’t buy anything with thes
このページを最初にブックマークしてみませんか?
『darkcoding.net』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く