View previous topic :: View next topic |
Author |
Message |
wswartzendruber Veteran


Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Fri Oct 18, 2019 9:42 pm Post subject: Rust: Explain Some Things to Me |
|
|
1. Rust's module system makes me want to get a hair transplant over my bald spot just so I can tear it out again. Why is "pub use" even a thing? Is there some better way I'm not seeing?
2. Why is error management kicking your collective asses so hard? "Define your own types, no wait, use error-chain...damnit wait no, you actually need to use failure...we think?" Part of what you guys seem to be getting tripped up over is backtraces. I will simply suggest that this does not belong in the error handling portion of a systems language. You should be building a debugger into the generated binaries for that. Unless...you guys really have it figured out this time?
Seeing everyone clamor over Rust makes me realize that one of two things is true:
1. Everyone else is insane, and I'm the only rational motherfucker in the room.
2. I'm the whackjob and need to be committed. _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
 |
yabbadabbadont Advocate


Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Oct 27, 2019 11:12 pm Post subject: Re: Rust: Explain Some Things to Me |
|
|
wswartzendruber wrote: | 1. Everyone else is insane, and I'm the only rational motherfucker in the room.
2. I'm the whackjob and need to be committed. |
The two are not mutually exclusive...  |
|
Back to top |
|
 |
Mardok45 n00b


Joined: 21 Jun 2008 Posts: 69 Location: Right behind you
|
Posted: Mon Oct 28, 2019 12:26 am Post subject: |
|
|
Rust seems to have this persistent problem where ideas are 90% thought-out, but the last 10% that's missing is interoperability with the language. e.g. the standard Error trait is completely useless because you can't return it from a function because it doesn't implement the Sized trait. You have to pull in the failure crate so you can actually return errors. Another problem I just encountered is when using catch_unwind while calling a FFI, a panic still aborts your program.
Writing programs in Rust is like driving a car on a dirt road. You're going to be tossed around, get stuck in a ditch, have trouble getting over a hill, and have an overall bad experience. It's not even the borrow checker that's the cause of headaches; it's half-baked features.
Go is more like driving on a highway. It's smooth-sailing for the most part, but every once in a while, you'll get stuck in a 2-hour traffic jam. _________________
Bones McCracker wrote: | Somebody needs to sig that. |
|
|
Back to top |
|
 |
wswartzendruber Veteran


Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Mon Oct 28, 2019 6:03 am Post subject: |
|
|
Mardok45 wrote: | It's not even the borrow checker that's the cause of headaches; it's half-baked features. |
++
C++20 is looking interesting with concepts and modules. _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
 |
wswartzendruber Veteran


Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Mon Oct 28, 2019 4:18 pm Post subject: |
|
|
Mardok45 wrote: | Rust seems to have this persistent problem where ideas are 90% thought-out, but the last 10% that's missing is interoperability with the language. e.g. the standard Error trait is completely useless because you can't return it from a function because it doesn't implement the Sized trait. You have to pull in the failure crate so you can actually return errors. Another problem I just encountered is when using catch_unwind while calling a FFI, a panic still aborts your program.
Writing programs in Rust is like driving a car on a dirt road. You're going to be tossed around, get stuck in a ditch, have trouble getting over a hill, and have an overall bad experience. It's not even the borrow checker that's the cause of headaches; it's half-baked features.
Go is more like driving on a highway. It's smooth-sailing for the most part, but every once in a while, you'll get stuck in a 2-hour traffic jam. |
And also, have you noticed that the language uses traits to solve virtually everything? Why is AsRef a trait and not a core language feature? _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
 |
Mardok45 n00b


Joined: 21 Jun 2008 Posts: 69 Location: Right behind you
|
Posted: Mon Oct 28, 2019 11:32 pm Post subject: |
|
|
Because Rust is an inclusive community that listens to all ideas. _________________
Bones McCracker wrote: | Somebody needs to sig that. |
|
|
Back to top |
|
 |
wswartzendruber Veteran


Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Mon Dec 02, 2019 10:55 pm Post subject: |
|
|
THANK THE LORD
I was hoping this would happen. If they're half as competent at this as they were with C#, things should come out looking pretty good. _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
 |
|