HNHacker News
TopNewBestAskShowJobs

pwdisswordfishz

535 karma · joined June 9, 2024

    const links = Array.from(document.querySelectorAll(':link[href^="vote"][id^="up"]:not(.nosee)'));
    const timer = setInterval(() => {
      const link = links.pop();
      if (!link.matches('.nosee'))
        setTimeout(() => link.click(), Math.random() * 2000);
      if (links.length === 0)
        clearInterval(timer);
    }, 16000);
submissionscomments
pwdisswordfishz··on Researchers find evidence of ChatGPT buzzwords turning up in everyday speech
En dash either, apparently.
pwdisswordfishz··on Unexpected productivity boost of Rust
Which is exactly what happens here!
pwdisswordfishz··on Unexpected productivity boost of Rust
Where exactly?

https://tc39.es/ecma262/multipage/

pwdisswordfishz··on Windows 7 x64 Extended Support Page
That you know of.
pwdisswordfishz··on It’s not wrong that "\u{1F926}\u{1F3FC}\u200D\u2642\uFE0F".length == 7 (2019)
Call me naive, but I think the length of a space character ought to be one.
pwdisswordfishz··on 8x19 Text Mode Font Origins
Later versions used true bitmaps, though.

http://fileformats.archiveteam.org/wiki/Award_BIOS_logo

pwdisswordfishz··on Show HN: I built an app to block Shorts and Reels
Even if you're not logged in? Instagram barely even wants to let me look at the main photo/video of interest without an account.
pwdisswordfishz··on Show HN: I built an app to block Shorts and Reels
> I wanted to find a way to use Instagram without ending up scrolling for two hours every time I open the app to see a friend's story.

Why not just Chrome/Firefox/Safari to open the link instead of the Instagram app?

pwdisswordfishz··on Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
Calling it WYSIWYG is a misnomer: this is just syntax highlighting, it just so happens that the highlighting styles agree to an extent with the final rendering. And the idea is not exactly new: https://mediawiki.org/wiki/User:Remember_the_dot/Syntax_high...

Two issues I saw:

- on my phone, the framerate noticeably drops as I scroll over the widget

- caret positioning within the textarea seems to desync against the letter positions in the highlighted div

And the whole concept severely constrains the styling choices that could be applied to the highlighted output, but I suppose that was a given.

pwdisswordfishz··on MS-DOS development resources
Not mentioned is the https://pcjs.org/ site which purports to let you emulate various machines in your browser, select from different disk images, and overall seems full-featured, though it is confusing and presents some difficulty when trying getting it to work on some configuration besides the pre-baked ones that you can come across.
pwdisswordfishz··on The Timmy Trap
Review? Where does it say anything about the quality of the film?
pwdisswordfishz··on Should we remove XSLT from the web platform?
As if oligopolization of the browser space wasn't a deliberate objective of the WHATWG.

