• 8 Posts
  • 124 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle








  • AI doesn’t do feelings

    How can I have a serious conversation with these annoying answers? Come on, you know what I am talking about. Even an AI chatbot would know what I mean.

    Any AI chatbot, even “general purpose” ones will read your code and will return a description of what it does if you ask it.

    And particularly AI would be great at catching “useless”, “weird” or unexplainable code in a repository. Maybe not with the current levels of context. But that’s what I want to know, if these tools (or anything similar) exist yet.

    Thank you.




  • I don’t care if the solution is AI based or not, indeed.

    I guess I thought it like that because AI is quite fit for the task of understanding what might be the purpose of code in a few seconds/minutes without you having to review it. I don’t know how some non-AI tool could be better for such task.

    Edit: so many people against the idea. Have you guys used GitHub Copilot? It understands the context of your repo to help you write the next thing… Right? Well, what if you apply the same idea to simply review for malicious/unexpected behaviour on third party repos? Doesn’t seem too weird for me.





  • The thing is that, in C the API could be slightly different and you could get terrible crashes, for example because certain variables were freed at different times, etc.

    In Rust that is literally impossible to happen unless you (very extremely rarely) need to do something unsafe, which is explicitly marked as such and will never surprise you with an unexpected crash.

    Everything is so strongly typed that if it compiles… It will run without unexpected crashes. That’s the difference with C code, and that’s why Rust is said to be safe. Memory leaks, etc, are virtually impossible.



  • I just wish every programmer completed the rustlings game/tutorial. Doesn’t take that long.

    I didn’t even fully complete it, and it made me a way better programmer, because it forces you to think RIGHT.

    It may sound weird for people who haven’t experienced it, but it’s amazing when you get angry at the compiler and you realise… It is right, and you were doing something that could f*ck you up 2 months in the future.

    And after a bit of practise, it starts wiring your brain differently, and now my Python code looks so much better and it’s way more safe just because of those days playing around in rustlings.

    So yeah, Rust is an amazing language for everything, but particularly for kernel development. Either Linux implements it, or it’ll probably die in 30 years and get replaced with a modern Rust kernel (Redox OS?).



  • Oh I am very sorry, I think I did not express myself properly. I wasn’t particularly referring to you, but rather the typical user who will answer to the “Musk is one of the richest” with the “company value” thing.

    I do think tho that whatever your opinion on Musk’s companies is, the market clearly thinks otherwise, which banks are part of it.

    Also, I strongly dislike Musk. But it’s very clear to me that he has enough power to do whatever he wants like wasting lots of money trying new things until something sticks.