Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
CompuIves
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
CompuIves
4y ago
It could be shared memory all the way through, but the memory of the original VM should become read-only once a cloned VM starts reading from it. So then both VMs (the original VM and the new VM) should put their writes in a new CoW layer.
62.
▲
by
CompuIves
4y ago
Thank you! Right now our main use case is cloning development environments so we can provide a fresh running dev env for every branch and PR. However there are many other interesting applications, like speeding up CI jobs with VMs that star
63.
▲
by
CompuIves
4y ago
The biggest VM we've been running for dev environments have 12GB RAM, 8vCPUs and 30GB disk. I've also done some tests with 16GB RAM and that worked well too. Have yet to find an upper limit. Another (unrelated) test we've don
64.
▲
by
CompuIves
4y ago
Firecracker keeps a bitmap of which pages have been dirtied (it's a flag you can turn on), so you can make incremental snapshots of only the changed pages (more here: https://github.com/firecracker-microvm/firecrac
65.
▲
by
CompuIves
4y ago
Thanks for sharing the paper, that is super interesting. This is indeed a challenge. The fact that we run development workloads instead of production workloads makes this easier for our use case. We do some rehydration, and when forking acr
66.
▲
by
CompuIves
4y ago
Firecracker is one of the most exciting technologies I've seen in a while. It felt like a whole world opened up after learning about its capabilities.
67.
▲
by
CompuIves
4y ago
Send me an email at my name @ codesandbox.io, then we can plan something!
68.
▲
by
CompuIves
4y ago
This looks amazing, really nicely done. I'm the co-founder of CodeSandbox and it's super cool to see Sandpack used this way in the wild! We've been working on a way to run VMs with Sandpack, maybe we could work together on it
69.
▲
How we clone a running VM in 2 seconds
(codesandbox.io)
12 points
by
CompuIves
4y ago
|
1 comments
70.
▲
by
CompuIves
4y ago
Ahhh I see. Yep, we should have better messaging there. With CodeSandbox you can run _anything_, since we allow you to run any Docker container. I've been running it with Elixir and Rust as well. We do have a focus on making the web de
71.
▲
by
CompuIves
4y ago
What would you say makes it more limited? In the end you get a VM where you can run Docker/Nix etc...
72.
▲
by
CompuIves
5y ago
Yes, after every compilation we send the full bundler state. This is saved on the context so you can use that to analyze the output. In one of the examples in the blog post we show the transpiled code for example. A hidden "feature&quo
73.
▲
by
CompuIves
5y ago
Also, while it uses the CodeSandbox bundler, you can self host it so it's not dependent on our servers!
74.
▲
by
CompuIves
5y ago
First of all, super cool to hear that you've been such an early adopter of CodeSandbox! Not many can say that. The fact that we made your projects public and kept charging is definitely a big mistake, and shouldn't have happened i
75.
▲
by
CompuIves
5y ago
Yep, it downloads and compiles dependencies on the client side. However, it does this on a different domain for security reasons.
76.
▲
by
CompuIves
5y ago
Replay has been amazing for me to debug hard to reproduce issues like live collaboration issues. You just record the bug, share it with others, place some console.logs (after the fact!) and scrub through the recording to see where things we
77.
▲
by
CompuIves
6y ago
The exact same has happened with CodeSandbox, Google Domains had blocked our csb.dev (internal domain) and csb.app (domain for projects) without any warnings. It took us two days (of downtime!) to get them to lift the block. But then after
78.
▲
by
CompuIves
6y ago
We've been using Elixir for our API server from the start. It's a great language and scales really well. We needed to add a websocket API at some point, and now it's our channel with most throughput. Phoenix handles it fine,
79.
▲
by
CompuIves
8y ago
That's a really good point! I deployed a new update with .pug support in vanilla, here's a sandbox to play with it: https://codesandbox.io/s/mjln1846k8 .
80.
▲
by
CompuIves
8y ago
I am so happy that we're on Hacker News! If you have any questions about how things work in CodeSandbox don't hesitate to ask me! I'll watch this thread to answer any questions.
81.
▲
by
CompuIves
8y ago
Hello! Creator of CodeSandbox here! I don't want to give a comparison of StackBlitz and CodeSandbox, because my view as one of the creators would be skewed. I want to note though that CodeSandbox existed before StackBlitz released, I p
82.
▲
by
CompuIves
9y ago
I moved the sandbox to here: https://codesandbox.io/s/3rrq6yx9v1 . I'm also curious, how did you find out about the sandbox.config.json? I feel like it's pretty undocumented by now, we could definitely improve
83.
▲
by
CompuIves
9y ago
1) Thank you! 2) Ah that's really stupid of me, `.stream` was our staging server. I should mention this somewhere, codesandbox.io should have the latest version with live. 3) Good one! I'll update it. 4) That's a super nice s
84.
▲
by
CompuIves
9y ago
Thank you! Yeah we moved to Kubernetes yesterday! I learned most from the official Kubernetes tutorials ( https://kubernetes.io/docs/tutorials/ ). I also used mix_docker ( https://github.com/Recruitee
85.
▲
by
CompuIves
9y ago
Ah, I always forget to keep that page up to date. I'm sorry for that. Since CodeSandbox 2.5 we got some new things, like Parcel support, Typescript configuration support and some other things. I'll make sure to keep that page more
86.
▲
by
CompuIves
9y ago
Thank you very much! It was definitely one of the most fun features to build. I started working on this on March 15th, and the past few days was about testing everything, preparing the release and squashing bugs. The advantage of this type
87.
▲
by
CompuIves
9y ago
Thank you very much! I appreciate it.
88.
▲
by
CompuIves
9y ago
Thank you! Our backend server is an Elixir (Phoenix) server. It has a separate Elixir process for every current live room, we store all state in Redis. So in case we do a rolling deploy we won't drop any connections and continue where
89.
▲
by
CompuIves
9y ago
Hey everyone! I'm the author of this post, I'll be here to answer any questions.
90.
▲
by
CompuIves
9y ago
I did see that tweet. Maybe I was a bit unclear. I mean that the whole editor itself doesn't open when you don't have a connection (at least for me). My reproduction steps are: 1. Open https://stackblitz.com/fork&#
More ›