HNHacker News
TopNewBestAskShowJobs

johnnypangs

305 karma · joined May 5, 2021

submissionscomments
johnnypangs··on LinkedIn Larpmaxxing
Good on you for doing this and I hope you get promoted. But I can imagine a lot of people are like me and just don’t want to engage in office politics on or offline. Not that I don’t sometimes, but I’d much rather just work and be paid to do a job and live my life.
johnnypangs··on On caring for user data: NeoVim caused Vim undo files to be deleted
I have a far less sensationalist headline for this which is:

Two programs that save their cache in the same folder causes issues.

johnnypangs··on On caring for user data: NeoVim caused Vim undo files to be deleted
But you still have to share the undodir for both vim and neovim right? If your undo data was that precious why would you gamble the interoperability? You could just have them in different folders and it would be fine.

So the case is, you really need you undo history and want to try out neovim so you just copy paste you vimrc to the new place and accidentally delete your data? I don’t think it’s that bad personally. It’s bound to happen but it’s not automatic.

johnnypangs··on On caring for user data: NeoVim caused Vim undo files to be deleted
Do you have a link to how this happened? From what I understand you’d have to point the undodir at the same place as vim for this to happen? It’s not this way by default and you have to put a copy of the exact same thing in your neovim vimrc right without understanding that it would do this?
johnnypangs··on Let's make quality the norm again
Even this site on mobile has issues with unnecessary horizontal scroll.
johnnypangs··on Pnpm 12.0
To be fair to the pnpm maintainers, they have been working on this well before the bun AI rewrite. The first commit in their rust experiment is in 2021.

https://github.com/pnpm/pn/commits/main/?after=e24c0b293f1f4...

johnnypangs··on Thomson Reuters Launches Its Own Frontier Model
Here is some more technical information on how this was trained, as well as a download link.

https://huggingface.co/thomsonreuters/Thomson-1.0-Small

(Full disclosure I’m a TR employee, although I had nothing to do with making this)

johnnypangs··on Thomson Reuters Launches Its Own Frontier Model
It’s on hugging face, I suppose one could do those themselves?

https://huggingface.co/thomsonreuters/Thomson-1.0-Small

johnnypangs··on Microsoft starts canceling Claude Code licenses
I don’t think people read the article, I didn’t until I saw your comment. The article feels like clickbait tbh.
johnnypangs··on Rewrite Bun in Rust has been merged
I think the unusual thing is that it was written in a week. I highly doubt that they read and understood all 1M lines. But if it works and people use it, what does that mean for software? Should we still care about the code that’s written? Should we even look? I’ve always thought so, but maybe I’m just biased.
johnnypangs··on A Safer Container Ecosystem with Docker: Free Docker Hardened Images
Good news, you can already pay for it ;)

https://docs.docker.com/dhi/features/#dhi-enterprise-subscri...

johnnypangs··on Normalize.css
Ive always found this explanation helpful for why these are useful:

https://www.joshwcomeau.com/css/custom-css-reset/

johnnypangs··on Vite+ – Unified toolchain for the web
It seems to just be a plan at the moment although like you say you can test it out:

https://vite.dev/guide/rolldown.html#how-to-try-rolldown

Nothing is keeping them to this plan other though, I hope they do follow through. That would make the graph on the page misleading in the other direction though as the speed feature would be included in the non plus version.

I want to also say I'm a happy vite user (and the other projects that team makes).

johnnypangs··on Vite+ – Unified toolchain for the web
Ehhhhh... what does this mean for the open source versions of all these libs? You could interpret some of the graphs as vite oss isn't getting rolldown. That would be disappointing but still okay.
johnnypangs··on Formatting code should be unnecessary
I’ve used this before, it helps when you format the entire repo and remove the one commit from the history https://docs.github.com/en/repositories/working-with-files/u...
johnnypangs··on Neovim Pack
The mini.nvim maintainer is the one who did a lot of the work for pack I believe:

https://github.com/neovim/neovim/pulls?q=is%3Apr+pack+is%3Ac...

johnnypangs··on Next.js is infuriating
Vite is coming along with rsc at least. https://github.com/vitejs/vite-plugin-react/tree/main/packag...
johnnypangs··on Are OpenAI and Anthropic losing money on inference?
As one of those people who doesn’t really understand llms, does anyone have any recommendations to better my understanding of them?
johnnypangs··on 16B passwords from Apple, Facebook, Google and more leaked
Seems like there is more context on this that this article misses: https://www.pcgamer.com/software/security/no-16-billion-pass...
johnnypangs··on Zed: High-performance AI Code Editor
Shout out to Better Display, I find it helps with Lo DPI blurriness in general on macOS

https://github.com/waydabber/BetterDisplay

johnnypangs··on Overengineered Anchor Links
Agreed, I really liked how the site looked. I thought it was really slick and I am blown away by the how easy the author added extra information in a blog post. Nice work!
johnnypangs··on Ereader Easy Swedish. Tool I Made for Myself to Learn a Language
There’s even radio and Swedish ebooks in “lätt” or easy Swedish. Helped me when I learned:

Easy Swedish radio news: https://www.sverigesradio.se/grupp/22720

Easy Swedish books: https://www.bokus.com/cgi-bin/product_search.cgi?series=L%E4...

johnnypangs··on Show HN: GoatDB – A lightweight, offline-first, realtime NoDB for Deno and React
I’m a bit confused, if it runs in the client why does it require deno?
johnnypangs··on JavaScript dos and donts Mu-An Chiou
I looked a bit into the JavaScript loaded when going to GitHub and my best guess as to what it’s using react for is the copilot chat.

It’s still using turbo rails and doing full ssr reloads. Something very at odds with react router which it’s also loading.

It’s still loading catalyst (their homebrew web component lib) which from what I understand doesn’t seem to offer react bindings. It even loads lit (another web component lib), which I couldn’t find the react bindings for.

If it’s just for the copilot chat I’d still say GitHub is mainly rails based though would love to hear if anyone has any more / better insight.

johnnypangs··on JavaScript dos and donts Mu-An Chiou
Doesn’t github use Rails and web components? They definitely gotten more frontend heavy though…

https://github.blog/engineering/architecture-optimization/ho...

johnnypangs··on Git-absorb: Git commit –fixup, but automatic
Seems like you can add —no-edit and get the same behavior, now I can delete that alias. Thanks again :)

(Edit: typo)

johnnypangs··on Git-absorb: Git commit –fixup, but automatic
I see, the reason it’s that long complicated alias was that I didn’t want to open up the editor to change the commit every time I updated. “git commit —amend” does that.

I read the rough how it works and it now makes sense. I might give it a try. Thanks!

johnnypangs··on Git-absorb: Git commit –fixup, but automatic
I guess the crate version is easier to soft reset?
johnnypangs··on Git-absorb: Git commit –fixup, but automatic
I’ve been using this:

alias gfixup="git commit -v --fixup HEAD && GIT_SEQUENCE_EDITOR=touch git rebase -i --stat --autosquash --autostash HEAD~2"

From what I understand it does the same thing as this crate for the most part. All I do after is:

git push —force-with-lease

Not sure what you get from the crate otherwise

johnnypangs··on Epic Games Store and Fortnite Arrive on EU iPhones
You can install ublock origin but it doesn’t actually do anything on Orion on iOS. I tested it not too long ago, maybe things have changed but Orion still uses WebKit and iOSes APIs. I have heard Orion’s default ad blocker isn’t bad though.
Page 1 of 4Next →