frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Mac history echoes in current Mac operating systems

http://tenfourfox.blogspot.com/2025/08/mac-history-echoes-in-mac-operating.html
40•classichasclass•1h ago•7 comments

Claude Code IDE integration for Emacs

https://github.com/manzaltu/claude-code-ide.el
588•kgwgk•14h ago•193 comments

Rules by Which a Great Empire May Be Reduced to a Small One (1773)

https://founders.archives.gov/documents/Franklin/01-20-02-0213
81•freediver•4h ago•26 comments

A Candidate Giant Planet Imaged in the Habitable Zone of α Cen A

https://arxiv.org/abs/2508.03814
26•pinewurst•2h ago•9 comments

Project Hyperion: Interstellar ship design competition

https://www.projecthyperion.org
163•codeulike•7h ago•136 comments

Litestar is worth a look

https://www.b-list.org/weblog/2025/aug/06/litestar/
200•todsacerdoti•8h ago•50 comments

More than two hard disks in DOS

https://www.os2museum.com/wp/more-than-two-hard-disks-in-dos/
7•userbinator•3d ago•0 comments

The Day MOOCs Died: Coursera's Preview Mode Kills Free Learning

https://www.classcentral.com/report/coursera-preview-mode-paywall/
35•deepakkarki•3d ago•21 comments

We'd be better off with 9-bit bytes

https://pavpanchekha.com/blog/9bit.html
103•luu•8h ago•192 comments

Jules, our asynchronous coding agent

https://blog.google/technology/google-labs/jules-now-available/
241•meetpateltech•11h ago•164 comments

Show HN: Kitten TTS – 25MB CPU-Only, Open-Source TTS Model

https://github.com/KittenML/KittenTTS
790•divamgupta•22h ago•322 comments

Writing a Rust GPU kernel driver: a brief introduction on how GPU drivers work

https://www.collabora.com/news-and-blog/blog/2025/08/06/writing-a-rust-gpu-kernel-driver-a-brief-introduction-on-how-gpu-drivers-work/
224•losgehts•12h ago•28 comments

You know more Finnish than you think

https://dannybate.com/2025/08/03/you-know-more-finnish-than-you-think/
62•infinate•2d ago•29 comments

Running GPT-OSS-120B at 500 tokens per second on Nvidia GPUs

https://www.baseten.co/blog/sota-performance-for-gpt-oss-120b-on-nvidia-gpus/
5•philipkiely•1h ago•0 comments

A fast, growable array with stable pointers in C

https://danielchasehooper.com/posts/segment_array/
143•ibobev•9h ago•58 comments

The Bluesky Dictionary

https://www.avibagla.com/blueskydictionary/
119•gaws•7h ago•41 comments

Apple increases US commitment to $600B, announces American Manufacturing Program

https://www.apple.com/newsroom/2025/08/apple-increases-us-commitment-to-600-billion-usd-announces-ambitious-program/
27•Zenbit_UX•4h ago•12 comments

301party.com: Intentionally open redirect

https://301party.com/
69•nahikoa•7h ago•13 comments

Multics

https://www.multicians.org/multics.html
102•unleaded•11h ago•21 comments

Out-Fibbing CPython with the Plush Interpreter

https://pointersgonewild.com/2025-08-06-out-fibbing-cpython-with-the-plush-interpreter/
23•Bogdanp•4h ago•0 comments

Show HN: HMPL – Small Template Language for Rendering UI from Server to Client

https://github.com/hmpl-language/hmpl
7•aanthonymax•17h ago•5 comments

Comptime.ts: compile-time expressions for TypeScript

https://comptime.js.org/
104•excalo•3d ago•17 comments

A Man Who Beat IBM

https://every.to/feeds/b0e329f3048258e8eeb7/the-man-who-beat-ibm
45•vinnyglennon•3d ago•15 comments

Breaking the sorting barrier for directed single-source shortest paths

https://www.quantamagazine.org/new-method-is-the-fastest-way-to-find-the-best-routes-20250806/
139•baruchel•13h ago•43 comments

The Inkhaven Blogging Residency

https://www.inkhaven.blog/
29•venkii•3h ago•29 comments

Zig Error Patterns

https://glfmn.io/posts/zig-error-patterns/
124•Bogdanp•12h ago•33 comments

Automerge 3.0

https://automerge.org/blog/automerge-3/
251•surprisetalk•3d ago•21 comments

303Gen – 303 acid loops generator

https://303-gen-06a668.netlify.app/
180•ankitg12•15h ago•62 comments

AI in Search is driving more queries and higher quality clicks

https://blog.google/products/search/ai-search-driving-more-queries-higher-quality-clicks/
46•thm•10h ago•61 comments

Rethinking DOM from first principles

https://acko.net/blog/html-is-dead-long-live-html/
192•puzzlingcaptcha•21h ago•169 comments
Open in hackernews

Git-fetch-file – Sync files from other repos with commit tracking and safety

https://github.com/andrewmcwattersandco/git-fetch-file
27•andrewmcwatters•5h ago

Comments

andrewmcwatters•4h ago
Hi HN, thanks for sending this to the front page.

I'm finding myself needing some resources from other projects in a way that ecosystem-specific dependency management isn't going to help, or I'd be pulling in too many files.

Submodules aren't the answer, and some other existing git user-defined commands don't seem to do what I need either.

