[-] FizzyOrange@programming.dev 18 points 2 months ago

Yeah it's great for little scripts. There's even a cargo script feature that's being worked on so you can compile & run them using a shebang.

I'd use a shell script if it is literally just a list of commands with no control logic or piping. Anything more than that and you're pointing a loaded gun at your face, and should switch to a proper language, of which Rust is a great choice.

[-] FizzyOrange@programming.dev 18 points 4 months ago

I think it's just because it is always recommended as an "easy" language that's good for beginners.

The only other thing it has going for it is that it has a REPL (and even that was shit until very recently), which I think is why it became popular for research.

It doesn't have anything else going for it really.

  • It's extraordinarily slow
  • The static type hints are pretty decent if you use Pyright but good luck convincing the average Python dev to do that.
  • The tooling is awful. uv is a lifesaver there but even with uv it's a bit of a mess.
  • The package system is a mess. Most people just want to import files using a relative path, but that's pretty much impossible without horrible hacks.
  • The official documentation is surprisingly awful.
  • Implicit variable declaration is a stupid footguns.

The actual syntax is not too bad really, but everything around it is.

[-] FizzyOrange@programming.dev 18 points 6 months ago

Which is a fairly shocking thing to say really. I thought promised to be less of a dick a while ago. Guess he couldn't keep it up.

[-] FizzyOrange@programming.dev 18 points 11 months ago

It's basically vaguebooking.

[-] FizzyOrange@programming.dev 19 points 11 months ago

It's not hard and fast but:

  • API is the actual interface for the functions, not the implementation. It's possible for one API to be implemented by more than one library.
  • Library is a bunch of code provided together. It might have more specific meaning depending on the language.
  • A package is something you can install. It's pretty much synonymous to library since most packages contain one library.
  • A framework is just a library that dictates a lot about how your app works.

Apart from API they don't really have strict definitions so they'll be used interchangeably and differently depending on the language.

[-] FizzyOrange@programming.dev 18 points 1 year ago

What is a "traditional programming language"? I don't think the popularity of Rust has anything whatsoever to do with AI.

[-] FizzyOrange@programming.dev 18 points 1 year ago

I wonder what criteria he has for considering Rust to be a success. Everyone stops writing C++ overnight? Obviously stupid.

Rust is a massive success. This guy is just impatient. Rust is better than C++ in the same way ARM is better than x86. Intel is still alive but would you invest?

[-] FizzyOrange@programming.dev 18 points 1 year ago

Unless the binary size difference is insane, who would say "oh well we were going to pick the library that wasn't riddled with security issues but we decided to save 2MB instead, hope that makes you feel better about your $12m cybersecurity fine!".

[-] FizzyOrange@programming.dev 19 points 1 year ago

The C++ standards committee don't see memory safety or UB as a problem. If they did they wouldn't keep introducing new footguns, e.g. forgetting return_void() in a coroutine. They still think everyone should just learn the entire C++ spec and not make mistakes.

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

valid criticism of his own defense

To be clear that post makes a valid point (don't defend people just because they seem nice or dedicated or whatever), but it isn't a valid criticism of Chris's post because he didn't do that.

He did say Tim is nice and dedicated etc. etc. but he also went through the specific crimes that Tim was supposed to have committed and refuted them.

I read a load of Tim's comments and this was definitely a case of the CoC people getting annoyed with someone who disagreed with them and wouldn't give up. There wasn't anything remotely ban-worthy.

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

This sounds like a great improvement. I have read the sudo source code and anyone that seriously thinks there's no problem with it being SUID is crazy.

That said the whole security model of sudo makes no sense. As soon as you can access a sudoers' account you can trivially steal their password by MitMing sudo and waiting.

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

Yeah IIRC it deletes them, which is as mad as you would expect. Maybe they've fixed that since I used it last which was some years ago.

view more: ‹ prev next ›

FizzyOrange

joined 2 years ago