universeodon.com is part of the decentralized social network powered by Mastodon.
Be one with the #fediverse. Join millions of humans building, creating, and collaborating on Mastodon Social Network. Supports 1000 character posts.

Administered by:

Server stats:

3.6K
active users

Learn more

#rust

266 posts222 participants27 posts today

#Vim #NeoVim has #Surround plugin. #HelixEditor has it built in. The Helix version doesn’t do "surround with function". I started a discussion on the Helix Discussion board, but privately forked and cloned and started experimenting. Just when I finally got a response in the discussion, I finally had close to a working prototype.

github.com/helix-editor/helix/

The response showed the keystrokes to do it in Helix as it is now, and they were reasonable. Using Nik Revenco’s way was a better match for Helix’ "vision" as expressed in their Vision.md doc.

I learned a lot from prototyping a command (in #RustLang #Rust) within Helix (in particular, how to make a prompt in the editor and get a string from the user was a big thing for me), but I ended up throwing it away. I was wrong.

I’m really starting to like Helix, but like Rust, I have so much to learn. Still experimenting, still learning for both.

Ah, the classic "let's reinvent the wheel" thought experiment, but this time in #Rust 🦀—because why use #Google when you can struggle with disk storage yourself? 🙄 Stay tuned for Part 2: "Realizing this was a terrible idea and googling 'how to use Google'." 😂
jdrouet.github.io/posts/202503 #reinventthewheel #programming #struggles #diskstorage #humor #HackerNews #ngated

jdrouet · Building a search engine from scratch, in Rust: part 1Or how to write on disk efficiently in the browser or any other device.
Replied to talpa

rustc -C lto -C debuginfo=0 -C opt-level=3

And we are down to 4.5MB but did take quite a significant hit on compilation time

stripping the executables

#c 15kB
#rust 339kB