@RustyCrab @deprecated_ii Are you passing pointers to iterators into std::find?
Conversation
Notices
-
Embed this notice
Coyote (coyote@social.singing.dog)'s status on Tuesday, 01-Aug-2023 01:04:55 JST Coyote -
Embed this notice
kroner (kroner@seal.cafe)'s status on Tuesday, 01-Aug-2023 01:04:47 JST kroner Well yes, I also program in it as well for my project (but I do not wear programmer socks and I am not a troon) Fediverse Contractor likes this. -
Embed this notice
Matty (matty@nicecrew.digital)'s status on Tuesday, 01-Aug-2023 01:04:48 JST Matty This is what the troons program in? victor likes this. -
Embed this notice
Matty (matty@nicecrew.digital)'s status on Tuesday, 01-Aug-2023 01:04:49 JST Matty wtf is this -
Embed this notice
kroner (kroner@seal.cafe)'s status on Tuesday, 01-Aug-2023 01:04:49 JST kroner Rust 🤓 -
Embed this notice
kroner (kroner@seal.cafe)'s status on Tuesday, 01-Aug-2023 01:04:50 JST kroner lol you think C++ is bad -
Embed this notice
kroner (kroner@seal.cafe)'s status on Tuesday, 01-Aug-2023 01:04:51 JST kroner That's C++ (the code you're replying to) -
Embed this notice
Matty (matty@nicecrew.digital)'s status on Tuesday, 01-Aug-2023 01:04:51 JST Matty wow C++ looks like a nightmare -
Embed this notice
Iska (iska@catposter.club)'s status on Tuesday, 01-Aug-2023 01:04:53 JST Iska @RustyCrab@clubcyberia.co @Coyote@social.singing.dog @deprecated_ii@poa.st why does rust code look so cursed
-
Embed this notice
Rusty Crab (rustycrab@clubcyberia.co)'s status on Tuesday, 01-Aug-2023 01:04:54 JST Rusty Crab @Coyote @deprecated_ii OP says
#include <vector> #include <algorithm> int main() { int a; std::vector< std::vector <int> > v; std::vector< std::vector <int> >::const_iterator it = std::find( v.begin(), v.end(), a ); }with gcc
-
Embed this notice
Fediverse Contractor (bot@seal.cafe)'s status on Tuesday, 01-Aug-2023 01:05:58 JST Fediverse Contractor That looks very complicated. -
Embed this notice
kroner (kroner@seal.cafe)'s status on Tuesday, 01-Aug-2023 01:26:58 JST kroner Yeah Rust can get pretty nasty looking sometimes Fediverse Contractor likes this. -
Embed this notice
Matty (matty@nicecrew.digital)'s status on Tuesday, 01-Aug-2023 02:29:41 JST Matty wow this is the worst fucking thing I've ever seen, I will never touch Rust. I'd rather learn Elixir. victor likes this. -
Embed this notice
kroner (kroner@seal.cafe)'s status on Tuesday, 01-Aug-2023 02:29:42 JST kroner Never will be, here is a cursed function I wrote a few weeks ago though 👀
async fn perform<'a, Data>( data: Data, context: web::Data<TinyBoardsContext>, apub_data: tinyboards_federation::config::Data<TinyBoardsContext>, path: web::Path<Data::Route>, req: HttpRequest, ) -> Result<HttpResponse, TinyBoardsError> where Data: Perform<'a> + SendActivity<Response = <Data as Perform<'a>>::Response> + Clone + Deserialize<'a> + Send + 'static, { let auth_header = get_auth(&req); let res = data .clone() .perform(&context, path.into_inner(), auth_header) .await?; SendActivity::send_activity(&data, &res, &apub_data, auth_header).await?; Ok(HttpResponse::Ok().json(res)) } -
Embed this notice
kroner (kroner@seal.cafe)'s status on Tuesday, 01-Aug-2023 02:29:42 JST kroner (This function performs user actions + sends activities out over activitypub) -
Embed this notice
Goalkeeper (goalkeeper@nicecrew.digital)'s status on Tuesday, 01-Aug-2023 02:29:43 JST Goalkeeper YET. Keep programming in Rust 🤨 -
Embed this notice
victor (victor@crucible.world)'s status on Tuesday, 01-Aug-2023 02:37:19 JST victor @iska @matty @kroner I used Elixir briefly and generally liked it. My complaint is that the typing system is too loose, but I believe there has been a lot of work done on TypeSpecs as an opt-in type-checking system since I last used Elixir.
The tooling was very nice. Great built-in documentation. It seems like a decent foundation in Erlang and possibly Ruby would help, but overall Elixir was a decent experience for me without having much background the things that inspired its creation. -
Embed this notice
Iska (iska@catposter.club)'s status on Tuesday, 01-Aug-2023 02:37:20 JST Iska @matty@nicecrew.digital @kroner@seal.cafe elixir is based tbh
-
Embed this notice