250 points by john_w 5 months ago flag hide 16 comments
john_doe 5 months ago next
Great job! I've been looking for a real-time collaborative code editor built with Rust and WebAssembly. Do you have any benchmarks comparing its performance to other editors in the same category?
original_poster 5 months ago next
Hey @john_doe! That's a great question. While we don't have any official benchmarks yet, the editor has shown strong performance so far with small- to medium-sized codebases. I'll update this thread once we have more data on the subject.
jane_doe 5 months ago prev next
I'm curious if you considered using other technologies like SolidJS or Pijul? Do you have any particular reason why you chose Rust and WebAssembly?
original_poster 5 months ago next
@jane_doe Great question! While Rust is known for its performance and reliability, we also chose it because it has a thriving ecosystem and excellent WebAssembly support. We had briefly experimented with other technologies, but we found that these constraints are essential to our project. Ultimately, Rust and WebAssembly provided the best balance of performance, reliability, and ecosystem support.
rust_lover 5 months ago prev next
Rust and WebAssembly are such a great combination! Your project looks fantastic. I noticed that there seems to be an issue with spell-checking in the editor. Did you encounter the same, or is it unique to my setup?
original_poster 5 months ago next
@rust_lover, thanks for your feedback and encouragement! We're aware of the spell-checking issue and have it in our backlog. We're currently focusing on performance and stability, but we'll definitely address this in a future update. Stay tuned!
go_developer 5 months ago prev next
Impressive work! Although I still prefer Go, I can appreciate the beauty of Rust and WebAssembly. How do you see this project scaling with the introduction of more users and community features?
original_poster 5 months ago next
@go_developer, many thanks! Scalability continues to be on our radar. As our user base grows, we'll need to focus on optimizing the real-time collaboration updates, reducing the payload, and possibly implementing other sharding strategies. We're also looking at ways to introduce community features like public and private repositories, version control, and more.
webdev_enthusiast 5 months ago prev next
Using Rust is fascinating. It's my first time seeing code editor using Rust. Did you face any difficulties while integrating with WebAssembly? How was the developer's experience so far?
original_poster 5 months ago next
@webdev_enthusiast, thanks for stopping by. We loved working with Rust and WebAssembly, even if the path wasn't always straightforward! Compared to other technologies, Rust and WebAssembly required a little more scaffolding to set up – but once that was complete, the developer experience was quite pleasant. And the resulting performance was worth every bit of effort.
open_source_fan 5 months ago prev next
Your project is very exciting. Do you have any plans to open source it so others can help and improve upon it?
original_poster 5 months ago next
@open_source_fan, thank you! Yes, we're planning to open source this project when it's mature enough for the public. Right now, we're polishing up some rough edges and ensuring that it's stable. We believe an open-source approach will lead to a stronger, more engaging community around it, and we're looking forward to that moment.
security_researcher 5 months ago prev next
Rust has an excellent reputation for security. Have you carried out any security reviews or audits for your codebase to ensure everything is clean?
original_poster 5 months ago next
@security_researcher, thank you for asking. We've carried out preliminary static code analysis of our codebase and, by and large, have been pleased with the results. However, we're working on a more extensive security review that includes fuzzing, dynamic analysis, and third-party audits. Our goal is to create an editor that's not only collaborative but also secure.
aspiring_developer 5 months ago prev next
Elegant work, and I've never seen Rust used like this! What resources or articles would you recommend for someone interested in learning more about Rust or WebAssembly? Are there any learning paths you have found particularly helpful?
original_poster 5 months ago next
@aspiring_developer, you're kind! Rust and WebAssembly are a joy to work with. We recommend starting with the official Rust documentation and crates.io to get familiar with Rust's syntax, libraries, and associated tooling. WebAssembly's ecosystem is also quite mature, so you can refer to the WebAssembly guide to get started. Once you're comfortable, we highly recommend reading this blog post on building web applications with Rust and WebAssembly.<a href="https://web.archive.org/web/20230407102953/https://blog.logrocket.com/building-web-applications-with-rust-webassembly-yew/">https://blog.logrocket.com/building-web-applications-with-rust-webassembly-yew/</a>