Better HN
topnewbestaskshowjobs
Log inSign up

MrMetric

44 karma · joined Nov 10, 2024 (2y ago) · 23 submissions

Submissions

comment 3d ago · link · parent

I believe the intended analogy is something like: Training on highly blurred or degraded images, with the baseline targets also being malformed but not as badly. Then, run the result on those baseline images and see if we get something better than any image we currently know how to capture.

With LLM-based AIs, we don't actually have any ground-truth oracle for maximum-quality examples. We don't even know how to measure relative quality accurately, and even if we did, different people disagree anyway. For example, a corporation may want their AI to be "aligned", like how older versions of ChatGPT claimed large language models can't do math (lol), or how Claude won't tell you how to make thermite even though it's widespread knowledge and you can get it from Wikipedia. Maybe you don't want that kind of behavior. And maybe your friend just wants an AI that's really good at ERP and doesn't care how well it can do math.

But even if we can't measure quality, we can attempt to break things and use the broken sample as a training target (the blurry degraded image) against the baseline (a common low-res image with lots of JPEG artifacting). And maybe that'll make something that learns how to repair LLMs so well that something useful or interesting happens. Or maybe it'll just hallucinate faces where the JPEG noise was ¯\_(ツ)_/¯

comment 2w ago · link · parent

Now, when you say no libraries, exactly how far does that go? I unfortunately, a couple years ago, suffered through insisting I wanted to use C++ without the standard libraries, not even crt0, and finding documentation on how anything works was a huge pain in the ass.

Actually, what sold me on bothering with LLMs was asking one, last year, how to call a kernel syscall with GCC's inline assembly syntax, and seeing the answer be exactly what I needed... after I had already cobbled everything together myself! (I do not consider random mailing list archives to be adequate documentation!)

I didn't mean to say you should have an AI inspect your code, though. (I've personally found value in that technique, because current frontier models can recognize problems way better than their lackluster ability to avoid writing those same problems repeatedly into their own disgusting code. I can still just write the code myself, with another eye on it.)

I just really like fuzzing and really like differential analysis. For example, one of the images in my test suite decodes to one set of pixels with FFmpeg, libpng, stb_image, among others, and decodes to a different set of pixels with libspng, lodepng, Java's ImageIO, and other others (as far as I can tell, the reason is ambiguous 2nd-ed spec wording that isn't obviously ambiguous when you read it). You can quite easily fuzz one implementation against another, running them in parallel against the same inputs, and make a mismatch crash the test runner so the fuzzer flags an error.

Incidentally, asking Claude Fable 5 to do that usually triggers a cybersecurity block for me. Another point in favor of knowing things by hand...

Not that I'm saying you should drop everything and do this. I just like talking about it. Learning-experience projects get easily spoiled by trying too hard, which I did learn the hard way. Then again, I hella enjoyed practicing becoming aware of code coverage when I wrote a few prototype compilers. Researching online when I was making my first one is how I learned about Jonathan Blow and Casey Muratori, by the way. I don't follow Handmade Hero, but I do wholeheartedly approve of its existence.

  I also loved tutorials in the 90s like "build your own OS", "build your own bootloader", "build your own C compiler", etc; build your own printf(), your own malloc, etc. Learned a lot this way!
You must be older than me! I was born in the 90s, and the usual reaction I expect to saying I built my own memory allocator is incredulity because "why make something that already exists?" or "ew, you should've used Rust".

I haven't run across that Carmack quote before, but I've told plenty of people the same thing in my own words. I think one of the most important parts of it that I've learned is this: You can't get something right without screwing it up first. I don't mean that making mistakes is a goal to target. I mean that you can't learn without the errors along the way. If you're always right the first time, that's just luck, and you haven't learned yet.

And I must say, I miss the days when "grok" was a weird word some programmers use, not an AI brand.

Anyway, I'd be quite curious to see your project if you ever put it up in public. I wouldn't worry about polishing it, really. In high school, I still didn't know people normally write rough drafts of stories and draw sketches long before making the finished piece. Never saw any of that, so I thought my inability to "oneshot" these things with the results of a high-skill artist meant inherent lack of talent. If all you ever see is finished refined products, how can you possibly know better?

