Better HN
topnewbestaskshowjobs
Log inSign up

jD91mZM2

344 karma · joined Oct 12, 2017 (9y ago) · 35 submissions

Submissions

comment 7y ago · link · parent

I'm afraid I'm not the messiah you're looking for, then. This is not a replacement for subtrees/submodules. But from my limited experience I agree with what you're saying :)

comment 7y ago · link · parent

I believe there's some confusion around what git-subcopy does. It doesn't actually preserve history or anything like it. It just clones a certain file into your repository as a new commit, while saving which revision the file is from.

A potentially good candidate for using git-subcopy would be on this file: https://github.com/nix-community/rnix-parser/blob/master/ben.... It's copy-pasted from the nixpkgs upstream repository. It can't be used as a submodule - it's just one file out of dozens, no way people want to clone all that. Even worse with subtree, that'll always clone the whole upstream repo, and pollute the history on top of that. But the way it is currently, there's also no hint where it comes from.

git-subcopy is basically just me imagining a solution where you can not only link files or directories between repos without bloating down code size or history, but also modify them and later check what modifications you've made and rebase them. If you don't have a use case for this tool, good for you!

comment 7y ago · link · parent

(Note that subtree is a user-contributed script, but it's been made to ship with most git installations)

comment 7y ago · link · parent

I'm unfamiliar with that tool, so you tell me! Looks like it though, from what I'm reading, with the exception of keeping the internal configuration in a git-friendly format instead of huge XML.

comment 7y ago · link · parent

Not sure I understand the question correctly, but here goes:

My personal bias is to keep using submodules or at least subtrees where possible, mainly because it's builtin and because it's written by smart people. This is mostly for when repositories are pretty big and you don't want to submodule/subtree the entirety. But that's just me.

I hope the maintainer complexity is as low as any other git solution, all the rebasing tools are just using standard git so there should neither be any advantages or disadvantages. The advantage of using this is to not check in everything into one repository (perhaps avoiding accidental modification of unrelated files that could cause merge conflicts).

comment 7y ago · link · parent

Thank you for the feedback, I'll update the README

EDIT: Updated

7.

Show HN: Git-subcopy lets you link files across repositories(gitlab.com ↗)

110 points · by jD91mZM2 · 7y ago · 21 comments

8.

Show HN: Painless Scaffolding for Your Projects(gitlab.com ↗)

2 points · by jD91mZM2 · 7y ago · discuss

comment 8y ago · link · parent

tmux is pretty darn neat for having multiple terminals inside one terminal, and it's tiling instead of floating. Also lets you detach sessions.

comment 8y ago · link · parent

It doesn't. Would be an interesting thing to add perhaps, but then I'd need to add some kind of daemon I believe. I also don't want to compete with the existing software as there's no winning over them.

comment 8y ago · link · parent

I just click anywhere there's not a window. Didn't wanna add shortcuts as I'd need some way to escape them

comment 8y ago · link · parent

I use xmonad but with xfce4-panel. Dotfiles: https://gitlab.com/jD91mZM2/dotfiles

comment 8y ago · link · parent

Getting I/O errors uploading the asciinema cast, but here's a preview: https://streamable.com/4hoqh

14.

Show HN: termwm: A floating WM of terminals inside your terminal(gitlab.com ↗)

66 points · by jD91mZM2 · 8y ago · 26 comments

comment 8y ago · link · parent

I gotta say what I really like about macros are that ( and )s are matched. If you say:

  while ($($cond:tt)*) {
You'll actually match both

  while (true) {
and

  while (5 * (2 + 3)) {
. It counts the parenthesis :D

comment 8y ago · link · parent

I think that I actually managed to get the language server to take 100% CPU once, I think it was stuck recursing. Don't want to dig deeper because I had to REISUB my computer, heh. But other than that one very rare time it works pretty well. Can't always show you the most useful things, because sometimes it depends on invocation and line number but it's doing well with syntax errors.

17.

Show HN: A Rust macro that parses Java-like syntax and runs it as a Rust program(gitlab.com ↗)

195 points · by jD91mZM2 · 8y ago · 31 comments

comment 8y ago · link · parent

Since only the keypair is cached, certificates are generated on each startup. This means they never expire (unless you run your application without any interruptions for a whole year).

But yeah, if they're leaked you just gotta re-send them to the clients. This isn't meant for large professional projects, only for stuff where the convenience outweights the pros of using a proper certificate.

comment 8y ago · link · parent

True, didn't think of that. The server would still have to generate it using a command though... I like having things automated.

comment 8y ago · link · parent

The hash is a lot smaller and less likely to be subject of a copy-paste error ¯\_(ツ)_/¯

21.

Show HN: Sslhash: SSL without a certificate authority(github.com ↗)

17 points · by jD91mZM2 · 8y ago · 12 comments

22.

Show HN: Xautolock rewrite in Rust with a few extra features(github.com ↗)

4 points · by jD91mZM2 · 8y ago · discuss

23.

Ask HN: Why Is My VPN's IPs Blocked from Hacker News?

40 points · by jD91mZM2 · 8y ago · 22 comments

24.

Show HN: Powerline-rs: powerline-shell rewritten in Rust(github.com ↗)

5 points · by jD91mZM2 · 8y ago · discuss

comment 9y ago · link · parent

Awesome, thanks! It feels like a lot of people dislike Ruby, but I'm glad some people still like it. I think it's a good Python alternative, and has syntax that reminds you of Rust.

comment 9y ago · link · parent

Arch has Rustup? Today I learned. That's amazing!

comment 9y ago · link · parent

Just separate the steps? Curl to a file, inspect it, and then execute it? I don't see the problem. Most users just don't care because it's official anyways.

28.

Speed up your Python using Rust(developers.redhat.com ↗)

291 points · by jD91mZM2 · 9y ago · 98 comments

29.

Show HN: Synac: Easy, self-hosted, IRC-like messaging application(github.com ↗)

5 points · by jD91mZM2 · 9y ago · discuss

30.

Show HN: Termplay got screen-recording support(github.com ↗)

1 points · by jD91mZM2 · 9y ago · discuss

12