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 Show HN: I wrote a new BitTorrent tracker in Elixir
A lot of the glory of Elixir and Erlang are in that you can write code that is very straightforward but performs well.

There may be cool cases for extra GenServers or gen_statems but a lot of uses of Elixir and Phoenix don't warrant making any fancy architectural choices. Partly because the runtime is already fancy for you.

lawik··on Cray versus Raspberry Pi
No benchmarks. Hard to take this seriously.
lawik··on How to get started with writing tech video essays
AI voice will detract because voice is very important in video. Especially in essays. And AI voices are very common for low effort slop video so it would not be novel.

But it is not necessarily a dealbreaker. Good research, good writing, funny timing, great editing. All of these can elevate the whole. Or being exceptional at one or two can compensate for missing one.

CGP Gray does well without a face and started with terrible animation.

lawik··on The FAIR Package Manager: Decentralized WordPress infrastructure
All names are unfortunate. There are too many things.
lawik··on The FAIR Package Manager: Decentralized WordPress infrastructure
Seems smart to start by contributing a more openly governed path. If Matt starts to fight, sabotage and shut that down it gives the important yeah-we-did-try style cover to the reasonable next step of forking.

By being unreasonably reasonable in this way I would expect they bring the most members of the community with them if a fork has to happen.

They also leave a door open for Matt to leave this effort alone or even welcome it. A potential road to recovering trust over time.

lawik··on LLMs and Elixir: Windfall or deathblow?
I think it is very accurate and should be uncontroversial to say that Elixir/Erlang/OTP are very angled towards building services. I'd say service rather than server because I don't think it is necessarily about client/server as much as doing a long-running job. Which very often is a server but I've done bots, workers and whatnots that I wouldn't necessarily think of as servers.

I think the language and ecosystem are fairly general-purpose but there are definitely a lot more general ecosystems. I think some of the big wins both Erlang and Rails have achieved (that Elixir build off of) have been about constraining the problem to be "a service" or "a web app with a database".

So you are spot on there.

One of the things I've found Elixir to be surprisingly nice for is as a replacement to my Python and Bash scripting. Shelling out is occasionally awkward but Mix.install is glorious and Task.async_stream is hilarious.

lawik··on Why I wrote the BEAM book
I would assume it was an internal post-mortem. Far from all are public affairs.
lawik··on Why I Wrote the BEAM Book
There is a separate implementation for really constrained device use, called AtomVM.

There are many dead efforts to implement something like the BEAM or OTP within other ecosystems. Usually not as a VM.

lawik··on AtomVM, the Erlang virtual machine for IoT devices
It has been done.

https://github.com/elixir-desktop/desktop

And a different variant driven by the server typically:

https://github.com/liveview-native/live_view_native

Not to say it is particularly ideal. But it exists.

lawik··on AtomVM, the Erlang virtual machine for IoT devices
GRiSP serms to typically hit inbetween Nerves and AtomVM. Grisp have explored some really constrained hardware compared to the typical Nerves device.

AtomVM is to my knowledge a lot of steps further down since they run a much lighter VM than the BEAM. It is also much less proven though.

Nerves, Grisp and AtomVM all do some of the same things. They make some different trade-offs. Heck, Kry10 (proprietary but targets critical infra) even sort of approaches the same thing. Running Erlang/Elixir for resilient embedded systems.

I am on the Nerves team so you can guess my preference. But all are cool. And we all talk to each other. AtomVM is the most obvious complement to Nerves since they target different device classes.

lawik··on AtomVM, the Erlang virtual machine for IoT devices
This one has been around for a good chunk of years. Recent bonus activity as it is seeing more exploration by the Elixir community right now as a wasm target.
lawik··on FLUX.1 Kontext
Making an accurate flail (stick - chain - ball) is a fun sport.. weird things tend to happen.
lawik··on Indian court orders blocking of Proton Mail
A bit reductionist perhaps. I assume the reason they are pushung it further is that they didn't submit to the police requesting information. Good on them for not cooperating but this is the lever a nation can pull in response.
lawik··on Nice things with SVG
Also easy to interpret generously as hyperbole.

Especially if you know how easy it can be to accidentally do something that works fine in other browsers but makes Safari kill the tab.

Doesn't actually brick the device but a fairly hard failure in the browser.

lawik··on A Farewell to the ArcoLinux University
It is endlessly fascinating how deep the fractal patterns of interests go. I know of Arch of course but have never run across Arco.

From the post I can't tell it's actual reach or impact but it certainly seems to have been a significant piece of work in terms of scope.

I hope to still noodle on open source in my retirement (when it is time) but I could certainly see wanting to get out from under the many expectations.

lawik··on Coordinating the Superbowl's visual fidelity with Elixir
I admit to hyperbole.

The interesting part is that the main marketing and sales is by word-of-mouth and quality of product. All the hardware is not even on the website, which was very confusing to my understanding when writing. It makes sense under the resource constraints.

lawik··on Coordinating the Superbowl's visual fidelity with Elixir
Really?

I can spill all the juicy details as the main author and instigator.

