HNHacker News
TopNewBestAskShowJobs

ancarda

2,456 karma · joined February 10, 2013

submissionscomments
ancarda··on PHP 3.0 Final is out (1998)
I meant expressive enough that you don't need DocBlocks as often. We're nowhere near being done, PHP still lacks proper Generics and Algebraic Data Types. Recently we got Union Types (8.0) and will soon have Enums (8.1).

If you really needed generics today, you can do it with DocBlocks and static analyzers like PHPStan: <https://phpstan.org/blog/generics-in-php-using-phpdocs>. I'm hopeful that in the future, you won't need a DocBlock for that.

As for ADTs, there's some on going discussions here: <https://wiki.php.net/rfc/adts> which would build upon the existing support for Enums (8.1). I'm really looking forward to being able to have something resembling Optional/Maybe.

I'm by no means saying what PHP has is enough today, just that it's less limited than it was a few years ago. It'll be even less limited in the future.

ancarda··on PHP 3.0 Final is out (1998)
> The standard function naming and argument ordering is inconsistent and stupid

This is quite hard to fix, as it would break almost everything. So you'd end up with a Python 3 situation. However, as of PHP 8, it's less of an issue. If you can't remember the order for arguments, you can use named arguments <https://3v4l.org/cY1PB> like so:

    strpos(needle: "foo", haystack: "foobar")
> It throws errors written in Hebrew

If you're referring to T_PAAMAYIM_NEKUDOTAYIM, this is no longer true as of PHP 8: https://3v4l.org/2T8qQ -- the error is just this:

    Parse error: syntax error, unexpected token "::", expecting end of file
Internally, the token is still called T_PAAMAYIM_NEKUDOTAYIM, but you can also refer to it by T_DOUBLE_COLON: <https://www.php.net/manual/en/tokens.php> and I suspect eventually they'll phase out the Hebrew spelling.
ancarda··on PHP 3.0 Final is out (1998)
Double spaced lines of code? What do you mean?

FWIW, I no longer use DocBlocks because PHP's own type system is usually expressive enough.

ancarda··on The Amish as a source of tech-savvy guidance
What do you mean? I tried looking up what a mechanical lock is, it's not clear to me. Would it be bad for a locksmith to sell one to you?
ancarda··on Dear EU: Please Don't Ruin the Root
How would this even work? Don't the root servers just help you find TLDs? To take down example.com, they'd have to take down .com, right?
ancarda··on Ask HN: I bought Voltaren at the chemist, now Google shows me ads for it. Why?
Huh didn't know about these, thank you! I'll look into them
ancarda··on Ask HN: I bought Voltaren at the chemist, now Google shows me ads for it. Why?
>Why? Not sure

Maybe they are sick of surveillance capitalism and don't wish to be part of it?

I'd do the same, but I really don't want a flip phone. Maybe once Pine Phone with GNU/Linux is working reasonably well, I'll switch to that.

ancarda··on Ask HN: I bought Voltaren at the chemist, now Google shows me ads for it. Why?
>Because credit card rewards aren’t free

So this isn't covered by the 1-3% transaction fee the merchant pays every time you use your card?

>Most consumers are okay with this trade off

No they aren't. Most consumers aren't even aware they are paying with their privacy, so you cannot take a low opt-out rate to mean high levels of consent.

ancarda··on Ask HN: I bought Voltaren at the chemist, now Google shows me ads for it. Why?
>VISA marketing

Why is this even a thing? Maybe I should just go back to buying everything with cash, it's impossible to keep up with all the crap we need to disable or hack around

ancarda··on TTS: Text-to-Speech for All
Will there be a wide choice of accents? The link in the README <https://erogol.github.io/ddc-samples/> seemed to only have a single voice
ancarda··on French lawmakers approve a ban on short domestic flights
>Cheap flights are a market failure

Could you explain this? I'm struggling to understand how something becoming very cheap can be considered an (economic) failure? Isn't that something the market optimizes for?

EDIT: Perhaps you mean expensive rail is a market failure?

ancarda··on TLS Mastery
Anyone know if the book covers ESNI? Or if there's a good resource on how to set that up with Nginx, CloudFlare DNS, and Let's Encrypt?

EDIT: Okay, it looks like this is not yet ready for most people to use.

ancarda··on My NAS exposes itself over the internet without permission
Do you have a router you recommend? Ideally something running free software
ancarda··on To prevent burnout, LinkedIn is giving its entire company the week off
Is that the case for all websites? I wouldn't be surprised if some particularly abusive websites are exploiting a bug to keep their videos playing
ancarda··on To prevent burnout, LinkedIn is giving its entire company the week off
If you're using Firefox you can block autoplay: Settings > Privacy & Security > Permissions > Autoplay > Block Audio and Video

Not sure about Chrome, but it may have a similar option.

