Better HN
topnewbestaskshowjobs
Log inSign up

leonheld

745 karma · joined Jun 9, 2023 (3y ago) · 173 submissions

I write here https://leonardoheld.ovh/ and here.
Submissions

comment 2mo ago · link · parent

To be clear: I'm not the author. I just use the service.

comment 2mo ago · link · parent

HN is a reflection of the industry and we're at peak hype-cycle at the moment. I use this when I need a break https://elijahpotter.dev/hnsansai.

comment 3mo ago · link · parent

Man I always look at this project with nothing by awe. I'd love to start something like this... if you're in central Switzerland and would like to copy their model, hit me up.

comment 3mo ago · link · parent

> Or some DFU mode you can boot into.

Ironically, Macs do have that, no?

comment 1y ago · link · parent

It's all written in shell, no other dependencies. This is what so many shells that tried to "revitalize" sh missed! I'll definitely adopt this.

comment 1y ago · link · parent

My experience with HackerNews would be significantly improved if I could exclude the LLM-related stuff... it's overwhelming.

comment 1y ago · link · parent

My apologies: "mydependencies" are packages from PyPI (https://pypi.org/), as if you did "pip install ...".

comment 1y ago · link · parent

I adore the

  uv add <mydependencies> --script mycoolscript.py
And then shoving

  #!/usr/bin/env -S uv run
on top so I can run Python scripts easily. It's great!

comment 1y ago · link · parent

Haiku/BeOS to me is simply peak computer design. This is beautiful!

10.

Static binaries and Homebrew as a channel for internal tools(leonardoheld.ovh ↗)

1 points · by leonheld · 1y ago · discuss

comment 1y ago · link · parent

We use it for testing binary embedded Linux distros where tricking the OS to think there's a display connected introduces a new variable that is not present in the user's deployment - and it's a cheap hardware solution. Buying and installing them is probably more cost-effective than having an engineer writing the `echo on > /sys/whatever` and the logic around it.

comment 1y ago · link · parent

I get nomi.ai, which is a service to:

"... build a meaningful friendship, develop a passionate relationship, or learn from an insightful mentor."

Jesus Christ.

comment 1y ago · link · parent

While others have expressed sentiments about YouTube and Google, let me tell you what I really hate - translated reddit posts.

They're polluting search results and it's the ultimate disrespect against multi-lingual users... it's made my life hell when trying to find localized information (for example, in Portuguese), when my computer is set to Portuguese but I'm searching in English.

comment 1y ago · link · parent

Good point. I did not scroll to the rules.

comment 1y ago · link · parent

What are you talking about? 25~30k is almost a year's salaries for a dev in Eastern Europe/South America.

comment 1y ago · link · parent

If we're talking numbers, there are many, many more embedded systems than general purpose computers. And these are mostly built on ancient process nodes compared to the cutting edge we have today; the shiny octa-cores on our phones are supported by a myriad of ancilliary chips that are definitely not cutting edge.

comment 1y ago · link · parent

> Honestly my sense is that it's just time to rip the bandaid off and generate synthesizable hardware from Python or Rust or whatnot.

I worked a bit with VHDL and the parallelism aspect is - to me - so fundamentally different than what our sequential programming languages can express that I'm not sure I a layer of abstraction between this and that. How would that work?

comment 1y ago · link · parent

I love Rust, but I after doing it for a little while, I completely understand the "brain drain" aspect... yes, I get significantly better programs, but it is tiring to fight the borrow-checker sometimes. Heck, I currently am procrastinating instead of going into the ring.

Anyhow, I won't go back to C++ land. Better this than whatever arcane, 1000-line, template-hell error message that kept me fed when I was there.

comment 1y ago · link · parent

It's about half of my state in Brazil (which is one of the smallest in the country). However, I've been to Belgium many times and it feels bigger. I think the key is the population density: 388/km^2 in Belgium vs 70/km^2 here. Like, yes, it's big, but empty space is truly boring.

comment 1y ago · link · parent

I profoundly do not understand why one needs Hugo or Jekyll or whatever other generator. Why not write HTML in the first place? It's so absurdly easy and it makes you not depend on external infrastructure at all.

I tried some generators but it was so much more complicated than writing a style sheet and some pages. Maybe for some more complex use-case, okay, I get it, but the author's blog is so minimal and simple.

edit: today I learned people have very strong opinions about static site generators. Good valid reasons, y'all. Maybe my use case really is too simplistic!

21.

Ask HN: Where are people sharing their blogs these days?

33 points · by leonheld · 1y ago · 24 comments

comment 1y ago · link · parent

Has been done: https://youtu.be/Z1Nf8KcG4ro?t=1107

comment 1y ago · link · parent

It's obvious to you becase you seem like a decent human being, judging from this comment.

comment 1y ago · link · parent

The response here would be significantly different if this was about measuring the performance of software engineers in wealthy countries.

comment 1y ago · link · parent

I... did not know that! Yep yep that should do the trick for me. Thanks a lot, actually!

comment 1y ago · link · parent

Nobody is stopping you from using master, you can do whatever you want. The author even recognizes that very clearly in the text.

You can name all your default branches `megazord`. Hell, you can fork git, call it "gitzord" and enforce your `megazord` branch as The Correct Main Branch Name for every user. Feels good to be free, doesn't it?

And PS: I'm not from the USA ;-)

comment 1y ago · link · parent

After using delta for a while, I'm going back to the regular diff view... it's not that it isn't good, but I'm constantly copying diffs (yes, I know I can generate patches) and the pretty output breaks that workflow.

Also, when your terminal is a bit small it's a bit hard to see things. But it's really good software, I recommend anyone who's reading to give it a try.

comment 1y ago · link · parent

> I guess some older or more closer to the metal parts will stay in C

I suppose the biggest reason is that C programmers are more likely than not trained to kinda know what the assembly will look like in many cases, or have a very good idea of how an optimizer compiler will optimize things.

This reminds me I need to do some non-trivial embedded project with Rust to see how it behaves in that regard. I'm not sure if the abstraction gets in the way.

comment 1y ago · link · parent

> have not yet found a hardware independent Linux distro that can be reliably updated in an IOT context

I'm part of the team that builds an immutable distro based on OSTree (https://www.torizon.io) that does exactly that.

Docker/Podman support is first-class as the distro is just a binary, Yocto-based one that we maintain so users don't have to. You can try our cloud for free with the "maker" tier. To update a device you just drop a compose file with the web ui and massively update a fleet. You can even use hardware acceleration from the containers using our reference OCI images.

The layer is open (https://github.com/torizon/meta-toradex-torizon) and will get Raspberry Pi support soon but you can integrate already easily with meta-raspberrypi (we can also do this for you very quickly ;-)).

Happy to answer any questions.

comment 1y ago · link · parent

This comment makes zero sense. It's a meta-distribution: it builds a custom one for you. Professional custom embedded distros are a different beast altogether from the vanilla distros.
123456