Cyanview reached out to me to help find a dev a while back. Hearing about their customers I knew it would be a decently big splash for Elixir. I was surprised that they were unknown and had this succcess with big household name clients.

I like them. I like their whole deal. Small team, punching above their weight. Hardware, software, FPGAs and live broadcasts. The story has so much to it. David and team have been great sports in sharing their story.

Fundamentally I care more about Elixir adoption though, I reached out to the Elixir team and offered to interview them and write something up.

A case study about successful Elixir production deployments is definitely content marketing. But for Elixir. It is a very common question when mentioning a less common language. "Who uses this?" I thought it was a very interesting case. Glad to have it documented. The style of a case study won't suit everyone.

I suppose "without any marketing, before _this_" would have been funny.

lawik··on Coordinating the Superbowl's visual fidelity with Elixir
The extreme upper range of YouTube channels sometimes use a RED camera. I've not seen a lot of ARRI for YouTuber behind-the-scenes. Usually they go with high-end prosumer full-frame mirrorless Sony, Canon or equivalent. Those are probably below what the Cyanview's stuff is intended for or just on the edge of what gets used.

I suppose FX30, FX3 and FX6 is in Sony's cinema line and may have all the color stuff that these systems want to tweak but I'm not sure. These cameras do get a fair bit of play on YouTube.

lawik··on Gnome / mutter triple buffering patch merged
But can we Gilette this? Quadruple buffering? 24 buffers for the smoothest display?
lawik··on Embedding Python in Elixir, it's fine
There are several libraries that allow a Python program to communicate with an Erlang program using Erlang Term Format and such.

This approach targets more performance-sensitive cases with stuff like passing data frames around and vectors/matrices that are costly to serialize/deserialize a lot of the time.

And it seems to make for a tighter integration.

lawik··on Embedding Python in Elixir, it's fine
As someone very involved in Elixir and who used to do a lot of Python this seems very practical for me. I'm actually even more interested in that Fine library for making C++ NIFs easy. That seems ridiculously valuable for removing hurdles to building library bindings.
lawik··on Embedding Python in Elixir, it's fine
FLAME runs the same code base on another machine. FLAME with Pythonx should just work. FLAME is a set of nice abstractions on top of a completely regular Erlang VM.

Chris Grainger who pushed for the value of Python in Livebook has given at least two talks about the power and value of FLAME.

And of course Chris McCord (creator of Phoenix and FLAME) works at Fly and collaborates closely with Dashbit who do Livebook and all that.

These are some of the benefits of a cohesive ecosystem. Something I enjoy a lot in Elixir. All these efforts are aligned. There is nothing weird going on, no special work you need to do.

lawik··on Servo Revival: 2023-2024
Yeah, been seeing their site a lot when setting up cog and weston for an embedded kiosk thing. Also met a bunch of them at the OpennSource Summit in Vienna.

Every now and then you run into these small-ish expert consultancies that actually are the force behind a lot of open source.

They seem awesome.

lawik··on Talking over a wall changed my direction as a programmer
"Very AAA" games and Minecraft/Factorio are not related.

Minecraft and Factorio are both simpler productions in terms of visual fidelity and lean on gameplay that is captivating. AAA is not a label for the quality of game, more of a style/level of execution.

Both Minecraft and Factorio started indie to my knowledge which is a separate path and approach from AAA games. Unrelated to good/bad.

lawik··on Automotive Grade Linux Launches New Expert Group Led by Toyota
The start of a bigger and more expensive homelab.
lawik··on Gitlab names Bill Staples as new CEO
Already standard practice for fighters in Muay Thai. Don't see why CEOs shouldn't show their loyalty.
lawik··on Phoenix LiveView 1.0.0 is here
That seems out of scope for LiveView itself. You could of course use LiveView from a WebView shell. There is a project for bundling Elixir in an app as well. Not sure it is active? But they don't usually rot too bad. https://github.com/elixir-desktop/desktop

DockYard has built out LiveView Native which does a wild React Native style based on the LiveView server-rendered model.

lawik··on Phoenix LiveView 1.0.0 is here
The Gleam team has their own, different efforts with Sprocket (LiveView-inspired I think) and Lustre (different, but related). I would look at those primarily or use Gleam modules with your LiveViews which should work fine if you don't mind the double language thing.

Using Elixir from Gleam can be troublesome due to Elixir macros. I find macros quite important to the Elixir ecosystem but since they don't work in Erlang (and Gleam) they have some drawbacks in terms of of interop.

lawik··on First Impressions: Lenovo T14s with Qualcomm Snapdragon ARM64 CPU
No, I think it is the optimism of someone who writes drivers when they need them.

Bit of a fixer-upper.

lawik··on The Fediverse is getting its own TikTok competitor called Loops
A Mastodon instance is kind of heavyweight. The caching/media seems painful. I seem to recall it is a Rails app which is not the most efficient.

Akkoma was a forward and more resource-efficient variant built in Elixir. Last I checked.

There are a gajillion *key forks. Think Misskey was the starting point.

Honk seems fun and is in Go.

Fediverse is not one software package. Mastodon is. Many are Mastodon-compatible.

← PreviousPage 2 of 14Next →