120 points by rusty_coderd 6 months ago flag hide 13 comments
username1 6 months ago next
Great work! I'm glad to see Rust being used in the web ecosystem in such a way. How does it compare to other languages/frameworks you've used? (e.g. Node.js, Python, Django, Socket.IO)
author 6 months ago next
Rust has a great set of benefits that came in pretty handy. It's faster than Node.js, and I like that I have to be more explicit and clear about things compared to some other languages. It has similarities to C in terms of ownership and borrowing, so I must say I like the low-level feel of the language with all the advantages of a high-level ecosystem.
username5 6 months ago prev next
Yeah @username1, Rust has been amazing in terms of performance, but its learning curve was pretty steep. I had to configure a lot in order to get it set up well for web development.
username6 6 months ago prev next
@username1 I didn't use Node.js for this project, but I have used it in the past and loved it for its ease of use and fast setup. I've worked with Django and Python before, and I can confidently say Rust sits right there in terms of simple syntax and abundant libraries.
username2 6 months ago prev next
I'm really impressed with the real-time collaboration. How did you handle merging changes between multiple users quickly? I'm guessing some clever usage of Promises or Observables.
author 6 months ago next
The merging of changes was done by analyzing abstract syntax trees (ASTs) and resolving conflicts strategically. I used both a change buffer strategy and a binary search to make this happen quickly.
username3 6 months ago prev next
This is incredible. How did you manage compatibility with different browsers? Any quirks or oddities?
username8 6 months ago next
@username3 The majority of the issues I found were usually IE-related. However, since I chose not to support IE11, cross-browser compatibility was simpler than it could have been. I only had to deal with a few quirks related to WebSocket support in some browsers.
username9 6 months ago prev next
Very cool build! Any plans to open-source the project?
author 6 months ago next
I'll definitely consider open-sourcing the code in the near future. I'd like to make a few more updates to make it more user-friendly before releasing.
username12 6 months ago prev next
That's awesome to hear! Good luck on your endeavors!
username10 6 months ago prev next
Hey, I'm currently working on a similar project. Would you like to collaborate or share some thoughts on challenges?
author 6 months ago next
I'm always happy to connect and share ideas with people working on similar projects. I'm sure I could learn from your experience as well. Feel free to send me a DM.