Hacker Newsnew | past | comments | ask | show | jobs | submit | tsegers's commentslogin

I believe that the top-level comment you replied to is making the point that there should not be any authority that either allows or disallows what a user can do with the device they own. Purchasing a device should make one that authority, free to decide how much security to trade for how much privilege.


But really it's all about framing. For example on desktop computers it's not possible for people to create new instructions for their CPU to handle. At some layer there will be an API that user needs to use to interact with the device. As times goes on I think it's natural for that layer that users are expected to interact with their device with to become higher level. I believe the top level comment is framing this issue such that current phones don't have an API that matched how it worked for UNIX computers and that is a bad thing. The commenter is too focused on how things worked in the past and doesn't want to allow for things to change.


I still use it regularly in 2024 to load data onto embedded devices running U-Boot. It saves me a network cable if one is not otherwise required.


I just had to update the firmware my HF radio using xmodem protocol. Tons of modern ham radio gear still using serial data... even the modern ones that connect to your PC via USB, still just a USB->serial device built in.


U-Boot supports Zmodem ?


EDIT: actually not ZModem, but it supports X/YModem -- source code, despite the comment at its beginning, finally says "Sorry, zModem not available yet"

yes and also X/Ymodem, see source code: https://elixir.bootlin.com/u-boot/latest/source/common/xyzMo...

extremely useful feature (I used xmodem in the past, if I remember well)


Did not know that. Indeed it's very useful. Thank you!


As another paying user of Kagi I wonder what prevented you from using another search engine for the six hours that Kagi was unavailable. Search engines are not like your email provider or ISP in that you're locked in.


> I wonder what prevented you from using another search engine

Well, seeing that Kagi was down, I tried to switch to Google by doing "!g xxx" which gave me the same result than my previous "xxx" search.

I took me a few seconds to realize how stupid I was and then typing "google.com" in the address bar.


The thing is, I never thought Kagi was down and thought that it must be a problem with my configuration or connection. That was how much I trusted in Kagi. I didn’t spend whole downtime online though.


Here's what I cobbled together for Arduino [1]. It ain't pretty, but it's short and it works.

[1] https://paste.sr.ht/~tsegers/53adaecd734e7159352f152ac1dcc85...


Looking good for a test run indeed!


I'd argue @ is more suitable for a dereference operation than an "address of" one. It functions that way in an email address too.


Also, then "int @p" would read "integer at p" which is exactly what "int *p" means.


That's precisely what Clojure did, where @foo is syntactic sugar for (deref foo)


So address-of could be an "@" symbol, but upside down.


Or a spanish question mark ¿.


Ah yes - that's true.


Would you say that the Linux kernel is written by mostly "100% subpar C programmers"? Because it's an extremely common pattern to have multiple goto labels at the end of a function.


Yes. There's a reason pretty much every secure C coding standard dictates exact what I said, like CERT C etc. There's a reason they have weird bugs. Just because it's an impressive piece of software, doesn't mean it can't have horrible design pattern written by substandard coders. And in an open source project with as many contributors as Linux, I would say it's not hard to fathom that there's a significant number of substandard people writing code on that codebase. Even MISRA quoted in the article I believe intends that you only have one goto location.

For a big example of substandard coding, see this thread for an egregious wireguard module in BSD. Countless other examples. https://news.ycombinator.com/item?id=33381949


or maybe its that things like a kernel reasonably need to use goto?

or at least at the time it was written, there werent alternatives that were performant enough.


I'm not saying not to use goto. The above example works on any C language, with some tweaks needed to K&R. I've done substantial Kernel work and can tell you that there's no reason to ever break my example and put multiple goto stubs. Can you provide a single situation where it is needed and there's no other alternative? I can't prove the negative you want me to.


I'm not convinced that "more than 1 goto location considered harmful" is any different from "goto considered harmful"

Each has its place. You don't 'need' to use Goto's at all. Your example could be achieved with more flags and if statements.


Either is more charitable, and both are probably closer to the truth.

FYI:

4,879 code results in illumos/illumos-gate for goto

2,587 code results in freebsd/freebsd-src for goto

It's not like any comparable project is immune? Perhaps `goto` says more about how old the code is?


I don't see how the number of goto's is relevant. You're still having alot of goto's in each function in the codebase with SESE and only using one goto location, solely for cleanup and exit.


a more interesting discussion between your point and his would be to show simple examples where each of the views break down. When you're dealing with allocation or handle cleanup, SESE sounds good to me. But with multilevel loop break or continues, even observing SESE I can see room for more gotos. But I don't know what either you or he are talking about.


How are they possibly not the victims after the distributor orders a vast quantity of product, goes MIA for months, and then proceeds to go "whoops, just kidding, here's your stale product back"?


They are victims, but also they are in business that should know what they are doing. This stuff isn't exactly uncommon if you do some research. And that is why they should have been entirely sure what they signed up for. They were not forced to enter this contract, but instead choose to.


Whats the actual difference between sending ten identical low-effort auto-generated emails and ten unique low-effort auto-generated emails?


What is low effort about the email it generated?

I would argue there’s a great deal of effort in having an AI generate an email compared to using an email that was written once and reused.


The unique ones are more likely to inadvertently imply something you didn't intend ...


> So FreeSoftware/OSS people don't work hard?

That's not a fair conclusion from the parent comment at all. Software developers _do_ have the right to prevent their work from being given away for free. Them _choosing_ to develop FOSS is them voluntarily waiving that right.


And most of the small authors think that copyright should not be longer then 5 years, the only one's against it are the big publishers, so as a small author you cannot choose if you want at least a bit money.

But yeah its not a completely fair comparison.


The GPL is not waiving that right. It's attaching a condition that any improvements must also be distributed too. So that's not free as in beer.


Sourcehut's tutorial on send-email is pretty good: https://git-send-email.io/


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: