Hacker News new | past | comments | ask | show | jobs | submit login

1. Uberjar doesn't always work. It may cause resource collision (and even shading doesn't always work as some libraries are resistant to shading). It also doesn't support native libraries. Capsule always works and is just as easy to build as an uberjar with the lein plugin.

2. Even with an uberjar you need a platform specific startup script (to pick a JVM version, set JVM flags, set up a boot classpath if you need it or agents if you need them). With Capsule, all of that is stored as metadata in the manifest, and the capsule sets up everything on its own.

3. Capsule provides other features, such as launching itself inside a container (and it's better than Docker because the container is unprivileged, and doesn't require an image), packaging as a native application (with icons etc.), launching itself as a daemon/service and more.




I might partially agree, though point 2 went away for us with Docker.


See my other comment about Capsule Shield: https://github.com/puniverse/capsule-shield


You're from Parallel Universe? I've played with the idea of a programming language, looking for an async layer that supports Scala style Future[T]s. Possible with Quasar?


Not entirely sure what you mean by "the idea of a programming language". Scala-like futures are already in the JDK as CompletableFuture. Quasar is something different (and, I believe, better): it provides true fibers (aka lightweight threads), just like Erlang or Go.


I've meant playing with the idea for a programming language.

With Future I've meant would it be easy to put a Future based API which I like b/c of composiblity on top of Quasar, e.g. on top of fibers.

(Futures are just an API to concurrency not concurrency itself that can sit on actors, forkjoin, ...)


Then sure. But check out this talk/blog post, which explains why such monadic futures are not a good way to compose asynchronous code: http://blog.paralleluniverse.co/2015/08/07/scoped-continuati...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: