HNHacker News
TopNewBestAskShowJobs

ramshorns

552 karma · joined September 3, 2016

submissionscomments
ramshorns··on ARM chips have an instruction with JavaScript in the name
What does it mean for the RISC/CISC thing to be dead? The distinction between them is more blurred than it used to be?
ramshorns··on How to Get Fired Using Switch Statements and Statement Expressions (2016)
Cool. So `void f (double a, double b)` is like `f : R^2 -> R^0`, where R^0 is a singleton set.
ramshorns··on How to Get Fired Using Switch Statements and Statement Expressions (2016)
Surely it's because statement expressions aren't part of the standard. But maybe something like GNU source-highlight can handle the extensions.
ramshorns··on How to Get Fired Using Switch Statements and Statement Expressions (2016)
Are void functions not considered functions in functional programming?

I guess in math they're not. Functions have to have a codomain and map some things into it.

ramshorns··on We throw away our power as engineers working for other people
A more interesting conclusion could have been that engineers should use their power to walk away to instead organize together and demand better from their employers.
ramshorns··on There are only four billion floats, so test them all (2014)
Well, if the ceil function failed on 1.0f, maybe even the ordinary numbers are worth testing.

But... would randomness help? Take a representative sample of like 1/64th of the double space and you might run into most of the common problems.

ramshorns··on Software Freedom Conservancy: New Strategy for GPL Enforcement
Is usage the goal? I would think it's better to have, say, 80 devices on the market that use Linux and comply with the GPL and give software freedom to their users, along with 20 devices whose vendors chose to avoid the hassle and used a proprietary or permissively licensed kernel, than to have 100 devices that all use Linux and violate the GPL and give the users no ability to share or modify the software.
ramshorns··on Software Freedom Conservancy: New Strategy for GPL Enforcement
It suggests that vendors would want alternative firmwares to be developed for the hardware they sell. Do you think they wouldn't want that?
ramshorns··on Software Freedom Conservancy: New Strategy for GPL Enforcement
Yeah, though a really strict reading of GPLv2's "the scripts used to control compilation and installation" might suggest that it's not, since maybe the source code has to include the signing key to get it onto the device. But I don't think anyone's dying on that hill, they just made a new license.
ramshorns··on The Unix timestamp will begin with 16 this Sunday
Sounds a bit like leap seconds, except there were 22 leap seconds before 2001.
ramshorns··on Dozens of scientific journals have vanished from the internet
> The authors defined a vanished journal as one that published at least one complete volume as immediate OA, and less than 50% of its content is now available for free online.

Well, this exact definition could have some false positives, like a journal that publishes every third volume as complete open access and keeps the others behind a paywall. But I'm sure they were a bit more careful than it says here.

ramshorns··on Hong Kong mourns the end of its way of life
Yes.
ramshorns··on More than half of 18 to 29-year-olds in the US are living with parents
That functioning housing market might have been an anomaly, only lasting a generation or two. Through history it may have been much more common for most people to never be able to afford to own a home.

Anyway, growth is unsustainable: if housing keeps being a good investment for long enough, sooner or later it becomes unaffordable.

I agree it's a real problem, and we may have to get creative looking for solutions.

ramshorns··on Massacring C Pointers (2018)
Evaluates to?
ramshorns··on Massacring C Pointers (2018)
Is it equivalent? Because that seems to be the only difference between the two editions for the newprint function, and the author says one of them happens to compile.

https://wozniak.ca/blog/2018/06/25/1/code.html

ramshorns··on A word for a value between 0 and 1 (inclusive)
So the word mantissa has two different meanings that show up in really similar contexts. In

  log(120) = log(1.2 × 10²) = 2.079,
you could call both the .079 and the 1.2 a mantissa. The first is in the range [0,1) and the second, aka significand, is in [1,10) for base 10.

And really one mantissa is just the log of the other.

ramshorns··on A word for a value between 0 and 1 (inclusive)
> between 0 and 1 (inclusive) [closed]

Why yes.

ramshorns··on Threema Goes Open Source
If the client app is open source and the messaging is end-to-end encrypted, I would say it's a lot better than being completely closed. The encryption, which you should now be able to verify, means you don't have to trust the server with your message data.

Though, sure, it would be better for the server software to be open source and rehostable too.

ramshorns··on Saying No to unjust computing even once is help
It's good to be reminded that every choice makes a difference and it's not all about being self-consistent. Kind of like how, even though I left home without a mask yesterday, it's still better to wear a mask today than not.
ramshorns··on Saying No to unjust computing even once is help
> I guess I’m just sad that all the tools conpanies are gone or shells of their former selves.

And the tools they made are largely gone with them. The whole point of free software (well, one of the benefits anyway) is that it keeps being useful even after the original programmer stops making it or no one can make money from it anymore.

(And just for fun, since you're mostly talking about money and money wasn't mentioned in the article: https://www.gnu.org/philosophy/selling.html )

ramshorns··on Essential C (2003) [pdf]
> Under the assumption that there are no boolean types from earlier, this is not true

Can you elaborate on this one? I thought && and || expressions always evaluated to 0 or 1.

ramshorns··on Essential C (2003) [pdf]
Yeah, so then you write

    for (size_t i = n-1; i < n; --i) { /* operate on a[i] */ }
It works fine (unsigned overflow is well defined) but it's even less clear.
ramshorns··on Essential C (2003) [pdf]
That's the idiomatic way? Cool. The more straightforward-looking way,

    for(i = n-1; i >= 0; i--)
        { /* operate on a[i] */ }
breaks if i is unsigned, like a size_t.
ramshorns··on Police across Canada are using predictive policing algorithms, report finds
I'm not sure if you're kidding. Of course police presence leads to escalation and more crime, and many places would be much safer without police.
ramshorns··on Police across Canada are using predictive policing algorithms, report finds
The police have shown us that they don't act in good faith. But maybe if we decide to keep them around, these recommendations, along with better civilian oversight to ensure they're actually implemented, will mitigate the dangers of predictive policing.
ramshorns··on Interchange in Houston is the same size as an entire city center in Italy
That sounds like a car problem, not a problem with cities built for foot traffic.
ramshorns··on How I helped fix Canadaʼs Covid Alert app
It'd be nice to see COVID Alert in F-Droid, or somewhere else that doesn't require nonfree dependencies.
ramshorns··on In the Turkish locale, "INFO".lower() != "info"
I see, thanks for the explanation.
ramshorns··on In the Turkish locale, "INFO".lower() != "info"
So maybe if the code is broken anyway for non-ASCII characters, it's fine to use tolower, since somewhere else in the code it ensures that c is a byte.
ramshorns··on In the Turkish locale, "INFO".lower() != "info"
A char in C++ is one byte, right? Is it even possible for this "fixed" code to call ctype::tolower() on something like a UTF-8 or UTF-16 code point?
← PreviousPage 2 of 8Next →