Better HN
topnewbestaskshowjobs
Log inSign up

embedding-shape

21,525 karma · joined Oct 27, 2025 (1y ago) · 7,589 submissions

It's only in jest, don't take it so seriously.

https://emsh.cat

embedding-shapes@proton.me

Submissions

comment 10mo ago · link · parent

> AFAIK, it's not the traits that does it but rather the generics.

Aah, yes, that sounds more correct, the end result is the same, I failed to remember the correct mechanism that led to it. Thank you for the correction!

comment 10mo ago · link · parent

> I wonder whether the situation with Google Maps is any different now. I'm not a developer, so I don't need to know. I'm just curious.

As the Google Maps APIs/libraries already exited the "growth" phase where the focus is acquiring new users, and entered the "squeeze" phase, I'd say it's worse today than it was in 2019.

comment 10mo ago · link · parent

> But personally so far everytime I have come across something not using a task runner it has just been the wrong decision.

Yeah, tends to happen a lot when you hold strong opinions with strong conviction :) Not that it's wrong or anything, but it's highly subjective in the end.

Typically I see larger issues being created from "under-engineering" and just rushing with the first idea people can think of when they implement things, rather than "over-engineering" causing similarly sized future issues. But then I also know everyone's history is vastly different, my views are surely shaped by the specific issues I've witnessed (and sometimes contributed to :| ), than anything else.

comment 10mo ago · link · parent

> Do you use the proprietary github actions stuff?

If I can avoid it, no. Almost everything I can control is outside of the Microsoft ecosystem. But as a freelancer, I have to deal a bunch with GitHub and Microsoft anyways, so in many of those cases, yes.

Many times, I end up using https://github.com/actions/cache for the clients who already use Actions, and none of that runs in the local machines at all.

Typically I use a single Makefile/Justfile, that sometimes have most of the logic inside of it for running tests and what not, sometimes shell out to "proper" scripts.

But that's disconnected from the required "setup", so Make/Just doesn't actually download dependencies, that's outside of the responsibilities of whatever runs the test.

And also, with a lot of languages, it doesn't matter if you run an extra "npm install" over already existing node_modules/, it'll figure out what's missing/there already, so you could in theory still have "make test" do absolute everything locally, including installing dependencies (if you now wish this), and still do the whole "hash > find cache > extract > continue" thing before running "make test", and it'll skip the dependencies part if it's there already.

comment 10mo ago · link · parent

Absolutely, was not trying to claim otherwise. But since we're engineers (at least I like to see myself as one), it's worth always keeping in mind that almost everything comes with tradeoffs, even traits :)

Someone down the line might be wondering why suddenly their Rust builds take 4x the time after merging something, and just maybe remembering this offhand comment will make them find the issue faster :)

comment 10mo ago · link · parent

> (tbh, I've not received a single one),

Not true anymore! \o/ I don't use Android anymore, but I agree a lot with the principles you've shared here, so it's a thank you for sharing that. And I know how difficult it is to get the first donations, and after you get the first, it's much easier to get the later ones. So best of luck, and I hope you'll remain steadfast with your principles when it'll matter! :)

comment 10mo ago · link · parent

> The chief constable of one of Britain’s largest police forces has admitted that Microsoft’s Copilot AI assistant made a mistake in a football (soccer) intelligence report. The report, which led to Israeli football fans being banned from a match last year, included a nonexistent match between West Ham and Maccabi Tel Aviv.

> We’ve reached out to Microsoft to comment on why Copilot made up a football match that never existed, but the company didn’t respond in time for publication.

It seems like as of yet, none of these "Let AI make decisions for us" workflows have led to obvious human death yet, but it is starting to feel like it is only a matter of time.

5858.

UK police blame Microsoft Copilot for intelligence mistake(theverge.com ↗)

4 points · by embedding-shape · 10mo ago · 2 comments

comment 10mo ago · link · parent

Huh? Who cares if the script is .sh, .bash, Makefile, Justfile, .py, .js or even .php? If it works it works, as long as you can run it locally, it'll be good enough, and sometimes it's an even better idea to keep it in the same language the rest of the project is. It all depends and what language a script is made in shouldn't be considered a "smell".

comment 10mo ago · link · parent

