HNHacker News
TopNewBestAskShowJobs

hugodutka

1,186 karma · joined January 5, 2019

https://hugodutka.com/contact/
submissionscomments
hugodutka··on Show HN: Hocus – self-hosted alternative to GitHub Codespaces using Firecracker
Thanks!

1. GitPod doesn't officially support self-hosting anymore - https://news.ycombinator.com/item?id=33907897. When they did, it was extremely hard to set up. In fact we tried to do it at my previous company several times and failed. Hocus is designed with self-hosting in mind, and we want to make deployment and management straightforward. And from an end user's perspective there are 2 main advantages:

- Hocus dev envs are VMs instead of containers, so you can run anything you want inside. For example Kubernetes or nested KVM.

- Workspaces start in <5 seconds, while Gitpod can take a minute or longer.

2. Actually we are exploring moving to Cloud Hypervisor or QEMU, so we may support GPUs sooner than later. If you have a specific use case in mind, feel free to contact me - contact info is in my profile. I'd be happy to hear why you need them.

hugodutka··on Show HN: Hocus – self-hosted alternative to GitHub Codespaces using Firecracker
A hosted offering is not on our radar right now. Currently we want to monetize by selling seat-based licenses for larger teams.
hugodutka··on Show HN: Hocus – self-hosted alternative to GitHub Codespaces using Firecracker
That's right! Docker is used to simplify deployment, so other components, like the agent, are also containerized.
hugodutka··on Show HN: Hocus – self-hosted alternative to GitHub Codespaces using Firecracker
We use Firecracker to provider greater isolation and more capabilities in dev envs. For example, one thing you often want in your dev env is to run Docker containers, but to do that you need some permissions that usually only a root user has. If we used Docker to virtualize dev envs then we would have several options to enable that:

- make dev envs privileged containers, effectively giving any random user root control over the machine where Hocus is hosted

- mount the Docker agent from host into the container, but that also allows the user to gain root control over the host machine

- use Linux user namespaces, and give you a root user with limited capabilities inside your dev env. That's actually what Gitpod - another Github Codespaces alternative - does. That root can't do everything though. It can't run Kubernetes, LocalStack, or the Elastic stack, because it can't modify some system limits.

A dev env backed by Firecracker is a full-fledged virtual machine that has none of the aforementioned drawbacks. It has some performance tradeoffs though, but we are working to minimize them as much as possible.

hugodutka··on Show HN: Hocus – self-hosted alternative to GitHub Codespaces using Firecracker
Coder lets you describe a set of Terraform templates for your development environments. Your team members then manually spin up new VMs on e.g. AWS from these templates.

