HNHacker News
TopNewBestAskShowJobs

dpassens

429 karma · joined June 5, 2021

submissionscomments
dpassens··on Writing a Rust compiler in C
I'd argue that it follows the CPU's native integer representation, which C also does. Yes, if your language uses tagged integers or something, you'll have to marshal the syscall arguments/results from/to your own representation, but the same is true if you want to use those integers for arithmetic (beyond trivial additions or multiplying/dividing by a power of two, for which you can use lea).
dpassens··on Writing a Rust compiler in C
That is not true on Linux, where you can just make syscalls yourself. They don't even use the C ABI, even if it's pretty similar (For syscalls, the fourth argument is passed in R10 instead of RCX, since that holds the return address for sysret).
dpassens··on Serpent OS Pre-Alpha-0 released
MacOS is not a Linux distribution, though.
dpassens··on Small Strings in Rust: smolstr vs. smartstring (2020)
But the return value guarantee is, as far as I can see, a C++11 change, so you can't ignore those. And as of C++11, c_str is noexcept, so it cannot allocate anything.
dpassens··on I'm tired of fixing customers' AI generated code
I don't really know how to point this out without sounding rude and obnoxious, which is not my intention, but it's "per se" (Latin for by itself), not "per say".
dpassens··on I'm tired of fixing customers' AI generated code
One is that the variable is called openFile and not f. I don't know enough python to see something else wrong with that but would love to know too, since I've written such a line just last week.
dpassens··on Agenda: a personal information manager (1990) [pdf]
It's not a good thing. Desktop apps that don't adhere to the UI/UX conventions of the platform they run on almost universally suck.
dpassens··on Adding the "Move to Trash" function to System 7.1
But he's not modifying the code, he's just changing one ASCII char for another. And if you take a look at the hex editor screenshot, you'll see that it's not even inside the code, but rather surrounded by the menu entry names.
dpassens··on Weird monitor bugs people sent me in the last 5 years (2022)
I have had this problem several times on Linux, with different monitors, so it seems that it can actually happen on every OS.
dpassens··on Weird monitor bugs people sent me in the last 5 years (2022)
Because unlike rooms and doors, you can switch what port a monitor is connected to.
dpassens··on How much faster are the Gnome 46 terminals?
The entire point of POSIX is that, if you only use what it defines, your program automatically becomes cross-platform, because it will run on several Unices, as well as other systems (like Haiku).
dpassens··on How much faster are the Gnome 46 terminals?
To me, it seems like the people thinking inside the box are those that claim that cross-platform necessarily implies it runs on Windows.
dpassens··on How to found a company in Germany: 14 "easy" steps and lots of pain
What continent did they move to instead?
dpassens··on Writing Gnome Apps with Swift
Transmission uses Qt on Windows, either GTK or Qt on Linux, and something AppKit on macOS.
dpassens··on Bluesky's stackable approach to moderation
Sounds like the answer is in the next part of that sentence:

> another client can choose a different primary Labeler

So you can overrule the moderation, but not if you use the official client.

dpassens··on How to become a pirate archivist (2022)
Regarding youtube-dl specifically, it's only very little additional effort if you're already comfortable using a terminal.
dpassens··on World War II 'rumor clinics' helped America battle wild gossip
In my personal experience, most of them do so precisely to be affirmed, not to have their minds changed. Because what are upvotes, if not affirmation? Even better if you manage to convince the other person, but that's entirely optional.
dpassens··on The KDE desktop gets an overhaul with Plasma 6
That seems to depend on the specific version of Office, if the screenshots I looked at are to be believed. Office 2016, for example, doesn't seem to have it.

Edit: Maybe this depends on settings rather than versions? Upon further investigation, I've found some screenshots of Word/PowerPoint 2016 that have a search bar and some that don't.

dpassens··on The KDE desktop gets an overhaul with Plasma 6
It also annoys infrequent users, because you need to remember into which ribbon they stuffed what you want to do and what icon it uses. With a classical menu bar, the organization tends to be more intuitive (in my experience, at least) and you can skim the different menu items to find what you need.
dpassens··on Serving my blog posts as Linux manual pages
The correct media type would be text/troff, as per RFC 4263 (https://www.rfc-editor.org/rfc/rfc4263.html).
dpassens··on Calyx: Intermediate Language for Hardware Accelerators
But that's a relative link, so if you're using HN via HTTPS that will be an HTTPS link as well. Downloading the paper redirects you to http://rachit.pl/files/pubs/calyx.pdf, a plain HTTP link.
dpassens··on Insecure Features in PDFs (2021)
But how do the special file names cause security issues? Or are they just an example of general cruft?
dpassens··on Ask HN: Nitter officially declared "over" today – alternatives?
On New Reddit. I haven't seen any on Old Reddit yet.
dpassens··on 525 Private jets departed Las Vegas after the Super Bowl ended
> Personally I don't want plastic trash polluting the environment.

Ban throwing them into the environment, then. I've never thrown my plastic straws into the ocean, that happens further down the line of trash disposal. So why should I be the one who's punished for it?

dpassens··on Should error messages apologize? (2013)
Is "Would you like some more?" really a good example here? It's not really implying that the person asked ought to eat more, is it?
dpassens··on Japan's Comfort Food: The Onigiri
Eggs and milk are vegetarian, just not vegan.
dpassens··on IDEs we had 30 years ago
The point still stands, though. You need a roundtrip, even if it starts from the X server rather than the X client.
dpassens··on Unveiling the big leap in Ruby 3.3's IRB
No, you couldn't. If running the code is too dangerous, then so is running the unit test suite. You'd have to prove that it doesn't do anything observable, like accidentally deleting your home directory, or, if the code is actively malicious, uploading your SSH key somewhere. And if you can do that, you probably also have enough information to provide good completion without running the code.
dpassens··on OpenBSD: Removing syscall(2) from libc and kernel
Only on systems where the syscall ABI is stable, like on Linux. Others, like macOS and Windows[0], can and will change theirs between releases. OpenBSD even goes one step further and actively prevents code other than libc from performing syscalls[1]

[0] I seem to remember that this changed in a recent Windows version, but I couldn't immediately find a source.

[1] msyscall(2) or, if you don't have an OpenBSD system at hand, https://man.openbsd.org/msyscall

dpassens··on Copilot regurgitating Quake code, including sweary comments
Copilot seems to be an AI tool to generate code for you[0]. In the gif, it's copying code from Quake, which is GPLv2 or later. If copying GPLed code wasn't bad enough, it then adds a MIT-like license header.

[0] https://copilot.github.com/

← PreviousPage 5 of 6Next →