239 reputation
18
bio website
location Cambridgeshire, United Kingdom
age 35
visits member for 1 year, 9 months
seen Nov 6 at 22:43

I do Web ~ Python, JavaScript, CoffeeScript, AWS, App Engine...


Jun
25
comment Why aren't there other programming languages that compile to Python bytecode?
Python is a very nice language, but the library and ecosystem is getting really tired. There's little point replacing the language to access the libraries.
Jan
7
comment Why do people hesitate to use Python 3?
It's a good answer, and makes a lot of sense, but there are significant upsides for companies that allow their developers to use the very best tools. Python3, as a language, is superior to Python2. A lot of software companies could make the investment back in time saved not dealing with unicode alone.
Oct
23
comment How to Avoid a Busy Loop Inside a Function That Returns the Object That's Being Waited For
I went with conditions over semaphores. It just fit the specifics of the problem better, but your answer's spot on. Cheers.
Oct
23
comment How to Avoid a Busy Loop Inside a Function That Returns the Object That's Being Waited For
It must return the string the user entered. If someone does help(), Python will print a message and create a prompt for some input by calling sys.stdin.readline. I need to assign a custom readline method that blocks and returns the user's input. It's removing the busy loop from that method [or whatever it calls] that's the problem.
Mar
16
comment I need some help with defining a shell syntax
Thanks. I've updated the question to make it clearer what I really need.
Mar
15
comment I need some help with defining a shell syntax
I'm actually struggling to find examples though.
Mar
15
comment I need some help with defining a shell syntax
I've edited the question to try and make things clearer. I'd like to know about features and syntax, but I'd be happy to just get some pointers on little known shells and interactive interpreter hacks and that kind of thing.
Mar
12
comment Would Python be too slow for client-side use in Browsers?
You'd just use semis for a lot of it I guess. I think you can use braces in Python too, but you need to import some library to do it. I remember seeing that some place.
Mar
12
comment Would Python be too slow for client-side use in Browsers?
@MichaelT: You wrote "there is no technical design issue with javascript that makes it inappropriate for being a client side language". You mean Python not JS??
Mar
12
comment Would Python be too slow for client-side use in Browsers?
Very good points. You're right of course, and know a bit more about this than I do. I'll add an update...
Mar
12
comment Would Python be too slow for client-side use in Browsers?
I only meant that using Python in webpages could be done by compiling it to JS and that this wouldn't be too slow. I see what you're saying, it could do more than increase page load times if the compiled code was less efficient than hand-coded JS. You're right there. I was just assuming the compiler does a good job. If you look at CoffeeScript, once compiled, it is often much better JS than most hand-written stuff in practice. I've heard it said that C compilers produce better machine code than assembly programmers, again in practice. Your point is perfectly valid though.