Live data from Hacker News

The Eval Game

oskaerik.github.io

11–20 of 34 posts

Re: The Eval Game

#11
post #2

Seems very fun but the instructions are really unclear. There's no indication of the class having to be defined in the scope (though it makes sense). The password isn't really clear on being in the filesystem (at first I assumed it's in the actual github repository for the game) and "no __builtins__" sounds more like you can't use the literal string "__builtins__". I feel like it would've been so much more fun if you…

I got stuck on rule 3 — what on earth is a "comprehension?"

Re: The Eval Game

#12
On my Firefox, after the loading page, I just see a blank screen and a lot of errors in the terminal ("Uncaught Error: Converting object to an encodable object failed: -Infinity").

Re: The Eval Game

#14
post #11
post #2

Seems very fun but the instructions are really unclear. There's no indication of the class having to be defined in the scope (though it makes sense). The password isn't really clear on being in the filesystem (at first I assumed it's in the actual github repository for the game) and "no __builtins__" sounds more like you can't use the literal string "__builtins__". I feel like it would've been so much more fun if you…

I got stuck on rule 3 — what on earth is a "comprehension?"

A list comprehension: E.g. [x for y in z]

Re: The Eval Game

#15
post #9

I'm no python expert, but if python really has a way to define named functions inside an expression, I'm not sure I want to know how to do it...

[deleted]

Re: The Eval Game

#17
I love it. I did something very similar but for command line escaping. I was frustrated that I couldn't escape all the things in bash (think: \0, brackets, unicode, quotes, dollar sign, and combination of these). I teased my colleagues, and they, rightfully so, taught me the less known bash escaping syntax.

Here's the python script if you want to test your bash-escaping powers:

https://gist.githubusercontent.com/majek/c65d1ef2686f00810c1...

   $ python3 shellgame.py 
   [ ] Received parameters: repr=[]
   [+] Let's start the game!
   Level 1: Run me with parameters: repr=['a']

Re: The Eval Game

#18
Not working at all for me; looks like this import is failing:

https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js

JSDelivr is supposedly up, but the CDN isn't working for me at all. Is it blocked in the UK?? That seems like a big deal if so.

I see some past discussion here about it being possibly banned in the EU: https://news.ycombinator.com/item?id=35793009

Re: The Eval Game

#19
Did they get an entire Python interpreter into JS?

Yes, I know all Turing machines are equivalent so it shouldn't be surprising it was possible but still, cool.

Re: The Eval Game

#20

Not working at all for me; looks like this import is failing: https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js JSDelivr is supposedly up, but the CDN isn't working for me at all. Is it blocked in the UK?? That seems like a big deal if so. I see some past discussion here about it being possibly banned in the EU: https://news.ycombinator.com/item?id=35793009

Pyodide maintainer here, we would have certainly seen more reports if JsDelivr was blocked in UK. That URL works fine for me from France, and when using a UK VPN end point. Maybe something specific about your network (corporate proxy etc)?

Are you getting an HTTP status other than 200 or the domain name not being resolved?

Post reply on HN