« first day (845 days earlier)      last day (1649 days later) » 

1:49 AM
@Dennis Can you install perl-calc?
Actually ignore that
It's interactive only
 
@Dennis what version of node.js does TIO use (or is used to run VSL)
 
Oh wait no I figured it out you can pass it arguments
Like calc "$(cat .code.tio)"
@Downgoat The node on path is v8.12.0. The node used for javascript-node is v10.9.0, but VSL gets the one on path.
Both will be 10.13.0 when Dennis does the F29 upgrade
 
huh that should work on idea why issue is caused will do CLI tests on travis... I Guess
 
2:14 AM
@Pavel As a language?
 
@Dennis Or as just a util like sfk was before that became a language
I just figured it'd be simpler to have a language than a util
Also we might be able to pull off this 600 languages thing
I also found a distribution of Perl 1 which has theoretically be patched for GCC 3 compatibility: etla.org/retroperl/perl1
 
Great, now we just have to build gcc 3.
 
It might build under modern GCC
I haven't tried
 
It's from 2004. I'm not optimistic.
The patch, I mean.
 
I'm actually kinda surprised that more modern GCC would fail to build old GCC
You'd think it'd be backwards compatible
 
2:23 AM
It's the dependencies you should worry about.
Although there's bound to be that part of the code that assumes int is 16 bits wide.
 
I can't get past locating libc in the configure script
I can't seem to find your C library.  I've looked in the following places:

        /usr/lib /usr/local/lib /lib

None of these seems to contain your C library.  What is the full name
of your C library?
I tried to tell it about libc.so and it failed to recognize the file format
@Dennis Int size is actually one of the thinks the Configure script asks about
As well as double byte alignment
 
OK, but my point is that things change over time.
Python 2.7 started to segfault because a newer gcc aligned a struct differently.
@Pavel Do you have 32-bit development files?
 
Good point
Oi, why does install 32 bit libc downgrade 64bit gcc
dnf wat
Yeah, no. the configure script just doesn't pick it up
None of these seems to contain your C library.  What is the full name
of your C library? /usr/lib/libc.so

Extracting names from /usr/lib/libc.so for later perusal...ar: /usr/lib/libc.so: file format not recognized

The archiver doesn't think /usr/lib/libc.so is a reasonable library.
Trying nm instead...
nm: /usr/lib/libc.so: file format not recognized
That didn't work either.  Giving up.
Ah hah, I ffigured it out
It got confused by the link from libc.so to libc.so.6
> make: *** No rule to make target '<built-in>', needed by 'arg.o'. Stop.
Well that's familiar
But no type errors
 
2:50 AM
Speaking of calcs. github.com/lcn2/calc
I'll take a look at that one tomorrow.
 
3:10 AM
@Dennis whats the path for the crt on TIO?
 
@Downgoat crt?
 
3:30 AM
what is weird is that TIO Clang doesn't seem to support the standard -arch flag tio.run/##S0oszvj/…
and I can't find a way to detect which Clang installatoins support it and which dont
aha found it!
 
-target?
 
Does LD have a cross-platform way to specify arch?
 
4:07 AM
@Downgoat Not architecture per se, but ld -m elf_x86_64 implies one.
 
4:24 AM
> ld: warning: option -m is obsolete and being ignored
:(
 
4:36 AM
@Dennis I've redone the toolchains system so should work now. Could you pull VSL?
 
4:51 AM
uhh i take that back still might be buggy unless clang is installed
 
 
1 hour later…
6:18 AM
@Dennis Thanks! You didn't push tryitonline.
 
ngn
7:09 AM
@Dennis could you update ngn/k please
 
 
1 hour later…
8:16 AM
ok I think I've squashed the last few bugs VSL should be good to go tested on macOS ubuntu and ubuntu
 
 
5 hours later…
12:57 PM
@Downgoat What do you mean? TIO does have clang istalled.
@Pavel Fixed.
@Downgoat It's working now. Updated.
@ngn Doesn't seem to pass it's self test.
testing
-1 23 -45 -0 0N 0W -0W
 expected: -1 23 -45 0 0N 0W -0W
 actual: -1 23 -45 0 0N 9223372036854775807 -0W
-1 0 1%0
 expected: -0W 0N 0W
 actual: -0W 0N 9223372036854775807
(+/!0;*/!0;&/!0;|/!0)
 expected: 0 1 0W -0W
 actual: 0 1 9223372036854775807 -0W
&/0#,(1 2;"34")
 expected: 0W
 actual: 9223372036854775807
$(0W -0W;0N -12345678;9)
 expected: (("0W";"-0W");("0N";"-12345678");,"9")
 actual: (("9223372036854775807";"-0W");("0N";"-12345678");,"9")
5/345 failed
'error
$[n;error+1($n),"/",($#t)," failed\n";];
 
ngn
@Dennis huh... could you give me the first line clang -v prints?
 
clang version 6.0.1 (tags/RELEASE_601/final)
 
ngn
@Dennis mine is way older (3.8.1). i'll try to figure out what's going on and i'll ping you later today
 
ngn
2:08 PM
@Dennis it should work now. the problem was this
 
2:45 PM
OK, I'll pull as soon as I get home.
 
 
3 hours later…
6:14 PM
@Dennis could we make the TIO debug/output textfields parse ansi color codes :3
 
7:06 PM
That shouldn't be too hard, I think.
@ngn Updated.
 
ngn
@Dennis thanks!
 
@Dennis uh... seriously? o_o (although it can be harder for other escape codes)
 
Emulating all escape codes would require some work, but \e[31m just has to be mapped to <span class="red"> or something like that.
 
more like \x1b\[31m, tbf
(regex)
 
What is all that stuff at the front?
 
7:19 PM
sorry
I had a moment where I thought \e was a literal \e lol
(did some serious math today)
so, yeah, I guess you can do that
although it might lead to unclosed tags
 
If you map it to </span><span class="red">, that won't be a problem.
 
ah, so you prepend <span class="white"> and append </span> and then do that?
 
Basically.
Of course, the easiest solution would be to render the output in a virtual terminal and take a screenshot.
 
that would make the output uncopiable
 
It's also neither easy nor possible inside the sandbox.
 
 
2 hours later…
9:41 PM
@Dennis there are also quite a few npm libraries but basic .replace + color lookup table + a counter should do the trick
 

« first day (845 days earlier)      last day (1649 days later) »