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 DirectX is coming to the Windows Subsystem for Linux
I find this a cynical take as far as EEE goes. But even with Microsofts mostly solid efforts into open source I find myself a bit skeptical as well.

Most recently with the Live Share extension for VS Code. From skimming the licensing it is only to be used with the Visual Studio family of products. Which is an incredibly disappointing approach.

I think this is simply about ML and GPU compute for WSL. And I think Microsoft is genuine in that it sees business value in doing open source work, integrating well with Linux, etc. But at the end of the day the business interests are there and different parts of the company can be motivated quite differently.

Some skepticism remains warranted.

lawik··on OTP 23
Sounds about right. With wasm being relevant for edge computing and serverless I'm keeping a close eye on the Lumen project compiler as I expect that to be more feasible for this sort of work. The advantages for OTP remain mostly in long-running services. But for Lumen that might be a more open question.
lawik··on OTP 23
I'm not using it in huge scale. But I've worked with companies that run it in production, yes.

There are a lot of Elixir products and systems out there and before those there were quite a few in Erlang. I don't have a sufficient sample size from my own experience but it is hardly old and disused or too new to be sure.

Changelog podcast runs on it. Dockyard build with it. It seems the new default for many previously Rails shops.

lawik··on OTP 23
I think I understand your concern as the foundation is arguably old. But as someone actively following Erlang and Elixir the sentiment feels absurd. Elixir is very recent, very modern and Erlang/OTP has a very strong track record.

There are drawbacks of course but having worked with Python, PHP and JS. I haven't seen any real drawbacks. I wouldn't choose it for minimal overhead or the fastest compute maybe..

Edit: typo

lawik··on GitHub Codespaces
So nice when it works and has been breaking incredibly badly for me recently. The Python extensions that vscode was trying to bring up whenever I connected to my remote had some weird interaction with a virtualenv and just pinned the server to 100% CPU and rendered it completely unresponsive. Repeatedly. Reboot to recover.

Generally extremely good, but for obvious reasons this makes me think twice about connecting to some things.

lawik··on Ask HN: What is the real difference between Terraform and Ansible?
Not quite accurate but very funny :)
lawik··on Ask HN: What is the real difference between Terraform and Ansible?
How does the coverage of APIs compare. Just AWS is a gigantic set of APIs. I see most of what I'd need in the Ansible Module Index but it doesn't seem like it covers all that is available.
lawik··on Show HN: Web development – Self-evaluation checklist
I'll look into that :)
lawik··on Ubuntu Mate 20.04
After living a year or so with Windows, two monitors and a KVM switch for one of those monitors. It ain't there yet. It does detect it but it'll just throw your stuff all over the place.

MacOS has been incredibly solid on that note.

lawik··on Build a real-time Twitter clone with LiveView and Phoenix 1.5
I think the biggest hurdle would be the Functional Programming aspects. Elixir was quite easy for me to approach coming from mostly PHP, Node.js and Python (preferred Python before Elixir).

Phoenix has a sprinkling of magic or syntactic sugar through macros and stuff but the step between Phoenix and LiveView is not that mystical to me.

I have taught a novice developer, not yet out of 2-year school for web dev, to use Elixir and the Phoenix Framework. I really should interview him about that. Write something up.

I would say that Django does more stuff under the hood than Phoenix. But they are fairly different vehicles.

lawik··on Build a real-time Twitter clone with LiveView and Phoenix 1.5
Gotchas, probably some of those. Both in Elixir and Phoenix. It is an entire language plus an entire web framework.

A lot of people find Elixir more approachable than Erlang. But I wouldn't be surprised if Erlang is technically simpler and as such potentially easier to learn. The syntax is quite foreign to most people coming from more conventional languages while Elixir reads and writes fairly conventionally.

Now Phoenix LiveView does a lot for you, so I wouldn't dismiss the claim of having some magic in there. But once someone starts to get familiar with the stateful approach the model is fairly simple and the "magic" is less mystical. A lot of the things you don't need to pay attention to would be optimizations in markup and templates and how the JS does its job. That's where a bit of magic happens.

Most of the things you mention sound like things about the language. Which I found to be very approachable and the onboarding documentation to be great.

lawik··on Build a real-time Twitter clone with LiveView and Phoenix 1.5
I would say it is quite mature. The ecosystem is a bit smaller and younger, so sometimes you'll find an insufficient library somewhere or no library at all. But I've never had a show-stopper in that regard.

I've done plenty of Django and Flask and I'd rather work with Phoenix. I still like Django plenty but only time I'd pick it is if I think the admin might save me copious time or if there is something else tying the project to Python, such as machine learning.

lawik··on Gleam: A statically typed language for the Erlang VM
It is well suited to running concurrently as in, many cores, and in a distributed fashion, across many computers. It was built to run telephone switches and similar highly available, high performance gear in a way that is resilient to failures.

Node is mostly single-threaded still, right? The Erlang VM, Beam, runs truly concurrently. Also, a few large pieces of CPU work cannot block the scheduler indefinitely. I'm not aware of a runtime that works quite like it. Suits me well. I use it throigh Elixir.

It is not the fastest in any given metric from what I know but I think it delivers enormously well in real life scenarios.

lawik··on Phoenix LiveDashboard
I think there is work to get static typing in Erlang.

This tweet thread was where I stumbled into it: https://mobile.twitter.com/slashdotdash/status/1238513622189...

