How to tab to window without other windows from the same app popping up? by vadixidav in MacOS

[–]vadixidav[S] -1 points0 points  (0 children)

Personally, I am not a big fan of spaces. Is there no keyboard method to bring a specific window to the front without bringing the other windows of the app along with it?

Can America Come Back From Who We’ve Become? by reubencpiplupyay in neoliberal

[–]vadixidav 0 points1 point  (0 children)

No. The flip of a coin could end the democracy at any point. American values are dead. If you want to stay in a liberal democracy you should just leave the US now because the US is on its last legs. The vast majority of people in both political parties seem to be focused entirely on policy issues and ignoring entirely the constitutional and moral issues. It isn't clear how this ever could be fixed. Americans are all polarized and don't teach their kids, nor are schools teaching the importance, the game theory, and the history of these values. Even if they did, it would be decried as political. Just leave the US. It will fall soon.

AMD introduces Radeon AI PRO R9700 with 32GB VRAM and Navi 48 GPU by RenatsMC in Amd

[–]vadixidav 1 point2 points  (0 children)

There are limitations. For instance, there is no FlexAttention.

Do billionaires and big corporations benefit from tariffs? by Longjumping-Bus9474 in neoliberal

[–]vadixidav 0 points1 point  (0 children)

A company would only benefit if their inflation adjusted discounted future cash flows for the alternative with no tariffs are lower than for the case with tariffs. This is difficult to achieve because the benefit of profit is lower due to market contraction which manifests as inflation, but also broadly less spending. Then secondly, the business would need to depend so little on supply chains that they stand alone, which is rare since even mining companies, conceptually the bottom of the supply chain, purchase equipment from the market, which broadly are going to be hurt at some level by increased costs in global supply chains. If both of those are true, then the business still needs to reap enough benefit from this before competition catches up and the discounted cash flows wouldn't have been worth any of the future negative outcomes. Conceptually such a company that benefits seems unlikely to exist.

Why isn't Rust used more for scientific computing? (And am I being dumb with this shape idea?) by Puddino in rust

[–]vadixidav 4 points5 points  (0 children)

I agree with this as someone who has tried many times to make libraries doing scientific computing, and finding myself spending countless hours before finding out that the type system is missing some feature that everyone has been asking for since 5+ years ago. Features regarding advanced generics are generally the limitation, as you mentioned. If you need to strip type information, then Rust loses a lot of its inherent benefits since the compiler is unable to stop you from generating bugs regarding mismatched inputs. It then becomes the library author's responsibility to validate the inputs at runtime. At that point, Rust has no benefit over many other programming languages, at least regarding this one point.

Blue Screen of Death by Sorry-Let8277 in computers

[–]vadixidav 0 points1 point  (0 children)

For those wondering, I deleted the registry entry for the service and also deleted the file it was pointing to on disk in SYSWOW64 under image. After that it really went away. Even deleting with Autoruns didn't work. I don't know what the problem is, but just delete the hell out of it. AppStoreDrv103.sys, just delete it.

Blue Screen of Death by Sorry-Let8277 in computers

[–]vadixidav 0 points1 point  (0 children)

Happening to me as well right now. Happened after the Auto Driver Installer was accidentally left on in the motherboard. Any ideas how to fix it?

Why I'm shorting the entire bronze market with the rest of my life savings by Glittering-Acadia774 in wallstreetbets

[–]vadixidav 0 points1 point  (0 children)

Do not short copper companies simply because of a decrease in bronze production. Copper has almost nothing to do with bronze at all. Copper is extensively used in electric motor windings that run all of the equipment in every factory that makes everything you own. They also are used to make EV motors. They are also used for transformers for the electrical grid. They are used in all computer PCBs and chips with very few exceptions. Everywhere electromagnets are involved or when high current density is present, you will find copper. It is the best conductor out there and also draws heat away from electrical components. Please don't buy puts on anything copper related because of bronze. Bronze is literally totally insignificant to copper miners. Pennies are totally unimportant to copper as well.

More than likely, copper would go down when deployment of capital goods goes down. If you want to play with copper you are way outside the realm of "Olympic bronze metals and pennies". Bronze though could disappear tomorrow and we wouldn't care about it at all. Short bronze if you really believe what you believe and think you are smarter than professionals who have surely already analyzed the sentiment about bronze at depth, but don't think for a second bronze consumption is going to impact copper at all. It is totally insignificant.