It's a tradeoff though, as I think traits makes the Rust build times grow really quickly. I don't know the exact characteristics of it, also I think they speed it up compared to how it used to be, but I do remember that you'll get noticeable build slowdowns the more you use traits, especially "complicated" ones.

comment 10mo ago · link · parent

> If your CI can do things that you can't do locally: that is a problem.

Probably most of the times when this is an actual problem, is building across many platforms. I'm running Linux x86_64 locally, but some of my deliverables are for macOS and Windows and ARM, and while I could cross-compile for all of them on Linux (macOS was a bitch to get working though), it always felt better to compile on the hardware I'm targeting.

Sometimes there are Windows/macOS-specific failures, and if I couldn't just ssh in and correct/investigate, and instead had to "change > commit > push" in an endless loop, it's possible I'd quite literally would lose my mind.

comment 10mo ago · link · parent

> How do you handle persistent state in your actions?

You shouldn't. Besides caching that is.

> All the options I could find for caching deps sounded so complicated.

In reality, it's fairly simple, as long as you leverage content-hashing. First, take your lock file, compute the sha256sum. Then check if the cache has an artifact with that hash as the ID. If it's found, download and extract, those are your dependencies. If not, you run the installation of the dependencies, then archive the results, with the ID set to the hash.

It really isn't more to it. I'm sure there are helpers/sub-actions/whatever Microsoft calls it, for doing all of this with 1-3 lines or something.

comment 10mo ago · link · parent

> I find GitHub Actions abhorrent in a way that I never found a CI/CD system before...

That's just the good old Microsoft effect, they have a reverse-midas-touch when it comes to actually delivering good UX experiences.

comment 10mo ago · link · parent

The best CI platforms let you "Rebuild with SSH" or something similar, and instead of having the cycle of "change > commit > push > wait > see results" (when you're testing CI specific stuff, not iterating on Makefiles or whatever, assuming most of it is scripts you can run both locally and in CI), you get a URL to connect to while the job is running, so you can effectively ensure manually it works, then just copy-paste whatever you did to your local sources.

comment 10mo ago · link · parent

That's literally point #2, but I had the same reaction as you when I first read point #1 :)

comment 10mo ago · link · parent

Step 0. Stop using CI services that purposefully waste your time, and use CI services that have "Rebuild with SSH" or similar. From previous discussions (https://news.ycombinator.com/item?id=46592643), seems like Semaphore CI still offers that.

comment 10mo ago · link · parent

That's not true though, no one "Has their life ruined forever" because of one off-hand comment. Eventually, social media moves on, and people stop haunting you, if that's what you're encountering.

Great way of avoiding 99% of the harm with that, is literally getting off social media, if that ever happens to you. Most people around you in real-life won't know about it, nor recognize you, or anything else, unless you had a pattern of bad behavior for a longer period of time.

But you can still make mistakes, even online, and eventually people forget about it.

comment 10mo ago · link · parent

I'm guessing you're with that adding indirection for what you're actually processing, in that case? So I guess the counter-case would be when you don't want/need that indirection.

If I understand what you're saying, is that you'll instead of doing:

- Create job with payload (maybe big) > Put in queue > Let worker take from queue > Done

You're suggesting:

- Create job with ID of payload (stored elsewhere) > Put in queue > Let worker take from queue, then resolve ID to the data needed for processing > Done

Is that more or less what you mean? I can definitively see use cases for both, heavily depends on the situation, but more indirection isn't always better, nor isn't big payloads always OK.

comment 10mo ago · link · parent

> Where was that claim made? I don't see it in any Typescript docs, or in the book.

In the article, you know, linked in this submission, which my original comment quoted verbatim. Again:

> > Some of the benefits of TypeScript:

> > Access to ES6 and ES7 features

I'm saying that these are not "benefits of TypeScript" but benefits of doing transpiling in general with a tool that can "downcast" features like that, which is in no way exclusive to TypeScript nor even began with TypeScript, but AFAIK with Browserify.

When I talk about "benefits of language X" I try to keep it to things that are actually about the language, not particular implementation details also broadly available and used by others, because I feel like it'd be misleading.

comment 10mo ago · link · parent

Every choice a company does is a strategy in some way, for some reason, which has been calculated to make them more money than another choice. This is how 99% of businesses work, and Apple as well.

You have any email I could reach out to you on once Apple finally removes the purchase ability for this, and only lets people subscribe?

comment 10mo ago · link · parent

+ purchasing any BMD camera and you usually get a "free" license of DaVinci :) That's how I got my license many moons ago.

Now BMD have "prosumer" cameras available too that doesn't cost half a liver, which the second-hand market seems flush with too, so you can grab really good hardware for "cheap", and get excellent software with it too as the license is movable across hosts :)

comment 10mo ago · link · parent

Hm, yeah, AMD GPUs was a long time ago I owned, only used it myself with either 5950X or 9970X, and either RTX 3090ti or RTX Pro 6000, works great for 4K footage with both of those :) Could be that it works worse with AMD GPUs indeed, that'd suck :/

