Contest Phase 2, Task 3: Objective function "returns a character vector representing the protein string made by translating the codons into their corresponding amino acids or stop signals."
I'm interpreting this to mean that prot should stop translating at any stop codon; however, I realized there's a reading where prot just naively spits out sequences of amino acids, including the stop pseudo-amino acid.
Hmm. It suggests that x←5⋄x+1 should evaluate to 6, which you can't argue with. But getting it to say why the parse tree comes out like it does ends up in a hallucination.
As an aside, my wife's using it to explain Swedish grammar occasionally, and it's disturbingly flawless. But I guess it's digested every book on the subject since the dawn of time.
Yeah, although after some pondering it's probably not incorrect -- since the parse function carries no variable state (it doesn't evaluate), it can't know that x is an array after the diamond.
Well, clearly the parse tree is nonsense, but it's probably expected nonsense.
Are these tricks just oral history, or is there some cheat sheet or debug-specific documentation somewhere -- I can't see it anywhere, but perhaps I don't know where to look.
@xpqz Sure, although not related to RIDE per se, a "watch point" feature would be awesome. Here's a hack that implements it, but requires global x and y:
∇watch_x
:Implements trigger x
((x>y)/2⊃⎕LC)⎕STOP(2⊃⎕SI)
∇
Then e.g. the following function stops appropriately:
So a trigger basically can change stuff behind the user's back whenever someting is touched. I am not sure if I should grin evilly in anticipation of the fun one could have with that, or shake my head in disbelief. Maybe a bit of both.
@Adám going back to the break point thing, could I hang something like that on a user command? ]break x>y for a conditional breakpoint at the current location?
A trigger though would stop whenever the condition is fulfilled, not specifically when passing a specific line in the code?
So at the line of modification? I'm speculating here.