HNHacker News
TopNewBestAskShowJobs

milkbikis

371 karma · joined July 8, 2012

submissionscomments
milkbikis··on Shiki Syntax Highlighter
Coincidentally, I recently looked into the slow startup time for shiki and it was mostly from parsing JSONC, not WASM: https://github.com/shikijs/shiki/issues/439.
milkbikis··on Show HN: Python Source Code Refactoring Toolkit via AST
Ah I didn’t know it was deprecated, but good to see new work happening in this area!
milkbikis··on Show HN: Python Source Code Refactoring Toolkit via AST
Nice, I've always thought Python could do better by adopting source transformation tools like babel. I implemented something similar using lib2to3, which preserves whitespace and comments more accurately (than the ast module): https://github.com/banga/prefactor
milkbikis··on Ask HN: Tools you have made for yourself?
I wrote https://github.com/banga/git-split-diffs mainly to scratch an itch about not having side by side git diffs in the terminal, then ended up adding more fancy features like syntax highlighting and it got somewhat popular.
milkbikis··on Show HN: GitHub style split diffs in your terminal
Yeah I looked into bundling and deno, but neither of those seemed palatable at this point. Deno’s ecosystem is still quite small, so I’d have to implement things like syntax highlighting from scratch which is not feasible. Other bundling options don’t seem all that reliable / popular and they aren’t really solving the actual issue of untrusted dependencies. So my current take is to just use node and be very conservative with dependencies.
milkbikis··on Show HN: GitHub style split diffs in your terminal
I actually tried to automate the screenshots for this project's readme using GitHub actions, but struggled to get it to produce the same quality screenshots as my local machine. This is the script I use for now, which has to be invoked manually: https://github.com/banga/git-split-diffs/blob/main/scripts/g...
milkbikis··on Show HN: GitHub style split diffs in your terminal
:) thanks nayak!
milkbikis··on Show HN: GitHub style split diffs in your terminal
The slowest operation is syntax highlighting: https://github.com/banga/git-split-diffs#performance. I have a PR out to improve that somewhat.

Good point about the themes, I'll add one. I'm hoping to make it easy to customize individual theme colors so you could unset the background colors, for example

milkbikis··on Show HN: GitHub style split diffs in your terminal
Yes this is the default behavior for git-split-diffs: https://github.com/banga/git-split-diffs#narrow-terminals
milkbikis··on Show HN: GitHub style split diffs in your terminal
Yeah I (un)fortunately learned about delta too late or I probably wouldn't have made this. The main difference is that delta's default styles and appearance did not appeal to me. I'm sure it can be customized, but I wanted something that looked great by default. I especially like that the syntax highlighting matches vscode's since that's the editor I use for work.
milkbikis··on I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA
My wife and I are both on H1B. If one of us has to go to H4 due to unavoidable circumstances, can that person again apply for H1B while in US?
milkbikis··on What's the smallest country that can fit everyone standing six feet apart?
Author here. I also prefer metric in general, but the "6 feet" guideline has been so recognizable that I decided to convert to imperial to preserve it. It also helps compare with San Francisco where I live, which is famously 7x7 miles.
milkbikis··on What's the smallest country that can fit everyone standing six feet apart?
Ah you're right, thanks! I didn't notice the comments here before, will fix.
milkbikis··on Little known features of iTerm2
Wow, thanks for creating it!
milkbikis··on Get that job at Facebook (2012)
Hi! Just pitching in here as an outsider who has interviewed twice with Facebook and talked to quite a few others (mostly fresh graduates) who have. I did not receive an offer on both occasions, but I'll try to remain unbiased. I did receive an offer from Google and Quora, if it helps.

Facebook's interview process seems to have a very high variance in terms of candidates' experiences about the process. In the telephone rounds, collabedit often has sync issues, which can be quite stressful for first timers. Occasionally, interviewers either do not speak clearly, keep moving away from the speakerphone or have a very difficult to understand accent (not sure how to solve this one). These two things compounded together have caused several people I know to have a terrible experience in the first round, and it appears that these issues are not taken into consideration when making a final decision, as was the case for me. I had two phone interviews because the first one had these issues. I was called to the campus for the final interviews, which I would certainly describe as "code problems", or more accurately as algorithm based problems. I actually found these interviews to be easier than the phone rounds, which was a common opinion among the other candidates I met. I was quite surprised to not get an offer and my guess is that the botched phone round had an effect, but I may be wrong.

This is intended as honest feedback rather than a sour grapes reaction to not being extended an offer. I have interviewed with several other companies and usually the experience is either consistently good or consistently bad, which at least gives the candidates a fair playing field. My guess would be that this feedback is getting ignored because it primarily comes from rejected candidates.

Finally, it would be great if software companies started sharing feedback about candidates' performance if they don't receive an offer instead of a cliched e-mail. Quora seems to be the only one doing this at the moment: https://www.quora.com/Quora-Recruiting/Can-I-get-the-feedbac...

milkbikis··on Keeping People
I think he's trying to depict the situation where one person becomes the go to guy for some component of the code, so everyone goes to him for code reviews etc. I vaguely remember Zach mentioning this in a talk he gave recently.
milkbikis··on Chief Architect of Google+ requests clarification on Google Reader
Anyone know what happened to G+'s Sparks? I think it was touted as a reader replacement.
milkbikis··on LibreOffice hits 4.0
I've been using SkyDrive for a while now, and it generally feels more usable to me. Is there a reason people prefer LibreOffice over that? I haven't used it as much, but it feels like I can't be sure what the document will look like back in Microsoft Office once I'm done editing it.
milkbikis··on Host webpages on Google Drive
Macs are quite popular at Google, actually
milkbikis··on Powerline style prompt for Bash, now for ZSH
On my machine:

real 0m0.075s

user 0m0.047s

sys 0m0.024s

This seems to be a common concern, but I've never noticed a delay in practice.

milkbikis··on Powerline style prompt for Bash, now for ZSH
There was some interest in getting this to work with ZSH when I first posted it. I just pushed a small change that makes it work for ZSH, and thought people might want to know.
milkbikis··on $50K bounty for practical robocall-killing technology.
Maybe instead of blocking, put this caller on a "hellban" list, where the calls go through but are redirected to robolisteners. Perhaps patch two robocallers with each other.
milkbikis··on A Powerline-style prompt for Bash
Oh, sorry about that. I just meant that it has only a $ sign which makes it small.
milkbikis··on A Powerline-style prompt for Bash
I didn't do anything- maybe it's smaller in Monaco?
milkbikis··on A Powerline-style prompt for Bash
Yup, just remove/comment out any portions (Powerline calls it segments) you don't like.
milkbikis··on A Powerline-style prompt for Bash
That's the CtrlP vim plugin, which runs a fuzzy search. In the screenshot I'm in the middle of a search so the matched part is partially highlighted.
milkbikis··on A Powerline-style prompt for Bash
I'd like to know too. Just saw it in a dotfile.
milkbikis··on A Powerline-style prompt for Bash
Hmm, that wouldn't let me keep the colors etc. I'm on iTerm btw, perhaps you mean the title in a screen/tmux session?
milkbikis··on A Powerline-style prompt for Bash
I used the ANSI control codes for moving the cursor, which seems to overwrite previous lines. Not sure if there's another way to achieve that without overwriting lines though.
milkbikis··on A Powerline-style prompt for Bash
Yeah, I also have one that fixes the prompt to the top so you only see a small '$' at the current line, but it messes up the terminal history.
Page 1 of 2Next →