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 Stupid solutions: Live server push without JS
The counter does go up and down a bit. I'll have to check the logs and see what that's about at some point. Mostly it comes back up on refresh.
lawik··on Stupid solutions: Live server push without JS
204 you say. Please don't make this rabbit hole deeper for me :)
lawik··on Stupid solutions: Live server push without JS
Apparently HLS (HTTP Live Streaming) requires JS on every platform aside from Apple's. I was looking at that for streaming video + captions but since it requires JS to run it didn't really achieve what I wanted it to.

Maybe you could build an in-memory video stream for each user and just serve it slowly but then they would likely need to press play or you rely on autoplay and I've no idea how well that would play with buffering behaviour.

This solution maps quite closely to the idea that MJPEG is intended for "live" video. And also I find it adorable that it is just an img tag.

lawik··on CRDTs are the future
I think this is surprising levels of true. Elixir really works as an on-ramp from web to a lot of other stuff.
lawik··on Tracking users via CSS
You got me.
lawik··on Tracking users via CSS
Is it that clear-cut? Is a nice friendly org that considers the options and picks something minimal and ostensibly ethical like Fathom or Plausible and then just uses that to keep track of how they are doing evil? Or is that not a third party, just first-party outsourced? Not sure what definition we're working with here :)
lawik··on Tracking users via CSS
You can mostly track the interactions. Just the fact that CSS was loaded distinguishes the user from a lot of automated tracking. You should be able to track time spent on the page with CSS animations as well, up to a point, that's mentioned in the post.

I don't think you can do anything particularly nasty even with CSS variable programming which can apparently be used for interactive games (https://github.com/propjockey/css-sweeper). As I looked into things writing for this post I couldn't come up with a non-JS way to transition much significant data into CSS.

lawik··on Tracking users via CSS
I'm sure this is already in use but maybe not as published because it is mostly a corner-case (non-JS users). Browsers have already had to implement lies in pseudo-classes, specifically :visited since it leaks too much data.
lawik··on Tracking users via CSS
Definitely felt that while writing the post. So I don't plan to use this approach.

Just like JS-based analytics I don't think most users would object heavily to someone trying to differentiate them from non-interactive bot traffic to get an idea of whether they have any real readers or just bots. But I'm absolutely certain that there are people who will not concede any analysis of the visitor's agent capabilities and behavior as legitimate. The browser sets one boundary, general public another, privacy advocates another.

I personally try to err on the side of minimal analytics. But the default idea for people creating sites tends to be that Google Analytics is "fine" and something more privacy-oriented like Plausible or Fathom are the good/ethical option. I'm not sold on that though I'm glad that there are options that are less bad. I doubt most businesses won't throw analytics out entirely but they might be willing to pick something with a better ethics profile.

lawik··on Elixir Is Erlang, not Ruby
Haha, I was referring to feeling the implicitness of "everyone came from Ruby" which I didn't, rather than anything in the language. Sorry if I was unclear :)
lawik··on Elixir Is Erlang, not Ruby
Phoenix is necessary for the success of Elixir absolutely. Because languages at this level of abstraction need a web framework to thrive.

I'm not sure I find Ecto and Phoenix as central to Elixirs value proposition in general. I'm looking a lot at Nerves (IoT) and Membrane (media serving). Having a strong web framework simplifies things and Phoenix is good there. But there are a lot of things to like about Elixir/Erlang/BEAM.

lawik··on Elixir Is Erlang, not Ruby
Coming into Elixir from mostly doing Python but having it strongly recommended by a Rubyist I was a bit surprised to find myself in the middle of an implicit ex-Ruby world. It has been fine. But in contrast to the article, Elixir has always been about Erlang/OTP for me. I've never cared much about Ruby/Rails because it felt equivalent to the Python/Django which I already know.
lawik··on AtomVM: Erlang on Microcontrollers
Sorry, your nit might be wrong :) As elcritch covered the GRiSP case I'll just try to add some useful context.

Nerves stacks the BEAM on top of a small Buildroot Linux setup. The general rule I hear from the Nerves team is "if it runs Linux, it can run Nerves" which is mostly true.

I was considering whether Nerves could run on something like the ZSA Moonlander keyboard and then we run into a limitation of the BEAM apparently. Frank Hunleth of Nerves said the BEAM requires a device with an MMU. This is above my paygrade so I'll take his word for it ;)

lawik··on Heyyyyyyyyyyyy.com
I was entertained until I clicked a link and awoke my baby in the next room with sudden audio. Trying to get back into the YouTube app to stop Premium background audio playback was .. hectic.

Site seemed slightly entertaining, baby is awake, I'm not currently amused ;)

lawik··on AtomVM: Erlang on Microcontrollers
Just to note that Nerves is for devices that can run Linux. So it covers a different case compared to AtomVM.
lawik··on Nerves – Elixir Platform for IoT
If you want the reliability you open yourself to the eventuality that you might have to put in some of the work to achieve it. Things like SPI, I2C and GPIO can be expected to work with Nerves + Elixir Circuits. But some hobby hardware is definitely not straight forward since they tend to have libraries only in Python. I've ported one such myself (Inky eInk display) and many others have contributed similarly.

Nerves is good for hobbyists that want a better workflow and more serious and reliable setup. But it focuses on solving for production devices of you compare it to Raspbian.

lawik··on The best Parts of Visual Studio Code are proprietary
I tried to be fair but I can't necessarily strike the balance you'd like :)

