Publi

7 Servicios online para compilar, ejecutar y ver la salida de pequeños programas

67520539-processor
Cuando estamos aprendiendo a programar o, cuando estamos probando algún pequeño código que hemos encontrado en Stack Overflow nos viene muy bien tener a mano un lugar para compilar rápidamente y ver qué sucede. Es más, incluso se nos puede presentar el caso de que una versión específica de un compilador tiene un fallo que nos trae de cabeza y nos vendría bien probar otra versión para salir de dudas.

Actualmente hay multitud de páginas que nos dan la posibilidad de compilar pequeños programas online y probar la salida de los mismos sin necesidad de tener que compilarlos nosotros (no imagináis la de pruebaX.c y pruebaX.cc que tengo en mi disco duro para cosas pequeñas de unas pocas líneas).

Hace unos 10 años tal vez pensaríamos que sería inviable lanzar un compilador dentro de un servidor para que todo el mundo compile lo que quiera (cosas buenas y malas). Por un lado, necesitamos potencia, pero actualmente los servidores son muy potentes, además, no habrá tantos programadores, por otro lado este tipo de servicios tienen controlados los tiempos de compilación y de ejecución, vamos, tenemos un tiempo límite para todo; también controlan la carga en cada momento del servidor, ya que habrá momentos en los que no se pueda compilar y te tienes que esperar, que para eso es gratis; también controlan el espacio en el que ejecutas el código, por un lado el usuario que ejecuta el programa tendrá unos privilegios muy básicos, por otro lado tendremos nuestro sistema enjaulado, además de RAM máxima y espacio en disco acotados; sin olvidar que habrá cosas que no podamos ejecutar. Aún así, son muy buena idea para pequeñas pruebas, algo como jsfiddle, codepen, sqlfiddle, pero para otro tipo de lenguajes.

En algunos casos, estos servicios online nos dicen cuáles son sus límites, en otros casos no, por lo que he llevado a cabo algunos experimentos para determinarlo. Creo que algunos factores importantes que se pueden mirar en estos servicios son los lenguajes soportados, el límite de tiempo de compilación y ejecución (así no hacemos bucles infinitos), el límite de memoria RAM que puede utilizar un programa, el límite de procesos que se pueden crear, y si podemos utilizar ficheros o tenemos acceso a red.

Como veis, son factores que aseguran la persistencia del servicio y que no son utilizados para realizar ataques. Por ejemplo, dejar que ejecutemos muchos procesos o hilos puede dejar sin servicio a otros usuarios haciendo que uno acapare los recursos, lo mismo sucede con la memoria y los tiempos límite. Por otro lado el acceso a red limitado impide que hagamos ataques con la IP de este servidor, o incluso que sea parte de una botnet.

ideone.com

Desde la web podemos crear nuestro código online, compilarlo y ejecutarlo online viendo la respuesta de manera inmediata desde el navegador y sin necesidad de instalar nada. Todo se ejecuta en servidor.

Lenguajes: Ada, Assembler, AWK, BC, Brainfuck, C, C++, C++14, C#, C99, CLIPS, Clojure, COBOL, CoffeScript, Common Lisp, D, Elixir, Erlang, F#, Factor, Falcon, Fantom, Forth, Fortran, Go, Groovy, Icon, Intercal, Haskell, Java, Javascript, Lua, Nemerie, Nice, Nim, Node.js, Objective-C, Ocalml, Octave, Oz, Pascal, Perl, PicoLisp, PHP, Pike, Prolog, Python, R, Ruby, Rust, Scala, Scheme, Smalltalk, SQL, Tcl, Unlambda, VB.NET, Whitespace; incluyendo variantes o compiladores diferentes para algunos de ellos.
Límite de tiempo de compilación: 10s
Límite de tiempo de ejecución: 5s
Límite de memoria: 256Mb
Acceso a red: no
Acceso a ficheros: no
Tamaño máximo del código: 64Kb
Procesos máximos: 16