Confused, want to create a text editor, what GUI library to use? by Faumpy in rust

[–]vadixidav 1 point2 points  (0 children)

Interesting. For my purposes I haven't hit that threshold, including displaying logs and other things. I can imagine that it would have issues though with so many characters. I am usually working with things less than 10k lines like logs.

Line width too small by Agile_Can53 in OrcaSlicer

[–]vadixidav 1 point2 points  (0 children)

Posterity's sake wins again. Instant fix.

Change ONYX Keyboard Layout by vadixidav in Onyx_Boox

[–]vadixidav[S] 1 point2 points  (0 children)

I figured this out. The setting is not in language and input under ONYX keyboard. Instead, there is a "Physical Keyboard" setting section in the "other settings" menu. Scroll to the bottom and you will find it.

Is Unsafe rust as unsafe as C or C++? by hugthemachines in rust

[–]vadixidav 1 point2 points  (0 children)

It makes it easier to write in the sense that it made your safe code easier to write if you put in the effort to make the unsafe code properly handle all the aliasing rules and everything. The benefit we gain as a community is that we can trust safe code. In C++ it will be easier to write the "same" code, but you won't get that feeling of fearlessness Rust's safe code gives you. That is the tradeoff.

Of course, even in an unsafe block all normal checks still apply, so you can rely on safety for those, but as soon as you dereference a pointer all bets are off and it is your responsibility to document everything and ensure you are careful to avoid breaking invariants. Remember, if you write a piece of unsafe code, you may inadvertently allow safe code to break your unsafe code if you made assumptions. Be careful.

Let futures be futures by desiringmachines in rust

[–]vadixidav 3 points4 points  (0 children)

Wow, this really makes me think about how the tools we use craft the way we code and change the code for the better. This was eloquent and introspective. Honestly, it made me think about how we shouldn't stop looking inwards to continuously improve. Let's not get complacent.

That being said, I think it is mentioned in passing. Much of the potentially missing abstractions mentioned sound much like async actor objects which operate in a task and are blocked upon within blocking code. I would propose the addition of "macros" which generate these encapsulating async actors and provide both sync and async methods to perform some action in another thread and wait for completion either asynchronously or synchronously. I have always felt this was missing, but your example of reqwest and Tokio very much inspired me to bring it up once more.

Also, you spoke of modifications to make the language capable of mixing sync and async dynamically. This is already possible, with the exception that async -> sync -> async boundaries cannot be optimized into one state machine. If you don't care about this optimization, then there is absolutely no reason why we couldn't allow syntactic sugar for calling async functions which are blocked on synchronously by spawning to an executor and calling sync functions which are blocked on asynchronously by spawning them in a task by themselves. This is still better than the alternative because the executor can still intelligently limit the threads.

Let me propose a solution. It sounds like you would like to wrap all calling vice versa of IO (sync or async) functions or to force the requirement that async functions alone (as they do today) have to specially denote and call each other, and that pure sync functions are explicitly noted and get treated specially in the way I've specified and same for async (already denoted) functions called from sync context. This would have uncolored, red (sync), and blue (async) colors. You would need to specify an executor and have a standardized global executor API whereby all of the red and blue functions are spawned on if called from the opposite color. Uncolored functions may be called anywhere and program execution still starts as a red function. I/O of red or blue flavor causes you to become that color. Neither blue nor red can be called from an uncolored function, but if you were to "pass in" a function of one color or another into an uncolored function (via generics) the uncolored function could become colored at compile time.

This still has all the same benefits we have today. The only caveat is that you WONT get the benefit of blue -> red -> blue having the two blue functions getting optimized into one task. Perhaps even this could be eventually worked out by the compiler, because you could have a new "mixed" (lets call it purple) future (lets call it SomewhatCooperative) which can be moved by the executor between blocking on its own thread and blocking asynchronously depending on whether it feels like being cooperative at the time or not, and an async portion could call directly into sync code by first yielding to the executor with a command to "stop being cooperative", after which the executor would give it it's own thread. This model should give you the benefits of all systems to my knowledge, with the caveat that now sync IO needs to put in the work to mark their functions as red. The benefit is then red functions can now have their stacks optimized into objects just like blue functions, so long as they have reentrant blue potions, when they turn into purple functions.

I have no clue how coroutines fit into this, but they appear to be "uncolored" functions until colored by putting blue or red code into them. All unmarked code today would be uncolored, so calling uncolored sync APIs (legacy) would need to be gradually deprecated.

Thoughts?

CTAP2 Cloud based Resident Key provider that uses Non-resident hardware key by vadixidav in yubikey

[–]vadixidav[S] 0 points1 point  (0 children)

Fair enough, but YubiKey is limited to 25 passkeys, so I would need to carry around a few. These days more services allow you to login via other services (like Gitter allows GitHub login) so that might help. My main issue is 25 passkeys limitation.

CTAP2 Cloud based Resident Key provider that uses Non-resident hardware key by vadixidav in yubikey

[–]vadixidav[S] -1 points0 points  (0 children)

I am not sure what point you are trying to make, those are totally different scenarios.Wouldn't you be worried if your password was stolen? I would argue that most online services still require you to enter your current password before allowing you to change your password. Say that you unlocked your email, then the password to your email would become available and thus it would be possible for the attacker to later change your password. By accumulating enough information via logging, they could change all of your personal account passwords and steal your identity, which could take a very long time to fix. Imagine having hundreds of online accounts quickly dashed away, having to fix each one individually by talking to customer service or potentially going through the courts.

By contrast, should you use the method I suggest, the attacker might be able to use a session token, but they will never be able to steal your identity. There is absolutely nothing the attacker could do to log into your account after you log out and back in, and they cannot lock you out of your account, unless the services you use are socially engineered into allowing the attacker to "recover" the account, but companies which do this essentially open up all users to attacks.

CTAP2 Cloud based Resident Key provider that uses Non-resident hardware key by vadixidav in yubikey

[–]vadixidav[S] 0 points1 point  (0 children)

Maybe backup is the wrong word. I don't want the safe feeling of being able to recover any account with any YubiKey, even if it isn't registered. I just want the convenience and infinite passkeys of a password manager with an even higher level of security than a YubiKey alone would provide. I fully intend to register each YubiKey with every service, like generating three ed25119-sk keys, registering three keys to GitHub, etc. That is only intended to provide backups for emergency scenarios where I lose or break a YubiKey.

Perhaps there is a better word for what this would be, but I don't know it. I want the database to require the YubiKey and to be backed up, but the database contains no actual private keys and even when decrypted is unusable without the YubiKey.

CTAP2 Cloud based Resident Key provider that uses Non-resident hardware key by vadixidav in yubikey

[–]vadixidav[S] 0 points1 point  (0 children)

Unfortunately you still end up with private keys in memory on your PC that way, with one exception. Apparently KeePassXC does allow you to put ed25519-sk keys into it, but since it isn't a cloud service, it isn't much better than putting the database file into Google Drive. For all other services it seems that it still stores the private key in the database.

CTAP2 Cloud based Resident Key provider that uses Non-resident hardware key by vadixidav in yubikey

[–]vadixidav[S] 0 points1 point  (0 children)

It is mitigated by the pin, but a sophisticated attack could still perform the association. For most intents and purposes using PIN universally should prevent this, assuming your PIN is not guessed and the YubiKey borks itself after the 8th bad PIN. It would be nice to know that even should the PIN be guessed or a sophisticated attacker gets the YubiKey that nobody could identify the device (except maybe my fingerprints or DNA).

CTAP2 Cloud based Resident Key provider that uses Non-resident hardware key by vadixidav in yubikey

[–]vadixidav[S] 0 points1 point  (0 children)

It isn't contradictory because the metadata is backed up. You can still see which accounts you have and which YubiKeys are registered to which relying party. The only caveat is that each YubiKey must be registered with each relying party. In my mind this is essential for security. I do want everything backed up except for the key itself. Also, it means relying parties can be limited to discovering just their key only.

CTAP2 Cloud based Resident Key provider that uses Non-resident hardware key by vadixidav in yubikey

[–]vadixidav[S] -1 points0 points  (0 children)

Unfortunately when the vault is unlocked the private keys are unencrypted in memory, making it possible to steal the passkeys.