HNHacker News
TopNewBestAskShowJobs

Zamiel_Snawley

364 karma · joined July 28, 2022

submissionscomments
Zamiel_Snawley··on "No way to prevent this" say users of only language where this regularly happens
At this point in time, I really don’t think there is a replacement for C in embedded systems.

It’s been a while since I’ve looked, but the rust frameworks for STM32 are so much harder to use for directly interacting with memory mapped registers and DMA.

Zamiel_Snawley··on Weather forecasts have become more accurate
How does mm wave 5G effect forecasts? Interfering with weather radar?
Zamiel_Snawley··on Weather forecasts have become more accurate
Which forecasts have become worse in Boston? 24 hour, 5 day, all of the above? This is surprising to me, because even when traveling across the USA, I've found the predictions to be very useful.
Zamiel_Snawley··on Weather forecasts have become more accurate
This article mostly discusses longer-term forecasts, but I have also been impressed with the quality and reliability of imminent-storm alerts. They have saved me from getting drenched in a rain storm or allowed me to pull off the road for a break before a downpour.

It doesn't get a ton of press, but as this article highlights, progress has been steady and significant.

This article asserts that improving forecasts in low-income countries is underrated--does anyone know of studies that predict the impact better forecasts would have? Helping the poor with tech seems like the kind of project that many philanthropists could get excited about, and hopefully more effective than gravity lights and the like.

Zamiel_Snawley··on Forty years of programming
Caps lock is such a waste of prime keyboard real estate, even for non-vim users!

For those who don’t use vim, just switching caps lock and control is probably better so you can copy and paste with less contortion.

For vim users, I highly recommend remapping caps lock to be control when held, and escape when tapped.

Zamiel_Snawley··on Nim 2.0
You have convinced me to look in to Nim! Can you speak to the build system(s)? CMake is the bane of my existence.
Zamiel_Snawley··on Ice core scientists in East Greenland reach bedrock
Surely you mean 10cm?
Zamiel_Snawley··on Red Programming Language
Is the intended workflow to use dynamic linking when developing, and static(if you want it) for release?

If so, that sounds reasonable to me.

Zamiel_Snawley··on Space After Periods (1993)
Funnily enough, I can still understand your message without white space, it is just harder to parse. Doesn't that undercut your statement?
Zamiel_Snawley··on Bypassing Readout Protection in Nordic Semiconductor Microcontrollers
Thanks for the reply! I'd love to read more about your obfuscation techniques, I was under the impression that obfuscation is largely ineffective.
Zamiel_Snawley··on Bypassing Readout Protection in Nordic Semiconductor Microcontrollers
> specialized solutions are needed that provide protection even after the code was extracted.

Anybody know what solutions they are hinting at here? Obfuscating binaries? Some kind of encrypted flash with on-the-fly decryption(but the decryption key would be protected by the same inadequate ROP)?

Neither of these seem effective nor practical.

Zamiel_Snawley··on Cicada: Private on-chain voting using time-lock puzzles
Yes [0][1].

[0] https://www.usenix.org/system/files/conference/evtwote13/jet...

[1] https://youtu.be/Cl8q_356zZs?t=3013

Zamiel_Snawley··on StackRot (CVE-2023-3269): Linux kernel privilege escalation vulnerability
While I agree in principle, I have tried a couple times(admittedly not very hard) to learn how to use seL4 and it seems unready for prime time.

I don't think POSIX is the end-all-be-all, but it is what I and many others are familiar with, and seL4 has practically nothing in common with it.

The design is just too foreign to get going quickly, and the opportunity cost of learning their way to do things is too high in almost all cases.

One day I hope to have the time to dedicate to learning it properly!

Zamiel_Snawley··on Writing Python like Rust (2020)
And also, returning errors by value does not introduce hidden control flow! In python, you have no way of knowing what(if any) exceptions that a function may throw, so unless you catch everything you have no way of knowing where execution will end up after calling a function.

Not to mention the intentionally(!) thrown exceptions for iterators. In my book, exceptions are goto by another name.

Zamiel_Snawley··on The Power of 10: Rules for Developing Safety-Critical Code [pdf]
There is something ironic about there being an obvious typo in the subtitle(domponents instead of components).

Regardless, I think these are generally good guidelines, but I'd not call the rules. Sometimes you really need the C preprocessor. For example, for compile-time assertions in C99.

Zamiel_Snawley··on Testing the memory safe Rust implementation of Sudo/Su
Is there evidence that this was a concerted marketing effort? That behavior seems pretty consistent with the normal culture of the sector, vim vs emacs comes to mind.

I have found rust difficult to learn, and I continue to develop and maintain embedded systems with C. I say this not to distance myself from rust, but to indicate my neutrality on the subject.

Zamiel_Snawley··on Testing the memory safe Rust implementation of Sudo/Su
I suppose my point was that Ada had missed it's shot-by the time GNAT came out, the buzz of an exciting new language expired before people could easily use it.

I'm not familiar with the marketing that Mozilla did, but whatever they did it does seem to have been effective. However, I do think that the Ada mandate by the DoD would be equivalent or more effective in kick-starting an ecosystem.

Zamiel_Snawley··on Testing the memory safe Rust implementation of Sudo/Su
I'm not sure, I only see static analysis and fuzzing workflows in the CI on GitHub [1].

