HNHacker News
TopNewBestAskShowJobs

whartung

5,193 karma · joined March 25, 2021

willhartung@gmail.com

If anyone knows anything about the internals of an object based drawing (think Visio, not PhotoShop), I'd love to talk about how composite objects are managed.

submissionscomments
whartung··on 2DWillNeverDie
While I certainly played several shooters (DOOM, Quake, CS) a bit, but not with any passion.

But my favorite early 3D game was Total Annihilation. Which is not a 3D game. It's a 2D game with a 3D rendering engine. Classic RTS isometric POV, but all of the benefits of a 3D engine (arbitrary model rotations, movement dynamics, rockets flying through the air, shrapnel...oh, the shrapnel).

Similarly with Warcraft III, another RTS done with a 3D engine. Its gift was the interstitial cinematics done with the engine for story telling purposes.

In both these cases, 3D added immensely to an ostensibly 2D experience. I also imagine once they got things sorted out, it made things much easier for the level and scenario designers to be able to just put Objects into their flat-with-some-terrain 3D worlds.

whartung··on What California is learning from solar panels built over irrigation canals
In CA we had a clothes dryer motor replaced. As a result we were left with the old part.

I took it to a nearby recycling center, and they wanted my drivers license to pay me the $0.58 it was worth. I declined and just let them reap their windfall. I imagine I would have got the 58c in cash, that’s how it works with plastic bottles.

whartung··on Microsoft killed FoxPro in 2007. Anyway, here's FoxPro revived
Yes, they bought it. But they didn’t buy it and stab it in the heart. They developed it for several years.

A primary bit of tech that came out of the purchase was the core DB engine. They reworked this into what became the Jet engine. The Jet engine was the core of Access.

Access was in many ways a next generation of FoxPro. They both went after the same niche of desktop and file server DB applications. But FoxPro carried the legacy of its dBase roots, FoxBase was basically “better dBase”, but had to appeal to and be familiar to dBase developers.

Access had no heritage like that to hold it back, and was a better citizen in the VB/Office/OLE/COM world. It was also more SQL first even though it kept things like DBF files as first class citizens.

whartung··on Java 27
JavaFX is a hidden gem. I really like the programming model with its binding and scene graph and CSS.

It's not as portable as Swing, as it has some platform specific binary components to it. But it works fine on mainstream platforms. For me Swing portability is not worth giving up the FX model.

Just be aware that if you happen to bundle in the Web view component, you're basically adding WebKit to your distribution. I did this with a small project because I wanted to have a "help" screen with Markdown -> HTML. Easy, but "expensive". It simply adds a big chunk (10-20Mb) to your distribution.

