Ten Years of Erlang
https://ferd.ca/ten-years-of-erlang.html [ferd.ca]
2019-07-08 15:58
tags:
concurrency
development
erlang
web
I wanted to take a bit of time to reflect over most of that decade. In this post, I’ll cover a few things such as hype phases and how this related to Erlang, the ladder of ideas within the language and how that can impact adoption, what changed in my ten years here, and I’ll finish up with what I think Erlang still has to bring to the programming community at large.
source: HN
Goodbye Joe
https://ferd.ca/goodbye-joe.html [ferd.ca]
2019-04-21 14:38
tags:
erlang
hoipolloi
This started my whole story with Erlang, which still goes on today. Joe’s book was approachable, the same way he was. He could explain like no other what the principles of Erlang are, what led to its design, and the core approach to fault tolerance that it embodies. It’s one of the few language-specific books that is not content with getting you to write code, but lets you understand why you should write it that way. The language didn’t just have features because they were cool, it had features because they were needed for fault tolerance. What Joe told you applied anywhere else.
source: HN
Phoenix LiveView: Interactive, Real-Time Apps. No Need to Write JavaScript.
https://dockyard.com/blog/2018/12/12/phoenix-liveview-interactive-real-time-apps-no-need-to-write-javascript [dockyard.com]
2019-03-17 16:10
tags:
beta
erlang
library
programming
web
Live views share functionality with the regular server-side HTML views you are used to writing – you write some template code, and your render function generates HTML for the client. That said, live views go further by enabling stateful views which support bidrectional communication between the client and server. Live views react to events from the client, as well as events happening on the server, and push their rendered updates back to the browser. In effect, we share similar interaction and rendering models with many client-side libraries that exist today, such as React and Ember.
Now in beta.
https://github.com/phoenixframework/phoenix_live_view
source: L
Achieving 100k connections per second with Elixir
https://stressgrid.com/blog/100k_cps_with_elixir/ [stressgrid.com]
2019-03-06 04:00
tags:
benchmark
erlang
networking
perf
programming
By analyzing the initial test results, proposing a theory, and confirming it by measuring against modified software, we were able to find two bottlenecks on the way to getting to 100k connections per second with Elixir and Ranch. The combination of multiple connection supervisors in Ranch and multiple listener sockets in the Linux kernel is necessary to achieve full utilization of the 36-core machine under the target workload.
source: L
The Curious Case of BEAM CPU Usage
https://stressgrid.com/blog/beam_cpu_usage/ [stressgrid.com]
2019-02-13 20:22
tags:
benchmark
concurrency
erlang
perf
Turns out, busy waiting in BEAM is an optimization that ensures maximum responsiveness. In essence, when waiting for a certain event, the virtual machine first enters a CPU-intensive tight loop, where it continuously checks to see if the event in question has occurred.
In our test, we found that BEAM’s busy wait settings do have a significant impact on CPU usage. The highest impact was observed on the instance with the most available CPU capacity. At the same time, we did not observe any meaningful difference in performance between VMs with busy waiting enabled and disabled.
source: L
What efficient pattern matching looks like at the bytecode level
https://dockyard.com/blog/2018/02/27/what-efficient-pattern-matching-looks-like-at-the-bytecode-level [dockyard.com]
2018-04-22 16:15
tags:
compiler
erlang
perf
programming
My theory is that this is how BEAM makes pattern matching efficient in general: it finds prefixes that can be matched against with select_val. As a corollary if you don’t see a select_val in your bytecode, then you’re not getting the most-efficient pattern matching branching as the pattern checks have to be implemented as separate bytecode instructions, and it might make sense to rearrange clauses that don’t affect semantics to see if a select_val pops out in generated bytecode.
source: L
FEZ - an fsharp to core erlang experiment
https://github.com/kjnilsson/fez [github.com]
2017-10-26 16:09
tags:
beta
compiler
erlang
fsharp
programming
Fez is an early doors experiment in compiling fsharp to BEAM compatible core erlang. The primary aim is to implement enough of the language to evaluate what how well an ML type of language could become a practical language for writing code to be run on the beam.
source: L
Choosing Elixir for the Code, not the Performance
https://pragtob.wordpress.com/2017/07/26/choosing-elixir-for-the-code-not-the-performance/ [pragtob.wordpress.com]
2017-07-26 23:29
tags:
concurrency
development
erlang
perf
programming
web
I might summarize this as performance is about more than for loops per second.
source: L
Elixir v1.5 released
https://elixir-lang.org/blog/2017/07/25/elixir-v1-5-0-released/ [elixir-lang.org]
2017-07-25 17:04
tags:
erlang
release
web
Elixir v1.5 brings many improvements to the developer experience and quality of life. As we will see, many of those are powered by the latest Erlang/OTP 20.
source: L
How Discord Scaled Elixir
https://blog.discordapp.com/scaling-elixir-f9b8e1e7c29b [blog.discordapp.com]
2017-07-12 03:31
tags:
erlang
perf
programming
web
A microsecond here, a microsecond there, it all adds up.
source: L
Elixir's Secret Weapon
https://blog.drewolson.org/elixirs-secret-weapon/ [blog.drewolson.org]
2017-05-12 17:48
tags:
erlang
intro-programming
I’m talking about the special form with.
source: L
Build Your Own Code Poster With Elixir
http://www.east5th.co/blog/2017/02/13/build-your-own-code-poster-with-elixir/ [www.east5th.co]
2017-02-13 21:38
tags:
development
erlang
graphics
programming
Was Elixir the tool for this project? Probably not. Was it still a fun project and a good learning experience? Absolutely.
source: HN
From Micro-Services to Monoliths
https://iwantmyname.com/blog/from-micro-services-to-monoliths [iwantmyname.com]
2016-12-23 22:32
tags:
admin
development
erlang
freebsd
networking
virtualization
Some of the details here are environment specific, but they made a useful observation. The loose coupling of components lets problematic pieces be swapped out, and they’ve stepped off the upgrade treadmill being driven by outside interests.
Reducing the maximum latency of a bound buffer
http://theerlangelist.com/article/reducing_maximum_latency [theerlangelist.com]
2016-12-20 04:07
tags:
erlang
garbage-collection
perf
programming
Reading the Pusher articles made me wonder how well would the Elixir implementation perform. After all, the underlying Erlang VM (BEAM) has been built with low and predictable latency in mind, so coupled with other properties such as fault-tolerance, massive concurrency, scalability, support for distributed systems, it seems like a compelling choice for the job.
Stuff Goes Bad: Erlang in Anger
https://s3.amazonaws.com/erlang-in-anger/text.v1.1.0.pdf [s3.amazonaws.com]
2016-12-14 20:05
tags:
book
development
erlang
investigation
pdf
programming
Because the system doesn’t collapse the first time something bad touches it, Erlang/OTP also allows you to be a doctor. You can go in the system, pry it open right there in production, carefully observe everything inside as it runs, and even try to fix it interactively.
This book is not for beginners.
How Discord handles push request bursts of over a million per minute with Elixir’s GenStage
https://discord.engineering/how-discord-handles-push-request-bursts-of-over-a-million-per-minute-with-elixirs-genstage-8f899f0221b4 [discord.engineering]
2016-12-13 02:24
tags:
erlang
library
networking
perf
Buffering, dropping, and back pressure, all in good measure.
How Supervisors Work
https://jbodah.github.io/blog/2016/11/18/supervisors-work/ [jbodah.github.io]
2016-11-28 20:59
tags:
erlang
In Erlang (and Elixir) supervisors are processes which manage child processes and restart them when they crash.
Handling Overload
http://ferd.ca/handling-overload.html [ferd.ca]
2016-11-25 01:15
tags:
erlang
networking
perf
programming
Elixir and IO Lists in Phoenix
https://www.bignerdranch.com/blog/elixir-and-io-lists-part-2-io-lists-in-phoenix/ [www.bignerdranch.com]
2016-11-03 07:30
tags:
erlang
functional
programming
web
Great observation about web templates having lots of static parts. Concatenating static strings with dynamic strings creates lots more dynamic strings which need to collected or freed, but making a list of strings preempts all that work.