TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Erlang/OTP 19.0 has been released

288 pointsby johloalmost 9 years ago

9 comments

rdtscalmost 9 years ago
* Like the gen_statem new state machine.<p>* mnesia_ext : means a whole set of new possibilities to scale Mnesia. I think Klarna started that work and was using it in production. LevelDB was used for the backend.<p>* 3-5x faster open_port means being able to start and execute external executables. Forking was basically moved to fork a special process as opposed to main VM.<p>Tracing should be a lot faster as well. This is the one I mostly exciting. Been using tracing instead of adding log statement but if it is faster, it means can do more in production with it. Saw they have lttng as well. Also worth playing with.<p>* Code loading is now parallelized. So hopefully startup should be faster.<p>* Domain sockets. I know some people wanted this for ages. This should be nice. There were external project which did it, but it is nice to see it in the VM.<p>* os:perf_counter&#x2F;1 function. Probably a read out of rdtsc or such instruction. That should be fun to use.<p>* ++ operator for lists now uses a single pass, so should be faster (before used to use another pass to check if list is proper).<p>* Observer now has configurable update frequency and length for graph windows. I&#x27;ll be using that. I like observer.<p>Very impressive. Not a lot of 30 some year old languages make such kind of updates (yes Erlang is 30 years old this year, that is probably older than most HNers here).
评论 #11955473 未加载
评论 #11956050 未加载
smegelalmost 9 years ago
Erlang is written in a ton of quite readable C and assembly. If you like delving into the internals of advanced software, it&#x27;s well worth a read. Take the HiPe compiler for example:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;erlang&#x2F;otp&#x2F;tree&#x2F;OTP-19.0&#x2F;erts&#x2F;emulator&#x2F;hipe" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;erlang&#x2F;otp&#x2F;tree&#x2F;OTP-19.0&#x2F;erts&#x2F;emulator&#x2F;hi...</a><p>It deals with running native and interpreted program code together, just reading the comments gives you a feel for the kind of low level concepts that go into making such an interpreter. I like this one:<p><pre><code> &#x2F;* * Native code calls an emulated-mode closure via a stub defined below. * * The closure is appended as the last actual parameter, and parameters * beyond the first few passed in registers are pushed onto the stack in * left-to-right order. * Hence, the location of the closure parameter only depends on the number * of parameters in registers, not the total number of parameters. *&#x2F;</code></pre>
评论 #11954067 未加载
im_down_w_otpalmost 9 years ago
<p><pre><code> gen_statem a new state machine behavior </code></pre> Very cool! For reasons not the least of which are the community involvement in its evolution.<p><pre><code> dialyzer: the support for maps is very much extended both the type specification syntax and the type analysis. </code></pre> OMG! Yes! Finally `maps` don&#x27;t have to be a giant escape hatch in the type-checking system.<p><pre><code> Experimental support for Unix Domain Sockets </code></pre> Sweet tap-dancing Moses! This is awesome. I&#x27;ve wanted this for, so so so long. This should pave the way to all kinds of useful things. Better database clients, better Redis clients, more straightforward integration with things like libfiu and tcsd.
评论 #11953173 未加载
评论 #11953168 未加载
willykalmost 9 years ago
For anyone who&#x27;s interested, we have some relevant community-run, regional conferences coming up in NYC next month:<p>- Erlang Camp (Sat Jul 16), <a href="http:&#x2F;&#x2F;erlang.camp&#x2F;" rel="nofollow">http:&#x2F;&#x2F;erlang.camp&#x2F;</a><p>- Elixir Camp (Jul 15-17), <a href="http:&#x2F;&#x2F;elixircamp.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;elixircamp.io&#x2F;</a><p>- Phoenix Camp (Jul 15-17), <a href="http:&#x2F;&#x2F;nyc.phoenix.camp" rel="nofollow">http:&#x2F;&#x2F;nyc.phoenix.camp</a><p>- Nerves Camp (Sun Jul 17), <a href="http:&#x2F;&#x2F;nerves.camp&#x2F;" rel="nofollow">http:&#x2F;&#x2F;nerves.camp&#x2F;</a><p>We&#x27;ve got a good mix of speakers coming together and the conference open to all (with suggested donation pricing for tickets).<p>We also still have a few session slots open if anyone wants to present (particularly around Erlang&#x2F;OTP).
X4llduxalmost 9 years ago
Exciting two days in Elixir world! Elixir 1.3, Ecto 2.0, Erlang&#x2F;OTP 19 - amazing!
评论 #11953387 未加载
评论 #11954394 未加载
brightballalmost 9 years ago
Everything around the Erlang\Elixir ecosystem just seems to be in a dramatic climb these days.
评论 #11955912 未加载
tbrooksalmost 9 years ago
And others think building on top of BEAM is risky...<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11946824" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11946824</a>
评论 #11955005 未加载
anfroid555almost 9 years ago
erlang:open_port(spawn, ...) 3-5 times faster<p>mnesia_ext: plugin of external storage solutions to mnesia
评论 #11952996 未加载
andy_pppalmost 9 years ago
Amazing! Now how do I use Elixir 1.3 with the new Erlang VM?
评论 #11952849 未加载
评论 #11956389 未加载