Live data from Hacker News

Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script

github.com

11–20 of 159 posts

Re: Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script

#12

Earlier quoted context omitted.

This is why Simplenetes is built with Space.sh [1], a tool to build shell script applications. About the tests, can't disagree with you, they will come. [1] https://github.com/space-sh/space

First time I'm hearing of space also. It looks quite impressive, surprised to see no stars

Thanks!

We just moved Space.sh from GitLab to GitHub (hurts in my heart, but yeah community is on GitHub).

Also we are lousy at promoting our stuff, maybe April 1st is not the best day to do this either...

Re: Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script

#13
This is ~17k lines of shell scripting and claims to be "simple". Kuberentes is probably ~1m lines of Go. I'm not entirely convinced that this is less complex (simpler) than Kubernetes.

There are many factors in complexity, but a big one for me is what I have to hold in my head – global state. From any given point, what do I need to understand to know what's actually going on.

For Go, this is actually comparatively little. Between a fairly straightforward language, static binaries, and the focus on ease of distribution, there's not a whole lot outside of a codebase itself to think about.

However for a shell like Bash there's a relatively large amount to consider. You're very exposed to the underlying OS, to libraries and system packages, to various tools, to configurations users may have specified, to things being redefined underneath you. There's a lot of global state to consider for a Bash script.

I suspect it is simpler than Kubernetes, but I don't think it's a clear cut case.

Re: Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script

#14
post #2

> simple > 17k lines of shell script those two phrases don't belong together... to think about this, "17k lines" and "shell script" should not be used together either. Also, you are a bit light on tests.. there only seems to be a single trivial one, which seems way too low for a codebase this size.

[deleted]

Re: Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script

#17
No Persistent Volume support, so not great for stateful applications. Claims that type of thing is "magic", and therefore out of scope.

Quite an engineering feat, though, I am sure! Is this to have fun, to learn, to actually use in production?

Re: Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script

#18
1. Anything that offers effective competition to Kubernetes is a Good Thing. I'm not saying this is because I haven't look at it closely enough but competition brings about improvement.

2. Why do people write "Simplenetes has a 100x less code than Kubernetes" instead of saying it has 1/100th the code?

Re: Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script

#19
post #2

> simple > 17k lines of shell script those two phrases don't belong together... to think about this, "17k lines" and "shell script" should not be used together either. Also, you are a bit light on tests.. there only seems to be a single trivial one, which seems way too low for a codebase this size.

> those two phrases don't belong together

I assumed it was tongue-in-cheek?

Re: Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script

#20
Kubernetes might follow the sad path of spring.

Perfect, complete and too complex.

For big and great applications, spring if the obvious choice. It makes incredible complex and difficult things easy.

But, unfortunately, makes simple and quick applications incredible complex and difficult.

Post reply on HN