News for hackers. Stuff that matters.
Re:Git Internals, Techniques, and Rewriting History by jeanmichelx on Monday October 21, 2019 @09:23AM (#21311949)
Cool post, i wish I could do something similar at work.

I'm wondering why you went through the pain of making an HTTP server to process JS files, instead of say putting the temporary file over a ramdisk and running the formatters in parallel over multiple files. Plus, even if it's slow, you only have to run it a few times right?

Re:Git Internals, Techniques, and Rewriting History by acemarke on Monday October 21, 2019 @11:14AM (#21313212)
A RAM disk never even crossed my mind :) I know they exist and have used one in the past, but it didn't occur to me as a possible tool. Also, I was doing this on Windows, and I don't even know if you _can_ set up a RAM disk on Windows. (edit and of course as I say that, someone literally just linked a Windows RAM disk FS driver upthread.)

And no, I was re-running this _dozens_ of times to get it right, especially when I was in the "run -> transform fails on broken JS code -> debug -> write regex -> rerun" portion.

Re:Git Internals, Techniques, and Rewriting History by jeanmichelx on Tuesday October 22, 2019 @05:07AM (#21321579)
Ah makes sense you want to be fast then! Thanks for your answer