marick, to swift
@marick@mstdn.social avatar

I don't yet know how to efficiently answer questions about the Swift language, so forgive if the answer is obvious.

Erlang/Elixir have a fault-intolerance library built on top of their version of actors. https://en.wikipedia.org/wiki/Open_Telecom_Platform It involves "supervision trees”, where supervisors control the lifespans of actors they supervise, react to unexpected failures, etc.

Is there an equivalent library for Swift?

lawik, to programming
@lawik@fosstodon.org avatar

It is incredibly tempting to interpret and implement ActivityPubs concept of an Actor as an Elixir GenServer/actor. Mailboxes and message passing.

If I was building it out as an in-memory system this could be fun but for typical needs it is conflating runtime characteristics with the outward protocol.

Lining those up would make the system simple to reason about in particular ways. I might do the experiment.

frescosecco, to Lisp
@frescosecco@mastodon.social avatar

I'm trying to connect to the ELP Erlang language server from Lem.

I'm actually not sure whether it works or not :)
From the ELP side, I'm getting this:


[ERROR elp::server] failed to fetch the server settings: ResponseError { code: -32601, message: "Method not found", data: None }

frescosecco, to programming
@frescosecco@mastodon.social avatar

We need to post more Erlang content here. Hashtag , come on, folks :)

sergio_101, to random
@sergio_101@mastodon.social avatar

I still wish every day that I could live full time in the land of

tetrislife,

@sergio_101 don't know how you'd save an image of that life! , maybe, then?

frescosecco, to programming
@frescosecco@mastodon.social avatar

The new site looks great! With a cornucopia of learning and reference material.
https://lfe.io/

galdor, to programming
@galdor@emacs.ch avatar

TIL that in , _ can be used in type specifications and has the same meaning as term() or any(). I love this kind of discovery because it makes total sense and is consistent with pattern matching. Erlang is one of these rare sane languages.

nixCraft, to random
@nixCraft@mastodon.social avatar

I wish there were a framework where I could leave it for ten years and it still runs. I’m not sure if it’s possible.

mbpaz,
@mbpaz@mas.to avatar

@nixCraft I got a call yesterday asking for help on a system I had deployed on a TV operator 11 years ago. It was a hardware glitch. Unfortunately they rebooted the operating system: 3588 days of uptime. The software in question had been restarted in 2015.

Mostly and some C.

lpil, to random
@lpil@hachyderm.io avatar

I've been away from Neovim for a few years and wow, it has come a heck of a long way. And LazyVim seems great too.

Might be time to switch back

lpil,
@lpil@hachyderm.io avatar

A silly little thing, but this initial screen makes me smile.
One for the crew

lpil, to programming
@lpil@hachyderm.io avatar
linos, to elixir
@linos@graz.social avatar

Any developers here?

I need help to disable https-signature -verification within a local test environment for . Or make Mobilizon accept my self-signed ones.

Spend a whole day trying to understand how things work, without succeeding at this point.

englishm, to InitialD

Time for a new !

Hi all, I'm Mike!

I'm a software developer working in the streaming space. Specifically, I've been working on Media over QUIC (MoQ), , and other "ultra low latency" technologies. I write , , and at work these days.

I'm still living the and now work for a distributed London-based company from the woods of .

In my free time I enjoy and playing games with my family, and playing with radio waves.

ovid, to programming
@ovid@fosstodon.org avatar

If wasn't dying out, I'd want to learn more and seek work. The world's largest telephony over ATM network ran on Erlang and had 9 nines (!) of availability. That's 31 milliseconds of downtime per year.

Part of why it was so reliable is that it's a language which basically makes you write for all functionality, but with much of the infrastructure support built in. What an amazing technology.

, and are written in Erlang.

https://en.wikipedia.org/wiki/Erlang_(programming_language)

frescosecco, to programming
@frescosecco@mastodon.social avatar

Hacked some initial mode for the editor yesterday evening.
I have an Erlang shell but did not manage to connect to LSP/ELP, it hangs while initializing. Language server support is also still somewhat minimal in Lem.

frescosecco,
@frescosecco@mastodon.social avatar

Had an idea on lunch break & got it talking to ELP/LSP.
A lot of LSP methods are not yet implemented in Lem, namely code lenses: https://github.com/lem-project/lem/issues/602

tetrislife,

@frescosecco tangential, but wasn't there a project long ago to make an Emacs clone in Erlang? SWI-Prolog has a barebones Emacs clone! An Erlang Emacs makes a lot of sense when considering that Emacs became more usable after it got async support. If parantheses matter, there are multiple Lisps on the BEAM.

rbino, to programming
@rbino@patavium.social avatar

Only 10 days left to submit your talk for the , , and friends Devroom at @fosdem 2024!

https://beam-fosdem.dev/call-for-talks/

@elixir

bettio, to programming
@bettio@fosstodon.org avatar

Last days for submitting your , or talk for '24. It will be a good opportunity for talking about how BEAM is cool to a wider audience. https://beam-fosdem.dev/

frescosecco, to programming
@frescosecco@mastodon.social avatar

Previous Re-post on mailbox typing: Really interesting. Akka actors, as an example, can have typed mailboxes and even custom mailboxes.
But I'm not sure that's relevant here; the research goal is to explore mailbox typing as an approach to find concurrency errors. Somewhere in the middle between Dialyzer (no concurrency) and Concuerror (concurrency errors only).

