Share your repls and programming experiences

← Back to all posts
Eon: A New Way to Code Competitively
minx28 (483)

What is Eon and what does it do?

Eon is a platform to practice your programming skills with simple challenges that give you an input, tell you how to process it, and check for the correct output. You don't need to install anything or use any other websites: Eon will run your code, in a sandbox environment. You will have access to the full standard library of your language.
When you complete a challenge, your code will be run with ten test inputs. If the number of test cases passed is n, the score achieved is n**7 // 10000000. This means that for 10/10 you will receive 1000 points, for 9/10 you will receive 348 points, for 8/10 you will receive 107 points, et cetera. If you use the hint for the challenge, your score will be halved. When you redo a challenge, your score can only rise, not fall; if you achieve a lower score the second time, nothing will change.
All challenge submissions have a maximum of 0.2 seconds to run.

How does it work?

The backend of this website uses the Python library Flask. The in-browser code editor is CodeMirror. The code is run using Repl.it's Crosis API - massive thanks to @Scoder12 for helping me get that to work.

What are the current problems?

At the moment, there are only 3 challenges. I do plan to add more, but I need ideas - comment if you have any!
Only Python is supported for now, but I hope to change this soon. The next language I add support for will probably be Node, but after that I have no idea, so please comment what you want me to add!

Why am I getting 0/10 test cases when my code is correct?

Have you clicked the button that says "Read before submitting code"?

Commentshotnewtop
NoNameByProgram (191)

@ZDev1 so... the data var is your input

minx28 (483)

@ZDev1 did you READ the thing that says READ BEFORE SUBMITTING? As NoNameByProgram says, the variable data already contains the input, as you would know if you had read the help that it says you should read.

KobeFF (727)

@minx28 Woooaaah chill down buddy... lol

but noice project

ZDev1 (824)

@minx28 oh
didn't know sorry!

RayhanADev (1215)

@ZDev1 lmao take a look at this:

xD also get on ReplDash if you have time!

ZDev1 (824)

@RayhanADev cactus is awesome
But I'm not his alt

RayhanADev (1215)

@ZDev1 yeah we know, the alt finder found you as the “alt” for so many people xD.

RayhanADev (1215)

@ZDev1 hey if you can or want can you get on ReplDash

HarperframeInc (429)


Woah this is cryptic. What happened?

RayhanADev (1215)

@HarperframeInc ah you don’t know about repl.it’s numerous subdomains:
https://thanos.repl.it
https://offline.repl.it
^ try those xD

maxina (31)

Can... you... make the program run the code without repl.it?

minx28 (483)

@maxina no, I cannot. The problem is, how do you run a user's code safely? That is, how can you ensure that there is absolutely no way for the user's code to interact with the server and potentially break things? The only real solution for this was to run the code in a repl, as repls are completely isolated.

RayhanADev (1215)

@programmeruser get that unholy thing off this page xD. Python for the web sounds awful tbh. JS is gud.

HahaYes (1284)

@minx28 when did they yank crosis support

Codemonkey51 (923)

It's coming back, it's just there is/was an active exploit @HahaYes

SeamusDonahue (94)

awww man I really wanted to try this :( I hope crosis comes back

minx28 (483)

@SeamusDonahue I hope so too, and latest rumours say it will

Codemonkey51 (923)

They were confirmed not rumors lol @minx28

AJDevelopment (121)

eon: doesn't work
the big sad:

CodingRedpanda (143)


awwwww, i didn't get to use it! @minx28

Codemonkey51 (923)

New news on crosis: it is only down bc of a vulnerability, it will prob comeback later
cc: @minx28, @HarperframeInc

minx28 (483)

@Codemonkey51 POG. Will reinstate Eon as soon as it is back

Codemonkey51 (923)

Lol @minx28 you could of found this out like an hour or 2 ago on discord lmao anyway cool, hope it's back soon. Cya later

minx28 (483)

@Codemonkey51 bruh I was asleep 2 hours ago and walking to the train station 1 hour ago leave me alone smh my head

RayhanADev (1215)

@Codemonkey51 darn I really wanted to use Crosis too :(

Codemonkey51 (923)

It will prob come back soon after they fix the vulnerability @RayhanADev

HarperframeInc (429)

@Codemonkey51 POG will make something cool later

Pizzaz4me (60)

The button animation is really cool

I'm sure it would have been cool if Crosis was still supported

minx28 (483)

@PlaySoccer thanks. The original site used that animation in a few placed :)

BD103 (93)

What happened to Crosis?
Sadness

hg0428 (174)

Does not even work for me, first says can not run code, then the whole thing stops working because crosis

minx28 (483)

@hg0428 well what do you want me to do about it? Here's a hint: rudeness won't help.

hg0428 (174)

It was not supposed to sound rude. Sorry if it did. @minx28

Codemonkey51 (923)

Lol crosis ded this is too :(

HarperframeInc (429)

@Codemonkey51 How did crosis die? I can't find anywhere saying they closed it down.

Codemonkey51 (923)

Everyone's dev status got taken away (can no longer generate crosis tokens) and in discord allawesome (replit team member) says that crosis prob won't be back for a while, but he isn't 100% sure, so crosis is basically ded rn @HarperframeInc

HarperframeInc (429)

@Codemonkey51 I can still generate crosis tokens?

Codemonkey51 (923)

I mean, you can't generate a token to access a repl. The dev site caches tokens even if they are revoked @HarperframeInc

BlakeLeee (15)

This is gonna be fun once some of the bugs are fixed! I will most definitely upvote this!

minx28 (483)

@BlakeLeee thanks! The only bug I'm aware of at the moment is not a bug with my code, but that the code execution can't work due to a bug with Repl.it. Hopefully that'll be fixed soon

JBYT27 (1180)

Pretty cool Logo btw! I love it!

minx28 (483)

@JBYT27 thanks! You may be disappointed to find out that I made it in Microsoft Paint though, lmao

RahulChoubey1 (99)

I can't even write any code

RahulChoubey1 (99)

I can't sign in with a password. It keeps saying that the password is invalid. Can you add hints to show what counts as a valid password?

RahulChoubey1 (99)

Oh wait, I have to sign up! ok

fuzzyastrocat (1463)

When I click "submit", it just starts loading forever. In the browser console I get the following errors:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

However, the first one is sometimes different (though the meaning seems the same):

POST http://codejam10.minx28.repl.co/challenges/1 500 (Internal Server Error)

This really looks cool but no matter what I can't seem to get it to run.

NoNameByProgram (191)

@fuzzyastrocat it loaded the challenge html,
but it thought it was a JSON lol

minx28 (483)

@fuzzyastrocat I have just discovered this issue myself too - it seems that my account no longer has the developer role, which means I can't execute code using Repl.it's API anymore. Hopefully this will be fixed soon

Whippingdot (166)

It doesn't allow me to run, it gives an error message. I get an alert message. Is that because of this? @minx28

minx28 (483)

@Whippingdot yes. I added that message precisely so people wouldn't comment saying it doesn't work.

RayhanADev (1215)

@minx28 waiawaiwat you were a developer. How?? also I know a small way you can get roles but I can’t get it to work smh

minx28 (483)

@RayhanADev if you need to use the Crosis API, speak to turbio.

RayhanADev (1215)

@minx28 ohhhhhh that’s what it’s about. Thanks for confirming!
Also what exactly is the benefit of using the Crosis API?

minx28 (483)

@RayhanADev many things. What Eon used it for was to execute code in a repl.

xxpertHacker (613)

You will have access to the full standard library of your language.

So... how do I choose my language?

minx28 (483)

@SyedMuneebMunee why are you trying to run the repl yourself...