Hacker News new | ask | show | jobs
by tptacek 3661 days ago
Which "load" command? What's the feedback you're looking for?

Did you write a C program, click the compile button, and now want to run it? Just type "run".

There's an in-game reason why we break out the flash/load/exec commands the way we do, but "run" does all the fiddly steps.

1 comments

I want typing "load foo.cg" and hitting enter in the debugger to print _something_, almost anything. Ideally it would print different things depending on whether foo.cg actually exists and is a valid file to try to load or not. Just some sort of feedback indicating that the command actually did something would be great.

I like the different load/flash/vmload/vmexec commands, I've certainly needed to stop at points in the middle to inspect the debugger state.

Oh.

Yep, like "compile", that command is vestigial (the source editor used to live in a tab, and, ironically, the file saving stuff made more sense that way, driven from commands on the CLI).

Yep, I can make "load" do that. Give me a few hours, though! It's an easy task, but I'm tethered through my iPhone right now.

I personally am in no rush for this, all my discretionary coding time is currently going to a work sample for an opportunity Starfighter found me at the moment.