Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Έρικ Κωνσταντόπουλος
    @GolfingSuccess
    @DennisMitchell Do you check in here frequently? I might often send messages. (Yay 1st message)
    DennisMitchell
    @DennisMitchell
    @GolfingSuccess I get email notifications for pings, so yes.
    Nate Kerkhofs
    @nzall
    I'm not sure if this fits here, but I sometimes accidentally start something on TIO that turns out to have a really long runtime. Does TIO have something to stop things like this that run too long?
    Martin Ender
    @m-ender
    @nzall just hit run again (or ctrl+enter)
    Nate Kerkhofs
    @nzall
    But nothing automatic, like I start a really long recursive function and then leave?
    Martin Ender
    @m-ender
    it times out after a minute
    Nate Kerkhofs
    @nzall
    Okay, that's what I'm talking about
    good to know at least that I can't accidentally DDOS your service.
    Martin Ender
    @m-ender
    Dennis's service ;)
    Marcin Konarski
    @AmokHuginnsson
    Hello. I am wondering, how is list of the available languages chosen? I am curious about recreational. What are the conditions the programming language has to meet to make it to the list?
    DennisMitchell
    @DennisMitchell
    @AmokHuginnsson I add most languages by request.
    Marcin Konarski
    @AmokHuginnsson
    @DennisMitchell Hello, I wonder if you would consider adding language I am working on, what conditions the language must meet and what information shall I provide?
    DennisMitchell
    @DennisMitchell
    @AmokHuginnsson First and foremost, the language has to work on Fedora 26, from the command line, and without network access. I'd need a link to the interpreter and an example program (preferrably one that prints Hello, World!).
    Marcin Konarski
    @AmokHuginnsson
    @DennisMitchell Is it enough if interpreter builds from sources or should it be installable with package manager?
    DennisMitchell
    @DennisMitchell
    @AmokHuginnsson No need for an RPM. I build several interpreters from source.
    Marcin Konarski
    @AmokHuginnsson
    @DennisMitchell I do not know if it works on Fedora 26, I will have to setup VM, I know it works in reasonably recent Debian, Ubuntu, Centos, FreeBSD or Cygwin.
    DennisMitchell
    @DennisMitchell
    If it works on CentOS, it should work on Fedora. I'll give it a shot tonight.
    Marcin Konarski
    @AmokHuginnsson
    @DennisMitchell Thank you :)
    DennisMitchell
    @DennisMitchell
    @AmokHuginnsson I tried building from source, but I get running with super-user privileges - bailing out. The way TIO is currently set up, I have to build as root.
    I tried downloading the RPM from the CentOS repo as well, but libgcrypt.so.11 cannot be provided. The current version on Fedora 26 is /usr/lib64/libgcrypt.so.20.1.8.
    DennisMitchell
    @DennisMitchell
    I tried removing the sanity checks, but now I get this error.
    configure: error: Can not continue without yaal hcore library.esesudo-relocs... no
    Marcin Konarski
    @AmokHuginnsson
    @DennisMitchell I think i would be easier if I setup a VM and build proper packages.
    DennisMitchell
    @DennisMitchell
    RPMs for Fedora? That would be great.
    Marcin Konarski
    @AmokHuginnsson
    Regarding "yaal" error, the interpreter consists of two parts (projects) runner (project called huginn) and library (project called yaal) that provides interpreter itself. yaal must be built and installed first, than huginn. But like I said I will setup Fedora 26 VM and provide packages for it.
    DennisMitchell
    @DennisMitchell
    @AmokHuginnson I managed to install the RPMs directly (breaking dependencies), but I can't seem to figure out how to write a simple Hello World program. pow.hgn works just fine, but main(argv_) errors for a program that doesn't rely on arguments (Variable `argv_' is never used (did you mean `real'?).) and main() just segfaults.
    Marcin Konarski
    @AmokHuginnsson
    huginn --no-argv
    so argv_ is not required
    huginn -i gives interactive mode
    what precisely did you do to segv?
    Ok, I got segv reproduced :(
    DennisMitchell
    @DennisMitchell
    main() { return(0); } without --no-argv segfaults.
    Doesn't matter for TIO, but out of curiosity: how do you run Huginn programs as root?
    Marcin Konarski
    @AmokHuginnsson
    Well, you cannot.
    DennisMitchell
    @DennisMitchell
    Why?
    Marcin Konarski
    @AmokHuginnsson
    I do not trust myself enough to allow it :)
    I do not want to trash whole system because I made some stupid bug.
    DennisMitchell
    @DennisMitchell
    Understandable, but there are scenarios where this would be perfectly safe (e.g., in a sandbox).
    Marcin Konarski
    @AmokHuginnsson
    yes, unfortunately not everyone is cautious enough to sandbox untrusted programs that would be executed with administrative privileges.
    gotta fix that pesky segv
    DennisMitchell
    @DennisMitchell
    Let me know when you have a Fedora 26 RPM. Symlinking libgcrypt.so.20 to libgcrypt.so.11 works well enough for Hello World, but I doubt it's robust.
    Marcin Konarski
    @AmokHuginnsson
    I will.
    Marcin Konarski
    @AmokHuginnsson
    @DennisMitchell Hello. I think I made it. I created new repo for Fedora and I put new instructions on how to use repos from my server. If you could try if it works for you that would be awesome :)
    DennisMitchell
    @DennisMitchell
    OK, I'll take a look tonight.
    DennisMitchell
    @DennisMitchell
    @AmokHuginnsson Installation worked perfectly, but I can't seem run programs within the sandbox. This is the error I'm getting:
    syscall failure - bailing out: Permission denied
    @AmokHuginnsson From my audit logs, it appears that the problem is a call to setrlimit. For security reasons, the sandbox doesn't permit modifying the resource limits.
    Marcin Konarski
    @AmokHuginnsson
    @DennisMitchell By any chance, do you know which limit it is?
    and if that resource is limited already?
    DennisMitchell
    @DennisMitchell
    Don't know which limit it is, no. I only see the action, but not the details.