HNHacker News
TopNewBestAskShowJobs

lawik

3,352 karma · joined December 6, 2016

https://underjord.io, lars@underjord.io https://twitter.com/lawik @lawik@fosstodon.org

Podcasting on beamrad.io and regprog.com

submissionscomments
lawik··on My Road to Erlang (2008)
"relentlessly productive" really resonates with my view of Erlang/OTP. I do Elixir which sits on top of it but that remains.

I think Erlang is an uncommon language in that it seems to be foundationally constructed to build things. The FP isn't a philosophical experiment or a research project so much as a necessity to wrangle state reliably in distributed actors.

It is a language and probably most importantly a runtime/VM that was born out of industry and it has some very powerful properties.

I keep returning to this on beamrad.io, I'm impressed by the pragmatism in Erlang. And I think the also very pragmatic but much more marketing-savy and dev experience-focused Ruby culture feeding into Elixir is a pretty sweet mix.

lawik··on Modern Javascript: Everything you missed over the last 10 years (2020)
If someone says they get overwhelmed by something, chances are decent there is something overwhelming about it.

Web is a large domain of knowledge. It isn't particularly hard in terms of math, algorithms or mysterious unknown proprietary APIs. But there is a lot to figure out. What parts are important, what parts can I skip.

If by basics you mean HTML, CSS and JS. Sure. Good start. But you could also start with a framework and learn from the middle and out or the top down.

Not everything has to be learned bottom up.

Either way. It is not trivial.

lawik··on Erlang/OTP 24 highlights
Hadn't heard of ActorDB. Interesting. But is it alive? Seems inactive.
lawik··on Erlang/OTP 24 highlights
Arguably, yes :)
lawik··on Erlang/OTP 24 highlights
I've had interesting exchanges with a guy who does work on CouchDB. That is built with Erlang and should scale quite well in what sounds like a resilient way. Haven't dug in.

Horizontal scaling of the DB seems like a problem in many architectures. For SQL I'd be looking at CockroachDB as it is Postgres-compatible and is built with scaling out in mind. Haven't tried it though. Most of my work hasn't needed that for the DB recently.

lawik··on Erlang/OTP 24 highlights
Really? I'm surprised that is your test bottleneck. I've mostly seen it be actually slow tests and things that can't be asynced.
lawik··on Erlang/OTP 24 highlights
From my recollection (interviewed OTP team on this stuff once) they don't really intend to go there either. They are a very small team comparatively and maintaining that kind of runtime optimization would likely be unwieldy. (https://devchat.tv/elixir-mix/emx-114-just-in-time-for-otp-2...)

It won't be anything like V8, entirely correct, but it brings some VM code to native performance, beating NIFs in some cases.

I think some RabbitMQ tests reported 30% increase in throughput which is pretty wild.

lawik··on Erlang/OTP 24 highlights
Answering from similar experience. I personally use them both, dialyzer as part of the Elixir Language Server and typespecs when I feel something needs more clarity and definition.

Depending on what itches your types scratch for you it might be enough, might not. I've never wanted more type system in my Elixir personally.

lawik··on Ubuntu 21.04
There will be no new builds. There is no hardware :)
lawik··on Livebook: A collaborative and interactive code notebook for Elixir
OT. Using quill js on the frontend and a subset of that delta format handled on the backend. From conversation with Jose on Twitter.
lawik··on Livebook: A collaborative and interactive code notebook for Elixir
It is a data point, not definitive.

The language could be shrinking in comparison to everything an still be growing. I don't think that's the case but it wouldn't change anything for me. I don't work with a proportion of client according to trends. I work with particular companies and I'm at capacity doing Elixir as are many I know.

I believe it has a stronger trend then you believe it does. But neither of us have strong data.

lawik··on Livebook: A collaborative and interactive code notebook for Elixir
It recently hit top 50 on one of the big lists of programming languages and I see more people getting into it every day. It is growing unless there's s lsrge drain hole somewhere. Might not be growing relative to other larger langs but I'm fairly certain it is growing.

And I've heard a lot of concern about it being niche so I tend to mention that it is growing. Because in my experience the biche is quite large and .. growing. I find plenty of work.

lawik··on Livebook: A collaborative and interactive code notebook for Elixir
With google docs style collaborative editing, can connect to an existing cluster to run code in it. You can run one instance of the Livebook application and have different livebook docs run for different Elixir projects you happen to be working on.

Not sure what parts are in Jupyter but I've heard collab editing isn't.

Pretty hype about trying this for some living docs and teaching. Will see if I can do anything neat with it. Already tried it some.

lawik··on Livebook: A collaborative and interactive code notebook for Elixir
It is growing and having good adoption. Not a huge language but it also has a fair share of novel features (being built on Erlang) that aren't commonly seen with other langs. So I think it might have a disproportionate visibility compared to size. Lots of work happening in the community, lots of ambitious ideas and releases.
lawik··on M1 dev setup with a virtual Linux box
"but the upside is that there is no noticeable IO latency issues like when running Docker for Mac"

Docker on Mac can be dog slow. This is appealing to me.

lawik··on SQLAlchemy 1.4
I dare say that Ecto does a lot of things quite differently. From my work with SQLAlchemy I never saw anything similar to changesets.

I love working with Elixir but I would probably say that I found building queries in SQLAlchemy a bit more straight-forward than in Ecto. While I'd rather do basically everything else in Ecto.

