252 karma · joined Aug 14, 2015 (11y ago) · 95 submissions
- Co-Founder Biscuit (biscuit.so) - (Previously) Co-Founder of CodeSandbox, acquired by Together
My email is first name @ biscuit.so
meet.hn/city/nl-Amsterdam
Socials: - x.com/compuives
---
31.
Nodebox: A Node.js runtime that runs in any browser(codesandbox.io ↗)
91 points · by CompuIves · 3y ago · 30 comments
comment 3y ago · link · parent
comment 3y ago · link · parent
It's especially useful for things like migrations or dependency management. In one branch I could work on something that has some database migrations, and then I can still switch to other branches without having to roll back the migrations.
I didn't know about git worktrees though! I'm going to read up on this.
comment 3y ago · link · parent
I'd say that CodeSandbox has a strong focus on extending the existing workflow for developers. That's why we have a VSCode integration, a GitHub integration with a GitHub App that creates a running dev env for every branch/PR, and we make sure that generally all editor features you expect (autocomplete, go to definition, hover info, etc) are available for the languages that we support.
comment 3y ago · link · parent
That said, I've also spoken with people who use a Web IDE next to their local environment. E.g. they use a Web IDE for reviewing PRs or making smaller changes, and they use their local editor for feature development.
comment 3y ago · link · parent
That said, it is something on our radar, being able to press a button for deploy from CodeSandbox would be valuable for many people!
38.
Introducing Rust Support in CodeSandbox, start a Rust VM in one click(codesandbox.io ↗)
63 points · by CompuIves · 3y ago · 26 comments
comment 3y ago · link · parent
comment 3y ago · link · parent
When you open a repo on CodeSandbox, you automatically open the main branch (e.g. https://codesandbox.io/p/github/codesandbox/test-sandbox/mai..., which is the main branch of our test repo). To contribute to this branch, you can click "Branch" in the editor, and we'll automatically create a new branch, and redirect you to the URL of this branch.
They key here is that you can share this branch (with anyone who has access to the repo). If someone else opens this same branch in CodeSandbox, they will join the same workspace as yours and see your cursor. This allows you to share in-progress work with your team more easily, because you're sharing a link to a branch. When someone else opens that link, they will see a running environment instead of static code, even if you're not online.
So you could essentially say that dev environments on CodeSandbox are multi-user, which is a key difference compared to other cloud environments. With other cloud solutions, the link is tied to your personal environment (so the link is only valid as long as you are online). With CodeSandbox, the link is tied to a branch, which can be shared and opened any time by multiple users.
comment 3y ago · link · parent
comment 4y ago · link · parent
It's the same concept, you get a VM you can work on from a native app, but our app is for iOS only and supports iPads natively.
Disclaimer: I'm one of the co-founders of CodeSandbox.
comment 4y ago · link · parent
I've been looking at huge pages recently, I'm going to do some more testing with transparent huge pages today and see if it changes performance. Unfortunately we cannot use reserved huge pages because that doesn't work with shared mmap on say an XFS FS.
Another idea is to make clones use the same memory base layer of their parent, then the pages are already prefaulted and it would deduplicate overall memory usage. Many things to discover still..
comment 4y ago · link · parent
For IP uniqueness, we give every VM the same IP, but we put every VM in its own network namespace. Then we have iptable rules to rewrite the src/dest IP on every packet that enters the network namespace.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Practically, 99% of the forks will be done from the `main`/`master` branch of the repo, which is read-only for everyone on the team. So the mini-pause isn't breaking in those cases.
comment 4y ago · link · parent
The main reason why snapshotting became interesting for us, is because we're running development servers defined by our users. A development server could take a long time to start, sometimes minutes.
So even if we can start the VM fast, the most important speedup for us is on the user code that we cannot control.
comment 4y ago · link · parent
comment 4y ago · link · parent