6
22
0xDEADBEEFCAFE

@programming.dev

0xDEADBEEFCAFE 7 points 2 days ago

A shorter example:

git clone https://codeberg.org/yourname/yournewrepo
cd yournewrepo
git reset --hard abcdef1 # commit that you want to reset to
git push --force origin

Note that instead of abcdef1 in git reset you can also use the regular expression syntax. So if the commit was named Last release before unwanted changes you would say git reset --hard ':/Last release before unwanted changes'.

path: 0 26342547, hotness: undefined, score: 7, children: 0
0xDEADBEEFCAFE 38 points 3 months ago

That depends on the license. Music is also available on Youtube without authentication requirements but I don't think you can just download those and do whatever you want with them.

path: 0 24957673 24959565 24960642, hotness: undefined, score: 38, children: 5
0xDEADBEEFCAFE 21 points a year ago

You're kidding yourself if you think most people in this thread are actually programmers. Most people here wouldn't know the difference between C and Rust code if they saw it, let alone be able to write anything in either language.

path: 0 20680858 20681417, hotness: undefined, score: 21, children: 1
0xDEADBEEFCAFE 17 points 2 years ago

I also don't think people should learn to code but that's because I want to limit the available workforce and inflate my wages.

path: 0 16170019, hotness: undefined, score: 17, children: 0
0xDEADBEEFCAFE 14 points 10 months ago

Right, so you can't "enforce" a return from the function.

path: 0 20966076 20973851 20974420 20974482 20974501, hotness: undefined, score: 14, children: 0
0xDEADBEEFCAFE 11 points 10 months ago

shouldn’t Rust enforce returning from function

How do you enforce returning from exit or a function with a loop that never terminates?

path: 0 20966076 20973851 20974420, hotness: undefined, score: 11, children: 2
0xDEADBEEFCAFE 11 points 2 years ago

According to this this slideshow:

At a fundamental level, this is the state of terminal emulators today as I saw it. You have fast terminals, feature rich terminals, and native terminals. You can pick at most two properties to have.

Ghostty aims for -- and in my opinion already achieves -- all properties.

Also, calling out the warning signs, my bar for a native platform experience is that the app feels and acts like a purpose-built native app. I don't think this bar is unreasonable. For example, I don't think it's unreasonable to say that Alacritty is kind of not native because new windows create new processes. Or that Kitty is kind of not native because tabs use a non-native widget. And so on (there are many more examples for each).

path: 0 14165389 14166176, hotness: undefined, score: 11, children: 1
0xDEADBEEFCAFE 10 points 2 years ago

We have already accomplished a great deal. Compile-time C++ is already fully free of UB, which means a huge chunk of real-world C++ is already UB-free today.

This statement is so categorically ridiculous that I have no choice but to assume that Herb Sutter is deliberately trying to mislead people. I would be very surprised if even 5% of "real-world C++" occurred at compile time. In fact, I would be very surprised if even 5% of "real-world C++" was valid constexpr that just ran at runtime.

path: 0 16145471, hotness: undefined, score: 10, children: 1
0xDEADBEEFCAFE 9 points 3 years ago

zellij is a terminal multiplexer like tmux which for example allows you to have multiple terminals shown in the same window. It works both locally and over SSH. Which GUI would do the same?

I'm currently using zellij after previously having used tmux. For me zellij is a direct upgrade in every way, and the default tmux keybindings are even supported out of the box in zellij which makes transitioning incredibly easy. The only downside is that I have no idea how to pronounce the name.

path: 0 2979424 2980486, hotness: undefined, score: 9, children: 8
0xDEADBEEFCAFE 7 points 2 years ago

I defiantly had a far easier time learning c and apply my existing programming knowledge. Getting my head around the borrow checker was one hell of a pain in the ass.

What specifically was difficult to understand about the borrow checker? Much of what the borrow checker requires you to do are things that you still need to do in C just without compiler support.

path: 0 15597552 15597772 15601470 15602911 15603440, hotness: undefined, score: 7, children: 0
0xDEADBEEFCAFE 6 points 2 years ago

You can tell he's a simple minded idiot because Jabbascript and Go aren't immediate disqualifiers in all scenarios.

path: 0 15962971, hotness: undefined, score: 6, children: 0
0xDEADBEEFCAFE 6 points 2 years ago path: 0 15126104, hotness: undefined, score: 6, children: 0
0xDEADBEEFCAFE 6 points 3 years ago

How is the quality of the generated bindings?

I have previously used PyO3 for Python bindings and it doesn't seem to correctly generate type hints.

path: 0 2914700, hotness: undefined, score: 6, children: 3
0xDEADBEEFCAFE 5 points a month ago

I also personally changed to the EUPL where I would normally use a GPL. As I understand it the EUPL aligns more closely with actual (European) law. Recent events have persuaded me to alugn more with that than theoretical US law.

path: 0 25694738, hotness: undefined, score: 5, children: 0
0xDEADBEEFCAFE 5 points 9 months ago

Everything Herb Sutter says about the popularity of C++ should be taken with a huge grain of salt.

path: 0 21375501, hotness: undefined, score: 5, children: 0
0xDEADBEEFCAFE 4 points 3 years ago

Number 4 is only about not returning impl Into and instead just returning T.

path: 0 3073237 3137891, hotness: undefined, score: 4, children: 2
0xDEADBEEFCAFE 2 points 3 years ago

That's a bummer. I guess what I though was PyO3 type hints was actually just PyCharm guessing at the types.

I tried creating a .pyi file and it seems to be a pretty big improvement over no type hints, but I don't know how to add type hints for modules added with PyModule::add_module and adding the .pyi file seems to make the type checker not know about my other modules.

Would you mind sharing the script for auto generating type hints? Keeping them in sync manually would be pretty annoying.

path: 0 2914700 2941044 2950481, hotness: undefined, score: 2, children: 1
0xDEADBEEFCAFE 2 points 2 years ago

I can't define jerking but I know it when I see it.

It's worth considering the original sub rules:

  • Original sources only, no manufactured jerk
  • No socialjerking (IMO this one is super critical to not just devolve politics spam)
  • No crazy people
  • No enthusiastic youngsters
  • No long unjerk threads
  • No implicitly untagged jerk (this will probably be hard to enforce since some replies seem to be serious)
path: 0 15604180, hotness: undefined, score: 2, children: 0
0xDEADBEEFCAFE 2 points 3 years ago

Take a look at xtask. It essentially relies on the fact that you can add cargo aliases in local files in order to execute specific packages.

When I create a workspace that has some form of code generation I like to overwrite cargo gen to whatever is doing the generating.

path: 0 3196934 3208015, hotness: undefined, score: 2, children: 0
0xDEADBEEFCAFE 2 points 2 years ago

"Duo Code Review" just seems to be AI trash instead of an actually useful feature. I was hoping it would be some new way of code review or something.

path: 0 15963343, hotness: undefined, score: 2, children: 0

thanks for using Leebra!

go to feed...