Posts by gfaster@tilde.zone
 (DIR) Post #B42D8dkIkzJ4uWwtxg by gfaster@tilde.zone
       0 likes, 0 repeats
       
       @azonenberg from my father: stop eating after them
       
 (DIR) Post #B5Z7RHqIH9oqlyS9aa by gfaster@tilde.zone
       0 likes, 0 repeats
       
       @enigmatico The energy used in electric and gasoline vehicles are not the same though, that "technically" is doing a lot of heavy lifting.A casual search gives 20-40% efficiency of ICE vehicles and around 75% efficiency for electric (as measured by how much energy is lost as heat, so this does not include power generation for the electric vehicle). It would be correct to say that both ICE and electric vehicles do the same amount of work, but they absolutely do not use the same amount of energy.
       
 (DIR) Post #B5nhNReYAuwKbWrmpk by gfaster@tilde.zone
       1 likes, 0 repeats
       
       @Stellar loosing it at the literal breakneck speeds
       
 (DIR) Post #B88zCA3klXCCG2fssy by gfaster@tilde.zone
       0 likes, 0 repeats
       
       @ariadne ok I had never heard of coccinelle before (or maybe I had but I never looked into it) but omg would that have been so much help when I was working on porting a 15k lines of C into Rust. That ended up being a hodgepodge of very cursed vim macros to do a lot of that mechanical transformation.
       
 (DIR) Post #B890eDKSIssQSaQYXA by gfaster@tilde.zone
       0 likes, 0 repeats
       
       @ariadne It wouldn't be useful for the actual translation step, but it definitely could've helped me find the for loops that use their induction variable afterwards and converted them to while loops, which would've saved me a few frustrating bugs.I wasn't aware of crust at the time, but there is basically no more C code actually run anymore in the project at this point, so it's mostly water under the bridge. (although coccinelle for rust looks potentially helpful still?)
       
 (DIR) Post #B892gjlGtJ5vXFIjLs by gfaster@tilde.zone
       0 likes, 0 repeats
       
       @ariadne this? https://rust-for-linux.com/coccinelle-for-rustIt seems very limited, but probably better than rust-analyzer ssr for most things which I was relying on before.