HNHacker News
TopNewBestAskShowJobs

pdenton

764 karma · joined October 4, 2020

submissionscomments
pdenton··on Lapce – Fast open-source code editor
I believe an open source editor should be built from source and I couldn't find links to sources or how to build from source on the website. The getting started documentation points to the download section. It would be cool if one of the downloads would be marked as source (for any OS).
pdenton··on Linux from Scratch

    > The LFS system will be built by using an already installed Linux distribution
It would be totally cool if there wasn't a chicken-and-egg problem with LFS, imho. I've tried to cross-build it from OpenBSD but failed miserably.

https://trac.clfs.org/wiki/download if anyone else wants to attempt this

pdenton··on Analysing the AI of Super Mario 64
This is what I loved about Deus Ex, actions had consequences. Too bad it didn't catch on with later games.
pdenton··on PHP Pipes in 156 Bytes
Here's my version:

    function pipe($callables) {
        return array_reduce($callables, fn($carry, $callable) => call_user_func($callable, $carry));
    }
Whenever a method merely calls other methods in sequence, returning the result of the last call, it's just too easy for me to simply use a pipe function. I guess it's mostly a matter of preference.
pdenton··on Things you don't need JavaScript for
On my previous project I used an anchor for the menu button, and the :target selector to make the menu visible. If JavaScript is loaded, it takes control. But without JS, it still works.
pdenton··on Things you don't need JavaScript for
Here's a starting point: https://www.w3.org/WAI/tutorials/carousels/
pdenton··on MDN Redesign
I'll just use zeal from now on and never update it. It was fine earlier today, but now it's awful. There was nothing wrong with the old design.
pdenton··on OpenSSH 8.9
Has anyone else ran into cheap hosting providers where scp would work but sftp doesn't? I hope this change will make them reconsider their configuration.
pdenton··on Nvidia DLSS Source Code Leaked
Apparently, DLSS means "Deep Learning Super Sampling".
pdenton··on F-Droid – alternative to Google Play store
FLOSS is only political in the sense that it's not. For example, given freedom 0, you may use the software at an abortion clinic. No matter what the author thinks of abortion.

It's weird and arbitrary to ban Gab, but not TorServices and related Tor apps.

pdenton··on Lenovo announces the first Arm-based ThinkPad
Thank you for recommending Fedora. However, I'm on Void for the past 7 years now (whew time flies!). I'm not planning on switching to any distro that has systemd.

I suppose I could still use the live environment as a Linux bootstrap for installing my favorite distro, though.

pdenton··on Lenovo announces the first Arm-based ThinkPad
Just Fedora or any aarch64 distro? I thought aarch64 meant raspberries.
pdenton··on Lenovo announces the first Arm-based ThinkPad
But do they run Linux?

ThinkPads were always great for Linux and I've been happy with them ever since I can afford them (6 years now).

pdenton··on Win32 is the stable Linux userland ABI (and the consequences)
It was an autorun program which would offer a list of what's on the CD along with some images whenever one of the items was selected.

I've found a good reference here: https://github.com/mity/old-new-win32api

The message loop (using MsgWaitForMultipleObjectsEx) was somewhere around 20 LOC, to enable all the things that the application had to do (including correct handling of dialogs). I don't count that as getting out of my way.

pdenton··on Win32 is the stable Linux userland ABI (and the consequences)
Which have very sparse documentation, but do work just fine.

Win32 covers a lot more than xlib, athena and motif. And still I have to resort to porting over bits and pieces from the FreeBSD C library because in a pure win32 project (no msvcrt), things are missing.

The thing is, getting all the details right requires extensive research and a lot of extra nonsense that shouldn't be necessary. For compatibility, accessibility, consistency, etc. Sometimes it's amazing things work at all.

pdenton··on Win32 is the stable Linux userland ABI (and the consequences)
Too bad win32 is such a finicky and verbose API that's painful to use for anything beyond the simplest of dialogs. I tried. The MSDN documentation doesn't quite cut it. TheOldNewThing by Raymond Chen is a must-read to get it right.

But above all, a stable ABI is only needed for proprietary programs which I abhor for not being FLOSS. As a programmer, I really do think the 4 freedoms are important and loathe anything non-compliant.

pdenton··on Thunderbird’s New Home (2020)
Edge is proprietary and thus completely unacceptable. MSFT has hundreds of billions of dollars, surely they can make a web application work with Firefox. Testing it only in edge is sheer arrogance.

I begrudgingly use chromium whenever there's a meeting in wretched Teams. It's only because I'm using a reasonably new Thinkpad that it even works at all. My previous computer wouldn't even run chromium.

pdenton··on Thunderbird’s New Home (2020)
It doesn't just skip key presses, it actually invokes commands as I'm typing. Entire threads frequently get archived because of this. So annoying!

Unfortunately, using another client requires a working application ID and whatnot in active directory. Getting IT to do this isn't going to happen, they're too heads up MSFT y'know what.

pdenton··on Self-obfuscating value objects in PHP
From TFA:

    > an interface, which cannot implement or inherit from other interfaces
An interface in PHP most definitely can extend multiple other interfaces.
pdenton··on A list of lightweight websites without bloat
You can inline a font as well, just use the data: URI. I do this only for really small font files, such as the icons, and having the above-the-fold CSS in a style tag means the font comes with the HTML request.
pdenton··on A list of lightweight websites without bloat
A lightweight website doesn't have to be boring. My current project has a 1920x1080 picture which is only 29KiB with AVIF (and it'll further reduce in size when I crop it for smaller displays, using the picture element with media queries). There was 5,7KiB worth of SVG icons and I turned it into a 2KiB font. Not the best of savings, but still better (although correct sizing and positioning of font icons is somewhat difficult).
pdenton··on NFS Shares with ZFS
Sorry to hijack the thread, but has anyone successfully used NFS for anything worthwhile? Samba is fast, but has problems with unix permissions. NFS was slow as molasses every time I tried to use it.

I'm using sshfs for most of my remote filesystem needs now.

pdenton··on A repository of FreeDOS-compatible freeware and OSS software
This hit me right in the nostalgia. I grew up with DOS and those CGA graphics. SoundBlaster Pro for Inertia Player and games. Good times, good times.
pdenton··on Dune: Spice Wars
Site loads a JS resource from localhost on port 35729. What the heck?
pdenton··on 20 Years of .NET
There's still vendor lock-in though
pdenton··on The Life of MS-DOS
The article omits the incompatibility issues with Lotus, and the patent infringement lawsuit about DoubleSpace.
pdenton··on How to break long-term compatibility in NetBSD [pdf] (2016)
It's from 2016, but still an interesting read. Is anyone still using NIS in 2022 though? I haven't considered using it in over a decade.
pdenton··on Ask HN: Easiest way to build a CRUD app?
I know, use WordPress!

(...I'll show myself out)

pdenton··on Heterosexual HIV diagnoses overtake those in gay men for first time in a decade
As a bisexual, I've met more promiscuous women than men.
pdenton··on Heterosexual HIV diagnoses overtake those in gay men for first time in a decade
I'm firmly against woke culture, where you'd be attacked personally for writing up some homophobic vitriol. I don't want to live in a place like that, and I won't go anywhere near San Francisco.

Instead, here's a reminder that being prejudiced is quite normal. It's easier to associate gay people with promiscuity, to connect those dots, than to think of people differently along so many axioms of different traits.

I'm reminding myself as well. Can't judge another with one finger without the remaining fingers pointed at myself (well except for the thumb).

← PreviousPage 2 of 5Next →