« first day (568 days earlier)      last day (1926 days later) » 

12:17 AM
@Dennis Thanks, mind doing it again?
 
Done.
 
 
2 hours later…
2:20 AM
@Dennis Can I ask about Q# again? Especially since QC.SE is live now. I have three ideas for handling the C# Driver until the front-end can support multiple files: Stick with a fixed default driver (limited but ok for now), read the driver from a compiler flag (hacky but preferable to no driver customization at all) or just have Q# templates be installed but only allow using Q# from a bash wrapper without adding it as a proper language.
 
Where/how would I install the templates?
 
@Dennis dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.2-*"
 
Is that a global install?
 
This will enable dotnet new console -lang q#
@Dennis Yeah, netcore templates are always global.
Oh, nvm, not global. Per-user.
 
I think just installing the templates will be best until TIO supports it properly.
 
2:25 AM
Ok
 
What does dotnet new console -lang Q# -o quantum do?
Do I do that as well, or would that be handled in Bash?
 
Creates an empty Q# project with a C# driver and Q# Operation, in a new directory ./quantum, with the namespace quantum.
You could create one in /opt with a Hello World that can be linked to the current directory
But it's not necessary
The cs-core wrapper has a @/opt/microsoft/home/csharp/csopts.txt in it, what does the @ do?
 
I have no idea.
 
I don't think so.
@Pavel I did HOME=/opt/microsoft/home dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.2-*". Could you check if that accomplished something?
 
2:41 AM
@Pavel "This meaning of @ is defined by the date utility alone and not by bash."
 
Right. So presumably in this case it means it's defined by the dotnet utility alone.
@Dennis I think it accomplished something, it doesn't seem to work though: tio.run/##S0oszvj/P7WiIL@oRMHD39fVVj@/oEQ/NzO5KL84P61EPyM/…
I think you need to chmod 766 it
(I probably forgot the correct way to permissions)
 
You need cp -r /opt/microsoft/home/. .. Changing HOME means that dotnet will attempt to write to that "home" directory.
@Pavel That's universal write access and rarely what you want.
 
@Dennis That worked better, but it seems you also need dotnet restore for nuget packages
 
That requires making a project first, no?
 
Yes, unfortunatly.
 
2:49 AM
So, dotnet new console -lang Q# -o quantum?
 
Yeah
Capital Q though
(It doesn't really matter, but C# namespaces are generally capitalized)
 
Just copy-pasting what you wrote.
 
I know, I should have realized earlier
 
Everything else in that directory is lowercase, so I'll quantum for consistency.
 
That works
 
2:51 AM
Error: Invalid parameter(s):
-lang Q#
    'Q#' is not a valid value for -lang (language).
 
ಠ_ಠ
More lowercase qs
See, that's what happened when I made that message. The Qs somehow swapped places.
 
Nevermind. Forgot to set HOME.
 
Ah
 
Now cd quantum; dotnet restore?
 
Yeah
 
2:56 AM
Done. Did that help?
 
It didn't, not sure why
Does cp -r copy dotfiles?
It might be that the .cache isn't being copied
Hmm, no, not the case.
Ideally, this should run and exit without errors.
@Dennis Does it work if you do dotnet run in /opt/micrsofot/home/quantum locally?
 
3:12 AM
It should work now.
 
It does! Nice.
@Dennis Ok, so the empty project compiles, but it seems to have trouble instantiating a QuantumSimulator object: https://tio.run/##fZBNSwMxEIbv@RXj4mEXNIseLQiioJeitgUP4iHNjt1gNtlmkpYi/e1r6n60SnUOQ96ZyfC8MxdUNo2s4dxBbmufV0o6S/bd56WtMOfAmSxgGYTxoWIoSwvJ6UUC13Dn1Aodl9RXL3fVxxqd8MoaviRWWG/QgwuGNU0TSJkFTDfksRqxQ8VnpUNRxAKfCfqgvjvuYfhzC8Cnqgq63d89rYvjzIgKqRYSB9RPBjHqMNdKgtSCqCP@rrfdgwnycauElVUFjIUyKXkXEV7fQLgFZQcfdrF3OQkmNbiGDnCASrOM36O/WQvlMaqdmCAF7dNsNOzasjZvm78M2BrNkTs8OVUpH@2M/pu6FcaaeJ1upEXew0OawVVMvy4yt8VmED99j5FILDBNHlBrewYv1uniJDnm6As
 
3:30 AM
I can't tell what file it's trying to read
 
3:50 AM
Neither can I. As far as error messages go, The system cannot open the device or file specified. is pretty useless...
 
Does it work if run from /opt/microsoft/home?
I wonder if there's a way to intercept syscalls to see what files it's trying to access
 
4:02 AM
Apparantly there is (strace/ltrace) but they're not on TIO
 
4:42 AM
@Dennis can you pull VSL
You should also now be able to remove linker step since now it will automatically detect GCC or Clang and use that
 
 
6 hours later…
11:03 AM
@Pavel Yes, it does. I'll try to figure out what the difference is.
@Pavel The sandbox wouldn't let you use it anyway.
@Downgoat That almost works now. It generates a file with 644 permissions, so I'd have to chmod it.
Pulled and synced VSL.
 
 
3 hours later…
2:03 PM
@Dennis Alright. I'll try to strace it locally and hope it's not a sandbox issue.
 
2:49 PM
So I tried running strace with creating the simulator and without and the diff is over 2000 lines long ;-;
@Dennis The only file access that done with creating a QuantumSimulator that's not done without creating said simulator is open("/sys/devices/system/cpu", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 32
If that helps
 
Ah
Is that fixable?
 
Not without allowing the sandbox access to everything labeled sysfs_t. Not sure if that's a good idea.
I'll see if I can safely allow it when I get back home.
 
Alright
 
3:15 PM
Would it be possible to set permissions for only that directory but keep the contents unreadable? That one call is the entire diff, it's not looking at at any of the files/directories inside /sys/devices/system/cpu
 
4:05 PM
@Dennis TIO seems dead again, though only for Chrome this time. The symptoms are identical to those from last week.
 
@Scrooble no repro
 
 
3 hours later…
7:33 PM
@Scrooble Nothing changed on the server side. curl -I confirms that the redirects still work as intended.
 
 
3 hours later…
10:22 PM
Does anyone know which version of Kotlin is on TIO?
 
@jrtapsell Seems to be 1.2.21. Is that outdated?
 
also probably doesn't waste time compiling nothing
 
@Dennis 1.2.3 is latest
Can't imagine much changed over a 0.0.1 release though
 
@ASCII-only Not if you count to time to look up where kotlin lives. :P
 
@Dennis cat /srv/wrappers/kotlin
doesn't take that long
 
10:32 PM
@Dennis nope, I was going through my old answers and saw some that needed 1.1+, so I can update then with a link now
 
but I guess it might be slower
 
@ASCII-only longer than passing a version flag to the lang
 
@Pavel yeah but when that takes 9s to execute...
 
11:10 PM
@Dennis can you pull VSL? (fyi I've changed it so you now need to pull from master and also now outputs executables with 755 perms)
 
11:31 PM
@Dennis Could you pull Dirty please?
 
11:53 PM
@Downgoat Done.
Compiling works directly now.
 
yay :D
 
@Οurous Done.
 

« first day (568 days earlier)      last day (1926 days later) »