(Now I have a very crude Markdown renderer for this task, which is a 100 lines code, and I'm working on a better one -- but I have yet to pull the trigger on the latest FX with its new Rich Text component, which could change everything.)

One hot tip with cross platform FX, however. Embed your fonts. The font suite is not common across the distributions, and the CSS does not honor the font fall back (i.e. if not XXX font, then YYY font), so if the runtime doesn't have your specific font, it collapses to the System font. So, embedding the fonts you use helps a lot with cross platform stability. Plenty of free fonts, I have not had a real problem with this. But it can be one of those O.o moments when you test on other platforms and encounter it the first time.

whartung··on Thelio Mira AI Linux Workstation: 192 GB GPU Memory
There was a time when I sold my computer and bought a motorcycle.

Can honestly say that was one of the best trades I’ve ever done. I didn’t buy another computer for 3 more years.

whartung··on Unusual Suspects
Ive always wondered if I sat down with a sketch artist and was asked to describe my wife, how close we would get.
whartung··on Altair Basic Interpreter Source Code (1975) [pdf]
Its talked about here: https://www.c64-wiki.com/wiki/Garbage_Collection

The process they used was simple, but brutal.

whartung··on Fastpotify
A bigger question.

How do you all GIFT music these days?

My brother recently sent me a new album for my birthday. Very kind. But, it's on vinyl. And I don't have a player.

But it just reinforces thoughts I had before. I had wanted to gift him some music too, but, how? He has a phone. He has a computer. He's not particularly tech savvy. I know I can't ship him a CD, he has nothing that can rip it.

I know you buy an album on Amazon, they let you download the MP3s right away. But, how do I even gift that? Can you even download MP3 to an iPhone? From someplace not Apple? I honestly have no idea.

And it just highlights, to me, the entire (seemingly) difficulty of gifting music today.

Me, I still buy CDs and rip them.

whartung··on Show HN: Running 104GB Qwen3.8-Flash-Next on 48GB Mac with at ~12 tok/s
I'm hoping to see progress in this space.

Folks talking about how 32G is not enough for local use, but then there's been work like this to empower it.

My hope is that the new 32G M6 will be "useful" locally, possibly because of work like this.

whartung··on Hacking IKEA Furniture
I'm sure I'm not the only person to have built a wall unit in a bedroom only to learn, later, getting it out the door, and through the hall, and down the stairs turns out to be job for Dirk Gently.

That said, moving some of this flat pack furniture has been a mixed bag. Some move well, some don't.

I did have a wall unit, a $99 hardware store particle board piece assembled with big screws and those interesting, round cam fasteners. It survived three separate moves, including one where it flew out the back of my pickup truck onto asphalt (thankfully in a gas station, vs the freeway I was about to get on). Corner got dinged, door flew off, but it survived!

But I've had other pieces that assemble and are rigid, when torqued around through the moving process start to come undone. The particle board and fasteners are designed for loads only in specific directions and tend to not do well, and fail, outside of those.

whartung··on GUIs should be fully keyboard-driven
I would submit that the point of the GUI was necessarily "anti-keyboard" as more "pro-discovery", plus adding gestures that would be difficult on a keyboard.

Keyboard interfaces can be, but not necessarily, quite opaque. There's a reason in the old days companies shipped keyboard overlays and function key templates to help users (or went all in with custom keyboards built for the application).

In contrast consider something like Wordstar where you pretty much just needed to memorize the three prefix keys, and if you pressed one and waiting, you'd get a menu describing all of the options.

Obviously, things like early Smalltalk and, probably, Xerox (having never used any of the early Xerox systems), relied heavily on the mouse, but even it had command accelerators.

The CUA standard was that crossover that Windows, and MOTIF, adopted. Much of that work is still with us today, and it worked well both on GUIs and TUIs (witness the old Turbo Pascal/C++ IDEs, and other applications). Those character based applications had to assume there was no mouse, but offer the flexibility of being good citizens should a mouse be present.

whartung··on typ.ing
It says I'm terrible. But I've known that for a long time.
whartung··on Stop Making TUIs
I've mentioned this before, but the rise of the TUI is the simply the systemic failure of remote GUIs.

The primary value statement of TUIs is that they work over SSH with remote systems.

But now, we're hearing rumbles about the limitations of the "modern" terminals with regards to working well with a "rich" TUI. How a raw tty doesn't really cut it since it, at a minimum, can't detect key presses, only actual character/byte patterns. How there needs to be a new protocol, a "better" terminal client.

Of course when you go that route, then the current terminal emulators will need to be updated, or you'll be required to install a different terminal emulator that supports the new protocol. But that kind of defeats the theoretical, historical ubiquity of a TUI. It would not surprise me that many modern TUIs only work with an ANSI terminal.

Back in the day, we had systems like Visual Basic, Power Builder, SQLWindows. GUI/language systems particularly well suited for Client/Server DB development.

For a time, Firefox actually presented itself as a modern incarnation of these tools. Using XUL and JS for UI development, built in utilities to talk back to servers over HTTP. It was a platform for "Rich Internet Applications(tm)".

It didn't really take off, it wasn't documented very well, kind of buggy. It also required Firefox as a client. The potential was there, but not quite realized. Ajax hit the web browser in full force and that pretty much was the last nail. Now, you could use "any" browser for more interactive applications.

Of course, we advance to today, where many sites work in any browser as long as its Chrome. We have advanced applications that are no more than a Canvas element, with everything else being reinvented from scratch. "Have bitblt, will travel."

The browser is the closest thing we have to a universal remote GUI, but we all know the issues with it for many contexts. As an application platform, it may be ubiquitous, but that doesn't mean it's at all lightweight.

We used to have lightweight, remote GUI applications. Rootless X Window applications. Folk don't necessarily want the entire desktop, they just want an app, with some fields and buttons. You could slap them together with TCL/TK. Remember dtksh? We're not talking about trying to write Adobe Premiere or AutoCAD in these things. We just want some simple utilities, fields, icons, maybe a chart. Scrolling tables and a menu.

But we can't do that today, not readily, not easily.

So, we're kicked back to 1978 and the rise of the Smart Terminal, instead of 1984 and the rise of the X Terminal.

If folks are going to write out a custom client for a TUI, then may as well go the extra 10 feet and make it a remote GUI client. Reinvent all of the wheels as they go round, and round again.

whartung··on Copyright does not protect AI-generated content in EU
Year ago, there was a painter, Thomas Kinkade, the "Painter of light".

He became a bit of a pop phenomenon, with stores dedicated to selling high quality prints of his works.

And one of the things, so I'm told, that could happen, was that you could buy one of his prints, but someone at the store, an artist, would dab some paint onto the print. Add some "light" to it.

Obviously this is a commercial endeavor, so I doubt the provenance of the rights holder was in doubt (such as through an employment agreement).

But it's, perhaps, an interesting case study about who owns what in a time of augmented and manipulated media.

whartung··on Sea Lion Radio brings Seattle's barks, bleats and yaps to the world
We watch the Big Bear eagle camera. (I should say it plays in the background.)

And some of the fun of it is listening to just the "nature" sounds, mostly birds. But, specifically, the coyotes. We have a snippet of them going for I think 5-10 minutes, just non stop yipping and howling. A small pack of them out there, somewhere, in the forest. It's like a scene out of the movie "Zootopia".

whartung··on I requested a copy of my data from McDonald’s loyalty program
The concern is when the data breaks out of the silos.

It should not shock anyone that Amazon has an entire history of everything that you've ever bought. I would likely not surprise anyone here that they have a log of every item you've clicked on, or even moused over. The beauty of modern systems is that storing all of that data is very cheap.

The dark side is if the fellow queried McDonalds and found not just his McDonalds trends, but his shopping habits from, say, Target. Where McDs and Target perhaps had a data sharing agreement to correlate customers.

Or seeing a copy of his credit report in there buried underneath the stack of Diet Coke and Quarter Pounder receipts.

That's where the concern shows up. Not the raw data, but the cross cutting concerns as the data is potentially more centralized. Perhaps into a company that you don't even know is collecting info on you. Some corp that McDs is sharing with. You request your dossier from McDs because you know they're collecting your data. But you don't request it from Company X, because you don't know they're doing so.

Then there's the issue of handing the data over to the authorities without so much as a warrant -- different problem.

whartung··on Chicken Scheme 6.0
The compiler. That’s the gem of the system.

The generated C is reasonably portable, so you can run Scheme programs on systems that “don’t run Scheme”.

whartung··on Squeak 6.1
Ive always "dreamed" of having something like the ST image but backed by persistent virtual memory, not simply RAM.

(Crudely) mmap the ST image to a 100GB file and just change pages. Let the OS flush the pages back and forth.

Maybe full boat, heap sweeping GCs would be Bad as it pages the entirety of the heap in and out. But we have (had) lots of RAM these days. We have generational GCs that leave idle stuff alone. Its no doubt impractical, but I think it would be neat to have the entirety of my historical email in the global "mailbox" array, and I can build indexes off it as I wished. But the mail isn't "on disk", it's all marshalled up as first class objects.

I don't know enough about it, no doubt it "won't work", but the idea of simply mapping the entire, large, ST VM heap to a persistent backing store, just be interesting I would think.

Dangerous too, as there is a demarcation between "running image" and "saved image". But, still think it could be interesting.

whartung··on Poles of Inaccessibility in the San Gabriel Mountains
Living here in So Cal, where the mountains are a constant presence.

Yet, I still stare and wonder. Despite people having been here for thousands of years, I look at a ridge, or a spot on the mountain, and just wonder "has anyone been there before".

There are all sorts of reasons to not "go" there. There's "nothing there" to go to. It's hard to get to. There may not even be an animal trail up there. Even the sheep are smart enough to leave it be.

But I wonder.

I look at the ridge few miles north of my house, and, in the back of my head, I have a Plan to hike it someday. Just walk the ridge. It doesn't seem arduous, it's not Everest. Seems like only ("only") 15 miles.

But I do wonder, if anyone has done it before, and were they thinking about it like I was.

whartung··on IBM i (OS/400) the Database Operating System
I'm curious how much of the AS/400 architecture leaks out to the application developers. In the end, the vast majority of the work done on these machines was done in RPG and COBOL.

Curious if most of the architecture was visible to the actual operators, but the developers themselves were, perhaps, a bit isolated from it all.

Because, I don't think HN is a site for "Unix/NT" enthusiasts, but more so high level "computerists" in general. And I don't think that AS/400 application developers would be any less interested in computing than other developers.

Yet, anecdotally, over the years, as much as I've heard bits and pieces about how interesting the AS/400 system is, I've heard anyone talking it up. How they're able to do Cool Computing Thing because of the OS or architecture that can't readily be done on other systems at the time. How the unique features of the AS/400 solved their application and systems problems.

At my office, long ago, we were looking to replace our entire system, and we actually went to an AS/400 demo. But it was very expensive, and whatever they were selling wasn't really resonating with me as a developer, or my boss as a manager. Always wondered "what if" had we got such a system and had to use it in anger what it would have been like.

Anyone have any war stories to share?

whartung··on Elevators
Most interesting hotel elevator system I’ve seen was in Washington DC.

Instead of hitting the call button, you started the request with your floor. Then the system would assign you an elevator (there were 6 cars as I recall).

I assume this gave the system more accurate routing data to make it more efficient for everyone.

whartung··on Memo-1: A 6502 computer built from scratch, using a Minitel as its terminal
Not just that, but, as I understand it, with some of the modern digital phone systems, they won’t work properly even if you did have someplace to call.

And 2400 baud was quite useful for a personal NNTP feed.

whartung··on Shay Locomotives
Funny thing about Shays.

When you see a photo of them, you almost always see the right side of the locomotive, as that's where the pistons and the drive train are. You almost never see the left side of it. The left side is much more uninteresting.

However, having seen them and been somewhat fascinated in them for years and years, when I finally saw one live, it never occurred to me that the cylinders were only on the right side. I simply projected that the other side has a similar set, just like every other locomotive.

Not only that, but the boilers tend to be a bit off center on the chassis also.

Just funny when all you have is one perspective, how someone can incorrectly fill in the rest from other knowledge that seems coherent, but it completely wrong.

whartung··on Decker, a platform that builds on the legacy of Hypercard and classic macOS
Well thats the crux. While the display may seem simple (a grid, a few controls), a Web UI CRUD app, while routine today, is NOT simple.

While it's been 20+ years since I dealt with either, you can create table, get a navigable (and perhaps other features), and a CRUD detail screen in just a few minutes of drag and drop.

And it's right there, on your machine, no cognitive load about, well, anything, and ready to go. Another 10 minutes and you have a printable report spewing out on your laser printer.

It's quite a first step to go beyond the wizard based stuff into BASIC and such, but the fundamentals are there. And the fundamentals are useful out of the box.

You can set up a usable Access DB and MS Word Mail Merge in probably 1/2 hour of reading some tutorials.

Finally, out of the box, the screens look "ok". Your collection of fields conveniently fill the window nicely. You don't have a 21" x 12" white, barren canvas with Name, Address, C/S/Z and two buttons crammed up in the upper left corner. "Gee why is the font so small?" So now you don't have to fall down the rabbit hole to try and make your simple form even baseline "presentable".

It is curious that MS (afaik) does not have a way to drag and drop an Access application and have it "deploy" to the web, and (afaik), Access isn't part of Office 365 either.

whartung··on Writing a Debugger from Scratch
A favorite developing a debugger story was from a friend of mine.

They were working on a debugger for OS/2, which was quite notable at the time for being multitasking.

And at one point they got to enough of a base feature set that they could use the debugger on itself. Debugging the debugger.

While debugging the debugger, they would inevitably encounter other bugs in the debugging debugger.

So, with OS/2, they had a bit of an epiphany when they were able to debug the debugger debugging the debugger.

whartung··on Software rendering in 500 lines of bare C++
Is the Foley/Van Dam book still a go to resource for this? It seems it was updated in 2013, but, honestly, I’m more familiar with the ‘82 edition that was dedicated to 2D.

Back in the day, it was The Book for computer graphics.

whartung··on DARPA, U.S. Air Force fly AI-controlled F-16
As I understand it, they done this in simulation, and the human pilots did not fare well.

I don't know of the computer aircraft were able to fly beyond human limits (i.e. they don't black out) or not. If the computers can actually fly to what the airframe is capable of, they would have a distinct advantage over the human pilots.

