noddy

joined 2 years ago
[–] [email protected] 3 points 7 months ago (2 children)

Anyone know what real time means here? Does it mean that sleeping a thread is more accurate (as in the thread is resumed at the correct time after calling sleep)? Or is there an API that implements some functionality for something that should run in real time?

[–] [email protected] 8 points 7 months ago

Wrapping a value in a mutex just makes sense. After learning a bit of Rust I made a similar mutex wrapper in C++ when I had to protect a class member in a C++ project. I just had to change the type in the declaration, and bam the compiler tells me about all places this member was accessed. Much easier than using some buggy 'find all references', potentially forgetting a few places.

[–] [email protected] 3 points 7 months ago

I think the author of the article just haven't understood how to use the ? operator yet, and don't think they deserve being called "utterly incompetent" for it. Whether something is a monad or not is not necessarily something a programmer should have to think about on a daily basis IMO.

I just think of rust errors as a tagged enum with either a value or an error. And the ? operator as syntax sugar for returning if something was an error. IMO that simple understanding is sufficient to do error handling in Rust. I don't think we should gatekeep programming behind some intellectual barrier of whether or not you understand category theory. I certainly don't understand what a monad is, but I can still write working software and do error handling without unwraps.

[–] [email protected] 3 points 8 months ago

Thanks. I had a blast reading my old comments :p

[–] [email protected] 31 points 8 months ago (3 children)

I tried it briefly. I like the idea of an alternative to VS code, that's not some inefficient javascript electron app. But the focus of zed seems to be on collaboration in cloud and also pushing LLM tools. That's not what I'm looking for. I disliked that it was impossible to hide the "log in to github" button (I don't want to log into an editor). Irked me the wrong way.

[–] [email protected] 7 points 1 year ago

I personally prefer the straight forward everything in one file examples. The worst examples are those that come with its own ad hoc example framework I first need to understand before I can understand the example.

[–] [email protected] 1 points 1 year ago

I like the Fossify apps. I use the phone, sms, contacts, gallery and file manager. It's SO nice to not have google nag about cloud backups all the time, when I just wanted to look at some pictures I've taken.

Also whenever I can I download apps from F-Droid instead of play store if they're available both places. For example I use Home Assistant, KeePassDX, Syncthing, Termux, VLC, and more from F-Droid.

Found a couple of new apps to try out in this thread as well :)

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

IMO the ackchyually guy would be a better fit for Haskell. "Ackchyually monad is a monoid in the category of endofunctors!"

[–] [email protected] 4 points 1 year ago

Should've made s typescript one, that is a mutant blob of flesh with a life jacket on it.

[–] [email protected] 2 points 1 year ago

I don't know what to do to get good search results anymore if this happens. Using site:reddit.com has been the only way recently to find opinions from actual people regarding some product I'm considering. Maybe I'll just stop buying things and go live in a cave. Can't trust any information online anymore.

[–] [email protected] 1 points 1 year ago

I was just thinking about a possible solution based on what we have. I agree it would be better if cross post comments were federated, but I guess there's different opinions on that (do the lemmy devs agree for example?).

[–] [email protected] 11 points 1 year ago (3 children)

If it is possible to detect which posts are cross posts, it should be possible to create a client app that combines the threads. Maybe give you an option to chose which one to post your comment.

view more: next ›