[1] https://github.com/millert/sudo/actions

Zamiel_Snawley··on Testing the memory safe Rust implementation of Sudo/Su
And yet, Rust is being taken seriously in many places where those languages have been unable to displace C. I wonder if it hadn't taken 15 years for a FOSS Ada compiler to become available, maybe it would have taken off.
Zamiel_Snawley··on Testing the memory safe Rust implementation of Sudo/Su
As others have mentioned, there is a long list of sudo CVEs that are unrelated to memory safety. I didn't see it mentioned in the article, but I hope that they have mined the CVEs for tests to ensure they don't accidentally reintroduce a known vulnerability. I was also surprised to see no mention of tests originally written for ogsudo, surely there are some?

Overall, I appreciate the rewrite-it-in-rust 'movement', I think it is an excellent learning opportunity for people who may not otherwise bother with learning the details of the foundations of our modern systems. And, as in this case, taking a detailed look at the original can improve the original.

Zamiel_Snawley··on False 911 Calls Increase During Festival as iOS Mistakes Dancing for Car Crashes
Automated burglar alarms are generally supposed to stop unattended property crime, not save lives. Fire alarms get an automatic and immediate response because it is a life threatening emergency, just like a car crash.
Zamiel_Snawley··on False 911 Calls Increase During Festival as iOS Mistakes Dancing for Car Crashes
Automated security alarms are for protecting property, not saving lives.

This is much more like a fire alarm, which does trigger an automatic response.

In my view, we should be more lenient with false alarms when it could save someones life, compared to stopping theft.

Zamiel_Snawley··on Reddit subs with millions of followers plan to extend the blackout indefinitely
Web scraping is protected by law[1], analogous to physically taking a picture in public.

If they don't want people scraping their site, they can require an account and EULA.

[1] https://techcrunch.com/2022/04/18/web-scraping-legal-court/

Zamiel_Snawley··on Reddit subs with millions of followers plan to extend the blackout indefinitely
Agreed, writing a scraper is simply worth the cost to get the training data.
Zamiel_Snawley··on Reddit subs with millions of followers plan to extend the blackout indefinitely
Honestly, if they were just screwing developers of third party frontends, people probably wouldn't have cared that much.

They are also screwing their moderators who use API-based tools, and people who need accessibility accommodations that reddit does not provide.

Not to mention the scummy behavior towards the Apollo developer.

Zamiel_Snawley··on Reddit subs with millions of followers plan to extend the blackout indefinitely
If they had made prudent allowances for uses of the API other than 3rd party frontends, this likely would have been a much smaller deal.

Moderators(who are doing tons of free work to make reddit a tolerable place) use API based tools to help them moderate. If reddit is going to make their (volunteer!) job harder, why shouldn't they just pack up and leave?

The official reddit app reportedly does not make adequate accommodations for some disabled users, but dedicated third party developers did. They later said that they would give exemptions for accessibility use cases, but stipulated that they could not charge for their service. Some people the perceived this as: "we won't make our app accessible, we'll give permission to do free labor for us if you want, but don't you dare try to get paid for it."

Then there is the disingenuous interactions with the Apollo developer.

All-in-all, people think that reddit is acting in bad faith.

Zamiel_Snawley··on FTX tapped into customer accounts to fund risky bets, setting up its downfall
One thing to note is that FTX.us is an affiliated company that is onshore in the US, that does have compliance requirements, and FTX.us is currently not believed to be insolvent/bankrupt. *This may not be true, there are rumors that I haven't looked into that FTX.us is halting withdrawals, which does not bode well.*

FTX.com is some conglomeration of entities incorporated in Antigua, Bermuda, and the Bahamas[1]. FTX.com is the one that has blown up, and I won't pretend to know about the reporting requirements of such a complicated structure in multiple jurisdictions.

Also, Sam Bankman-Fried owned 90% of Alameda Research as of last year. So unless that changed(I can't find evidence it has), it looks to me like he tried to bail himself out with customers' money. Presumably he thought he could return the money eventually and no one would be the wiser. So much for that.

This is just my understanding and I am not an expert in these things.

[1] https://help.ftx.com/hc/en-us/articles/360056976411

[2] https://finance.yahoo.com/news/ftx-ceo-sam-bankman-fried-pro...

Zamiel_Snawley··on New integer types I’d like to see
I agree, this could be a good solution for a lot of situations. People fret about the performance impact, but I'm confident that clever engineers could come up with a way to treat numbers within the typical range(say, signed 64 bit) just as they are today, but if an operation would go out of bounds do the expensive, arbitrary length operation. Emitting some kind of extra warning when those expensive operations are actually done would also be nice.
Zamiel_Snawley··on IPv6 support for cloning Git repositories?
I believe Gitlab does support IPv6.
Zamiel_Snawley··on Lua, a Misunderstood Language (2021)
Embedding Lua instead inventing your own DSL is often the right choice. Two projects that come to mind in this respect are Neovim/Vim and AwesomeWM/i3.

Neovim and AwesomeWM use Lua for configuration and scripting instead of inventing their own language/format. Vim and i3 do have their own languages.

I really like having the same basic tools for scripting in multiple programs.

← PreviousPage 4 of 5Next →