whartung··on JEP 540: Simple JSON API (Now in Incubator)
Well, this will be fun.

I already have one of these (I'm sure I'm not alone). It's about 500 lines.

I found I'm not a huge fan of the JAX-B-ish style serialization of Java objects for JSON. I don't want to really downplay them, they certainly have their uses, they're very popular, I just don't like fighting them. Hand writing JSON marshaling code has not been arduous for me (notably with my utility layer). (I also, philosophically, strive to avoid "magic" in my code as much as practical.)

Of course, I still need a parser, I'm using GSONs parser, which means I'm still dragging in the whole bean level serialization infrastructure. I just don't use it. And while I've done JSON parsers before, I felt it was something better to import than maintain myself. So, in that sense, it's a mixed bag.

But, I do enjoy using it.

This will be a worthwhile JDK capability. Ideally it can replace mine.

whartung··on It's a shame what's happened to radio
I have Jim Ladds book, autographed. My friend went to a book signing and got it for me. It’s signed “They say it’s your birthday — Jim Ladd”.

I also saw him when he toured with Roger Waters for “Radio KAOS”. “Good night Jim.” “Good night, Billy.”

I really enjoyed him when he was at KMPC/KEDG with JJ Jackson. That station struggled to find its way, starting early on with Pat “Paraquat” Kelly and Cynthia Fox, along with Guy Kemp at night (kind of a comedy/zoo shtick — I found his show really funny). I remember calling in once when Joe Satriani was just getting airplay, and the guy who answered was yelling “Are you hearing this? Are you HEARING THIS!?”.

Live radio.

It was nice with Ladd because he had his freedom, but a wider playlist.

MARS-FM, KROQ, KNAC, Pirate Radio, 91X (from Mexico, when you can get it, but they had some power).

But, a notable memory was 1989. Tiananmen Square.

Geno Michelini, KLOS, Five o’clock funnies fame, announced the breaking news of what was happening in China, and followed it up with Rush’s “Red Sector A” from “Grace Under Pressure”. I still get a little choked up thinking about.

Live radio.

whartung··on The death and rebirth of my home server
Are there other computers that run off of SD cards long term successfully that are not Raspberry Pi’s?
← PreviousPage 2 of 34Next →