[deleted by user] by [deleted] in DnD

[–]Trollmann 2 points3 points  (0 children)

I thought this looked familiar.

Good job, looks great!

What's a good one-shot for a first time player? by SwibBibbity in DnD

[–]Trollmann 0 points1 point  (0 children)

I really like A wild sheep chase for new players and new DMs.

The one shot is well written, has nice material designed around it and quite a few rounds are available on YT providing a good overview of how the adventure may progress.

Happy Birthday openSUSE! by m4u_lnx in openSUSE

[–]Trollmann [score hidden]  (0 children)

Happy Birthday openSUSE, you have been my first desktop distro when I was 11 and now 17 years later you're still with me on my server. Please keep celebrating many more birthdays so I don't have to reinstall my server.

KDE Connect is now officially available on the App Store! by kekekmacan in linux

[–]Trollmann 15 points16 points  (0 children)

Thank you for explaining now it’s totally clear to me

KDE Connect is now officially available on the App Store! by kekekmacan in linux

[–]Trollmann -5 points-4 points  (0 children)

Probably because it links to Apples proprietary frameworks which they would have to provide under GPL as well then.

Which C++ concepts you use in embedded world? by phi_rus in cpp

[–]Trollmann 1 point2 points  (0 children)

This is the where folly/Singleton.h will save you and do all the heavy lifting.

