HackerTrans
TopNewTrendsCommentsPastAskShowJobs

benstopics

no profile record

Submissions

Show HN: PowerBasilisk: Open x64 PowerBASIC in Rust generates LLVM

github.com
3 points·by benstopics·il y a 5 mois·5 comments

Show HN: I spent 3 years reverse-engineering a 40 yo stock market sim from 1986

wallstreetraider.com
721 points·by benstopics·il y a 5 mois·240 comments

comments

benstopics
·il y a 5 mois·discuss
Weird... DNS is either not updated everywhere yet or some alias needs added. Every variation I can think of loads fine for me...
benstopics
·il y a 5 mois·discuss
In my last post about Wall Street Raider, I was asked a lot about why I hadn't tried to use AI to port the game to another programming language. The truth is that the original creator, Michael Jenkins, is still helping with the project and he only knows and has worked with PowerBasic for the past 40 years. So it didn't make sense to change the language.

But I was running into issues with my PB-C++-ElectronJS architecture where my FFI event system was causing race conditions and freezing the game, especially with navigation. I also always had dreams of Wall Street Raider on 64-bit cross-platform, but I always thought this would be a challenge... until I learned Claude Code and proper AI orchestration strategies.

You see, in 2012 the creator of PowerBasic Bob Zale passed away and his wife maintained it until selling it to Drake Software in 2017. Drake promised 64-bit and new features. Instead, they sold to Cinven, who shut down the forums and the website, abandoning the loyal developers who still had to maintain legacy systems now with no place to ask for help or look up example code.

Well I read this article recently about how they made a C compiler from scratch using Claude Code and I thought that was cool and I said I want to do that with Powerbasic. But one thing that you need of course is test harness, which of course there was none for PowerBasic. So I orchestrated Claude to build the compiler and also an interpreter to create TDD feedback loop. CC ran for many hours using my many long-winded markdown files as a north star, and eventually came up with a compiler... that didn't work right.

But now I was able to set up a test harness for Wall Street Raider. You see, the PBWin.exe PowerBasic compiler program has no CLI capabilities. Every time you compile it will pop up a Win32 message box. It is supposed to have a quiet switch, but it don't work. So that is why I had to make my own compiler. Now with my compiler and interpreter in hand, I was able to allow Claude to iterate on the compiler itself and Wall Street Raider code, fixing bugs in both codebases at same time. It ran for many hours and eventually smoke tested and fixed the compiler issues, and I was able to write Discord bot to download threads from the bug-reports channel and sic Claude on them, enforcing strict unit/integration/e2e Selenium testing practices in my many CLAUDE.md files scattered throughout project.