With Hocus you specify your dev env right alongside your code in your Git repository with a hocus.yml file (https://hocus.dev/docs/hocus-yml). Hocus is deployed on a set of servers you manage (only 1 server during alpha). It has a built-in CI system that watches your repository for new commits and continuously builds the environment - we call this process a prebuild. You can specify that your dependencies should be installed and your code should be compiled during a prebuild. You can also describe tasks that should run when you open a dev env - for example automatically starting the app you are working on. Once a prebuild is ready you can spin up a new dev env - which we call a workspace - and connect to it automatically with your IDE. We also have a VSCode extension that automatically opens terminals connected to those tasks from hocus.yml. All this combined allows each team member to connect to a fresh, ready-to-code dev env anytime they want, whether they are reviewing a PR or writing code themselves.

hugodutka··on The best way to launch your startup [video]
My memory failed me when I wrote the comment. The video where I heard them talk about analytics was about founder mistakes, not about analytics. https://youtube.com/watch?v=D56QeyyQMLI
hugodutka··on The best way to launch your startup [video]
Thanks for taking a look. We’ve found that most people who we show the page to have no idea what Gitpod or Github Codespaces is, so we decided to go with outlining the benefits first. But maybe we should put this line in the subheading.
hugodutka··on The best way to launch your startup [video]
Together with a friend we recently started working on https://hocus.dev, a self-hosted alternative to Gitpod and Github Codespaces. It automates the provisioning of cloud development environments on your own infrastructure. YC content has been extremely helpful to us in choosing what to focus on initially (customer outreach), and what outcomes we should expect from our efforts. They also have a video on how to do initial marketing, and what really makes a difference is setting up analytics and paying attention to it. It’s a huge motivation boost to see actual people looking at what you made.
hugodutka··on Ask HN: Which Companies Self-Host?
That's right, and that's precisely why I would like to talk to them. Hocus works with self-hosted Git servers, while Gitpod and Codespaces don't. Well, Gitpod kind of works with self-hosted Gitlab, but not when it's in a VPN I think.
hugodutka··on FBI Child ID App
It’s already been done: https://www.cnbc.com/amp/2021/10/21/sam-altmans-worldcoin-wa...
hugodutka··on Reusable development containers with Docker Compose and Dip
I haven't heard about Dip before, but it's really cool to see. It seems to solve a bunch of my pain points with bare Docker Compose, so I'm eager to try it out.

It does not address my biggest issue though - setting up a Docker development environment is a considerable upfront investment that slows me down. When I start a new project, I want to jump into writing code in a complete Docker environment right away, and not spend hours or days setting up Dockerfiles, docker-composes, remote image builds, etc. Recently I have been trying to solve that with hocus [0], which is a very early stage framework for creating and managing Docker development environments.

[0] https://hocus.dev/

hugodutka··on Using Rust to Scale Elixir for 11M Concurrent Users (2019)
The perfect Hacker News title has finally been crafted.
hugodutka··on Is Rust web yet?
That's an interesting take. My experience has been mainly with small to medium sized applications, and I just have not wanted to expend the resources to maintain a custom test harness.
hugodutka··on Is Rust web yet?
thomaslord and WJW did a great job saying what I would have said. Django already provides you the harness, and when you try to implement it yourself you will run into some gnarly technical problems. How do you make sure one test's database changes are not seen by a different test? Are you going to run tests sequentially and reset the DB before every single one? Or are you going to try to wrap your requests in a transaction that can be rolled back afterwards? Any approach you take, you are reinventing what Django already does.
hugodutka··on Is Rust web yet?
John Carmack once did [0].

[0] https://news.ycombinator.com/item?id=21907517

hugodutka··on Is Rust web yet?
I have been dabbling in Rust web development lately, coming from a Django/Flask background. I take issue with the article stating:

> Can I replace my Rails/Django/Flask already? Yup!

While I agree that you can try to replace Flask with Rust web frameworks, you can't do it for Rails or Django. Rust web frameworks do not let you easily test your application's database access layer nor provide advanced authorization, and lack other features that become necessary when your application becomes bigger.

If you don't need the performance that Rust provides, you should still go for Django or Rails. Otherwise you will end up reinventing them.

hugodutka··on Strapped startup declines acquihire, Apple poaches key engineers; NP, says court [pdf]
Thank you!
hugodutka··on Strapped startup declines acquihire, Apple poaches key engineers; NP, says court [pdf]
What does “NP” stand for in the title? My google search turned up nothing.
hugodutka··on Actionsflow – IFTTT/Zapier free alternative based on GitHub Actions
n8n[0] is self-hosted, has a nice GUI, and its source code is available on GitHub. It is not open-source in the strict sense though.

[0] https://n8n.io/

hugodutka··on At the International Mathematical Olympiad, computers prepare to go for the gold
You have proved it for n = 3, but you haven't for n >= 4, which the problem also requires.
hugodutka··on Launch HN: Slapdash (YC W19) – A uniform, low-latency interface for cloud apps
How do you use Slapdash to control VSCode? I thought that maybe I could create a command that executes a shell script, but it seems a command can only open a url in the browser, right? I can't find any docs for custom commands on your website.
hugodutka··on A researcher on how to live a happy life
At first I thought that parent didn't understand the joke. Now I think I might have not understood the meta-joke.
hugodutka··on Simula: A VR window manager for Linux
A tip for finding out the email of a Github user: choose any of their commits, open it on Github and add ".patch" at the end of the URL, like this [1]. There's a good chance they use a real email to sign their commits.

[1] https://github.com/SimulaVR/Simula/commit/19cf46894cae1962e9...

hugodutka··on What humans would look like if we could survive car wrecks (2016)
- and other essay ideas Paul abandoned.
hugodutka··on Ask HN: How can a intermediate-beginner learn Unix/Linux and programming?
I became much more comfortable with the Unix environment by completing the Bandit game [0]. It teaches you various Unix tools and forces you to learn the command line. There are about 30 parts, each can be completed in a timespan ranging from a couple of minutes to an hour. It is mighty fun and I highly recommend it.

[0] https://overthewire.org/wargames/bandit/

hugodutka··on Inrupt, Tim Berners-Lee's Solid, and Me
What you are suggesting sounds similar to https://blockstack.org/.

For me the problem with this approach is trusting that encryption will keep your data safe indefinitely. I worry that current encryption algorithms will become crackable at some point in time, let’s say in 50 years. I wouldn’t like for my current medical records to become publicly available then.

hugodutka··on IncludeOS: a minimal unikernel operating system for C++ services
I think you may have commented under the wrong post.
hugodutka··on I Quit Google to Work for Myself (2018)
I sometimes wonder whether big corp hire people to lurk in HN comments and make self-employment seem worse than it really is.
← PreviousPage 2 of 2