I want a file from another repository, and the ability to pin it, and track it in the future, or just always be up-to-date by using the default HEAD commit value set in `.git-remote-files`.

    git fetch-file add https://github.com/octocat/Hello-World README
    git fetch-file pull
Let's me track the README file from the octocat/Hello-World repository, and pull down the file. A record of it is then saved in `.git-remote-files`.

Let me know if you have any questions!

g4cg54g54•3h ago
been wanting to build something very similar, so sharing some notes (before actually getting to test it):

--dry-run

a "push" subcommand? (especially in combination with 'overwrite to local repository-path" mentioned below, for remotes rater useless sure ;))

also your readme leaves "kinda open" what happens with the actual file(s), `.git-remote-files` is mentioned "should be committed", but the file it cloned?

also a little unclear how `--save` plays into that (since the .git-remote-files example shows only a commit no branch) (and when would one ever run it without save?)

cli-arg/secondary `.git-remote-files`-File (possibly as secondary `.local.git-remote-files` or such that can also override repository-URLs) for local/private repos?

option (autodetect?) to also write gitattributes to mark those picked files binary (what may also be done into the repo, or local-only into the .git/ dir of the repo...)

since its called `git-fetch-file` and not `.git-remote-files` a overall comment may be nice as refence when first generating the file ;)

but by now i´m just rambling, looking forward to actually try it when home ;) thanks in advance

andrewmcwatters•2h ago
Thank you for your comments!

I'll thinking about what would be some nice output for --dry-run. Do you have a desired behavior? Maybe something like this?

    Would fetch:
      src/utils.js from https://github.com/user/library.git (a1b2c3d -> f9e8d7c)
      config/webpack.js from https://github.com/company/tools.git (HEAD -> 1a2b3c4)
    
    Would skip (local changes):
      docs/README.md from https://github.com/org/templates.git (use --force to overwrite)
    
    Up to date:
      package.json from https://github.com/user/library.git (f4e5d6c)
Push seems kinda neat for getting changes back to a remote!

I will try to make the README.md a little more clear about what happens after `pull`, because you're right, it's not specified, but files aren't actually committed, just placed in the directory for you to do as you please.

I like your ideas! Thank you!

g4cg54g54•2h ago
for --dry-run that looks pretty good yeps! I like the "--force hint" in there too!

for the "push", I think my idea was mostly about "local-remotes", think "I have both cloned locally, with both IDEs open going back&forth"

one injection there would be `../someupstream/file` vs. `../someupstream/.git/refs/HEAD:file`... aka "pick the file as is" (potentially marked as "${HEAD}-dirty" vs. "only committed things are truth" (and if just so one doesn't need a extra `cp` command ;))

`just placed in the directory for you to do as you please.` could open a "--auto-commit" option -> based on a template similar to the dry run? (ideally overridable in .git-remote-files)

andrewmcwatters•2h ago
Good ideas. You mentioning your locally cloned repo was what spurred this. I wanted to do something a little more robust than just copy and paste the file from the other repository, but I also didn't want to inject the entire project as a dependency for a single file.

It feels like it would be excessive to perform a remote call if we already have the repository locally checked out, so I'll think that one over. I would like to add that!

I will also think more about automatically committing after `pull`, other standard git commands have --no-commit arguments, so this would be a bit different, since we're behaving a bit like `git-fetch`.

Edit: Would you like me to add you to a Contributors section of the README.md? Thanks for your input!

g4cg54g54•1h ago
I´m mostly thinking in a "tell fetch-file that github.com/mine/scripts.git is already cloned to ~/devstuff/scripts/ fashion" - to then "skip the clone and use my provided folder instead of cloning into CACHE_DIR"

what shines combined with a push-subcommand when doing "active development" in the downstream repo - since it can shove the fix you made back into the upstream so you can commit and release it there

("push" may then also have a --with-commit option that 1) makes a commit in the local upstream 2) updates downstreams `.git-remote-files` commit-key)

on --no-commit idk... while i very much like the idea of it being able to auto-commit, default-enabled might be a little overreaching but not 100% certain on this... - maybe your `--commit <commit>` could become `--ref <ref>` instead to free up --(no-)commit? (ref might even be more git-nomenclature correct ;))

readme: no thanks, just on a throwaway anyhow ;)

andrewmcwatters•1h ago
Yeah, I wasn't sure about the commit flag either! I opted to add the feature using a `--commit` flag with no arguments, and the default remaining to not commit, much like `fetch` itself.

Then, I made the automatic commit messages reflect a style that looked like git's standard automatic commit messages, with summaries for larger commits. Though upon reflection, maybe a list of file changes or updates would be more in-line with git's style.

Maybe that's close enough.

Bukhmanizer•3h ago
I’m imagining some sort of art project where people try and figure out the most complicated software you can make entirely off files stitched together from different repos.
andrewmcwatters•3h ago
Haha! That is a pretty creative idea.
conception•2h ago
Or a Fuse filesystem based on it.
dpsych•1h ago
Man this is exactly what I was looking for. Thank you!
andrewmcwatters•1h ago
I'm so glad this is helpful for you, too!
neomantra•1h ago
I was just thinking about this topic this morning, so quite timely post! I received a PR with binary test data files that were copied from an upstream ecosystem. Similarly, I had copied files from that repo, but who should trust me?

Submodules seemed too heavyweight, so I was contemplating a CI script that compared selected checksums with a clone. This seems like a great general solution so will take a look at dropping it in!

andrewmcwatters•1h ago
Thank you!