comment 10mo ago · link · parent

Well, I don't eat popcorn at all, the "skin/shell" gets stuck in my teeth so not worth it :) My wife though loves popcorn, but I don't think she'd ever pour melted butter over them, too health-conscious for that I suppose.

comment 10mo ago · link · parent

> It's the things in the "wat" video.

It's a funny video, still after 15 years of seeing it, I'll give you that. But the number of times I'm bothered by accidentally triggering those scenarios in real-life? Could probably count that on one hand.

I also give you that TypeScript helps beginner JavaScript developers a ton, and that's no easy feat by itself, just because of those things you mention. Once you build up intuition about how things work in JavaScript though, those sort of bugs should stop happening though, otherwise I'd say you aren't really learning the language.

comment 10mo ago · link · parent

> Every repo is owned by a team. Access is only ever per-team.

This is indeed the working pattern, and applies not just to GitHub and organizing teams there, it's a useful pattern to use everywhere. Don't think "Give access to this user" but rather "Give access to this team, which this user is current a part of" and it solves a lot of bothersome issues.

comment 10mo ago · link · parent

> I'm sorry you had that experience.

I'm not, it was something I did on my own volition, I wasn't kicked out, I moved out. So don't be sorry about it, my life would also look 100% different than it is if I didn't, and I love my life, it's better than 99.99% of the people out there so I won't complain about it, nor how I got here :)

> We just can't go through life changing our people whenever they don't live up to what we want them to be.

You can, if you stop "wanting them to be" anything at all, and just treat people like they are instead. And if they're still "bad people", you leave.

> As you get older, please try to find people who you can love unconditionally until you die.

Respectfully, no. That's not the kind of relationship I want with other people, I want people who doesn't love me unconditionally but can tell me straight when I'm doing bad stuff, etc. "Unconditional love" removes that.

I'm glad to have found the people I've found, and stuck with those since we became close. They're hard to find though, and I've met only one such person after turning 30. But I rather have this small group of 4-5 people I can trust to help me bury a body if needed, than spending time with people who feel they have to love me unconditionally. Life just gets easier that way, for me at least. But luckily, there are all sort of people out there, some match with you, some match with me, so we all can live the life we wish :)

comment 10mo ago · link · parent

But here is used in a way of "Yes, I know his views hurt other people, and are more despicable than not, but he's family, what am I supposed to do? I can't ignore them", which is what I'm feeling a bit icky about.

comment 10mo ago · link · parent

> I could never put into words my feelings as well as you just did. I loved his art. I did not love the man.

There is a lot of this in the modern era, and probably will only get "worse". People need to sooner than later be able to reconcile this whole idea of "not liking the person yet can't help but like their art". Back in the day it was easy to ignore, and probably most of the bad stuff was easily hidden, not so much these days.

comment 10mo ago · link · parent

> You don’t choose family

Maybe it's because of my upbringing, and moving away from home when I was about 15, but why not? I think most people could actually "choose family" (or not, if it's better for you as individual). Why stick with people if they're mostly negative and have a negative impact on you? Just because you happen to share 0.0001% more DNA than any other human on the planet?

Not to take away from the rest of what you say, it's a highly personal experience, and I thank you for sharing that heartfelt message to give people more perspectives, something usually missing when "divisive" (maybe not the right word) people end up in the news. Thank you for being honest, and thank you for sharing it here.

comment 10mo ago · link · parent

I don't know much about the Linux Foundation if I'm being honest, even though I've been a 24/7 Linux user for decades, but they seemingly don't have the same image in the ecosystem, at least not close to how people see Mozilla today.

Why is that? Is there lessons to be learned from the Linux Foundation how to actually effectively and responsibly manage that sort of money, in those types of projects?

1
195196197
253