Codechef

Es una plataforma para programadores de la India. Pero podemos utilizarla para hacer pruebas y cargar nuestros programas.
Podemos utilizar decenas de lenguajes como C, C++, Java, PHP, Bash… Como detalle indicaré que el editor me ha gustado, puedes elegir temas y te ayuda a codificar a medida que vas escribiendo.

Lenguajes: ADA, Assembler, Bash, Bf, C, C++, Clips, D, Erlang, F#, Fortran, Go, Haskell, Ick, Icon, Java, Javascript, Lisp, Lua, Nice, NodeJs, Ocaml, Pascal, Perl, PHP, Pike, Prolog, Python, Ruby, Scala, Scheme, Tcl, Wspace.
Límite de tiempo de ejecución: 5s
Límite de memoria: 1Gb
Acceso a red: no
Acceso a ficheros: no

RemoteInterview

Originalmente esta aplicación sirve para hacer entrevistas de programación online. Es decir, tú como reclutador en una empresa vas a hacer una prueba a un futuro empleado, y quieres ver cómo lo hace. Bueno, es una herramienta que te permite esto, aunque también nos permite compilar en varios lenguajes y utilizar un entorno bastante amigable. Algo muy bueno es que ha publicado en github bajo licencia MIT el software que utilizan para que lo ejecutes en tu servidor. Utilizan docker para crear un sandbox de compilación y ejecución.

Otra cosa muy buena es que, incluso sin ser usuario guardan tus sesiones de edición durante un tiempo (de hecho, mientras estoy probando han pasado varios días y he logrado rescatar código de hace 3 días).

Lenguajes: Bash, C, C++, C#, Clojure, Elixir, Erlang, Go, HTML, Java, Javascript, Objective-C, Perl, PHP, Powershell, Python, Ruby, Scala, Shell, Swift, VB.NET
Límite de tiempo: 20s
Límite de memoria: 128Mb
Límite de procesos: 31
Acceso a red: No
Acceso a ficheros:

Tutorialspoint

Un sistema mucho menos protegido que los anteriores. Y con los límites no muy claros, aunque se pueden averiguar algunas cosas. Todo se ejecuta en servidor también y tenemos una pequeña consola de bash online.

Lenguajes: Ada, Algol, AngularJs, Assembler, Awk, Bash, Basic, Befunge, Brainfuck, C, CSS, Clojure, Cobol, CoffeeScript, Coldfusion, C99, C++, C++0x, C++11, C#, Dart, D, Erlang, Elixir, Factor, Fantom, Falcon, Fortran, Forth, F#, Groovy, Go, Haxe, Haskell, HTML, Intercal, Icon, Java, Javascript, Jquery, Julia, Ksh, Latex, Lisp, LOLCODE, Lua, Octave, Malbolge, Markdown, MathML, Mozart-OZ, Nimrod, Node.js, Objective-C, OCaml, Pascal, Pawn, Perl, PHP, Pike, Processing.js, Prolog, Python, Rexx, Ruby, Rust, R, Scala, Scheme, Smalltalk, SML, Simula, Sqlite, Tcl, Tex, Unlambda, VB.NET, Verilog, Whitespace, Yasm
Límite de tiempo de ejecución: (variable, desde 10s a más de dos minutos)
Límite de memoria: 128Mb
Procesos máximos: 16 (probando)
Acceso a ficheros: Sí.
Acceso a red: Sí

Codepad

En realidad es una web tipo pastebin que permite compilar y ejecutar programas que escribas en él, para ver el resultado del código generado. Es muy sencillo, pero robusto. Los códigos se ejecutan en máquinas virtuales estancas y a menudo se restauran las imágenes de las mismas (por si ha pasado algo). No tiene un editor demasiado bueno, es un simple textarea, pero para copiar y pegar nos vale.

