HackerTrans
TopNewTrendsCommentsPastAskShowJobs

vrmiguel

no profile record

Submissions

Scog: Easily generate shell completions for any binary (bash, zsh, fish)

github.com
4 points·by vrmiguel·9 miesięcy temu·1 comments

comments

vrmiguel
·2 miesiące temu·discuss
But if that's the goal then I _think_ the "port" is perfectly achievable without LLMs. Zig transpiles to C, then C2Rust would do the rest
vrmiguel
·8 miesięcy temu·discuss
These older games don't run fine with Xwayland?
vrmiguel
·8 miesięcy temu·discuss
I'm not sure if this poetry technique did anything at all. If you just straight up ask Gemini for how meth is synthetized, it'll just tell you.
vrmiguel
·8 miesięcy temu·discuss
Since the thread mentions Rust: in Rust, you often replace Mutexes with channels.

In your case, you could have a channel where the Receiver is the only part of the code that transfers anything. It'd receive a message Transfer { from: Account, to: Account, amount: Amount } and do the required work. Any other threads would therefore only have copies of the Sender handle. Concurrent sends would be serialized through the queue's buffering.

I'm not suggesting this is an ideal way of doing it
vrmiguel
·9 miesięcy temu·discuss
Writing shell completions is tough: bash, zsh, and fish each have different, complex syntax

scog aims to solve this: you write one simple YAML file describing your CLI and it generates proper completion scripts for all three shells.

It's built on clap's battle tested generators, so you get proven, quality completions without maintaining shell-specific scripts

Suggestions welcome ;)
vrmiguel
·9 miesięcy temu·discuss
I think DisableSolarium has no effect anymore. At least I can't see any. I'm in macOS 26.0 (25A354)
vrmiguel
·10 miesięcy temu·discuss
Hikaru accused Luis Paulo Supi of cheating at least twice.

From his Wikipedia article:

``` In an online blitz tournament hosted by the Internet Chess Club in May 2015, American Grandmaster Hikaru Nakamura accused Supi of cheating (Supi had defeated Nakamura).[2] The tournament judges accepted Nakamura's accusation, reverted the match's result, and banned Supi from the tournament. Brazilian Grandmaster Rafael Leitão wrote in his personal website, "Accusing him of using an engine in this match is absurd. The match is full of tactical mistakes. Nakamura played extremely poorly and, honestly, wouldn't have survived long against any engine given his terrible opening.". ```

Some years later Nakamura lost 4-0 and again insinuated that GM Supi used an engine.

Despite all that, Nakamura still published a video calling him a "legend" for once beating Magnus in 18 moves
vrmiguel
·10 miesięcy temu·discuss
> The attitude of Rust being bug-free is _insaaaane_.

Funny, because that's not anywhere close to what the comment you're replying to states.

They said `"Safety" is just a shorthand for "my program means what I say"`. That's a reasonable explanation: the code you wrote is not working exactly as you intended, due to some sort of unknown behavior.

The "bug" you're talking about would be the program doing exactly what you implemented, but what you implemented is wrong. The difference is so obvious that it's hard to think that you're engaging in a good faith argument.
vrmiguel
·10 miesięcy temu·discuss
Why would using Arc mean that someone is fighting the borrow checker, or confused by it?

Would you also say the same for a C++ project that uses shared_ptrs everywhere?

The clone quip doesn't work super well when comparing to C++ since that language "clones" data implicitly all the time
vrmiguel
·10 miesięcy temu·discuss
Not sure I get your point. One can definitely "get good" at problem solving. Isn't that the whole purpose of Leetcode and whatnot?

I struggled with Rust at first but now it feels quite natural, and is the language I use at work and for my open-source work.

I was not "mentally deficient" when I struggled with Rust (at least that I know of :v), while you could say I had a skill issue with the language
vrmiguel
·10 miesięcy temu·discuss
I find that Employers of Record (EoR) make this a non-issue.

I work for an American startup, remotely from S. America. I'm hired according to the (extensive, and expensive) local labor laws, while my startup likely knows absolutely nothing about the intricacies of how my countries' labor laws work, the EoR just handles everything and sends the employer a bill every month.