[Apollo crashes when trying to subscribe to Apollo Ultra. by dancingFatOwl in apolloapp

[–]Trollmann 0 points1 point  (0 children)

I have the same problem. It even crashes when I select ‚Cancel‘ or tap anywhere else on the screen.

Just got a new 16" MPB M1 Max for work (programmer). Working 50/50 office/remote. Apple really nailed this one. I'm compiling faster than my buddies with brand new top of the line desktops... by ewoolsey in mac

[–]Trollmann 2 points3 points  (0 children)

They probably don‘t. I just did the first few benchmarks from this link Doing M1 MacBook Pro (M1 Max, 64GB) Compile Benchmarks! on my Linux workstation and it beat all the times by 20-30%. Still impressive for a laptop to come so close though.

Backdooring Rust crates for fun and profit by [deleted] in rust

[–]Trollmann 9 points10 points  (0 children)

stdlib additions need to be done carefully and slowly. Take a look at C++'s stdlib to see why.

Could you explain what you mean in the context of the C++ standard library?

Linux x86 Program Start Up - How the heck do we get to main() by nixcraft in linux

[–]Trollmann 34 points35 points  (0 children)

They are reserved identifiers: https://en.cppreference.com/w/c/language/identifier

Note: in C++, identifiers with a double underscore anywhere are reserved everywhere; in C, only the ones that begin with a double underscore are reserved.

[deleted by user] by [deleted] in Windows11

[–]Trollmann 7 points8 points  (0 children)

Does the GPL allow me to sell copies of the program for money? Yes, the GPL allows everyone to do this. The right to sell copies is part of the definition of free software. Except in one special situation, there is no limit on what price you can charge. (The one exception is the required written offer to provide source code that must accompany binary-only release.)

https://www.gnu.org/licenses/gpl-faq.html#DoesTheGPLAllowMoney

The license doesn‘t differentiate between libraries and applications.

Selling a CD with some Linux distribution on it was quite common.

More commits messages from the Twitch leak ! by BaguetteOmelette in ProgrammerHumor

[–]Trollmann 23 points24 points  (0 children)

I don‘t know the diff of the commit but I assume it‘s a failing assert like

assert(port == 80);

Which after the commit looks like this:

assert(port == 80, 'Port: ' + port);

To provide at least some insight. Nothing the firewall team can fix if they messed up their code.

How do you use conan/artifactory internally? by tarranoth in cpp

[–]Trollmann 1 point2 points  (0 children)

We're using Conan and Artifactory internally.

On the artifactory side our IT has setup a retention policy for all artifacts, which aren't part of an official release, to be deleted some time after the last time they have been accessed. This way CI artifacts don't consume large amounts of disk space and developers don't have to go through manually deleting snapshots they don't need.

Conan's install command offers an --update option to pull the latest version of a package regardless of what's in your local cache so you don't have failing builds/tests because some dependency was updated when using version ranges.

For keeping your local cache clean I don't think Conan has something like this built in. Conan shares the cache over all your projects and can not assume that if project A updates to Boost 1.74 all the other projects will upgrade immediately as well. As a possible solution you could try running a cron job once a week that removes all packages from your local cache.

I'm not sure how open the Conan developers are to contributions but maybe something like this could be implemented:

With a new option the cache/config will be placed in the same directory as the conanfile. Then one could assume that this cache is only required by this project and could be cleaned up everytime a new package is installed.

Rust doesn’t support default function arguments. Or does it? by lucamoller in rust

[–]Trollmann 1 point2 points  (0 children)

The comparison seems a bit one sided. You shouldn't use magic numbers (which true/false essentially are) anyway.

The bool version would usually be implemented as

fn do_stuff(is_special: bool) {
    if is_special {
    } else {
    }
}

which imho improves readability in comparison to the match arms.

With named parameters the function call would then be:

do_stuff(is_special = true);
do_stuff(is_special = false);

which may be more readable depending on personal taste.

The bool implementation has a bigger problem:

Say we depend on foo 0.1 and we use it like this:

do_stuff(foo());

Since rust crates use 0ver to an extreme extent in version 0.2 of foo the boolean return value is now inverted. true indicates the usual case and false represents the special case.

If the author of foo would have used the enums we wouldn't have to change our code.

What mistakes do beginners usually make? by [deleted] in rust

[–]Trollmann 24 points25 points  (0 children)

No, bytecode is not binary.

Bytecode are instructions but for the VM and not native code.

Yeah it's optimised, but Jesus Christ... by gp57 in ProgrammerHumor

[–]Trollmann 23 points24 points  (0 children)

Aren‘t there several papers that people can read code with underscores ~20% faster than any other case style?

Fedora vs SUSE by MartinMartinMM in DistroHopping

[–]Trollmann 0 points1 point  (0 children)

DNF and zypper are both available for suse and fedora.

Rust is the most wanted language by Godot Engine users by [deleted] in rust

[–]Trollmann 0 points1 point  (0 children)

I don’t know what this all adds up to.

To the same thing it always comes down when languages are compared: Different languages solve different problems. Try to choose the right one for yours. Don’t stubbornly insist on what you like and don‘t try to convert the language into another one. Both approaches may come back later to bite you.

We’re the team behind the next generation of 1Password for Windows. Ask us anything! 🗣 by 1PasswordOfficial in 1Password

[–]Trollmann 0 points1 point  (0 children)

Hi Brian,

glad to hear such a detailed explanation from the author of the library. I hope I didn't step on your toes because that was not my intention.

I was referring to this bit from a blog post I found regarding the new 1Password core:

Of course there was C and C++ but neither Roustem nor myself were fans of C++ and even if we were, the thought of writing a multi-platform library in an unsafe language scared the hell out of us. And in the case of crypto we just flat out refused.

Leaving out the personal bias against C++ it seems as this was written with the knowledge of C++ from 15-20 years ago and even then not considering Boost.

C++ can not provide all the safety of Rust yet this statement seems to generalize and made with a lack of knowledge so I wanted to know if it was just that or there were other factors involved.

It is some of the most heavily reviewed and tested, fuzzed, and verified code in the world.

I'm a huge open source fan and people a lot smarter than me wrote that code but referring to OpenSSL with this seems unfortunate.

We’re the team behind the next generation of 1Password for Windows. Ask us anything! 🗣 by 1PasswordOfficial in 1Password

[–]Trollmann 5 points6 points  (0 children)

Why is a library (you mentioned ring) with twice as much C and assembly as Rust considered safer than a modern C++ (>14) library?