Paper: https://simonjf.com/writing/pat.pdf

BoydStephenSmithJr, to programming
@BoydStephenSmithJr@hachyderm.io avatar

mailbox types would be so dreamy: https://www.youtube.com/watch?v=PRrjc8v7zHA

would also benefit, yeah?

djrmarques, to elixir
@djrmarques@emacs.ch avatar

What is the use case for
/ I have been reading more into functional programming languages, and one that pops up a lot is Elixir.

As far as I understand, the great thing about these is that they run on the Erlang BEAM VM, which seems to be very suitable to distributed computations right? Does this mean that the BEAM VM could run on multiple machines? If I understand correctly, Elixir/Erlang would not be that great if I just want to write simple CLI tools, but would excel if I was writing for example a Data streaming platform or the backend for some app right?

oubiwann, to Lisp

Just added content to the "Chinenual" for the "About" section in Part I: https://cnbbooks.github.io/lfe-manual/part1/intro/about.html

Highlights include:

  • What is LFE?
  • (an extremely) Brief History of
  • Ditto for
  • What is LFE?

Code samples include not only LFE and Erlang, but also an M-expression, a Lisp 1.5 example, and a pre-Erlang example :-)

Content is from an LFE book I was working on in 2015 that I eventually had to abandon. So happy it will be available now 😄

marick, to swift
@marick@mstdn.social avatar

How lightweight are actors compared to processes? For Erlang/Elixir, a few hundred thousand simultaneous processes is just another day at the office. My memory is that, say, Clojure actors are rather more expensive.

frescosecco, to programming
@frescosecco@mastodon.social avatar

An implementation of the Open Charge Point Protocol:
https://github.com/wfvining/ocpp

macleod, to haskell

Various thoughts on too many programming languages, for no discernible reason.

I have been interested in Go since it's very initial release, but their dependence on Google is uncharming to say the least. I still haven't made up my mind on its GC, but its definitely better than most.

I used to do some ML work in .NET and if it wasn't dependent on Microsoft it would be a heavy contender for a great language, but it has far too many Microsoft-isms to ever really go much farther.

Rust is great, I enjoy beating my head against a brick wall battling with the compiler, and their safety is great, but overly complicated and feature-creep is a real problem on that entire project. I do a lot of work these days in Rust, for better (mostly) or worse (mostly-ish).

C is my bread-and-butter, as is Javascript for quick prototyping.

Elixir is great, but Erlang is unwieldy, the community is growing, but not fast enough - and I just can't get my mind to enjoy the syntax no matter how nice it is.

D is a lot of fun, but their GC can be slow at times, and the community is very small and packages are often broken and unmaintained.

Python was my first true love, but I really can't stand the whitespace, again love the language, hate the syntax.

Zig is fun, but just that. Fast, nimble, but early days, a bit confusing, could replace my insistence on C for core projects, but again, early days. I love to use them as a compiler for C, much faster than the defaults on any of the others.

Odin is one I love to keep an eye on, I wish I could get behind using it for more things. When I first took notice ~4 years ago the documentation was a bit scattered, but it looks much better now. The developer behind it is incredibly cool, could be seen as the next Dennis Ritchie imo. Runes are dope. The syntax is by far my favourite.

Julia, I love Julia, but performance last I tested was a bit of a miss, and by miss, it required a decent chunk of compute for basics, but when you gave it the system to throttle, it would be insanely productive to write in. Javascript is something that I prototype even syscalls in, but Julia is just the same but much better and more productive (and less strange) in many regards. I am really hoping this takes over in the ML/Data world and just eats Python alive. I've heard there has been major work in the perf department, but I haven't had reason to try it out lately.

Ada, memory safety before Rust! Great language, especially for critical applications, decades of baggage (or wisdom), slow moving language, insanely stable, compilers are all mostly proprietary, job market is small, but well paid, great for robotics, defense, and space industry types, but the syntax is... rough. Someone should make a meta-language on top of Ada like Zig/Nim/Odin do for C, or Elixir does for Erlang.

The others: Carbon, haven't tried; Nim, prefer when they were "Nimrod" (cue Green Day), decent but not my style; Crystal, seems cool, but not for me; Scala, great FP language, but JVM; Haskell, I'm not a mathematician, but my mathematician friends love it. I see why, but not my thing as much as I love functional languages. I'll try it again, eventually. I did not learn Haskell a great good.

I tend to jump from language to language, trying everything out, it's fun and a total timesuck.

[ # ] :: #c #d

leobm,
@leobm@norden.social avatar

@marcuse1w @macleod If you like , is an option. With there is also a stable erlang backend. Or I find very exciting in the erlang world (erlang and Javascript backend). Otherwise you might also like (native and wasm backend) if you are generally into ML languages. I also think is an extremely nice language. I've never understood what many people have against the syntax. I find it extremely simple and beautiful. Well, I also like 😉

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • thenastyranch
  • Durango
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • osvaldo12
  • GTA5RPClips
  • kavyap
  • megavids
  • InstantRegret
  • everett
  • tacticalgear
  • vwfavf
  • tester
  • normalnudes
  • modclub
  • ethstaker
  • khanakhh
  • cisconetworking
  • anitta
  • Leos
  • JUstTest
  • All magazines