I am disappointed because I expected more openness from the new direction of Microsoft than this indicates. In most of the places I've heard of LiveShare and Remote it is discussed in the context of the larger open source efforts of Microsoft. And it really isn't part of that. Specifically on things like open source-focused podcasts and such. That's how I've come across it. I think the distinction of what parts are proprietary and what parts are open will pass most developers by while they happily think they are working with open source tools.

This is indeed about two plugins not being open source, as well as the marketplace for extensions which is dominated by open source work also being limited to Visual Studio-products only. I find this disappointing and it makes me more skeptical than I was previously.

I think Microsoft can afford and would benefit from going further in an open direction with this. Its fine to not believe the same.

lawik··on Parts of vs Code Are Proprietary
There is. As mentioned in the blog post it can't use the marketplace or the proprietary extensions though.
lawik··on Parts of vs Code Are Proprietary
I'm not sure I know what to think about the auto-edit HN did to this title :)
lawik··on Five Buck Fatigue
Ah, yeah, I saw that. It could definitely be good for some cases. I think it would be good for GitHub and such. I think the incentives for fairly successful creators just isn't there. They'll get more from their dedicated fanbase. But I hope something like this shows up for and from GitHub, especially for businesses. I think a lot of dev-teams would like to portion out some stipend from their company on a monthly basis to support their dependencies. I'd do it privately too, for sure.
lawik··on Reporters are leaving newsrooms for newsletters
A newsletter subscriber list is incredibly higher in value than most blog visitor traffic.

They have chosen to subscribe, you can contact them. You don't know your RSS subscriber count. It is a more highly engaged group, easier to build a relationship with.

And the number of people using RSS compared to using email who would consider a newsletter subscription is tiny.

lawik··on Medium is not the home for your ideas
Not the author. But my main concern would be maintainability issues from package churn. But also that I don't enjoy working with JS and its tooling. It is so common a choice now so it might be worth calling out explicitly.
lawik··on Ask HN: How do you learn new libraries without much documentation?
When I've been using open source libraries without significant docs I've mostly benefitted from actually reading the code. Assuming you have the source. This can be incredibly varying in complexity. I've found a large Elixir codebase, as a functional paradigm easier to grasp compared to a single library in heavy OOP style in Python. Python not enforcing much structure and this particular library doing a lot of inheritance which complicates the state and modelling in my head a lot. So it varies a lot per code base and experience. But if you have the code, that's what I'd use.
lawik··on How Developers Stop Learning: Rise of the Expert Beginner (2012)
Most businesses don't need "great" developers. They just need to get the work done.

Getting someone who is really skilled can of course be beneficial but it certainly has the problems of retention, things like providing interesting challenges, high compensation. Not all businesses have deeply interesting technical problems. That's fine. There is plenty of use for the wide parts of the bell curve fpr both businesses and developers.

lawik··on Microsoft is shutting down Mixer and partnering with Facebook Gaming
Microsoft has done so much to improve their reputation. I think this is a risk and a mistake.
lawik··on The Return of the 90s Web
I've spent a lot of time thinking about getting back to what I find a healthier set of trade-offs in development and healthier product. I lile this idea that the current pushback against modern JS trends is simply backing up and setting out again in a new, hopefully better direction.

I'm invested in Elixir and there are some interesting, different trade-offs being made there for highly interactive things with Phoenix LiveView. And there is the Lumen compiler to potentially in the future not need JS as one could write Elixir to get WASM for the interactivity needed.

My bet is still mostly on server side rendering and static as much as possible. Current JS does have the JAMstack ideas that I find a healthier direction.

lawik··on Every year I fill out this survey from Apple, for Apple developers
I think it would be naive to think that their stance is more than a marketing strategy. But it does mean they take a stronger stance on user data than others. They at least have incentives to protect user data so they can bash Google about privacy invasion in their marketing.

China and other oppressive regimes tend to be where the marketing gets in conflict with the law and China has a lot of leverage on any major electronics manufacturer.

Still a capitalist business so ideology or ethics don't really factor into it.

I think it is correct that Apple could benefit in amrketing from having no ad systems on their platforms. Not convinced it would be net positive for them though.

lawik··on Ask HN: Are my expectations on code quality and professionalism too high?
Your standards seem fine. But for a lot of companies the initial techies set the approach and a lot of people find the thoight of these practices stifling. Not necessarily in practice but it can sound very heavy. I'm self-taught and I have a fairly sizeable mismatch with enterprise OOP-focused engineers when it comes to testing, overhead and process.

I think it's hard for people to appreciate thw other side of these argumenta without having lives through some consequences. I firmly believe in automation and testing. I believe tests must be pragmatic to not be overbearing. I mostly believe in code review for teaching. The research covered in the book Accelerate (subtitle something something devops) made a strong case against code review and change control for most software development.

So yeah, your standards sound reasonable, if maybe a bit much for my taste in some aspects but I know lots of shops that wouldn't be anywhere near. And this is a skillset and know-how you can provide. Hope that's a useful perspective.

lawik··on Lovely Week with Elixir
LiveView will take some time to really get general acceptance and will probably always be somewhat controversial. Both for server roundtrips and because it is so oddly specific and doesn't have a comparable solution in most other languages. But it is fantastic where it fits, truly.
lawik··on Lovely Week with Elixir
I like to deploy using Releases as detailed here (https://hexdocs.pm/phoenix/releases.html).

This gives you folder packaged with everything you need to run the application on the architecture you compiled it on. Very straight forward.

If you want to set it up to be a systemd service I guess it would be like any other binary command for systemd. I usually run things under something like Supervisor (http://supervisord.org/)

← PreviousPage 8 of 14Next →