I would rather have them deprecate the HTML syntax, which is a nightmare to parse, nightmare to escape for ( https://sirre.al/2025/08/06/safe-json-in-script-tags-how-not... ), and nightmare to securely transform (CVE-2020-26870). Now that MSIE is dead, all mainstream browsers support XHTML just fine; compared to HTML, XML is much, much simpler to make a new implementation of; and few people generate markup by printf any more.

pwdisswordfishz··on How to safely escape JSON inside HTML SCRIPT elements
> deep in my heart I still think HTML should be valid XML

Never was, never will be. Just write XHTML instead.

pwdisswordfishz··on F-Droid build servers can't build modern Android apps due to outdated CPUs
Debian also seems to have given up.
pwdisswordfishz··on How to safely escape JSON inside HTML SCRIPT elements
Or you can use JSON.parse with a string literal on the client side. Which is, surprisingly, more performant than parsing at compile time.

https://www.youtube.com/watch?v=ff4fgQxPaO0

pwdisswordfishz··on UI vs. API. vs. UAI
lol CVE-2020-26870
pwdisswordfishz··on Generic Containers in C: Safe Division Using Maybe
Destructible. Opportunistically making it trivially destructible does the trick.
pwdisswordfishz··on Women dating safety app 'Tea' breached, users' IDs posted to 4chan
This is not irony.
pwdisswordfishz··on “Tivoization” and your right to install under Copyleft and GPL (2021)
What's a hundred-dollar word?
pwdisswordfishz··on How to make websites that will require lots of your time and energy
> Very (very, very) few large projects use plain JS (instead of TS) these days. Let's stop acting like all these people don't know what they're doing.

There are much better arguments to use TypeScript than "five billion flies can't be wrong". Most other popular tech choices are in fact rather silly.

pwdisswordfishz··on How to make websites that will require lots of your time and energy
Put a cryptocurrency miner on it; that will literally require lots of time and energy.
pwdisswordfishz··on Hulk Hogan Has Died
> But the impact of the lawsuit was basically that if a billionaire has a vendetta against your media org they can fund a lawsuit even if they are in no way involved.

How is that different from what was before?

pwdisswordfishz··on Show HN: Tinder but it's only pictures of my wife and I can only swipe right
What do you do when every restaurant swipes left on you?
pwdisswordfishz··on The borrowchecker is what I like the least about Rust
The point about inter-procedural borrow checking is fair -- and in fact not a matter of "sufficiently smart" borrow checker, but a rather fundamental type system limitation. But the flaw here is pretty manageable -- sometimes you can get away with calling .split_at_mut(...), sometimes you can borrow the field directly instead of going through a wrapper method, sometimes you have to be mindful to provide a split_at_mut equivalent yourself. Last I checked there was some work being done on "partial borrows", which could solve this.

Most of the other criticisms are pretty disappointing, though.

> The following example is a famous illustration of how it can't properly reason across branches, either:

Except that function body would have been better rewritten as map.entry(key).or_default() -- which passes the borrow checker just fine and is more performant as it avoids multiple lookups. I suspect many other examples would benefit from being re-written into higher-level primitives that can be easier to borrow-check in this manner.

> But what's the point of the rules in this case, though? Here, the ownership rules does not prevent use after free, or double free, or data races, or any other bug. It's perfectly clear to a human that this code is fine and doesn't have any actual ownership issues.

What if Id represents a file descriptor that ought to be closed when the value ceases to exist? Or some other type of handle? This is an ownership problem: these are not limited to memory safety issues. For very good API stability reasons, without an explicit #[derive(Clone,Copy)] the compiler is not free to assume the type represents pure information that can be copied at will, but can only treat it as one potentially containing owned resources, that just happens not to include any at this time.

> References to temporary values, e.g. values created in a closure, are forbidden even though it's obvious to a human that the solution is simply to extend the lifetime of the value to its use outside the closure.

Which is to say, to what? The type signature does not say whether a closure will be called immediately or in another thread after two hours. And in which stack frame should the value be stored, the soon-to-be-exiting closure's?

pwdisswordfishz··on The borrowchecker is what I like the least about Rust
> nicer simpler Java

Ironically, Java was sold as a "nicer simpler C++".

pwdisswordfishz··on The borrowchecker is what I like the least about Rust
if err != nil every few lines is hardly "more concise"...
pwdisswordfishz··on Xbox Hacks: The A20 (2021)
I was confused as to why Xbox would ever enable a feature intended for backwards compatibility with systems it does not need to be compatible with. Especially at boot time. Turns out it did not; this apparently required a hardware modification to pull off.

https://xboxdevwiki.net/Exploits#A20M.23_hack

pwdisswordfishz··on Gaslight-driven development
I wonder if it's GDPR-compliant.
pwdisswordfishz··on Light exposure at night predicts incidence of cardiovascular diseases
Did they control for coffee drinking?
pwdisswordfishz··on Phrase origin: Why do we "call" functions?
Eh, "return" is just a very restricted continuation with special syntax… it's a stretch to say you "call" it, but not unjustified.
← PreviousPage 2 of 9Next →