Home / Companies / Replit / Blog / January 2021

January 2021 Summaries

4 posts from Replit

Filter
Month: Year:
Post Summaries Back to Blog
To make it so that anyone with a web browser can code on Replit, our backend infrastructures runs on preemptible VMs. These machines can shutdown at any time, but we've optimized the process to reconnect quickly. However, some users were experiencing stuck repls due to slow container shutdowns. We investigated and found that Docker was taking an excessively long time to kill containers, causing them to be inaccessible for up to a minute. After digging into Docker's source code, we discovered that the issue was with netlink operations releasing network resources. To bypass this bottleneck, we killed the container's pid directly instead of relying on Docker's cleanup process. This change significantly improved our session connection error rate and reduced boot times from 2 minutes to just 15 seconds. By circumventing Docker's slow shutdown process, we've created a smoother experience for Replit users.
Jan 31, 2021 1,761 words in the original blog post.
Replit and Rails are philosophically aligned as they both aim to simplify development by removing unnecessary configuration and complexity. However, Replit's initial inability to work well with Rails was a limitation due to its focus on small and lightweight projects. Recently, Replit's infrastructure has improved, allowing it to support Rails applications, resulting in a delightful experience for users. With the help of the getting started guide and minimal modifications, developers can quickly set up a Rails project on Replit, taking advantage of its powerful infrastructure to build and deploy their applications.
Jan 29, 2021 156 words in the original blog post.
We had the idea for Replit in Jordan, launched as a startup in New York, and incorporated as a company in San Mateo. The US gave us the infrastructure, the capital, and network to launch our business, but we want to expand globally. We're now offering global routing, with compute regions in Mumbai, India and London, England, making us a global service. This change reduces latency for users worldwide, allowing them to code more efficiently. Replit is also expanding its hiring to become a globally distributed company, with employees able to work from anywhere. The company requires some overlap with PST working hours, but otherwise allows flexibility in location.
Jan 27, 2021 430 words in the original blog post.
We have reimagined the native graphics experience on Replit, addressing performance and reliability issues with a new system that is faster, more reliable, and elegant, allowing games and other native GUI applications to launch quickly and reliably, fixing common issues like application not launching and window resizing. The new system uses the X Windows System for display graphics, leveraging networking capabilities and technologies like VNC to support remote graphical user interfaces, while avoiding the use of outdated solutions like x11vnc and the LD_PRELOAD trick, instead opting for a modern combined X server + VNC server solution that improves performance and startup time. Additionally, we have improved the Java Swing experience with more powerful virtual containers, providing a quick and reliable experience for teachers and students.
Jan 15, 2021 889 words in the original blog post.