I think most of the similarities is because they are both providing abstraction on top SQL, which tends to lead to a similar enough API surface. I don't know what primarily influenced Ecto. But I think it was quite intentionally not Django ORM or ActiveRecord. Working with Ecto and SQLAlchemy at different times I don't find them very similar beyond all the SQL terminology and API surface they share. So yeah, maybe superficial, and yes an older pattern, SQL ;)

SQLAlchemy + Alembic cover a very large feature set for ORM, query building, migrations and all of that stuff in a way I think works pretty darn well. It simplifies building SQL queries piece by piece but gets very complex for certain queries.

lawik··on Ultima VIII – How to destroy a gaming franchise in one easy step
The only Ultima game I was exposed to. I found it cool and exciting. Very frustrating, certainly. But I'd not played anything quite like it. I never back-tracked through the series.
lawik··on 10 years-ish of Elixir
I've been involved in interviewing for Elixir positions and found that we got more senior candidates than I've ever seen before. Part of it might have been pandemic displacement. But I'm not seeing a lack of work in my freelancing and I'm not seeing any particular skill shortage.

.Net and Xamarin integration. No clue. Samr as for any other non-.Net language I imagine.

lawik··on Ten years without Elixir
I thought this was an interesting perspective. I'm a big enthusiast about Elixir and I'm always curious to see how the die-hard Erlang people feel about it.

Elixir makes me want to know more Erlang but I don't think I'll ever move to Erlang for my day-to-day use.

Appreciate this author making a post commemorating Elixir with a fairly nuanced sentiment.

lawik··on Ten years without Elixir
Beyond the very subjective syntax, docs and whatnot I would say adoption. At this point there are a lot of Elixir libraries and frameworks that are built with Elixir and are quite popular that might not work from Erlang. Elixir is a steadily growing language with a strong enthusiastic following. Erlang is super cool but on comparison does seem to remain quite niche.

Some would say the Elixir advantage is marketing. I think there is more to it with an approachable web framework, an interesting DB library, pushing into current trends around SSR with LiveView even before Rails got Hotwire.

There's a lot of interesting work around Elixir, I've blogged about why it has me hooked a few times. Things like the Nerves project, Membrane Framework and Scenic are very cool in my book.

lawik··on Ruby 3.0 and the new FiberScheduler interface
Not the previous commenter. But enthusiastic :)

I would recommend trying it and seeing how you like it. I've basically dropped Python which was my daily language in favor of Elixir. I find I get a higher top bound to what I can do, high-level expressive but less magical code and a bunch of capabilities that aren't typically feasible with other runtimes (state handling, resiliency and stuff). The parallelism I get for free with Phoenix whether I try or not.

I'd watch Sasa Jurics talk on the heart of elixir and erlang to get more of the technical advantages laid out quite well.

lawik··on Tell HN: Thank You Dang
Thank you dang!
lawik··on The Mac is losing me
As the author, I think you are right. It isn't stagnant. But it also isn't a good fit for me in the tradeoffs it makes. M1 has promising performance but intensifies my already painful dongle town situation.

To me Apple are making 50/50 good and bad moves but they are maybe hitting 25/75 for my use cases. So they are losing me.

lawik··on Using Rust to Scale Elixir for 11M Concurrent Users (2019)
So there are a few ways to do interop with non-BEAM languages.

Ports are the typical one for simpler things. You start an external command and talk to it via stdin/stdout.

NIFs are potentially much faster and are traditionally in C. But they carry the risk of crashing the VM. Rustler+Rust removes most, likely not all, but most of the risks for screwing up and killing the VM.

So NIFs are usually not recommended simply because the resilience and reliability of the BEAM VM relies on a bunch of cool strategies inside the VM and NIFs side-step all of that. The Rust ones should be far less dangerous.

lawik··on A First Look at the JIT
From my conversation with them on Elixir Mix I don't believe warm-up is the issue. In this case the JIT is simpler than that. But the BEAM VM isn't the quickest starter in the world.
lawik··on Elixir 1.11
I see plenty of new startups in Elixir and haven't had any real issue finding Elixir client work since I switched to it. Elixir is not nearly as ubiquitous as Ruby was and I don't think it will be. I don't think that's necessary either. For people playing the numbers game I guess Java, Python and JS are the languages to pick.
lawik··on Elixir 1.11
Slated for release in OTP 24 I think. This covers the spproach they use: https://youtu.be/lM7UV95Rpyo

Most interesting take-aways from benchmarks are some cases where RabbitMQ processes 30-50% more messages per second. And where a native Erlang JSON library beat NIF C library in some specific tests. The PR link covers this info.

lawik··on Stupid solutions: Live server push without JS
When I posted this in another context someone linked this beauty: https://github.com/kkuchta/css-only-chat
lawik··on Stupid solutions: Live server push without JS
Dramatic fall was Nginx config bump and restart. Lost all those sweet idlers I'm sure. Hopefully it can go higher now with some luck but we might be past the peak. Really curious how far it can manage.
lawik··on Stupid solutions: Live server push without JS
I think it started falling over around 450. I've been getting 500 on my Nginx for workers, so I bumped that but the resulting Nginx restart killed the count and it is currently at 217 as it has recovered but I probably lost tons of idle tabs.

The application has retained a 3 day uptime. But I don't think the 450 number is entirely true with Nginx causing an artifical cap on it. Would probably be higher if I didn't hit that limit. Drats, upped the limit, hope it recovers.

← PreviousPage 7 of 14Next →