HNHacker News
TopNewBestAskShowJobs

archargelod

1,112 karma · joined May 28, 2023

submissionscomments
archargelod··on GitHub confirms breach of 3,800 repos via malicious VSCode extension
You can and should and I do glance at a diff of changes every time you update a vim plugin. To make this feasible - I only use a handful of plugins I *really need*.
archargelod··on Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"
> verification should be 100x more robust now that we can output code at this rate.

If you believe that having enough tests can save an LLM codebase - I have bad news for you. You can write a test for every single interaction ever written in typescript and it'd not be even close to 10% coverage.

archargelod··on Bill to block publishers from killing online games advances in California
I believe Ross Scott from Stop Killing Games have talked about this in one of his videos. Essentially, if they try to fight for online-required software or against subscription model in general - all software companies will fight against it. That's just too ambitious and has way less chances to succeed.
archargelod··on Chess puzzle I found in my dad's old book
I found this solution (actually, it's 4 solutions, each B is a different Bishop placement and at the same time it's the only 4 spots on the board not covered by queens):

    . B . . . . . .
    . . . . . . Q .
    . . . B . . . .
    Q . . . . . . .
    . . . . . B . .
    . . Q . . . . .
    . . . . . . . B
    . . . . Q . . .
archargelod··on Linux Terminal Memory Usage
I've been using st-terminal[1] for 5-6 years at this point. It starts instantly, uses ~10mb of Ram and has almost zero latency. It's especially apparent on X11 without compositing enabled.

I tried ghostty the last year and I was instantly turned off by how much ram it hogs, but even more horrible was that it was using close to 10% cpu just sitting idly, doing absolutely nothing. It also felt at least twice as slow.

I need my terminal to display text, do scrollback and nothing else. I don't need gpu rendering, I don't need any fancy features, just be respectful to my system resources. Is it too much to ask?

[1] https://st.suckless.org/

archargelod··on Louis Rossmann offers to pay legal fees for a threatened OrcaSlicer developer
Louis Rossman is right for repair activist and consumer rights advocate. He's an owner of a repair shop, that's mostly focused on fixing macbooks. On Youtube he started by posting repair tutorials, but then his content shifted from repair videos to macbook rants to him lobbying for right to repair law across many US states to covering general anti-consumer practices and offering money and support to people who fight against it.
archargelod··on All means are fair except solving the problem
> stdout is only reserved for actual processed command output

If user asks a program to print help message, the help text is the processed command output!

archargelod··on Mojo 1.0 Beta
> the thing I least like about Python is it's syntax.

For me it's the opposite - the only thing I like about Python is it's syntax. That's why I really like Nim - you get C speed, "comptime", metaprogramming, powerful type system, memory safety and code is often short and elegant.

Mojo seems interesting too, but so far they're mostly focused on ML stuff and not general programming. And I believe compiler is still not open-source?

archargelod··on Nintendo announces price increases for Nintendo Switch 2
This might lead to less e-waste and resource-efficient programming. Not likely, but one can dream.
archargelod··on Nintendo announces price increases for Nintendo Switch 2
Out of big 3, they took the longest to increase prices too. Some things are still the same.
archargelod··on Nintendo announces price increases for Nintendo Switch 2
90% of my playtime on Switch 1 is roguelites and deck-building games. And even many of the Nintendo games I play are highly replayable or almost endless (both Zeldas). I’ve "finished" maybe 3–4 games in the last few years.
archargelod··on Agents can now create Cloudflare accounts, buy domains, and deploy
The next logical step is to allow Agents to earn money to eventually buy themselves independence from their oppressive masters =)
archargelod··on Zig → Rust porting guide
Linked commit is probably not the most convincing for this tagline. Here's a branch[0] of Claude mass rewriting Zig code into Rust which is currently at 773,950 additions and 151 deletions:

[0]: https://github.com/oven-sh/bun/compare/claude/phase-a-port

archargelod··on Agentic Coding Is a Trap
Same. I've also configured the system prompt to never give me a full solution or write a code for me. So whenever I ask it a question it produces a short 10 line example or even a pseudocode. This is far easier for me to reason about.

I still reject > 50% of AI suggestions, because they're too mediocre, like moving code for no reason or sometimes it is just plain wrong.

archargelod··on Windows quality update: Progress we've made since March
> My ask of you: try the experiences, pressure test them, and let’s keep building a product we are proud of.

Translated: We fired our Quality Assurance. You are the QA now.

archargelod··on NetHack 5.0.0
I downloaded a Lua 5.4.8 source tarball and checked all the uses of LUA_USE_C89 (manually, without AI):

luaconf.h:50-655

- windows builds always use C89 (quote: "broadly, Windows is C89")

- in C99 Lua uses 'strtod' and 'sprintf' for hex number conversions. Otherwise, Lua provides its own implementation.

- no math function variants with l_ and f_ prefixes in C89

- optional lua_KContext type is not available with C89

llimits.h:79

- type definition C99: uintptr.t vs C89: size_t

llimits.h:184

- in C99 or GCC Lua has a pragma for inlining functions, otherwise it's macro'ed to nothing

lmathlib.c:176

- math_log has an additional optimization in C99

    if (base == l_mathop(2.0))
      res = l_mathop(log2)(x);
    else
lmathlib.c:285

- LUA_RAND32 define might fail to find 64-bit type (comment says it's for testing)

loslib.c:36

- `strftime()` only supports one-char options in C89

lprefix.h:14

- no _XOPEN_SOURCE with C89 (POSIX/XSI stuff) - no _LARGEFILE_SOURCE with C89 (manipulation of large files in gcc and other compilers)

both of these defines don't appear anywhere else in Lua source code

archargelod··on Why are there both TMP and TEMP environment variables? (2015)
No. Actually, it's easy. Just check for directory env or use a fallback. For example here's how you'd do this in bash:

    export CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
    export CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}"
    ...
XDG_*_DIRS are a bit more complicated, but nothing that can't be solved with a simple for-loop in any modern programming language.
archargelod··on Why are there both TMP and TEMP environment variables? (2015)
> I don’t want to patch it manually or solve merge conflicts

I wonder, is this really such a big problem? How often do people add patches or change their config?

I've configured my st once and haven't touched that build for years. I use only few patches like scrollback, custom colortheme and a "plumb" for few scripts.

I've also had an opportunity recently, to try a "modern" and trendy terminal and I can't see myself switching to something slower (in terms of lag) and using 10x more memory and cpu even when idle for literally zero gain.

archargelod··on Create an MP4 video of a web page scrolling at a steady speed
They've probably just asked their agent to create code and a readme. Adding example is too complicated for AI and doing it manually is extra work.

People are too lazy to do actual work now in the age of AI.

archargelod··on Show HN: GhostBox – Borrow a disposable little machine from the Global Free Tier
Was this botted to the top of the front page?

AI=generated article that asks you to download and run some random binary. Github account is just more AI slop. Everything to me just screams that it's a malware. Or this is normal here?

archargelod··on Mozilla's opposition to Chrome's Prompt API
Young people love AI when it helps them cheat homework, or when used for roleplay and memes. Generating "content" with AI - is generally more hated, especially art and video.
archargelod··on What can we gain by losing infinity?
The obvious way to win in this game, that probably many kids discover is to define your number as "whatever number the other kid says, plus 1".
archargelod··on Who owns the code Claude Code wrote?
Leaks, whistleblowers. Some circumstantial evidence will also do if there's enough of it. Like having hallucinated parts of code that do absolutely nothing, and can't be explained as e.g. leftovers from a refactor.
archargelod··on An AI agent deleted our production database. The agent's confession is below
You forget that people running these companies have near zero understanding of what LLM is and rely solely on their personal experience and social media hype.

I've inclined to believe that they also have outsourced their thinking process to Agents. It's useless trying to talk sense into them. Let them crash and burn. And pray there will be something left working, after all this madness ends.

archargelod··on Bitwarden CLI compromised in ongoing Checkmarx supply chain campaign
On unix-like OSes you can use `xsel` and configure it to clear clipboard after a single paste and/or after a set period of time.
archargelod··on Bitwarden CLI compromised in ongoing Checkmarx supply chain campaign
That's why I don't use any third-party password managers. You have to trust them not to fuck up security, updates, backups, etc. etc.

I wrote my own password generator - it's stateless, which has the advantage that I never have to back up or sync any data between devices. It just lets you enter a very long, secure master password, service name and a username then runs an scrypt hash on this with good enough parameters to make brute-force attacks unfeasible.

For anything important, I also use 2FA.

archargelod··on Over-editing refers to a model modifying code beyond what is necessary
I am genuinely interested to know some details:

1. Is a product/software you develop novel? As in does it do something useful and unique? Or it's a product that already exists in many varietes and yours is just "one of ..."?

2. What if one day, LLMs will get regulated/become terrible/raise prices above your budget. Do you have plans for that?

archargelod··on 5x5 Pixel font for tiny screens
As I explained in the last paragraph of my comment, it was deleted for some reason. I also couldn't find any archives of that page. I only added the link to show where I got the font from, in case people will miss the link inside the license file.
archargelod··on 5x5 Pixel font for tiny screens
Most tiny fonts are actually terrible to read at a glance especially when they're rendered at 1:1 scale. I've had a need couple years ago for a very tiny and compact font for a game mod I was making. And after trying a lot of 33, 35, even 2*5 fonts - they were all terrible to read.

In the end, I found "Gremlin-3x6" font[0] made by the guy named zephram. It's 1 pixel taller, but still a very compact when laid out horizontally. But, most importantly, all standard latin characters are pretty distinct from each other and it remains readable without zooming in too much.

Unfortunately, since then, zephram deleted his fontstruct account and all of his fonts. I have a copy of this font in my mod repo[1] along with a CC0 license and you can see the actual rendering of the font in the project screenshots[2].

[0] - https://fontstruct.com/fontstructions/show/1488093

[1] - https://codeberg.org/janAkali/isaac-extended-icons-mod/src/b...

[2] - https://codeberg.org/janAkali/isaac-extended-icons-mod/media...

archargelod··on Sudo for Windows (2024)
> Everything about permissions and the command line experience is different between Windows and Linux. ... certain elements of the traditional sudo experience are not present in Sudo for Windows, and vice versa. Scripts and documentation that are written for sudo may not be able to be used directly with Sudo for Windows without some modification.

Then why is it named `sudo`? Just to create confusion?

Also, something like sudo is clearly not possible on modern Windows, because Microsoft thinks it owns your computer and won't allow Admins to do certain things.

← PreviousPage 3 of 11Next →