« first day (205 days earlier)      last day (2289 days later) » 

12:39 AM
@Dennis are the cross-origin headers still on? TIO is giving me:
[Error] XMLHttpRequest cannot load backend.tryitonline.net/run-legacy. Origin vihan.org is not allowed by Access-Control-Allow-Origin.
 
@Downgoat That's because it doesn't send the headers when an internal server error occurs. I'll have to check why is occurs though.
@Downgoat Should work now.
You should really migrate to the new format though.
 
hm :/ looks like it is working but no output for Cheddar
seems to be the same on TIO nexus
@Dennis will attempt now
@Dennis okay so I see the format is something along the lines of Vlang1cheddarF.code.tio11print "123"F.input.tio0Vargs0R. Can you tell me what V represents (before lang and args), the 1 between lang and cheddar, and F.code.tio?
 
12:57 AM
F specifies a file, V a variable.
Vlang<NUL>1<NUL>cheddar<NUL> is a variable named lang with a single entry and value cheddar.
 
single entry meaning one language?
 
It will always be one language. For multi-language snippets, you'll need mutiple lang declarations. V supports arrays though.
 
ah ok
also, the backend url is "https://backend.tryitonline.net/run/v65753536/", can I hardcode the "v65753536" or is there someway I should get the version?
 
F.code.tio<NUL>11<NUL>print "123" is a file named .code.tio of length 11 with the supplied content.
@Downgoat Trying to fetch the version won't work. When the value changes, you'll have to make an adjustment to your site.
That's the whole purpose: gracefully notifying the user that the frontend is outdated.
 
Hm, I've switch backends but I'm getting a 409 error:
Failed to load resource: the server responded with a status of 409 (Conflict)
 
1:12 AM
@Downgoat What's the exact URL you are querying?
 
@Dennis https://backend.tryitonline.net/run/v65753536
could it be with me messing up the request body generation?
 
@Downgoat You need a trailing slash.
 
ಠ_ಠ
When is the trailing slash ever not optional?
 
Woot, I think it worked! :D
 
Here.
 
1:13 AM
Need to decode the output though
 
Yep. You can use /api/ instead of the version token to prevent that, but things will simply break if and when I tweak the backend.
I had to mess with the gzip encoding to be able to abort requests because browsers are stupid.
 
3fRrvZk/EZpn4MNs
The variable 'lang' could not be declared.
oops?
I'm doing "Vlang\01\0" + language + "\0" + ... more stuff ...
form what I can tell this is the same thing as TIO
 
I'd have to see the request you made to figure out why.
\01 is an SOH byte, not NUL followed by 1.
 
Anonymous
Wouldn't this be more appropriate in the TIO room?
 
@Mego yes, it would, could we move the messages?
 
1:18 AM
Probably. Can't move from phone though.
 
Anonymous
I'll move them, one sec
 
86 108 97 110 103 1 0 99 104 101 100 100 97 114 0 70 46 99 111 100 101 46 116 105 111 0 55 0 70 46 105 110 112 117 116 46 116 105 111 0 48 0 86 97 114 103 115 0 0 82 is the exact sequence of bytes I'm sending
\01 seems to correctly be NULL 1
or... that's just VIM lying to me
 
No. You should see 86 108 97 110 103 0 49 0.
 
Anonymous
40 messages moved from The Nineteenth Byte
 
ok, fixed that one problem, now I'm getting a "The instruction '.' is not implemented."
 
1:21 AM
I can't figure out what the other numbers stand for.
 
ah, looks like I'm mssing a number
2qubMZy8+4nSTIQU2qubMZy8+4nSTIQURuntime Error: Attempted to access undefined variable `Math`

Real time: 0.500 s
User time: 0.438 s
Sys. time: 0.049 s
CPU share: 97.40 %
Exit code: 02qubMZy8+4nSTIQU
:D cool it's working
 
Neat.
 
ok, you should be able to delete the legacy backend then
 
v2 is still using it, but I should probably just shut it down for the time being. It doesn't really offer an advantage over Nexus at this point.
 
oh >_> ok, thanks for the help though
 
1:27 AM
np
 
@Downgoat Wait, exit code doesn't have to be an integer?
 
@ГригорийПерельман if you look carefully, exit code is same as beginning of response. Not sure what it means though >_>
 
Exit code is 0
2qubMZy8+4nSTIQU is a separator in this case
 
>_> Cheddar errors don't exit code 0
 
and yet it's 0
 
1:49 AM
:D figured out how to extract debug data
 
2:24 AM
@Downgoat How do you know if it's an error or any other kind of StdOut output?
 
@ГригорийПерельман I check return code
 
 
1 hour later…
3:55 AM
@Dennis please pull Mathics
iirc you applied a pull request which is a few months behind to increase performance, so check you're not pulling from that fork.
 
4:12 AM
I'm using mathics from pip. There's nothing to pull.
 
Oh, the one on pip is significantly more behind.
The GitHub version is a kind of 'beta', it has more features and stuff.
 
4:45 AM
I'll try my luck with the GH version then. Not today though.
 
 
4 hours later…
9:00 AM
@Dennis Ha, I got it to work.
 
 
1 hour later…
10:24 AM
@Dennis Our ⎕PATH trick is not working, as it only finds dfns, dops, tradfns, and tradops, while ignoring e.g. variables and trains. Remove that line, and instead add '#'⎕NS⎕NL-⍳9 to the bottom of the Footer. This will copy everything from the TIO namespace (after all has been defined) into the root (#). Also, can you pull AGL – again?
 
 
3 hours later…
1:36 PM
@Dennis Could you pull Charcoal? Thanks!
 
1:55 PM
@ASCII-only Done.
@Adám Pulled AGL. I'm not sure if I understand your proposed modifications. This is what the wrapper looks like right now. How should it look like instead?
{
        echo :namespace TIO_$(head -c 16 /dev/urandom | xxd -ps)
        echo "#.⎕PATH←⍕⎕THIS"
        cat .code.tio
        echo
        echo :endnamespace
} > ~/.bin.tio.dyalog

{
        echo "⎕PW←9999"
        echo "{}2⎕FIX'file://$HOME/.bin.tio.dyalog'"
        cat .input.tio
        echo
} | $DYALOG/dyalog -script "$@"
 
2:16 PM
 {
        echo :namespace TIO_$(head -c 16 /dev/urandom | xxd -ps)
        cat .code.tio
        echo
        echo "'#'⎕NS⎕NL-⍳9"
        echo
        echo :endnamespace
} > ~/.bin.tio.dyalog

{
        echo "⎕PW←9999"
        echo "{}2⎕FIX'file://$HOME/.bin.tio.dyalog'"
        cat .input.tio
        echo
} | $DYALOG/dyalog -script "$@"
@Dennis ^
 
 
1 hour later…
3:35 PM
@Dennis Can you please pull Brachylog?
 
 
1 hour later…
4:47 PM
@Fatalize Done.
@Adám Made the change. Let me know if it's working.
 
@Dennis Works!
 
\o/
 
 
1 hour later…
6:04 PM
@Dennis Thanks!
 
 
1 hour later…
7:20 PM
@Dennis now you can just use the func.rb file on another file to run it with J-uby (e.g. $ ruby func.rb file.rb). Does that work?
 
@Cyoce Sure, that works. Not at my computer right now, but I'll add it later.
 
Sure. thanks!
 

« first day (205 days earlier)      last day (2289 days later) »