Lenguajes: C, C++, D, Haskell, Lua, OCaml, PHP, Perl, Python, Ruby, Scheme, Tcl
Límite de memoria: 128Mb
Acceso a red: No
Acceso a ficheros:

C++ shell

No informa muy bien acerca de los límites del sistema. Pero para unas pruebas rápidas funciona muy bien. Sólo compila C++98, C++11, o C++14 y tenemos unas pocas opciones para utilizar. Hay veces que el sistema está saturado y no compila bien, o no ejecuta el programa por completo, pero es cuestión de refrescar la página varias veces (eso sí, guardad primero el trabajo que habéis hecho antes!!)

Lenguajes: C++, C++11, C++14
Límite de tiempo de ejecución: >30s
Acceso a red: no
Acceso a ficheros: no
Límite de memoria: 128Mb
Procesos máximos: (He conseguido lanzar más de 200 procesos hijos)

Compile Java

Un editor y compilador online sólo para Java. Permite cambiar temas y bajarte un ZIP con los archivos.

Lenguajes: Java
Límite de tiempo de ejecución: 5s

¿Conoces algún otro?

¿Conoces algún otro sistema para compilar y ejecutar programas en línea? ¿Has tenido alguna experiencia con ellos? ¡Déjanos un comentario!

También podría interesarte....

