keleshev Profile Banner
Vladimir Keleshev Profile
Vladimir Keleshev

@keleshev

Followers
2K
Following
4K
Media
303
Statuses
6K

Programmer, author of Compiling to Assembly from Scratch: https://t.co/7YcZc355RD

Copenhagen
Joined October 2010
Don't wanna be here? Send us removal request.
@keleshev
Vladimir Keleshev
10 months
Yo folks, today is the day! . 1. Compiling to Assembly from Scratch is available in print for $49. 2. It is free to read online from the book's website. And I'm not telling you the website, because this platform simply cannot tolerate links.
Tweet media one
3
16
101
@keleshev
Vladimir Keleshev
9 months
Anyway, this was inspired by me reading the HN piece on jj version control system. I will have to try it. I think it makes a lot of sense. I have always visualized staging area as an "undercooked" commit, with working directory as an even more "undercooked" commit on top of it.
1
0
1
@keleshev
Vladimir Keleshev
9 months
RT @yawaramin: @keleshev -p is to prune ie delete local tracking branches whose upstream branches have been deleted from the origin. It's a….
Tweet card summary image
github.com
Contribute to yawaramin/dotfiles development by creating an account on GitHub.
0
1
0
@keleshev
Vladimir Keleshev
9 months
In the code snippets I, of course, forgot to write `git push origin …` instead of `git push …`. I do this mistake all the time.
1
0
1
@keleshev
Vladimir Keleshev
9 months
So, I basically use git in a very centralized fashion, only working with origin branches, not creating a single local branch, creating headless commits and pushing them immediately.
1
0
0
@keleshev
Vladimir Keleshev
9 months
git commit -a # and now we're in a headless state. git push HEAD:refs/heads/my-new-branch # this creates a branch. …code more…. git commit -a. git push HEAD:my-new-branch # push to existing branch. …work more, occasionally merge/rebase push/force-push….
1
0
0
@keleshev
Vladimir Keleshev
9 months
I'm not sure why I do it, but for years I've had this (probably weird) git workflow:. git fetch -p # don't remember what -p is for, but remember there was some gotcha I want to always avoid. git checkout origin/main # yes, the origin one. …code, then….
2
0
2
@keleshev
Vladimir Keleshev
10 months
RT @ErikRose: I am on the job market! I've written chunks of Firefox, 5 of the top-1% Python libraries, and the update machinery for Let’s….
0
5
0
@keleshev
Vladimir Keleshev
10 months
Another "first": someone bought two copies!.
0
0
3
@keleshev
Vladimir Keleshev
10 months
Big shout out to @PbKatiuska who illustrated the cover! For the print edition she drew 15 chapter illustrations. If you liked the cover, wait until you see the chapter illustrations!.
0
0
3
@keleshev
Vladimir Keleshev
10 months
First sale! It's from Germany!.
2
0
1
@keleshev
Vladimir Keleshev
10 months
Someone already posted it on Hacker News! Give it a thumbs up there.
1
0
2
@keleshev
Vladimir Keleshev
1 year
You don't make this easy for me, do you?.
0
0
1
@keleshev
Vladimir Keleshev
1 year
Oh, the mathematical elegance of APL! Even the logarithm operator is stylized to look like a natural log…
Tweet media one
0
0
3
@keleshev
Vladimir Keleshev
1 year
Why should I type "echo $?" every time—let the computer do the work!.
0
0
1
@keleshev
Vladimir Keleshev
1 year
But I'm simplifying. Actually, I have one whistle and bell, and my prompt is this (zsh):. nl=$'\n'; PROMPT="%(?. ${nl}; echo $""?${nl}%?${nl})${nl}; ". Which is same as before, but with a conditional. If some command exited with an error code—say 42—print:. ; echo $?.42.
1
0
1
@keleshev
Vladimir Keleshev
1 year
Like, it's *my* laptop. I *know* the username and host, alright…. And the current directory path is in the tab name anyway.
1
0
1
@keleshev
Vladimir Keleshev
1 year
Never been fond of complicated colorful shell prompts with bells and whistles, but recently reached complete zen with the following one:. PROMPT="; ". Inspired by @thingskatedid to use the semicolon to be able to easily copy shell commands from terminal to files.
Tweet media one
2
0
2
@keleshev
Vladimir Keleshev
1 year
[Blog] Pretty Printing in OCaml: A Format Primer.
2
0
6
@keleshev
Vladimir Keleshev
1 year
Dear colleague, your code review grew so stale, I had to dismiss it.
0
0
0