If you would like to check out my other stuff you may visit http://benjaminward.com/ thank you for reading.
benstopics
·il y a 5 mois·discuss
March 12!
benstopics
·il y a 5 mois·discuss
No, I had considered Microprose, Kitfox, Hooded Horse. I reached out to some but I should have been reaching out a year or two ago. I didn't think I would need one, I still don't think I NEED one... But would have been nice. But I just set a release date as a kick in the butt to get this thing shipped, which pretty much burns the boats of signing a publisher. I think it is better this way though. If it fails it fails. But Michael and I get to keep whatever proceeds are made and we get to do things our way at our pace. But there's other games such as Speculator that also need revamped. I kinda want Hackjack Games to be a remastering game studio, a land of misfit games of sorts. Maybe I'll be more open to having a publisher in the future.
benstopics
·il y a 5 mois·discuss
As the saying goes, strike while the iron is hot. Wall Street Raider will be released to Early Acces on March 12, 2026. https://store.steampowered.com/news/app/3525620/view/5951738...
benstopics
·il y a 5 mois·discuss
Is there any questions in particular you're curious about details-wise? I can certainly try to answer or reach it to MJ.
benstopics
·il y a 5 mois·discuss
Sorry for LLM flavor in the article. It's valid criticism and I will rewrite it when I get the chance. I just wanted to share the story and I didn't have time to write it completely from scratch, plus I'm not that great of a writer. I thought filtering my thoughts through LLM editor would eliminate the distraction of my poor writing abilities, which for most people I think it worked. For others, it created another distraction, ragebait in fact, which was not my iuntention. So between working 80 hours a week at the prompt factory and raising two kids I will find some time to de-ragebaitify the article, although it seems to have unintentionally propelled it to the front page, for which I am admittedly thankful for.
benstopics
·il y a 5 mois·discuss
Maybe as DLC!
benstopics
·il y a 5 mois·discuss
It is a cult and you should run while you still can. I would say to get to the point I'm so now I had to understand 40-50% of it. Let's face it, I work as a software developer and I don't remember half of the code in the project, maybe more, and I wrote it all! And this is way more complex than a business app. The reason I had to understand a lot is hard to explain but I will try... Basically a function might be called "FrontBuy". In this function contains all the math and all the decision tree logic and workflow for every possible situation to buy a stock. So now you say, let's replace all the Win32 dialogs with Electron front end. So what I did was I maintain essentially a high level GUI state manager in the Power Basic which controls the Electron app, using the C++ DLL as a FFI. That being said, you had to have some modicum of understanding of every function, maybe not all the math, but at the very least the workflow and structure of the PB code so that you don't break anything. And oh boy, did I break everything, many many times, to the chagrin of my beta testers.
benstopics
·il y a 5 mois·discuss
Most people enjoyed it. It is the same as the game. Most people like the remaster direction, a subgroup vehemently dislike specific design decisions and they don't always overlap. The more people that learn about the game the volume of feedback goes up and so does the volume of negative feedback. Just telling you feel my perspective, take it when a grain of salt. So you learn to take negatively, especially emotionally charged negativity, with a grain of salt. And you have a compulsion to ignore it. But I'm a very self aware person and I try to see the other side. I may not understand it, I may not agree, but I try to listen and understand. But to say I blanket missing the criticism is a flippant remark in my opinion. I'm not an idiot... It's easy to tell AI was involved and it turned many people off. But they also crap on the stuff I wrote from scratch. So is it AI or just that I suck at writing? It was just to share the story. I reread it multiple times and I enjoy the story even knowing it like the back is my hand. I lived it. I write stuff for me. I remastered the game for me and to share with like minded people. Honestly, the article being anti-AI rage bait is a low pass filter for people who could have said anything, and instead, they chose to NIT the article. But I try to be open minded and do better, but I am only human, not an AI, I have emotions and opinions. I'm sure most of those opinions are flawed. But I'm not mad at any of the criticism and I appreciate it.
benstopics
·il y a 5 mois·discuss
I did that on purpose, I thought it needed to be reiterated. See, you're blaming the AI but that was me. I did not specify a word count. Maybe I should have let the AI write the whole thing? Like I said I am not a great writer, especially content editing. Even with AI I couldn't make everyone happy. Oh well.
benstopics
·il y a 5 mois·discuss
Still using PB compiler. Tried to reach out to the company that bought the right to it and killed it because I wanted to extract the parser from it and make it target LLVM to be cross platform, but after a year of trying to contact them I gave up. I will have to build my own compiler at some point with Claude Code which won't be too difficult as WSR only uses a subset of PowerBasic so. When I first tried to build a compiler two years ago I didn't understand all the gotchas in PowerBasic as I do now. But right now I'm just focused on testing the game, fixing bugs, and getting it to Early Access so many I can get up to minimum wage in sales with the time I have invested in the project!
benstopics
·il y a 5 mois·discuss
The code is not a mystery anymore! I'm going to rewrite the article from the feedback I received here. Because I do understand the code now, but it still has been been rewritten even though I could now. This is so Micheal can still add his ideas to the game. Not because I can't work on the code myself, I can. I can code in BASIC now, Micheal can ONLY code in BASIC.
benstopics
·il y a 5 mois·discuss
Manual smoke testing and touching the original code as little as possible, for now. I am working on an automated testing solution although it will require a lot of backend changes in order to do create fixtures.
benstopics
·il y a 5 mois·discuss
https://wallstreetraiderwiki.com/index.php?title=Running_on_...
benstopics
·il y a 5 mois·discuss
I did exactly that originally. But here is the reality. Michael only knows BASIC and he has felt the agency to continue patching and working on the code, adding features even, since it is still BASIC. When others tried to port it to C++ be felt like he had no agency and wasn't motivated to help. So while he's still motivated to work on it, it needs to stay in a language he can work with. And thanks for wishlisting!!!
benstopics
·il y a 5 mois·discuss
I agree honestly. I just wanted to get the story out and share it and I'm swamped IRL. But I'm going to go back and clean it up when I get the chance. I do appreciate the constructive feedback from everyone and I will do better.
benstopics
·il y a 5 mois·discuss
I honestly get it. I wouldn't have made that comment but I get why it was made. It tells me I need to go back and put some more effort into it and clean it up. You know, in-between working 80 hours a week at the prompt factory and working on the actual game... Without Claude there would be no story to read. I pay Anthropic $200/mo and Claude is a robot. I don't think anyone shed a tear that I didn't put "coauthored by Claude" at the bottom.
benstopics
·il y a 5 mois·discuss
Good eye! I hope to go back and finish editing it. But it's better use of my time to work on the game itself. But hey, I did all the research at least which took me years so. I just wanted to share the story instead of listing bullet points. I have pretty bad ADHD so, I didn't wanted the article to be a rambling.
benstopics
·il y a 5 mois·discuss
Join Discord there is a channel dedicated to instructions on contacting him. He no longer sells the game except mailing him a check. A completely unrelated factoid... He LOVES $30 Amazon gift cards...