There are 48 comments left Ir a comentario

  1. Pingback: 7 Servicios online para compilar, ejecutar y ver la salida de pequeños programas | PlanetaLibre /

  2. 토토사이트 /
    Usando Google Chrome Google Chrome 116.0.0.0 en Windows Windows NT

    Thank you for your wonderful blog. This is very wise for me. I’m glad I found this blog. 토토사이트 Thank you very much for sharing with us and for discovering a new factor in your respective posts.

  3. 토토사이트 /
    Usando Google Chrome Google Chrome 116.0.0.0 en Windows Windows NT

    This is a very good post. I just want to say that I found your blog and I am very happy to read your posts about. I will be subscribing to your blog and hope you write again soon. 토토사이트

  4. Angel17 /
    Usando Google Chrome Google Chrome 119.0.0.0 en Windows Windows NT

    What an interesting post. I enjoy reading this one. worcester ma plumber

  5. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    These you will then observe the most vital thing, the application gives you a site an effective critical web page: Spanish coach trips

  6. jsimitseo /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    The sheer size and selection of these web slots are mind-blowing. Great job. สล็อตเว็บใหญ่

  7. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    Two full thumbs up for this magneficent article of yours. I’ve truly delighted in perusing this article today and I figure this may be outstanding amongst other article that I’ve perused yet. If it’s not too much trouble keep this work going ahead in a similar quality. European travel booking platform

  8. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    The author is energetic about acquiring wooden furniture on the web and his investigation about best wooden furniture has realized the plan of this article. 91club

  9. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    Slot manufacturers need to focus on creating a reputation for durability. สล็อตแตกง่าย

  10. Rank Xone /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    The allure of online casinos is not just about winning money; it’s also about the social aspect. Connecting with players from around the world adds another layer of fun. 하이카지노

  11. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    Intriguing post. I Have Been pondering about this issue, so a debt of gratitude is in order for posting. Entirely cool post.It ‘s extremely exceptionally decent and Useful post.Thanks OsaBus bus tours

  12. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    Exceptionally fascinating data, worth suggesting. Be that as it may, I suggest this: pasar123 gacor

  13. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    Nice to be visiting your blog again, it has been months for me. Well this article that i’ve been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. cash for junk cars

  14. jsimitseo /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    The site is affectionately adjusted and spared as much as date. So it ought to be, a debt of gratitude is in order for offering this to us. รวมสล็อตทุกค่าย

  15. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    I get a kick out of the chance to suggest only fine in addition to proficient data and realities, thus see it: 안전한 토토사이트

  16. Local Citations /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    At last, I find it! I can use it to compile my small programs and keep it. This is great! Thanks for sharing it. Keep posting!

  17. ghori92 /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    That is great submit and also i love to learn this kind of submit. your website will be great and you also have got excellent employees within your website. great revealing keep writing. ultra panda 777

  18. meh /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    You have a real ability for writing unique content. I like how you think and the way you represent your views in this article. I agree with your way of thinking. Thank you for sharing. walk-in closet

  19. yitzchak kerrigan /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject. Real Estate Photographer San Diego

  20. yitzchak kerrigan /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    Concerning a short while ago going your site, the information you actually give on this site includes made it simpler for people considerably. With thanks to get your complete time frame & deliver the results. B52

  21. jsimitseo /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    This is exceptionally noteworthy, but then essential towards simply click this special backlink: เกมสล็อตโรม่า

  22. jsimitseo /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    I am searching for and I want to post a remark that «The substance of your post is magnificent» Great work! เกมไพ่ป๊อกเด้ง

  23. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    Unlock the power of Custom AI Agents with Taskade – your tool to create personalized AI assistants. Tailor them to handle tasks like content creation, web research, coding, and more, optimizing your workflow with intelligent automation. Perfect for businesses seeking efficient, AI-driven solutions. AI Workflow Automation Guide

  24. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    Regarding this matter web page, you’ll see my best data, make sure to investigate this level of detail. Animal Control Brampton

  25. WilliamSEO /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    I have a comparable intrigue this is my page read everything deliberately and let me comprehend what you think. cash for cars

  26. jameels feerock /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. 8usbio

  27. jsimitseo /
    Usando Google Chrome Google Chrome 120.0.0.0 en Windows Windows NT

    On this page, you’ll see my profile, please read this data. 블로그

  28. Bonanza138 /
    Usando Mozilla Firefox Mozilla Firefox 121.0 en Windows Windows NT

    I truly welcome this superb post that you have accommodated us. I guarantee this would be advantageous for the majority of the general population. transmission repair

  29. william SEO /
    Usando Mozilla Firefox Mozilla Firefox 122.0 en Windows Windows NT

    This is likewise a decent post which I truly appreciated perusing. It isn’t each day that I have the likelihood to see something like this.. จำนำรถ

  30. jsimitseo /
    Usando Google Chrome Google Chrome 121.0.0.0 en Windows Windows NT

    Extremely decent blog and articles. I am realy extremely glad to visit your blog. Presently I am discovered which I really need. I check your blog regular and attempt to take in something from your blog. Much obliged to you and sitting tight for your new post. concierge doctor

  31. yitzchak kerrigan /
    Usando Google Chrome Google Chrome 121.0.0.0 en Windows Windows NT

    This is the wonderful content, Cheers pertaining to supplying us this info. Preserve putting up. Order Tapentadol

  32. WilliamSEO /
    Usando Google Chrome Google Chrome 121.0.0.0 en Windows Windows NT

    For some individuals this is the best arrangement here perceive how to do it. เว็บพนันออนไลน์ ฝากถอนไม่มีขั้นต่ำ

  33. WilliamSEO /
    Usando Google Chrome Google Chrome 121.0.0.0 en Windows Windows NT

    On that site page, you’ll see your depiction, for what reason not read through this. เว็บสล็อต

  34. WilliamSEO /
    Usando Google Chrome Google Chrome 121.0.0.0 en Windows Windows NT

    Excellent read, Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. Squirrel Removal

  35. WilliamSEO /
    Usando Google Chrome Google Chrome 121.0.0.0 en Windows Windows NT

    Excellent read, Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. wow sod boosting

  36. WilliamSEO /
    Usando Google Chrome Google Chrome 121.0.0.0 en Windows Windows NT

    Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here. รับจำนำรถจอด

  37. WilliamSEO /
    Usando Google Chrome Google Chrome 122.0.0.0 en Windows Windows NT

    Good to become visiting your weblog again, it has been months for me. Nicely this article that i’ve been waited for so long. I will need this post to total my assignment in the college, and it has exact same topic together with your write-up. Thanks, good share. spain taxi

  38. ghori92 /
    Usando Google Chrome Google Chrome 122.0.0.0 en Windows Windows NT

    Bongetech Technology – Where ideas meet implementation for unparalleled success! Our team of forward-thinking entrepreneurs and skilled engineers is committed to delivering smart solutions for companies of all sizes. Embrace the right understanding and technological edge for a thriving future. Contact us today for a demo or a meeting with our committed sales representatives. digital transformation

  39. ghori92 /
    Usando Google Chrome Google Chrome 122.0.0.0 en Windows Windows NT

    Thank you for very usefull information.. Local Service Company

  40. ghori92 /
    Usando Google Chrome Google Chrome 122.0.0.0 en Windows Windows NT

    Actually sound, great, fact-filled details the following. The content Don’t ever fail, understanding that undoubtedly is valid the following at the same time. An individual constantly lead to an appealing examine. Is it possible to notify Now i’m pleased?: )#) Maintain the nice posts. hajarhoki slot

  41. Rank Xone /
    Usando Google Chrome Google Chrome 122.0.0.0 en Windows Windows NT

    Underneath you will comprehend what is vital, the thought furnishes one of the connections with an energizing site: https://tai789club.net/

  42. Rank Xone /
    Usando Google Chrome Google Chrome 122.0.0.0 en Windows Windows NT

    I love the thrill of online casinos! The excitement of each spin and the anticipation of hitting the jackpot make it an incredible experience. 프리카지노

  43. Rank Xone /
    Usando Google Chrome Google Chrome 123.0.0.0 en Windows Windows NT

    Casinos: where every hand is a potential game-changer. 로즈카지노

  44. Colton Cory /
    Usando Google Chrome Google Chrome 123.0.0.0 en Windows Windows NT

    You’re so interesting! I do not believe I’ve truly read anything like this before. So wonderful to find another person with some unique thoughts on this issue.
    Seriously.. thanks for starting this up. This site is one thing that is required on the internet, someone with some originality!

    Eating Healthy

  45. rayed shah /
    Usando Google Chrome Google Chrome 123.0.0.0 en Windows Windows NT

    FLORAL STUDIO In this article understand the most important thing, the item will give you a keyword rich link a great useful website page:

  46. Rank Xone /
    Usando Google Chrome Google Chrome 123.0.0.0 en Windows Windows NT

    Hallo guys, selamat datang di situs OKEPLAY777, pernahkah anda mendengar atau sudah bermain disini ?, Mari kita bahas sedikit tentang kelebihan situs slot online ini, sebagai situs slot gacor hari ini yang menggunakan slot server thailand terbaru gampang menang dengan winrate tertinggi di bandingkan situs lain, bermain di OKEPLAY777 memiliki experience yang berbeda pada saat mendapatkan kemenangan sensasional hanya dengan modal deposit slot dana Rp.15,000 dan menang berapapun di bayar tanpa potongan.

  47. Ufaauto789x /
    Usando Google Chrome Google Chrome 123.0.0.0 en Windows Windows NT

    ufabet auto ผู้ให้บริการสปอร์ตออนไลน์ และคาสิโนเต็มรูปแบบ เล่นเพลินเกินห้ามใจ ทำกำไรได้ทุกวัน

  48. Ufaauto789x /
    Usando Google Chrome Google Chrome 123.0.0.0 en Windows Windows NT

    ยูฟ่า789 เว็บแทงบอลที่ใหญ่ และการเงินมั่นคงที่สุด สล็อตออนไลน์ ไม่มีขั้นต่ำ ใช้ทุนน้อย เล่นได้ทุกเกม

Leave a Reply to Anónimo Cancle Reply