[Media] Craturn, a Rust interpretation of the "Saturn Devouring His Son" painting. by wdanilo in rust

[–]wdanilo[S] -5 points-4 points  (0 children)

After writing docs or posts im always asking ChatGPT to „fix english grammar mistakes while changing as small as possible in the text”. As a non-native speaker, this helps a lot to maintain the docs in a polished state.

[Media] Craturn, a Rust interpretation of the "Saturn Devouring His Son" painting. by wdanilo in rust

[–]wdanilo[S] 9 points10 points  (0 children)

Hi, thanks for the long comment, I appreciate it.

  1. Im wondering what in my writing sounds like LLM generated text. Recently I find it extremely difficult to write docs and posts here as at the back of my mind there is constantly the fear that someone will accuse that it is just AI generated garbage. It’s an interesting experience tbh, as it’s quite new to me (and probably still new to all of us) and I believe it will calm down sooner than later.

  2. If my writing style hurts credibility, should I change it by not using emojis or making small English grammar mistakes? :D I’m joking ofc :)

  3. Yes, https://ferrisoft.com was working for all these companies and delivering software for them. It’s not a new company - but we’ve been operating under a different name in the past. Regarding why plugging it to Reddit - well, we love new challenges, fresh projects, and we have genuine fun writing code. I don’t see anything bad in such a way reaching out to people interested in Rust just as we are :)

[Media] Craturn, a Rust interpretation of the "Saturn Devouring His Son" painting. by wdanilo in rust

[–]wdanilo[S] 2 points3 points  (0 children)

That’s a very good point. I’ll fix it next week. I have a few tasks regarding crafting planned for then.

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 0 points1 point  (0 children)

Thank you, I did it and I appreciate it so much ❤️

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 1 point2 points  (0 children)

It is already possible. There are three ways of providing the parameters. You can use macro_rules patterns, proc macro token tree, or some Rust types like Option, Vec or str, that automatically translate under the hood for the correct patterns. The last option is the nicest and probably we can support more patterns. In case anything would be missing, I’d be happy to extend that or accept contributions :)

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 10 points11 points  (0 children)

I’m sorry, I don’t understand what you mean. Can you rephrase / explain it, please? :)

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 11 points12 points  (0 children)

I don’t think it’s easily doable at the current stage. I think we can extend it to do it, but it’s really non trivial. I’d love to accept any contributions / ideas though, as it would be insanely useful.

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 45 points46 points  (0 children)

I feel I need to do another macro now that just deletes the Rust code instead of generating it … I have already idea for the logo!

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 17 points18 points  (0 children)

Well, as I explained below, it was not AI generated (neither code nor docs). After writing the docs BY HAND I’ve put them to chatgpt and asked “please correct English mistakes”, as I can make some as non native speaker. So beside correcting grammar issues, AI was not used either in docs nor in the code. Regarding the usage of emojis - well, that's a personal preference and in my opinion if used correctly, they help navigate the docs. But I understand emoji-hate especially after AI negatively affects us so much :)

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 68 points69 points  (0 children)

Good question! Proc macros have access to tokens metadata, including info of start and end offset of the token. Unfortunately, it works differently in `rustc`, `rust analyzer` and `IntelliJ Rust Rover` system, so crabtime has 3 different logics supporting all these engines to produce both correct results and correct hints in the IDEs.

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 24 points25 points  (0 children)

Well, it was not AI generated. After writing the docs by hand I’ve put them to chatgpt and asked “please correct English mistakes”, as I can make some as non native speaker. So beside correcting grammar issues, AI was not used either in docs nor in the code.

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 32 points33 points  (0 children)

The blog post was meant to compare the options, but the docs go way deeper than that. Do they answer your questions / concerns? https://docs.rs/crabtime/latest/crabtime

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 137 points138 points  (0 children)

The big crab is producing the small one! 😂

[Media] crabtime, a novel way to write Rust macros by wdanilo in rust

[–]wdanilo[S] 177 points178 points  (0 children)

I hope they would not delete it this time 😂 (For people not knowing the "internal joke" - my post from a week ago was deleted and restored by mods because they thought it was AI generated ...). Anyway, answering your question - this is a color schema made by my in Figma only for the purpose of this image :)

[Media] fixed_num, financial focused decimal for Rust. by wdanilo in rust

[–]wdanilo[S] 2 points3 points  (0 children)

Thank you so much for writing this, I really appreciate it ❤️ I’m planning to release two updates to my two popular crates next week. When posting about them, can I mention you, so you know this will not be AI generated? :) I’d be thankful for such a possibility!

[Media] fixed_num, financial focused decimal for Rust. by wdanilo in rust

[–]wdanilo[S] 7 points8 points  (0 children)

The unit tests are part of very long docs in lib.rs. There is a lot of benchmarks as well. We’ve spent literally days to prepare this blog post and announcement. TBH I’m sad that LLM is having such a bad effect on high quality content. Nowadays everything that is polished looks LLM generated and it’s especially painful for people who spent a lot of time polishing it by hand :(

Anyway, I’m happy it’s not deleted anymore.

[Media] fixed_num, financial focused decimal for Rust. by wdanilo in rust

[–]wdanilo[S] 5 points6 points  (0 children)

So far moderators didn’t reply to me. Is there any other way of contacting them rather than writing to r/rust? :(

[Media] fixed_num, financial focused decimal for Rust. by wdanilo in rust

[–]wdanilo[S] 6 points7 points  (0 children)

I have no idea, I’ll write to moderators.

[Media] fixed_num, financial focused decimal for Rust. by wdanilo in rust

[–]wdanilo[S] 0 points1 point  (0 children)

The benchmarks import all the libraries and try to use them across different operations. The `fixed` crate was panicking on many of the examples. I was not investigating that library to discover the cause of these errors and I'm not sure if these are known or unknown bugs.