Hacker News new | past | comments | ask | show | jobs | submit | lkurusa's comments login

https://gleam.run/ Gleam is super promising.


why would you use Gleam instead of Elixir, is there any benefit to using both of them?


The benefits would be if you prefer gleam:s syntax and static typing. In the end all compile down to the same Erlang byte code that runs on the BEAM so neither has any performance benefits.


ah ok, reading more compiles to JavaScript, generates typescript definitions, can reuse code from all Beam supported languages.

So maybe Gleam as an easier way to integrate JS and Erlang / Elixir?


We've been running a large web application backend written in Elixir for over three years now. It's awesome and we've also rewritten some of our microservices to utilize Distributed Erlang. No need for a service mesh this way. :-)


We deploy Erlang VMs to EC2 and they communicate just fine. Deploying via a Dockerfile and `mix release` has been a breeze.

As a bonus point, no real need for container orchestration as the BEAM just figures it out.


We use Nomad from Hashicorp, it's super simple. Never liked the complexity K8s brings along.


I never liked the cost Hashicorp products bring along.


What, zero? (GP didn't say anything about using Hashicorp-managed products, they're open source and beer-free to use. Another comment says Hashicorp's platform doesn't even offer Nomad (yet?) anyway.)


If you need features offered by the self-managed Enterprise version of a Hashicorp product, I've heard the price tag is something like low six figures per product.


Hashicorp is very inflexible about support plans -- either you go all in on their Enterprise product, or you're self supported. By the time you've licensed Nomad, Consul and Vault -- because they interact and you will find Nomad support ends where Consul support begins, and so on -- it is a LOT of money.


Using terraform without TFE is something I would never recommend to any large org. Been there, done that.


Hmm. Please could you explain further? I'm genuinely curious what costs you associate with Hashicorp products.


It depends on your size. For a fairly minimal close-to-best-practices you'll need for each DC, each on a separate physical host (I may be missing something):

  3 x Consul server
  3 x Nomad server
  2/3 x Vault server
It's long since I operated k8s but IIRC I think you can get similar capabilities and redundancy with 3-5 machines?

That's before you start looking at actual runner nodes, load balancers, proxies, logging and monitoring infra, etc...

Unless you cheat (which I think many do) or you're big enough, that overhead can be meaningful.


(Disclosure: Nomad team lead)

FWIW we recognized this was too much overhead for many users. Nomad 1.3 supports service discovery so you can start without Consul, and 1.4 will support secure variables to get folks farther along without requiring Vault.

So 3 Nomad servers should give you a pretty featureful and highly available cluster these days.


Yeah or, like, spin up three medium servers in different zones and have each server run all three services. We did that for a production setup for years and it worked fantastically. There's no need to have nomad/consul/vault all on different servers unless they are significantly underpowered or the workloads are crazy.

If best practices say otherwise, then maybe they should be reconsidered.


Sure, but at this point there's so much else we get from Consul that, like, what's the point...

I guess the path is set but I'd personally much prefer having a recognized deployment scenario be hosting Consul server and Nomad server on the same physical machines, and accommodating (be it through code or just docs) for making that play well with security, certs, and resource usage without becoming a confounding mess.

Even Vault, if the operator accepts and/or mitigates the sidechannel aspects - from a security perspective that still shouldn't be a step down from anything Nomad-specific?

Seeing as HC already provides solutions for all of these supposed to be serving for Nomad, doesn't it make more sense to make them play together smoother and nice on the same machine rather than reinventing a lesser wheel for each of them?


Entirely true, but I also think that neither k8 nor Nomad are that useful if you're not at a scale where the above is negligeable? It costs roughly 500 usd a month on aws for those 9 servers.


OT: I really do not like Hashicorp. Terraform has a terrible DSL, and terrible documentation. Also, I paid $70 for their VMWare Vagrant plugin ages ago, it was so buggy to be unusable, they were unresponsive on the Github repo, and they completely ignored my request for a refund under their own 30-day guarantee. Not very professional.

I really don't get why people love that company so much.


Congratulations on launching!

How does this compare to Fantastical? It does the same for me, just puts a giant Zoom icon next to its menubar icon and clicking on it lets me join my next meeting.


Thanks!

We're not interested in becoming a full calendar app. We're planning to branch out to other platforms like Slack and Github to become an all-in-one platform for work.


"Thinking, Fast and Slow" is a book I buy for every person for their first birthday after I met them. It is the book that has had the most profound impact on me thus far.


Is there some mind bending revelation in the second half? I read the first half and have not mustered the will to read the rest of it. It just seems so... "obvious" for lack of a better word. Maybe I've had too much psychology lectures or something, but nothing in the first half was remotely new to me.


I read part of it as well, and it came across as one of those books that is basically a fairly simple premise that can be summarized in one paragraph, padded out to fill a book.

I mean "how to win friends" is similar, it can be summarized with just the 12 chapters, and it's padded out with anecdotes putting it in practice.

I'm sure Seven Habits is the same, I have it on my bookshelf (mandatory reading from my previous employer) and I think I started reading it but I lost interest.


I'm with you. I tried to get into that book - but felt it was a lot of verbiage and new phrases to describe things that already had terms. I gave up about a 1/3 the way through.


I host my own VPN and it's great. Algo VPN [0] makes it dead simple, as well.

[0]: https://github.com/trailofbits/algo


Any suggestions for hosting one on a raspberry pi?


https://gitlab.com/NickBusey/HomelabOS can do this easily. Here's a video tutorial for the pi specifically https://www.youtube.com/watch?v=Zy6Xfl5b5z4


systemd uses cgroups, yes.


My experience with Zulip has also been pretty great. We (a startup) found that it keeps the conversation more focused.


Just yesterday I was designing something on my iPad Pro and had to save it to Local Storage (which is another great app, btw) only to use Blink to scp it over. SCP in the end didn't work (in Blink) with key authentication, so I had to resort to https://transfer.sh/

Complex, and this might make it a lot simpler. Thanks!


Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: