[-] FizzyOrange@programming.dev 1 points 2 hours ago

Well in a sense that is true. This guy is pretending like he's the only one that sees bugs. In reality he's the only one that isn't able to understand priorities. If you're constantly reporting every bug no matter how trivial, that is a problem. You're wasting people's time.

[-] FizzyOrange@programming.dev 7 points 2 hours ago

Never is a strong word. In cases where you don't need strong cryptographic or statistical properties it's totally fine. That's 99% of cases.

Nobody is modding a single byte. You're going to have a 32-bit PRNG at least. 32-bits mod 100 is easily random enough for almost every use.

I guess it's a good thing to be aware of though.

[-] FizzyOrange@programming.dev 6 points 12 hours ago

Every core, honestly

Oh hi Claude.

[-] FizzyOrange@programming.dev 3 points 23 hours ago

Yeah these types of posts are kind of useless because you can never tell if it's just because they're giving off red flags.

What feedback did he get from interviews? Do people know you can ask for feedback?

[-] FizzyOrange@programming.dev 1 points 1 day ago

Once the browser has discovered the issuer and knows that the user is logged in to the issuer, it is pretty confident that can provide an EVT, so it can choose to ask the user for permission. Each browser implementation is responsible for making their own judgement based on their user’s expectations, so this specification isn’t opinionated about how the interface with the user materializes.

Google has likely chosen to make the permission prompt a one-time thing, which seems fine to me.

However, at that point, the website can in fact check if you’re logged in to a specific email address automatically.

It cannot.

[-] FizzyOrange@programming.dev 1 points 2 days ago

I suspect Google would prefer a zero-click solution for their browser.

You have to put in your email address and click a button still. There's a video demo of this in TFA. There's no way they've been dumb enough to let websites figure out your email address automatically, come on.

your browser accessing your inbox

Accessing your email via your web browser is literally how 99.99% of people use email. There's nothing dubious about it.

I get that you have a gut fear about it though.

[-] FizzyOrange@programming.dev 1 points 2 days ago

Seems reasonable to me. What are you imagining will go wrong?

[-] FizzyOrange@programming.dev 12 points 3 days ago

Docs rarely give you information about anything except the happy path. StackOverflow did.

[-] FizzyOrange@programming.dev 60 points 11 months ago* (last edited 11 months ago)

He's right. I think it was really a mistake for RISC-V to support it at all, and any RISC-V CPU that implements it is badly designed.

This is the kind of silly stuff that just makes RISC-V look bad.

Couldn't agree more. RISC-V even allows configurable endianness (bi-endian). You can have Machine mode little endian, supervisor mode big endian, and user mode little endian, and you can change that at any time. Software can flip its endianness on the fly. And don't forget that instruction fetch ignores this and is always little endian.

Btw the ISA manual did originally have a justification for having big endian but it seem to have been removed:

We originally chose little-endian byte ordering for the RISC-V memory system because little-endian systems are currently dominant commercially (all x86 systems; iOS, Android, and Windows for ARM). A minor point is that we have also found little-endian memory systems to be more natural for hardware designers. However, certain application areas, such as IP networking, operate on big-endian data structures, and certain legacy code bases have been built assuming big-endian processors, so we have defined big-endian and bi-endian variants of RISC-V.

This is a really bad justification. The cost of defining an optional big/bi-endian mode is not zero, even if nobody ever implements it (as far as I know they haven't). It's extra work in the specification (how does this interact with big endian?) in verification (does your model support big endian?) etc.

Linux should absolutely not implement this.

24
submitted 1 year ago* (last edited 1 year ago) by FizzyOrange@programming.dev to c/linux@programming.dev

Edit: rootless in this context means the remote windows appear like local windows; not in a big "desktop" window. It's nothing to do with the root account. Sorry, I didn't come up with that confusing term. If anyone can think of a better term let's use that!

This should be a simple task. I ssh to a remote server. I run a GUI command. It appears on my screen (and isn't laggy as hell).

Yet I've never found a solution that really works well in Linux. Here are some that I've tried over the years:

  • Remote X: this is just unusably slow, except maybe over a local network.
  • VNC: almost as slow as remote X and not rootless.
  • NX: IIRC this did perform well but I remember it being a pain to set up and it's proprietary.
  • Waypipe: I haven't actually tried this but based on the description it has the right UX. Unfortunately it only works with Wayland native apps and I'm not sure about the performance. Since it's just forwarding Wayland messages, similar to X forwarding, and not e.g. using a video codec I assume it will have similar performance issues (though maybe not as bad?).

I recently discovered wprs which sounds interesting but I haven't tried it.

Does anyone know if there is a good solution to this decades-old apparently unsolved problem?

I literally just want to ssh <server> xeyes and have xeyes (or whatever) appear on my screen, rootless, without lag, without complicated setup. Is that too much to ask?

[-] FizzyOrange@programming.dev 65 points 2 years ago* (last edited 2 years ago)

His point could be valid, if C was working fine and Rust didn't fix it. But C isn't working fine and Rust is the first actual solution we've ever had.

He's just an old man saying we can't have cars on the road because they'll scare the horses.

[-] FizzyOrange@programming.dev 66 points 2 years ago

Ok after reading the article this is bullshit. It's only because they are counting JavaScript and Typescript separately.

[-] FizzyOrange@programming.dev 72 points 2 years ago

Actual blog post.

Great accomplishment. I think we all knew it must happen like this but it's great to see real world results.

I think this is probably actually the most useful part of the post:

Increasing productivity: Safe Coding improves code correctness and developer productivity by shifting bug finding further left, before the code is even checked in. We see this shift showing up in important metrics such as rollback rates (emergency code revert due to an unanticipated bug). The Android team has observed that the rollback rate of Rust changes is less than half that of C++.

I think anyone writing Rust knows this but it's quite hard to convince non-Rust developers that you will write fewer bugs in general (not just memory safety bugs) with Rust than with C++. It's great to have a solid number to point to.

16

Does anyone know of a website that will show you a graph of open/closed issues and PRs for a GitHub repo? This seems like such an obvious basic feature but GitHub only has a useless "insights" page which doesn't really show you anything.

10
Dart Macros (youtu.be)

Very impressive IDE integration for Dart macros. Something to aspire to.

view more: next ›

FizzyOrange

0 post score
0 comment score
joined 2 years ago