News for hackers. Stuff that matters.
Re:Rust needs a web framework for lazy developers by J_Shelby_J on Sunday October 06, 2024 @09:52PM (#41762041)
People who say copilot is useless.... I can only imagine they're in a dynamically typed language. Copilot + Rust makes boilerplate go fast. Strong typing is force multiplier for code gen.
Re:Rust needs a web framework for lazy developers by adastra22 on Sunday October 06, 2024 @10:33PM (#41762272)
I suspect that’s true. I never blindingly copy LLM generated code (that would be recklessly stupid), but I often only quick skim rust code generated this way, just to make sure the general task it is solving is what I asked for. If there is an unhandled edge case or or memory handling bug, rust will catch it.
Re:Rust needs a web framework for lazy developers by NitpickLawyer on Sunday October 06, 2024 @11:38PM (#41762566)
It's also easier to implement a generate_code -> check_for_errors -> give_error_to_llm -> fix_code loop, because the errors that rust throws at you are most of the time really well thought out, and as succint as usefully possible. Comparing it with python, where you have to write custom parsing to trim it down and even then it's hit and miss on where the actual error lies, it's not even funny.
Re:Rust needs a web framework for lazy developers by adastra22 on Monday October 07, 2024 @12:43AM (#41762879)
Rust’s compiler errors is definitely one of the selling points of the language.