Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kungfooguru
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
kungfooguru
3y ago
Or Erlang for even less noise ;) -module(math). sum(A, B) -> A + B.
2.
▲
by
kungfooguru
4y ago
Exact conversation I had with support after they suspended me after I sold something for the first time, but before I mailed the item. Its like they just randomly permanently suspend people.
3.
▲
by
kungfooguru
4y ago
Agreed, sounds like Orleans. See https://github.com/erleans/erleans :) Also for general writing on erlang and k8s: https://adoptingerlang.org/docs/production/ -- I try to explain why the two
4.
▲
by
kungfooguru
4y ago
Other replies are a bit outdated. It got a lot easier in OTP-23 to go without EPMD, https://blog.erlware.org/epmdlessless/ -- if you run with the same port. If not using the same port across nodes then you may want to
5.
▲
Erlang: Further Adventures in the JIT
(blog.erlang.org)
5 points
by
kungfooguru
6y ago
|
0 comments
6.
▲
by
kungfooguru
6y ago
Try both. It may be because I've been doing Erlang so long but I still prefer it and its tools (like rebar3 and Common Test). I find the syntax more consistent, less verbose and the lack of Elixir style macros to mean less confusing t
7.
▲
by
kungfooguru
6y ago
Not a big deal but, it was actually a bug in relx that caused it to be included (accidentally copying the erts dir from the symlink/copy in the _build/<profile>/rel/<relname>/ dir instead of from the unp
8.
▲
by
kungfooguru
6y ago
4. The compiler should not be included and neither should the headers. Unless a user explicitly wants to include the compiler and also have a C compiler on the node in order to compile stuff on the target node there is no reason to have the
9.
▲
by
kungfooguru
6y ago
> Why are there 55 c-header files in the directory of the erts? That shouldn't be the case anymore. It was a bug in rebar3 at one point and I think `mix release` may have copied said bug. If 1.11 doesn't properly not include th
10.
▲
by
kungfooguru
6y ago
makeself ( https://makeself.io/ ) is a generic way to do this for Linux that works for any Erlang/Elixir release -- meaning no use of mix or rebar3: https://gist.github.com/tsloughter/d62aad6d67b263e
11.
▲
by
kungfooguru
6y ago
Not really worth it since distributed mnesia is basically CA (in terms of CAP) which shouldn't be a thing, but is in the case of mnesia :)
12.
▲
by
kungfooguru
6y ago
Curious why they suggest a reverse proxy. It may be a holdover from a time before Erlang SSL got so many improvements? Heroku moved SSL termination to Erlang from ELB's and saw great improvements, plus they released a useful lib https
13.
▲
by
kungfooguru
7y ago
If you get to choose your infrastructure that may be fine. If you don't and you work in even a medium size company you likely work with what they have, which is increasingly kubernetes. That said, they still do not do similar things. O
14.
▲
by
kungfooguru
7y ago
There are some performance related topics covered in the Docker chapter regarding schedulers. And there are improvements already merged for Erlang 23 to remove the need for as much manual tweaking -- for example in 23 the VM will only start
15.
▲
by
kungfooguru
7y ago
It is not going against the grain. Using release upgrades (upgrading a release without restarting the VM -- unless the version of erts has changed) should only be used where necessary and they rarely are. They are great to have when you nee
16.
▲
by
kungfooguru
7y ago
Hi, one of the authors here, the Docker chapter and soon to come Kubernetes chapter hopefully shed some light on this very question. They are not alternatives, docker and k8s complement Erlang. Jose Valim, creator of Elixir, also wrote abou
17.
▲
by
kungfooguru
7y ago
For 'heart' here I'm referring to the heart program that'll start if you run erl with `-heart` http://erlang.org/doc/man/heart.html -- it will restart a down node. I think part of the confusion
18.
▲
by
kungfooguru
7y ago
Sure, you can write it yourself, and probably it is even easier to write in Erlang -- up to a limit due to the issues with distributed Erlang discussed above. I worry about, and have seen this both in the first hype phase of Erlang a number
19.
▲
by
kungfooguru
7y ago
> How much have you used BEAM? Over a decade professionally. The closest thing Erlang has to it is pool http://erlang.org/doc/man/pool.html
20.
▲
by
kungfooguru
7y ago
Right, they do, that is why containers are still useful to releases for deployment.
21.
▲
by
kungfooguru
7y ago
Deployment doesn't overlap. Erlang releases bundle up your code but you still need libraries like openssl, to have a nice bundle that can actually just run anywhere Docker is the way to go. And horizontal scaling between the two do not
22.
▲
by
kungfooguru
7y ago
Yes, check out http://partisan.cloud/ . Erlang distribution was not designed for the cloud.
23.
▲
by
kungfooguru
7y ago
They really do not overlap at all. I don't understand why the comparison with docker and Kubernetes continues. Running BEAM on docker in kubernetes is great, a lot is added and operations smoothed by doing so.
24.
▲
by
kungfooguru
7y ago
The How I Start guide was just updated for 1.9 http://howistart.org/posts/elixir/1/index.html
25.
▲
by
kungfooguru
7y ago
It needs to be a matching libc. So a release that includes the Erlang runtime and is built on Debian (glibc) won't run on Alpine (musl).
26.
▲
by
kungfooguru
7y ago
If you do, please use https://hex.pm/packages/eql ( https://github.com/artemeff/eql ) for the file parser :)
27.
▲
by
kungfooguru
8y ago
Yup, it (whatever pieces are now under this new clause, it isn't clear, may just be some modules) is no longer free software.
28.
▲
by
kungfooguru
8y ago
"With everything running in a monolith, if a bug is introduced in one destination that causes the service to crash, the service will crash for all destinations." The real reason people should investigate Erlang/Elixir.
29.
▲
by
kungfooguru
8y ago
You should ship a single tarball (target system built from a release) that unpacks with everything you need, including the Erlang runtime, and run it. There is no need to install Erlang on the host and better to not use escripts unless it i
30.
▲
by
kungfooguru
8y ago
Agreed. But it has been very frustrating that they haven't allowed boards to be public. Maybe someone knows a service that lets you mark posts from your feed to be shared as a public collection?
More ›