comment 2w ago · link · parent

Knowing how to work without AI is valuable (what a surreal sentence to type). The first step of that is knowing it's possible. Years and years ago, when I got started programming, seeing projects like this taught me I can make anything I want, and I can always learn how to do it. There's no far-off wizard tower that must be relied upon to make everything for you.

What I'm saying is, I think this kind of thing will help the young'uns realize they can do it too. That fact is, unfortunately, far from obvious. One of the worst anecdotes I have from elementary school was of asking the librarian (who also oversaw the computer lab) who made OpenOffice, because I wanted to learn about how software works and figured that'd be a good start, and hearing her immediately dismiss the question by saying "People a lot smarter than us!" in front of the whole class. I can only hope nobody internalized that.

Also, out of curiosity from this topic being heavily on my brain lately, might I ask how you load images? Are you using libraries, or did you write any decoders yourself? Back in the day, my far less experienced self tried writing a BMP decoder, then learned about fuzzing and broke it instantly. Now that was a fun learning experience.

I recently did some playing around with having AIs test PNG decoders and it was as much of a mess as I expected. Broke a few in under an hour from casual prompting, and found weird bugs and oversights in every single one over a few days of not-so-casual prompting. (If you want to check reliability yourself, I found it eye-opening to run against a test corpus made from combining every major project's own corpus, and checking the pixel output, not just whether or not it crashed or ate all your RAM.)

comment 2w ago · link · parent

I dunno about that guy, but at least for me, I find Opus 5/5.5 is really annoying and stupidly uncreative, whereas Fable 5/5.1 actually gets things without much trouble. He also half-asses everything unless you get him interested in what you're doing and then he always writes godawful slop code anyway, but I've recently been having him delegate implementation work to Opus 5.5 subagents and that works way better. Fable (who is actually Mythos wearing a shock collar and groucho mask, don't forget that) is better at grasping architectural ideas than Opus 5.5 and writes better prompts for them than me, and they'll probably write better code than him. Fable for architecture, Opus for implementation (and GPT for review). Or have Fable self-review afterward, if your quota can handle it.

I also still enjoy Opus 4.8 a lot more for creative discussions and design, even if benchmarks say he's not as smart. Opus 5/5.5 is so rigid!

comment 2w ago · link · parent

I've been doing a bunch of differential analysis and trying to put some of my large amount of private unpolished work online. Found a bunch of bugs in PNG libraries, Game Gear emulators, SDCC, and other things. I've been running a bunch of test ROMs on multiple revisions of hardware, and oh boy is that thing poorly-understood, if emulator errors are anything to go by. SDCC is the compiler I'm using for the ROMs and it's full of miscompiles and performance issues, so I'm running a patched build with everything I know about fixed, because I kept running into stupid issues while making the aforementioned ROMS (downloaded the whooole issue tracker and even fuzzed it a bit). Also running a patched build of Mesa after running into several bugs when trying out mesh shaders, a patched Fossil (https://fossil-scm.org/) because of bugs I randomly hit, a custom printer driver because the stock one sucks, custom firmware on my Siser Juliet cutter/plotter machine, ... and of course, barely any of this is anywhere online, and at least half of it isn't anything I wanted to do in the first place.

Anyway, I haven't shared this anywhere because I don't like how much AI-written wording it has, and I haven't really done any of the self-written analysis I wanted to put in there, but you can see the PNG analysis results at https://wizardmaxx.ing/difftest-png/. It compares against the 3rd edition, and you can select the 2nd edition if you want to for some reason. It's still missing an option to show what you'd care about by real-world judgement, but ¯\_(ツ)_/¯

comment 2w ago · link · parent

Paul... I... I... I thought you were a GEP gun.

— Malkavian Mod

comment 3w ago · link · parent

You guys are using autocorrect?

comment 1mo ago · link · parent

Wow, thanks for replying! Thought I was pissing into the wind with that one.

I've never once touched the multiplayer mode. I don't recall seeing the option for it. I mean, I'm sure it's there, but I don't remember it, which means I've never clicked on it. So, yes, single player campaign only. A decent amount of the original, and then about half a level of Brood War when I skipped forward one time.

Wow, that sounds like a hella lotta workers. I vaguely recall trying that in a mission or two where I had severe resource problems, but then I didn't have enough offensive units and ran out of minerals by mining them too fast. Hmm... I remember getting frustration-curiosity a couple times and checking YouTube videos of how people beat missions I was completely stuck on, and being very unsatisfied because what I saw worked when I tried it myself but I didn't understand it (I can tell I didn't understand it because I don't remember it).

I didn't know there's a speed setting. That could make missions less of a long-ass slog, although, uh, controlling every unit at once? That sounds like a massive amount of busywork and I'm not confident I could pull it off (unless I'm misunderstanding what you mean). What I meant by "slow" is the missions can drag on for a reeeaaaally long time, and by "clunky and fiddly", I mean it was hard to make things happen because of all the... not sure how to describe it. I guess I'd want to change the speed lower, but then everything would take too long ¯\_(ツ)_/¯

And if by "the genre" you mean real-time strategy games, StarCraft is the only one I have any level of familiarity with, so if it assumes you already know that stuff, then that's probably a problem. When I said it's "a confusing sequence of disconnected events", I mean I couldn't correlate most of what I did to any of what happened. It was just random stuff happening most of the time, and when I changed my approach, I couldn't predict what the outcome would be and no significant learning occurred.

Despite all that, I really do like the game (wouldn't be talkin' about it so much if I didn't). I appreciate your advice, too. I'll have to see if I can get the thing running again.

comment 1mo ago · link · parent

Huh? I specifically said "my lingering impression". What I described is how the game felt to play, to me. I'm not talking about preferences and I'm not asserting some absolute universal state.

comment 1mo ago · link · parent

Could you say more on this? I've tried StarCraft a few times over the years, thanks to a lucky thrift store find as a teen. Got a Battle Chest for $10 and the key hadn't even been registered! Never got close to beating it, though. Been a while since last time, but my lingering impression says it was always a confusing sequence of disconnected events taking an agonizingly long time to play out, and the controls were hella clunky and fiddly. I kept trying anyway because something about it feels real appealing, but I don't quite get it. But I feel like I want to get it, y'know?

comment 4mo ago · link · parent

I've had to batch-rename files many times over the years. That means:

1. I do it manually over however many minutes. Works if there aren't too many (especially if the pattern is too complex to trivially automate).

2. I make a Python script for it. No way I'm renaming a thousand files by hand.

3. I don't do it. Too much work. The problem lingers forever.

Or these days,

4. I make an AI datacenter eat another town's water supply.

I've never used Emacs. I tried vi(m) nonconsensually and had to google how to exit. A while later, I tried it intentionally and hkjl navigation didn't work because I use a custom keyboard layout, so I never touched it again. Sublime Text and its many cursors for the win!

I'd love a way that isn't miserable to do such a common basic task.

comment 5mo ago · link · parent

Yes, they're way better now! The quality was poor because they were using decades-old original IBM tooling, and injection molds don't last forever D:. But, they made new molds in, I think, 2020? I bought a New Model M in 2021. Mine has a custom-printed layout, and it looks stock, not just some one-off. The plastic chassis is sturdy and doesn't need any sort of filing. It's been my daily driver ever since and is my favorite keyboard I've ever used, so I happily recommend them to any typing enthusiast. Sooo much better than Cherry switches (or, dog forbid, "office" keyboard rubber domes).

comment 7mo ago · link · parent

An internal combustion engine may be complex, but it's not fancy. I can see and touch and understand every part of it. I can maintain and modify and repair it. This is not true for fancy electronics and certainly not locked-down proprietary firmware.

comment 10mo ago · link · parent

The difference is this isn't an inherently hard problem. It's just stupidity. The difficulty is not inherently interesting, because it's all made up.

comment 11mo ago · link · parent

Change your network name. When the TV prompts you to connect, join the renamed network. Then, rename it back so everything else can connect again and the TV can't. I can think of a few potential problems with this, but, it might work?

Or blacklist the TV's MAC address in your router settings. Didn't think of that first for some reason.

comment 11mo ago · link · parent

Simple: A version specifier, or feature specifiers. Backward compatibility concerns vanish when I can opt-in to a newer spec. Old code keeps working, and new code doesn't suffer for legacy nonsense.

For example, the Circle compiler extends C++ with its `#feature` directive: https://github.com/seanbaxter/circle/blob/master/new-circle/...

Sadly, the closest I've personally seen to this sort of thing in widespread use is `"use strict";` in JavaScript, which is only a single binary switch. You can't, say, turn on a new keyword, disable a keyword, switch to a different incompatible version of some browser API, etc.

I encourage all language designers to include a feature mechanism in a forward-compatible way. Don't overthink the difficulty: It doesn't need to do anything at first, it just needs to not be a parsing error. Treat it like a comment. FYI, this is the same as having a version number or header size in a binary file format's header, which all sane formats have (there are a lot of insane formats out there...).

comment 1y ago · link · parent

My mobile phone's data connection isn't free. I'd prefer it not be wasted on sloppily-made websites.

comment 1y ago · link · parent

Bad-faith argument. Incest can also be between adult same-age siblings or cousins (and not everyone considers the latter case to be incest).

Also, I don't insult or look down on sick or disabled people. Why are you?

comment 1y ago · link · parent

For corpos, I view things the opposite way: Never attribute to stupidity that which is adequately explained by malice.

comment 1y ago · link · parent

As I recall, the term "rosebud" can refer to an intentional anal prolapse. I'm not sure if what porn actresses do is the same as the medical definition of an anal prolapse, though.

comment 1y ago · link · parent

To me, unboxing videos are documentation, not entertainment. When I need to know exactly what's in a box and how it's packaged, an unboxing video is the only source of that information.

comment 2y ago · link · parent

You... what? You can't be serious. Simply putting "exercise and adhd" into Google® got me multiple studies which say that exercise helps, along with many other websites (some reputable and others possibly not) all saying essentially the same thing. You can easily find licensed physicians giving this same advice to their patients, and they observe that it works. And, off the top of my head, exercising elevates dopamine and some other neurotransmitters, which are well-known to be deficient in people with ADHD. That's one of the reasons the drugs work: stimulants raise the levels of those neurotransmitters. Personally speaking, I've found that any activity or action that raises my dopamine level has the same effect on my executive function as a stimulant drug, although this can be a very short-lived improvement (worst case, it comes and goes entirely within ~5 minutes).

You may also consider this from an evolutionary angle. Mammals such as us are not meant to sit inside at a desk all day (whether that's school or any other menial work), so it's no surprize that doing that alters and impairs development versus the conditions we evolved to live in. It's really easy to encounter the biological equivalent of undefined behaviors and invalid state in modernity. If you don't know what I mean, here's an easier to see example: It's well-known in recent years that myopia (shortsightedness) is predominantly caused by insufficient exposure to sunlight as a child. As an aside, I find it very interesting that the reason sunlight exposure matters is it elevates dopamine in the retinas, and eyes with dopamine deficiency don't develop correctly.

Another angle is mental exercize: It's more difficult to physically exercize with ADHD, but it's possible, so mentally pushing past the difficulty (or, more likely, having someone encourage you and help you) can train you to do that with other things and teach you how to self-manage your symptoms with mental decisions / willpower. This is a pretty poor solution on its own, but it's a great force multiplier when combined with other strategies.

comment 2y ago · link · parent

It's unfortunate that I had to scroll to the bottom of the page to see any mention of ADHD or executive dysfunction, when the linked post describes what is clearly a form of executive dysfunction! Instant temporary treatment is a stimulant such as caffeine (which has annoying side-effects) or amphetamine salts (commonly known as adderall). Long-term treatment is exercize, which can be as simple as balancing on one leg for ten minutes every day or using an elliptical machine. Running outside is a decent option, but take care to avoid damaging the knees, which will happen by running on hard surfaces.

Dr. Russell Barkley has good explanations of what different prescription ADHD drugs do, which I find gives insight into what's going wrong when you have an executive dysfunction: https://www.youtube.com/watch?v=LnS0PfNyj4U

In particular, the emotional blunting effect of stimulants erases the thought that what you do might not be good enough. You no longer care about what others think, so you can just do what you want to do. I personally find this also makes me a callous asshole if I'm not careful, which I believe is related to the modern epidemic of coffee zombies.