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 Lumen – Elixir and Erlang in the Browser
That's a fair point :)
lawik··on Lumen – Elixir and Erlang in the Browser
I think you can get more info from the video linked there. I don't recall the details but if it isn't Web Workers there might be something in Wasm. I'm pretty sure it's intended to be able to run multiple schedulers. But I'm not the one building it so not sure.
lawik··on Lumen – Elixir and Erlang in the Browser
Is that the thing where after a number of reductions by a single process the BEAM will make sure another process gets its time in the sun? I believe so but I'm not familiar enough with the internals. They definitely spoke about reductions in the meeting I half-listened to.
lawik··on Lumen – Elixir and Erlang in the Browser
Yeah, I'm aware of the distinction. But I honestly haven't settled on how to refer to it all as a whole. Do you have a preference?
lawik··on Lumen – Elixir and Erlang in the Browser
That's not accurate. WebAssembly is a different beast than JS. As far as I've understood it is executed differently and can do some different things. I don't see any reason why it couldn't be optimized more than JS either, though that's bound to take some time considering the amount of tuning that's gone into JS engines.

More accurately, you write Elixir, it compiles down to Wasm. Wasm is run by your browser as a more machine-friendly format than JS. It may well be faster.

lawik··on Lumen – Elixir and Erlang in the Browser
That sounds pretty close to what Scenic does for OpenGL-rendered UI.

Scenic has some interesting properties in that if a specific component has a code problem and fails/crashes, the supervision tree will bring it back to life. I'm curious to see what similar things one could do with Lumen for the web.

Components are already a very popular level of abstraction with Vue and React, probably others. So maybe there are useful things to bring from Scenic.

lawik··on Lumen – Elixir and Erlang in the Browser
It will run Erlang and Elixir. So anything you like or dislike about working with those languages should carry over. I find them delightful, mostly have experience with Elixir.

Asynchronous and event-driven code is already a fact in the browser so working with an ecosystem that is designed for that may prove a better experience.

I'm hopeful. Also, concurrency, staying of the render thread if possible. There's lots of fun to be had there.

lawik··on Lumen – Elixir and Erlang in the Browser
Separate worlds.. I'd never heard about Laravel's Lumen until the two comments here. I had seen that they had Mix and Elixir which seemed unfortunate. Lots of weird naming overlap going on specifically between these apparently.
lawik··on Lumen – Elixir and Erlang in the Browser
What I find the most interesting about it is that it doesn't try to rework the BEAM to fit in the browser but rather does the much more ambitious work of trying to compile something fairly optimized that won't bloat the frontend.
lawik··on Lumen – Elixir and Erlang in the Browser
Haha! Oh dear.. I think adding "elixir" to any search is pretty much mandatory. Phoenix, Nerves, Scenic. All need some qualifiers. Ecto might stand on its own.
lawik··on Elixir lang 1.10.0-rc0
Oh dear, yes! I missed that in the release notes but I'd heard it was coming. I want it. I wanted it today.
lawik··on Elixir lang 1.10.0-rc0
Oh, and the Lumen project is looking to get it to compile to WebAssembly rather than run on a VM which seems like it will also provide a more lightweight way of running it. That both adds a new use-case and potentially improves the places where it can be suitable.
lawik··on Elixir lang 1.10.0-rc0
If you want, you can write scripts in it. Just like Python, but that isn't the sweet spot. It is much more suitable for long-running things.

But Nerves is a cool project for Elixir + embedded Linux.

Scenic is a neat project for OpenGL UIs in Elixir.

It can do a lot of different things. You can pick it for the concurrency, the durability or the distributed nature of it. Tons of potential applications. So general purpose-ish. But not as general as some others.

lawik··on Elixir lang 1.10.0-rc0
A few years back I wanted to try it for a microservice but found it didn't integrate with our system because of missing features in the ZeroMQ libs of the time. So there are and were corners where things aren't fully fleshed out. I imagine you can find these odd corners in most ecosystems.

I've been happy with the libraries I've found and used in general. All the common web stuff seems to be there. ExAws solves most of the cloud integration I've dealt with. But I don't imagine I'd find a selection of high-level, highly ergonomic Google Sheets libraries the way you would in Python. Not yet.

I'd say its still early days but healthy for the job market. I've found freelance work with an Elixir shop recently which is fun. But it is nowhere near Python, JS and all. Still, plenty of people making a living as employees or long-term contractors doing it. And it seems to be growing at a steady rate. I'm hopeful.

Learned it out of interest. Tracked down my current client through the Elixir Slack actually.

lawik··on Elixir lang 1.10.0-rc0
I've found most Elixir projects I've taken a look at to be surprisingly easy to follow when I've needed to.

I've dug into Ecto, Ecto SQL, Elixir itself at times. This was just because I was trying to figure out some corner-case behavior. The overhead of understanding someone else's classes when I tried similar things in Python was always just a much heavier mental load. Idiomatic or not.

