Hacker Newsnew | past | comments | ask | show | jobs | submit | ajyoon's commentslogin

It's highly doubtful the malware authors hadn't already figured out what went wrong by the time this was published.


Can confirm: googled and landed right here.


Per the Zen of Python, there should always be exactly one sensible way to do something, but unfortunately this is not often the case. List comprehension can be achieved just the same with functools, itertools, explicit for loops, etc.

That said, I do tend to have that mantra a little more present in my head when I'm working with Python.


Much easier, the equivalent C would be in the area of 15-20 statements


I was surprised to learn that this has got to be one of the only languages which is easier to compile than interpret. When compiled the language reduces to basically a single-register assembly with a one-to-one character-to-line ratio. Bracket branching can be extremely easily implemented with jump labels and `test` + `jnz` statements without having to worry about things like parsing and jump table construction at all.


It's pretty freaking easy to interpret, as well... I implemented an interpreter in Go (which I had never used before) in an hour or so; most of the time spent was learning the two languages (Go and BF).

I should start asking interview candidates to write a BF interpreter...


There is a minified version here if you're into that kind of thing https://github.com/ajyoon/systemf/blob/master/examples/http/...


listen...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: