HNHacker News
TopNewBestAskShowJobs

badsectoracula

8,809 karma · joined August 13, 2009

Mail me at badsector@runtimeterror.com
submissionscomments
badsectoracula··on IRCv3
I know there are technical ways to work around IRC's limitations, my point is that their mere existence adds more friction to using IRC so people move on to more frictionless places - and with chat apps being fundamentally social, that friction affects people who don't even mind the frictions themselves but their peers do (though personally i do mind these frictions - i do not want to bother with hosting anything or setting up bouncers or anything of the sort, i just want to pop in a channel, see what people were discussing, talk with whoever is there and/or share some of my own stuff and that's it).
badsectoracula··on IRCv3
How? From a quick search don't see anything in the spec about files or images. The closest i can think of is attaching metadata (which is a draft), but these are meant to store utf8 strings and i doubt a base64 encoded video is what the writers of the spec had in mind.
badsectoracula··on IRCv3
It isn't hard, as i wrote i used to run irssi in screen back in the day when there wasn't another alternative, but that required me to have a VPS (i don't nowadays and i don't really want one because i don't want to bother with the admin side of things) and it is extra friction - and that is for someone like me who already has the knowledge to do it. For most people it is an insurmountable obstacle.
badsectoracula··on IRCv3
And yet that is how people use Discord - or more precisely, a mix of the two in the same interface. I think telling people they're not supposed to do something they find working is always losing battle.
badsectoracula··on I wish you the best in the Offline
Problem is, you may not care about money but the grocery store usually does.

I read that paragraph not as "this will make your finances worse" but as "can you even afford to do this?"

It is much easier to go full kumbaya when your savings can last for the rest of your lifetime.

badsectoracula··on I paid people to try and follow my README
> I know someone is going to say "why not just ask an LLM to simulate a range of users?" The answer is very simple - I want to speak to real people. People are brilliant! They can make you laugh, you can see their cat when it wanders on to the call, they bring a unique perspective to the problem, and they're really happy when you give them a €25 voucher. Some will gladly do it for free and make you happy!

So what the author actually paid for was to interact with humans and the README checking was secondary - because, really, my own first thought was literally to ask an LLM check and try to follow the instructions in the README and pretty much any decent LLM (including several local ones) would be able to check if they're adequate and even suggest improvements (just don't let them write it for you :-P).

badsectoracula··on IRCv3
Just yesterday i was working on my game engine for the original Xbox using the open source NXDK kit (which is much lower level than the official XDK) and i finally, after literal years, managed to find and fix a couple of bugs that caused flickering (much more obscure than you'd expect and didn't show up even in the emulator).

So i decided to share it with a couple friends and retro enthusiast communities on Discord. I took a video capture of my engine working, showing the 3d rendering, audio, video, etc with an Xbox->HDMI->USB capture chain. Then attached the file on Discord's input field and posted it (i have a tab with the web UI pretty much constantly open in Firefox). People weren't around at the time but some saw it today and commented while i was sleeping (with my computer off).

Last time i checked, this wouldn't be possible with IRC because:

1. There is no video (or any other file) host on IRC servers.

2. IRC discussions are ephemeral, you either need to be online all the time or setup some sort of proxy that keeps the discussions around while you or others are away (or do what i used to do 15+ years ago - run a terminal-based irc client in a screen session in a VPS :-P).

AFAIK #1 is still impossible and #2 is an optional extension (that i've never seen in real life). Meanwhile i can now connect to a new Discord community and not only not worry about losing any messages while i do other stuff (i often check what people have talk about in Discord since my previous "visit" to be up to date) but also search what people talked about previously - e.g. did anyone brought up some XYZ topic i want to talk about?

IME the above two (also add images and audio to the mix - in two of the communities i'm in there are people who post WIP music they make) are basically 90% of how i see people use Discord: they post something (very often media-based) and very often others see/respond to it in their own leisure much later (in some channels people even live on different timezones so they can't do otherwise).

TBH nowadays if i wanted to set up some community in a self-hosted manned and wanted to stick with open stuff, i'd probably use RocketChat or something like that (Godot uses a self-hosted RocketChat instance that while a bit more janky than Discord, it seems to provide pretty much the same features i mentioned above).

badsectoracula··on IRCv3
I visited the site to see what the extensions are and at first i thought that there might be a few of them but it doesn't look that bad.

Then i noticed the horizontal scrollbar :-P

badsectoracula··on A browser-native classic Visual Basic VB6 IDE
> runtimeterror.com has no https which is available for free, so I'm not entering it.

It is a direct image link, it wont ask your password.

Also, https is not available for free even if some solutions are available without asking money for it. In this case: the site is on a shared host so the only option is the paid one from the host (so it isn't free-as-in-money) while the alternative is having a VPS and installing something like let's encrypt (which is more expensive than the shared host and requires me to play sysadmin for it, so not only it isn't free-as-in-money but also free-as-in-time).

badsectoracula··on A browser-native classic Visual Basic VB6 IDE
FWIW, the File menu has a command to export the program as a self-contained HTML file.
badsectoracula··on A browser-native classic Visual Basic VB6 IDE
Looks good functionality wise, you can even "compile" an app to a HTML file. This is exactly how something like this should work :-).

However, appearance-wise it looks very noisy/distorted with some crooked elements (especially window buttons) and missing visual parts (mainly bevel edges). I made a screenshot with comments for it[0].

I guess this was made with AI which isn't that great at making stuff pixel-level unless you explicitly told it to check reference images and be pixel level precise, so i'd recommend firing up a VM with WinXP in classic theme mode (or even better, 86Box running Windows 95 or Windows 98) and grabbing a bunch of screenshots.

Also i found some bugs:

1. You cannot click on non-visual controls (or disabled controls) to select them (e.g. timer). You can still use the rect selection to select them and drag them around by resizing via the handles but clicking on them selects the form.

2. Adding a control doesn't update the controls list in the editor unless you double click a control without a handler (i.e. the form, as long as you remove the Form_Load handler). Even after the controls are updated, if the event list has only one event, you cannot have the editor add by selecting it (i guess because it is already the selected item and you don't receive an event about selecting it).

I tried to make a simple pong game but it seems no key or mouse motion events are implemented yet so all i did was to make a bouncing OptionButton :-P.

[0] http://runtimeterror.com/pages/iv/images/5ffbf1494821c77a3fe...

badsectoracula··on Pi 1.0
FWIW the compaction had failed again, so i used Pi with the same prompt, same model, same config to compare. The prompt was "check the current directory" followed by "analyze the code and give me a report in `CODE_REPORT.md` on how it works (also a brief report here). Make sure to update `CODE_REPORT.md` frequently (i.e. every time you analyze a file) to avoid context loss from context compaction".

Pi ended up hitting a compaction during a tool call and finished without issues, which is what i expected - in fact after giving the instruction i left to visit a relative since i expected it wouldn't need me to babysit it.

FWIW after it finished, i asked it the following:

---

Can you answer me the following questions about how Hax manages the context?

1. How does Hax handle running out of tokens? It does have some form of compaction, but if the compaction fails for some reason (e.g. the summary ends up needing more tokens) what does it do?

2. Can it handle cases where the context runs out of tokens during tool calls and if so, can it recover? How?

3. What happens with compaction if an LLM produces a few large responses or the LLM reads a few large files? Does the process ends up summarizing the entire (or all but one) conversation? Or is the entire conversation lost?

4. Are there any safeguards in place to avoid overwhelming the LLM? For example any file and tool output limits? If there is and any limits are reached, how does it handle them?

---

It went on and checked the code and, briefly the response (it was bigger but i don't want to repeat the entire thing):

1. It doesn't update the session on failure (last "good" session is kept), running out of context is treated like any other error without any automatic recovery and you're expected to fix it by hand (personally i'm not a fan of this).

2. Multiple tool calls are fine (there is a 85% threshold check to trigger compaction and a 50k tool result limit) but if a response and results jumps from below 85% to over 100% despite being under the 50k limit, it doesn't trigger any compaction and the next request is denied by the provider (i.e. llama-server). I have a feeling this is what i hit when i tried Hax with its own code.

3. There is no recovery from a user turn (prompt + response + tool result) that exceeds the window. FWIW this also seems to be the case with Pi.

4. It found a bunch of safeguards (tool output cap, caps in bytes and lines for the read tool, bash writes to a temp file and only a part of it is sent to the LLM, edit size cap, etc). AFAICT it is the same as Pi with one neat addition in that there is a default 2 minute timeout for bash calls (i've seen the LLM more than once run a command in Pi and end up stopping for 30+ minutes because the command wouldn't end).

For 3 i asked it a followup question: "About 3: AFAIK Pi (the harness you're on right now) does a "spit" summarization where the old messages are summarized up to a cutoff/split point and replaced with the summary while the newer messages after the cutoff/split point remain intact, which allow a mostly seamless transition between compactions. Does Hax do the same or something similar?"

The response was that, no, it doesn't, it summarizes the entire context. Which TBH is a bit of a dealbreaker for me since i often rely on this "seamless" continuity in my prompts and feels like the main reason why compactions feel like a non-issue with Pi.

Take the above with a grain of salt, i only checked the code for the compaction not using a split/cutoff point between older and recent messages, the rest are whatever Qwen 3.8 27B understood, but they do match my short empirical test. Also if my own understanding of the code is correct, it seems to be using the same system prompt for the summary as for regular/interactive use while AFAIK Pi uses a dedicated "you're an expert summarizer" (or something like that :-P) prompt. Not sure if it makes much or any difference, with LLMs being what they are, but TBH whatever Pi does works great IME.

On the other hand the idea of a self-contained native AI harness in C/C++ is enticing, especially one that doesn't have any network traffic outside of LLM-related stuff[0] and explicit user requests (Pi does try to autoupdate and has a separate opt-out telemetry beacon - both of which are disabled in different means, one via environment variable and another via a setting, which smells a bit like an dark pattern to me).

Anyway, this is the result of my findings about Hax. It is neat, but TBH the context handling is the main dealbreaker for me, especially since i'm often having the agent do something in the background (using a local LLM isn't exactly the speediest workflow) and do other stuff or leave the computer alone, so the last thing i want is to babysit the agent for errors. Pi's split summarization and context overflow handling seem to work much better.

For now i'll probably stick with Pi (i have autoupdates and telemetry disabled and i hope there isn't any other hidden snitch in place) and perhaps at some point i'll do the NIH thing and make yet another agent myself :-P

[0] well, it does attempt to autoconnect to a potentially running llama-server in localhost without being explicitly told to do so (Pi wants explicit configuration) but meh

badsectoracula··on Pi 1.0
That looks interesting, built it (took seconds) and it is much smaller than Pi in terms of what it needs to work (when i installed Pi in a fresh Debian container it downloaded ~500MB of stuff, which isn't exactly what i had in mind when i read it is minimalistic :-P but it is a container so i didn't care much).

I'm just running it now in its own source with Qwen 3.8 27B and llama-server and asked it to analyze the code itself. I'm mainly curious to see how it handles context compaction during tasks (what Pi does is almost seamless and AFAICT it isn't anything particularly fancy so i'd expect Hax to do something similar) and i guess asking it to analyze a whole C codebase would help trigger that with a 131,072 context. Unfortunately it seems to be missing some "context usage" indicator while it does stuff (it shows context usage in the prompt but not while working), but i guess if it does manage to analyze the C code properly, i can ask it to add that :-P and see how it fares (from my use of Pi i'm positive Qwen 3.8 27B can do all that stuff, so it'd mainly be up to the harness).

EDIT: also i wonder if it works nicely if it is possible to convert Pi transcripts to Hax - i have a few "in progress" and i'd like to continue where i left from, though while both seem to use JSONL for the transcripts i'm not sure if they're compatible

EDIT2: hrm, it tried to use more than available tokens during a compaction and stopped there expecting me to increase the limit (i can, but what if i couldn't?) and restart the llama-server. Pi sometimes does hit it but it manages to recover by itself without requiring any input by me (or to increase llama-server's limit).

badsectoracula··on EDG C++ front-end goes public
Well, Borland had the benefit of being in control of both compilers :-). C++ Builder even had Object Pascal compatible extensions to link against VCL (which was written in Pascal).

You can already mix Free Pascal with C/C++ code if you use the same linker and libraries - i did manage to get FLTK statically linked with an initial backend for Lazarus in fact - this shot[0] shows a form and a few buttons from a self-contained binary on Linux (it links against FLTK statically and X11/etc dynamically).

But it is a PITA to get working for C++ libraries specifically (and you need a C intermediate for FPC to use). Also i couldn't get it to work for Win32, only Linux.

[0] http://runtimeterror.com/pages/iv/images/8a6ff400ed9b0d424be...

badsectoracula··on EDG C++ front-end goes public
According to some older comment by jmalak, it is compatible with C++98/C++03 with some C++11 features though, yes, it isn't C++11 compatible (there are some stubs for C++11 that i can see in the code but nothing implemented).
badsectoracula··on EDG C++ front-end goes public
Well, if you're fine with not being up to date in terms of C++ standards there is also the OpenWatcom C/C++ compiler[0]. Jiří Malák (the main v2 dev) is doing a herculean job maintaining and improving it.

[0] https://github.com/open-watcom/open-watcom-v2

badsectoracula··on EDG C++ front-end goes public
I wonder if the source-to-source compilation could be used to transpile C++ code/libraries to other languages - e.g. could this be used (with appropriate modifications of course) to compile FLTK into Free Pascal code and used directly by Lazarus as a backend for LCL? Trying to use C++ libraries from non-C++ is always a PITA, especially if you want to avoid dynamic linking.

Also, since i mentioned Lazarus, if it can compile itself to Free Pascal, i wonder if it'd be useful for adding C++ support to Lazarus itself so that Free Pascal and C/C++ can be mixed in a project to make self-contained executables for desktop applications. It'd most likely need much more work than that just the compilation to make it a first class citizen like Free Pascal itself is for Lazarus/LCL (e.g. things like the object inspector and code tools being able to understand C++ well enough so that refactoring and stuff like doubleclicking on a button in a form automatically declaring and defining the handler and moving the editor cursor to the newly defined handler's code body), but maybe it could be used as a starting point.

badsectoracula··on A graphical desktop for the ZX Spectrum
I also cannot tell Bison `int main() { printf("Hello, world!"); return 0; }` and get a greeting program or use `wc` to count the number of triangles in a gltf file.

I can obviously see the difference between different programs being used to do different stuff (and sometimes you can use different programs to do the same or similar tasks, e.g. what you can use Bash for you might also be able to use Python or even Awk) but that doesn't make any of them special or any less software-y, including the LLM inference engine.

And obviously i do not see using any of the above (including the LLM inference engine) as commissioning a human to do something. They're not humans, they're software.

badsectoracula··on Tcl/Tk 9.1
glfw is smaller and more focused (SDL adds a TON of stuff, including even its own GPU abstraction API) so the choice was most likely made because of that focus.
badsectoracula··on Ask HN: Who's still keeping a DOS machine up because the business depends on it?
I remember Amiga emulators (notice the plural) going all the way back to when i was in high school - and that was around 1999-2001 or so.
badsectoracula··on A brief history of Windows scroll bar shortcuts
Interesting that not even Raymond Chen knew about Shift+Click - i found it at some point years ago by trying random stuff on the Win32 controls and it was what i used to try whenever i wanted to tell if a program was using real Win32 controls or made its own since pretty much no toolkit had this behavior including Qt[0] :-P

[0] i think Qt might have added it at some point but it has been several years since i used Windows as a main OS and bothered to check it

badsectoracula··on A graphical desktop for the ZX Spectrum
A very significant difference is that AIs are programs, not people.

Perhaps it might be because i don't use any cloud LLMs, but the LLMs i use are all just data for a program running on my computer just like any other program and i don't really see them as any different than running -say- Bison to write a lexer or whatever (sure, Bison gives you the same output for the same input, but that is because LLM inference engines just add some randomness in the mix as that works better for the overall output - again, not any different than, say, rendering a 3D scene with a pathtracer that takes random samples: same input, different output -- or really any other thing that involves randomness).

That the combo of an LLM inference engine and weights kinda writes like a human and works with text in natural languages doesn't mean it is any different than any other piece of software.

I mean, i don't know about you but personally i'm not a fan of the idea of commissioning GCC to compile my code or Awk to process my text - even if i suspect there are business people out there who would love it :-P

badsectoracula··on A graphical desktop for the ZX Spectrum
TBH even if you're messing around you may still want the code to be performant and taken seriously :-P
badsectoracula··on BeanShell3 in Development
> I would hope someone didn't just fork it and Oracle owns the rights to it somehow?

Beh, i used to use Java all the time for a bunch of stuff (mainly desktop tools and the like) but after Oracle bought it my interest to it dropped like a rock and remained on the ground after the whole Oracle vs Google circus :-P.

Nowadays i still avoid any languages primarily backed by some large corporation.

badsectoracula··on One Year of Sponsored Servo Development
I think it is actually Mozilla people look at when they ask "why" :-P
badsectoracula··on Big AI sets out its terms for regulatory capture
> Amodei, meanwhile, outlined some very specific things he wants from Washington: Stop selling Nvidia chips to China so its AI companies can’t build better models, and a crackdown on model distillation.

You have to be the embodiment of hubris to believe the only reason a technologically advanced country of 1.4 billion people with several AI labs and government support can make competitive models is because they all distill yours.

badsectoracula··on A 386 PC for Your RP2350
It "technically" can - i used Win95 on an AMD 386DX with 4MB of RAM back in the 90s for a little. Most of the time was spent waiting for the computer to do something while the HDD was constantly working.

The Pentium MMX with 32MB i replaced it with was MUCH faster, practically everything was instant.

badsectoracula··on Fable 5.1 Solves the Cyphral Distich, a 370-year-old cipher
The article doesn't seem to be written by Anthropic.
badsectoracula··on Forgejo <=16.0.3 Critical RCE
That is about Codeberg, not Forgejo.

Forgejo disallows LLM contributions, including using a "general AI" (they include LLMs under "general AI") for reviews[0]:

> 5. Using general AI for review is forbidden. If the change contains changes to the UX it has to be approved by a human reviewer.

[0] https://codeberg.org/forgejo/governance/src/branch/main/AIAg...

badsectoracula··on DeepSeek v4.1 Flash
Claude behaves like that because it is trained to behave like that. It is basically the "Say 'I am Alive'" meme[0].

If Anthropic can train Fable to deny their users the ability to ask it legitimate questions because they're not part of their inner circle, they can also train it to say "I'm happy!" when asked how it feels.

[0] https://knowyourmeme.com/memes/say-i-am-alive

← PreviousPage 2 of 34Next →