lawik··on Math Symbols Explained with Python
I'm delighted. I've programmed since my teens but I never really enjoyed math and have mostly picked up what I need when I really need to. I think more in the ways of programming than in math, so this is a good way of helping me with the syntax.

People come here from many angles. Mine was largely free of math. I gather yours wasn't.

lawik··on Building a static serverless website using S3 and CloudFront
Probably because it is built on tools that are made to scale arbitrarily and solve a large amount of very general needs. This need is simple, the tool is not built for simple needs though it can meet them.

I dislike the UX of AWS but the complexity here isn't strange to me. I bothered to set up the first bit of this (didn't need sub-dir index files so didn't realize it was a problem) since I wanted a simple storage, simple deploy and good resilience.

My site has been hit by HN a few times now and it hasn't been an issue. Fairly set and forget. But the start is annoying.

lawik··on Building a static serverless website using S3 and CloudFront
I run the setup of S3 + Cloudfront and never ran into their index problem because I'm not trying for URLs without document file extensions.

I assume that's the reason for really wanting index redirect in directories. Pretty URLs, I didn't feel the need. There are other valid reasons too I'm sure. But my needs diverged from the article even earlier than SEO penalties.

lawik··on Sweden gives employees unpaid time off to be entrepreneurs (2019)
Nah, that's usually based on salary I think. And you don't get one during this time off. You just freeze-dry your employment. Stasis basically.
lawik··on Sweden gives employees unpaid time off to be entrepreneurs (2019)
From my experience people are more likely to use this for studying, trying a business idea (not the HN meaning of startup) or extended travel. Startup I imagine is an outlier in what its used for.

It lines up well with the very advantageous student loans (for living costs, university is free) for studying and lets people try their hand at going through higher education wothout throwing their job away.

lawik··on Linux 5.6 is the most exciting kernel in years
I think this was what I tried to use for one of those shared file system setups for a web app where we needed shared files.

And the daemon responsible for this would end up hard-locking the VPS it was running on.

Oh yeah, here's the issue I found that mirrored my experience: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751933

That was a rough experience since it would run fine until it hit a certain level of load.

lawik··on My 2020 Hackintosh Hardware Spec
I think there are plenty of reasons. You might like the OS a lot but not care about Apple's feelings.

Spite is another one. Or fun. It's a neat thing to do. Hacking-wise.

You might want the high performance hardware without the premium price.

I've considered it but will probably go Linux for my next desktop work machine.

lawik··on Google App Maker Shutting Down
Is it disproportionate. I use Google. I like some things they do. But for anything where I'm not a paying customer I find my trust eroding and I find myself considering options that aren't as gargantuan. With that scale accountability starts going out the window and I don't feel like Google has managed that well. Not sure if that is mostly inept PR compared to some competitors or actually being worse.

Microsoft has been building up some of the previously terrible level of trust they've had around here. They've gotten up to the level of polarized mix, like Apple in my estimate. I don't see s lot of people who would get in the line of fire for Google. I think that's about trust and affection. They so things that are useful but they've been hard to like for a while in my eyes.

lawik··on Elixir v1.10
I find it approachable for someone that doesn't know FP. It doesn't require shifting all of your knowledge and habits at once. It might not teach you everything there is to know about FP but I think the question originally was roighly "is it hard to learn if you don't know FP?"

And I'd say for that type of case it may be more approachable for not being qiite so pure.

lawik··on Elixir v1.10
Easy enough, for me. I have roughly the same history of languages. Functional programming as a paradigm was the biggest hurdle for me. But Elixir guide docs help yout quite a bit there.

Job opportunities are fine, not Python+ML or JS+React great but there is work out there.

lawik··on Elixir v1.10
Good comment covering the languages.

I came from Python. For me Elixir was much more approachable as a first step into a functional language. Syntax, documentation, getting started/onboarding. I believe there are efforts under way to make Erlang docs a bit easier to approach.

And then Phoenix with projects like Presence really built my excitement for the language. Had some colleague that was thrilled by Ecto changesets.

So a combination of ergonomics, easily accessible to new people and strong hype-marketing brought me in I guess. And I enjoyed it and am happy with the results it gives.

lawik··on Elixir v1.10
You don't need to learn Erlang to learn Elixir. You can just use some what Erlang provides when you need it. Some people want to approach things very ground-up but I've taught people Elixir. It's fine to learn Elixir and you'll get to OTP and all the good stuff.
lawik··on Elixir v1.10
I've happily dipped into Erlang libs when I need to. I'm also increasingly capable of reading Erlang code though I only write Elixir. I would not recommend starting with all of Erlang before doing Elixir but it may work better for some folks.
lawik··on Elixir v1.10
I'll second the Elixir guide and maybe go on to the Phoenix guide for web dev. I just read enough to get going and then start building, then go back, read more, fix what I built.

But people learn differently. I don't really get through books and I haven't needed courses aside from random examples of how to do some things.

lawik··on Elixir v1.10
I think there is a touch of catch 22 in "are there enough devs? are there enough companies?"

But from my end it looks to be improving. I've gotten going with doing it professionally and I hope to maintain that focus mostly.

lawik··on Lumen – Elixir and Erlang in the Browser
Something like this thing? https://github.com/wasm3/wasm3

The sample I tried in this post is only an Erlang interpreter. The whole compile chain is not quite ready from what I gather. It should be feasible at later point. I don't see why not.

← PreviousPage 9 of 14Next →