ancarda··on The Norway Problem
You can catch this with yamllint (https://github.com/adrienverge/yamllint):

    % cat countries.yml 
    ---
    countries:
      - US
      - GB
      - NO
      - FR

    % yamllint countries.yml 
    countries.yml
      5:4       warning  truthy value should be one of [false, true]  (truthy)
ancarda··on Gemini Space
The NSA isn't allowed to spy on American citizens, so they get the GCHQ to spy on Americans and they exchange data on British citizens in return.

You literally have a government helping another government to break the fucking law. Not to mention it's illegal to not pay your taxes, and yet almost every big company does.

So I'm just not convinced the solution can be as simple as "just enact legislation".

We need a technical solution. Even if you want legislation, a technical solution is good to act as another layer of protection.

Technology can be checked -- by reading the source code or inspecting network traffic -- to make sure you're not being spied on. That's vastly superior to any solution that expects people to pinky promise to not do anything bad.

ancarda··on Gemini Space
If you approach that question as a developer, it makes sense. Why not just restrict yourself to a subset of HTML+HTTP, which is what many people do.

However, as a user, I can't be sure what's behind each URL. Does communitywiki.org require JavaScript? Do they set cookies? Do they violate my privacy with telemetry and analytics?

If I see a gemini:// link, I know the answers to all of those questions -- they don't because they can't, not because they choose not to.

ancarda··on Gemini Space
TLS is mandatory because one of the design goals of Gemini is privacy.

Thankfully, TLS is a well supported protocol. There's quality implementations in basically every programming language.

ancarda··on Gemini Space
I agree that technology shouldn't be used to solve social problems, but in some ways, the problem Gemini aims to solve is technical -- software and network protocols permit surveillance. We should be moving towards systems that have privacy-by-design rather than privacy-by-policy or privacy-by-convention.

I don't see how a social solution would work -- do we just make analytics, telemetry, etc... illegal? And then watch as people break the law or do what they did with GDPR: implement just enough to follow the letter of the law, but completely ignore the spirit of the law?

The sole case I can think of is GitHub removing cookies when you're not logged in so they never have to show a cookie banner. One exception among thousands of cookie banners and GDPR violations.

There is no social solution to surveillance.

ancarda··on The Ambiguous Utopia of Iain M. Banks (2009)
>this kind of Utopian life isn't terribly interesting for the plot of a novel

If it's not interesting to read about, are we sure it'll be interesting and enjoyable to live that way? Why do we find conflict interesting to read?

ancarda··on Calc.exe is now open source; there’s surprising depth in its ancient code (2019)
i don't want to live on this planet anymore.gif
ancarda··on Calc.exe is now open source; there’s surprising depth in its ancient code (2019)
A loading screen and telemetry? For a fucking calculator?

What happened to software...

ancarda··on OpenSSL will release a high-severity issue fix on 25th
Any idea when rustls will hit 1.0? I feel a little unsafe using a <1.0 library because (assuming it's following SemVer) as it might not be "done"/production ready and the API might change a lot before it hits 1.0.
ancarda··on OpenSSL will release a high-severity issue fix on 25th
You're right there's a lot of tools out there to help with writing secure code in C. I suppose I feel safer knowing Rust enforces some memory safey, but that isn't guaranteed either -- you could just use unsafe{} blocks everywhere.
ancarda··on OpenSSL will release a high-severity issue fix on 25th
What do you need TLS 1.0 support for?
ancarda··on OpenSSL will release a high-severity issue fix on 25th
>in those days people used to smoke carcinogens for their taste, drive their own cars and treat mental disorders with an ice pick in the prefrontal cortex

Do you imagine a future where nobody is able to drive cars? Not even for fun?

I want all serious software that's written in C to be replaced with something like Rust, but I write C for fun. It's fun to do dangerous things. It's just bad to have danger as the modus operandi.

ancarda··on In 2020, two thirds of Google searches ended without a click
Doesn't DDG do the same thing? DDG will show a snippet from Wikipedia, has a built in calculator, built in timer, and so on...

Sure, Google also has a flight tracker widget, but it's not that much worse than DDG. If you really want no widgets or inline responses, https://www.startpage.com/ has that.

EDIT: Startpage does have a time widget (search for "time in <some place>"), but doesn't have a calculator, timer, or literally anything else. How odd...

ancarda··on Poll: Do You Have IPv6?
Clickable links:

* https://www.akamai.com/uk/en/resources/our-thinking/state-of...

* https://test-ipv6.com/

ancarda··on Hackers used zerodays to infect Windows, iOS, and Android users
Could I make a suggestion? It'd be great if it were possible to white-blacklist all web features? We can do this for some features like location, but I can't selectively turn off images, JavaScript, or web fonts (only globally).

It might be nice to have a prompt like "This page wants to use a web font" like how you get for location. I realize that may be a lot of work to add in though.

Really, I'd just like to re-enable webfonts on Netflix so the subtitles don't look like garbage, but keep the fonts off on almost all websites. If anyone at Netflix is reading this, please fallback to something like sans-serif and not serif.

← PreviousPage 2 of 27Next →