As mentioned by another comment, the important thing is that each function you need to read can pretty much be read on its own. You might need to follow a few trails. But the way a library can hide where the magical state comes from in a Python class is sometimes maddening. I know, because I've written that code.

I find Elixir incredibly readable, nicely writable and the mental overhead continuously lower.

lawik··on Elixir lang 1.10.0-rc0
Seems like it was a straight up acqui-hire. They were happy with the dev-work, processes and stuff they got from hiring them originally and wanted all of it. Or that was my take-away from reading it at least.
lawik··on Event Sourcing (2017)
Soft delete in the sense of removing availability but keeping the data shouldn't be GDPR compliant from what I've seen. Not in regards to right to be forgotten and restrictions on keeping PII.
lawik··on Automate the Boring Stuff with Python (2015)
I'd say the languages are largely equivalent. Roughly the same level of abstraction, roughly the same technical trade-offs. Highly productive, lots of people enjoy them, not very strict.

What Python does have specifically for automation in my eyes is that it is often the default language for most Raspberry Pi-related hardware libraries. So if you want to build home automation on accessible and easy hardware, the Pi is very welcoming to Python just in terms of making things easy, providing libraries.

It is also heavily supported for machine learning and computer vision which is related. Again, this is generally just a matter of library support.

I don't know the Ruby ecosystem well enough to say if it has equivalents to all the Python scraping, fuzzy matching and such libraries out there. But I expect it does. So that bit is probably a wash.

Hope that gives a perspective.

lawik··on Raspberry Pi 4 as a USB-C peripheral
In the Nerves project (Elixir thing for embedded linux) it is used to be able to power, SSH to the device and push new firmware changes without needing to reimage the SD card. Already used that a lot with the zero and 3A.
lawik··on Zotonic: An Erlang Web Framework
As an Elixir enthusiast I would say, if you prefer Erlang to Elixir or is more experienced with it and will be building web stuff Elixir is one more dependency which could br avoided.

I like Elixir. Not all Erlangers do.

Also, this mentions being something of a CMS. Phoenix is not that.

lawik··on Please don't use Slack for FOSS projects (2015)
I agree that IRC doesn't hit the needs and wants of many contributors these days. But I've really found the limits of the Slack free plan a bit rough in the Elixir Slack. And I'd say concerns about being on a proprietary system are valid. It ends up being a mess of pragmatic trade-offs, rather than clear-cut. Slack and friends is overall more approachable.
lawik··on Hacker’s Manifesto (1986)
Noisebridge is one I believe. Covered in at least one Doctorow book. Strange Parts did a nice video on it too.
lawik··on Elixir and Ecto – Multi-Tenancy Through Dynamic Repos
facepalm Yeah, yeah, that's fair. I should have caught that in editing. Thanks, I'll fix that up.

Now if you don't know or love Ecto, that's another matter. Can't help you there ;)

lawik··on macOS 10.15 Vista
Developers can use Catalyst to build their iPad/iOS apps for Mac. New thing with the new OS version. And sort of a path forward towards the idea of Swift UI and one UItoolkit to rule them all I guess.

https://developer.apple.com/mac-catalyst/

lawik··on On-Device, Real-Time Hand Tracking with MediaPipe
First skim of the title "what are they tracking now? Wow, very clear language on the tracking part of the business for googleblog.com link. Oh.. Hand tracking"

But this is very neat.

lawik··on “Bicycle of the Mind”
Oh. This is a thing I've never felt. If python had better facilities for running other commands, that'd be an option for me. But I think bash has a very interesting set of conveniences and trade-offs.

If built from first principles today I'm sure it would looke differentbut for me Node.js wouldnot be it. Scripting it is fine, as a shell to live in, I would find it very messy.

I've been doing more things with bash recently, it has generally been a good experience.

lawik··on What Does a Coder Do If They Can't Type?
Very interesting read. I've spent some time on that particular what-if now and then. I imagine a lot of people making a living at a keyboard do. Glad to hear that, much as I've imagined, it doesn't mean the end of the line. It will make things a lot harder but it doesn't have to be the end of life as someone doing programming.
lawik··on Running an eInk Display with Elixir, Scenic and Nerves
Accidental shopping, happens all the time :)
lawik··on Running an eInk Display with Elixir, Scenic and Nerves
That's fair. You can do plenty with Scenic entirely without hardware. And you should, Scenic is great :)
lawik··on Running an eInk Display with Elixir, Scenic and Nerves
Oh, hey! I've seen you around :) And thanks. Though nyaray deserves plenty of the credit too.

Yeah, my firmware image weighs in at 20Mb for the sample_inky repo. I like Nerves a lot for all the sanity it provides for the process.

← PreviousPage 10 of 14Next →