FizzyOrange

joined 2 years ago
[–] FizzyOrange 3 points 14 hours ago

Don't be an idiot.

[–] FizzyOrange 6 points 16 hours ago

It's good advice for JavaScript because JavaScript really fucked this up. But it's a bit confused to say "don't use functions as callbacks unless they were designed for it".

The problem isn't really even directly related to callbacks.

A better way to state it would be "don't pass extra arguments to functions that don't use use them".

[–] FizzyOrange 7 points 1 day ago (2 children)

I think this actually happens when you do a speed test. Bittorrent being throttled? Hmm let me just run a speed te.. oh it's working now is it?

[–] FizzyOrange 1 points 1 day ago

I mean, you can use tabs consistently within a project. The only thing I'm aware of that actually bans tabs is YAML and... well, you can go a long way by always doing the opposite of what YAML does.

[–] FizzyOrange 2 points 1 day ago (1 children)

That's definitely better, but still not as good as Windows. If you click on an area that isn't a drag source it should be raised on button down. I presume it doesn't do that?

[–] FizzyOrange 3 points 1 day ago (1 children)

So, Windows has fully optimal behaviour here:

If you click on an area of the window that cannot be dragged from, it raises it on mouse-down.

If you click on an area of the window that can be dragged on, it doesn't raise if you start a drag, otherwise it raises it on mouse-up.

That's the desired behaviour. I agree people didn't really explain that clearly.

I haven't looked into it for over 20 years but as I recall it is impossible to do this with X11. I have no idea if Wayland added some kind of support for this, but I would be quite surprised given how long it took them to do screenshots.

Part of the difficulty is that you need to somehow query an app on mouse-down if it might start a drag. I have no idea how Windows does that... but... they solved it decades ago.

[–] FizzyOrange 6 points 2 days ago (7 children)

I wonder if they'll ever fix this 24 year old bug...

https://bugs.kde.org/show_bug.cgi?id=36065

(Note they closed it but it doesn't sound like they actually did fix it.)

[–] FizzyOrange 3 points 2 days ago (2 children)

That said, consistency trumps philosophy.

If only we had collectively agreed on a number of spaces! Sadly it seems split fairly evenly between 2 and 4 so we don't even get consistency.

[–] FizzyOrange 2 points 2 days ago (1 children)

IMO it's because open source developers commonly use editors that have poor support for tabs, like Vim and Emacs.

Tabs are definitely better but to use them properly you do really need a "visualise whitespace" option enables. Emacs does it like this and Vim like this. Both awful.

Possibly also a bit because tabs for indentation, alignment for spaces is just too complex for most developers. Hell most can barely even get spaces right. I work in a couple of languages without an autoformatter (e.g. SystemVerilog) and some of our files are a joke. A mixture of 2 and 3 space indentations, sometimes on the same line!

[–] FizzyOrange 2 points 2 days ago

That's sounds very unusual. Presumably you've got some interviews? I would ask some of them for some honest feedback because it sounds like you're doing something wrong. Also try talking to recruiters...

Also maybe do some networking if you're that experienced? Ask old colleagues?

[–] FizzyOrange 1 points 3 days ago (2 children)

Honestly I don't need to know anything about it at all except that it's a payment system designed by GNU to know that it stands zero chance of success.

GNU are uber-geeks that do not comprehend usability at all. They think everyone is happy to go to key exchange parties and run their own servers and so on. There's absolutely no chance this is understandable by normal people.

[–] FizzyOrange 9 points 3 days ago (2 children)

Impressive. I would imagine it is very difficult to get native performance without ISA extensions like Apple had to do for TSO and other awkward x86isms.

I would guess someone will make a RISC-V extension for that stuff eventually, though I haven't seen anyone propose one yet.

26
submitted 1 month ago* (last edited 1 month ago) by FizzyOrange to c/linux
 

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?

 

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)
submitted 11 months ago by FizzyOrange to c/rust
 

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

view more: next ›