Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thanks for the feedback, I'm glad you're finding it useful! Some replies, in order of easiest to hardest :P

Re: GrabKey - Yes this seems like a stupid bug. I'm using some magic incantation to bind hotkeys on Linux (to open the calculator), and while I tested it on Win/Mac I just blind-did it for Linux and had someone else test it, and obviously didn't expect multiple instances will break. Oops! If you know of the correct way to register an OS hotkey, or an article about it, that would be very helpful (alternatively I can disable the hotkey, but I don't know if others use it. I just know Mac/Win people do).

Re: Printing precision - Yes, this is a bug I have seen as well. It seems to be new, since I feel like I tested it better than this, but I clearly need to revisit it. Printing numbers well turns out to be less trivial than I thought, but again if you know of any great article references that would help.

Re: Printing labels - I agree, some kind of labeling is definitely necessary. Your usage findings mirror mine exactly. After two values, maybe three, it starts to get messy and error prone to read them, and definitely inconvenient that they're on one line.
I think it's probably a good idea to "labeled print" any variable. So for example naked expressions like "3 + 5" get printed naked, but if you assign it like "a: 3+5" it gets printed as "a = 8" or something similar. And if you have labeled values, they automatically print vertically (whereas unlabeled values, I think are fine to print horizontally, because you naturally will start making variables as things get more complex anyway). I have ideas for "string labels" as well, but probably this initial fix would go a long way (string labels would be more for "very large" reusable programs that could use custom labeling. i have a couple of excel replacement kinds of programs which might benefit there, but again just having a VeryDescriptiveName for the variable names, and having those print, would probably be sufficient utilitarian-speaking).

Re: Open source - To be honest, I've kept it off github because I didn't want to manage the project, since it's my own hobby so to speak. But I totally get the tension, and that as something like this becomes more useful to someone (like you, or me), the more "uneasy" it might feel if it's not open. So for what it's worth, I promise that if I ever "abandon" it then I will post the source somewhere (or at least give it individually to whoever asks for it). This has been my stance up until recently. With the recent advancements in LLMs though, I'm less keen on the whole to put it out, because I don't really want clones. Again, being honest, I don't have a super clear moral stance on it, but it just doesn't seem like a can of worms I want to open. I might be persuaded one way or another. If you wanna chat more about it, join the discord and ping me.

So in the meantime, let me see if I can address those bugs and improve the labeled printing, those seem like simple improvements.

Update: 

I've blind "fixed" the Linux GrabKey issue, please give it a try and let me know if you can open multiple instances now (only the first will listen for the hotkey).


I've also fixed the number printing truncation, the calculation you provided should print correctly now (rounded to 69.24 due to float precision). It was a bug in the printing code, so thanks for providing a nice repro. If you see any further errors or weird calculations, please post them and I'll have a look. It's important for the basic calculations to be robust and trustworthy (which is a surprisingly messy topic, unfortunately, and an area I'd like to work on more when I have time).

Yup, both the multiple instances and the number truncation seem to be fixed. Thanks for the quick (and detailed!) response and fix!

With regards to providing the source code, this is similar to the concerns I was having about distributing the source for some of my future projects. I don't want to accept changes, except maybe in vary rare circumstances, and uploading it onto a website like Github might set the wrong expectations. Though Sean Barrett did exactly that with his STB libraries (as far as I am aware) and seems to be fine. And recently with regards to LLMs, it feels wrong to leave my code in an easily scrapeable place. Though on the other hand, my programming conventions are pretty baroque, so maybe it would be good, in a way, for bots to be slightly influenced by them. :D The option I am considering is to provide a download archive for my game that includes both the exectuable and the source code. That way it both seems (more) clear that I don't accept changes, and seems less likely to be scraped for training.

You're welcome for the reproduction case, it's the least I can do when reporting a defect. Sadly I am not aware on any material on printing floating point values. Even as I replaced the C standard library (with a different API) and wrote my own formatted printing function, it doesn't support printing floating point to this day.

Sadly I don't use Discord. I think the most convenient communication methods for me nowadays are email, Steam, and IRC. So let me know if any of those would be convenient for you. Sorry, I know this is strange selection.

Looking forward to what you decide with the labeling, no pressure though. What you suggested with reusing variable names for printing seems good. And of course in the end you decide what is the appropriate way to implement features in your program. So far your approach seems to have produced good 'bang for buck' in terms of usefulness and simplicity in my view.

Great, glad to hear they're fixed! Man I wish I knew more people on IRC, that would be my preferred method as well haha. I can't post my email here but if you dm me on Twitter we can get in touch @antovsky.

I like the labeled printing approach, I was going to implement it as part of the fixes but unfortunately realized that by the time that part of the code gets to printing the results, they are already "stripped" of their variable binding (it's a stack machine evaluator, and all it's printing are the remaining contents of the stack after all the ops complete). So I will need to do some more plumbing to actually keep around the bindings for printing, which makes it more work than I have time for right this second. It's almost certainly the right approach though (at least as a first try).

Ahem, I don't have Twitter either.. You can find my email on my website though: http://danilafoxpro.s1.luan.software/ . Hopefully Itch Io doesn't whack me for posting a link, since it seems they've been dealing with link-posting bots lately...