|
Vanadium posted:I'm not sure about the Sync/Send thing, I always get confused there. On this note, if anyone has a link to a good explanation of Send & Sync besides the official docs, could you post it? Like I get it in theory (Send means it's safe to transfer between threads, Sync means it's safe to access from multiple threads), but I haven't yet quite wrapped my head around it in practice. Like, I see the Arc<Mutex<ActualThing>> pattern a fair bit, but I'd like somewhere that does a deeper dive on an/a few examples. My interpretation of that is that Mutex makes it Sync, and Arc makes it Send, but I'm still not confident I'd know how to use it myself (especially Arc). And I'm coming up on a point in the project I'm working on where that would be super helpful.
|
# ¿ Apr 5, 2016 19:01 |
|
|
# ¿ May 5, 2024 04:25 |
|
1.12 is out, and I am irrationally excited about the new compiler errors that are actually understandable: Thanks Elm, for kicking all the other language maintainers in the butt about this.
|
# ¿ Sep 29, 2016 20:02 |
|
TheCog posted:I keep meaning to poke at rust but I don't have a good idea of what kinds of projects its well suited to. I've mostly only done webapps and web design like things, (ok and some automation scripts), are there any cool ideas for projects to build? I followed the tutorial in the docs a while back and built the guess checker, but that didn't really give me a good idea of what kinds of cool projects rust enables. Are there any really recommended tutorials or even just suggestions for things to build that people could recommend? I built a packet parser (sort of tcpdump-ultralite with some extra mashing for couple particular types of packets) and I thought it worked fantastically well for that. It would also be good for the Matasano crypto challenges.
|
# ¿ Jun 29, 2017 22:34 |
|
Beamed posted:So am I missing something with the IntelliJ plugin? Tried it out again after everyone raved about it, but it still forces me to run cargo manually to see if I have any compiler errors. Do I accidentally have a setting that removes IntelliJ's underlining compiler/syntax errors or something? I only get some, but not all, errors showing up inside of IntelliJ. Like it’ll usually catch typos and most type mismatches, but I don’t think it’s ever caught borrow checker issues without invoking the compiler.
|
# ¿ Feb 11, 2018 01:27 |
|
Dominoes posted:Should I use a declarative macro, or a procedural one? Are they effectively equivalent, but with the former using regex-like syntax, and the latter using something more akin to a normal function? It seems like I could accomplish this in either. I don't know much about macros, but I just saw earlier today that someone beat you to this, you might be able to take a look at what they do: https://github.com/bodil/typed-html It looks like they're using procedural macros? I think? I haven't really touched macros at all, I really should.
|
# ¿ Nov 19, 2018 03:54 |
|
Malcolm XML posted:Not really. The rust type system is not that powerful modulo the borrow checker. Maybe with actual dependent types (cost generics and generalizations thereof) you could express more useful logic in types. It is a hell of a lot better than a lot of more mainstream languages though. And you don’t need a PhD in math to make sense of it, unlike Haskell
|
# ¿ Dec 8, 2019 03:37 |
|
|
# ¿ May 5, 2024 04:25 |
|
gonadic io posted:how into trans shitposting are you It’s possible to find interesting tech people to follow on Twitter that doesn’t include trans shitposting?
|
# ¿ Oct 12, 2021 21:59 |