Skip to content

u/Error401

In this archive from May 2011 to Jul 2023

4
posts
22
comments
0
media
128
score

Top posts

Top comments

Oh, yeah, please don't curl localhost like this in 2023.

The particular reason this worked better than those solutions (especially at the time) is because it was a web request and went through the same auth and other flows that a web request would go through, which was very convenient. Facebook was pretty vanilla PHP (but running on HHVM) at the time and the routing was handled inside HHVM config files, not in userland code.

7 points

Learn C if you don't already know it and work on the kernel? Or look for unmaintained projects and consider maintaining them? There are always projects in need of more manpower.

Also, might I suggest running dwm as your window manager? It's a ridiculously lightweight tiling window manager (less than 2000 lines of code) and I love it. It's all in C and to make config changes, you need to recompile, but you can really make it your own. Just a thought.

7 points

Ha, that's true. This was a long time ago (I think it was around 2008). We were using Akamai at the time, not sure if they fully supported ESI back then, and I think the machine-locality was desirable for APC hitrate. We also did ended up using this primitive for things other than "just rendering raw HTML" (i.e., parallelizing parts of GQL queries) and those needed significant post-processing on the response, so ESI wouldn't have let us do that long-term.

Just a story about how these solutions tend to stick around.

6 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.