Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
irahul
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
109 ms
·
901.
▲
by
irahul
15y ago
> If your editor is Emacs, congratulations: that's the MS Word of text editors -- kitchen sink included, but not everything ideally placed unless you do a lot of customization.) Then someone shows you an IDE. That analogy doesn't stand
902.
▲
by
irahul
15y ago
> Have you ever heard Guido speak about the issue? Yes. > He and a number of others don't think it's one worth solving. Really. Check your claims. http://www.artima.com/weblogs/viewpost.jsp?thread=214235 http://docs.python.org/fa
903.
▲
by
irahul
15y ago
GIL is a problem - that has been acknowledged every time it has been brought up. There has been past attempts to remove the GIL - that slowed down the interpreter and the patch wasn't merged. Removing GIL is massive work and will make the i
904.
▲
by
irahul
15y ago
> Truth is python is not truly multi-threaded, Running Java threads on a single processor machines makes it not truly multi-threaded then ? Python has multi-threading - due to GIL, only one of them execute at a time, which isn't very d
905.
▲
by
irahul
15y ago
> How is the CGI model fundamentally different from a servlet model, Since both are web server to application server interfaces, they aren't fundamentally different - the difference is cgi was language independent and hence defined for
906.
▲
by
irahul
15y ago
> That means you can use any web framework with any web server, Or if you are really keen on working low level, you use a nice wsgi library viz. werkzeug.
907.
▲
by
irahul
15y ago
I see http://wsgi.org/wsgi/WSGI_2.0 mentions: > We could remove start_response and the writer that it implies. I searched for `wsgi start_response issues` and didn't get anything useful. Care to point out what's the fuss with start_re
908.
▲
by
irahul
15y ago
And that is predated by # hello.cgi print "Hello World\n"; I wasn't trying to claim WSGI is the first web server to application server interface. I was just showing Rack and WSGI are similar, and Rack was WSGI inspired.
909.
▲
by
irahul
15y ago
You sure have put effort and the project looks good, but I am missing the purpose. If the problem it tries to solve is parsing environ to form response objects, or providing vanilla middlewares, that problem is very well solved by a wsgi li
910.
▲
by
irahul
15y ago
> In my view, the problems with WSGI are that it has an unpythonic API (see: start_response and environ), Why do you find `start_response` unpythonic?
911.
▲
by
irahul
15y ago
I don't get the purpose. WSGI was meant to low level to cover the common minimum. If you want request, response semantics, use a higher level library - I use werkzeug which wraps wsgi, or flask which is small web framework built on werkzeug
912.
▲
by
irahul
15y ago
# WSGI def app(environ, start_response): start_response('200 OK', [('Content-Type', 'text/plain')]) yield 'Hello World\n' # Rack app = proc do |env| [ 200, {'Content-Type' => 'text/plain'}, "a" ]
913.
▲
by
irahul
15y ago
> What's the attack vector? CSRF.
914.
▲
by
irahul
15y ago
Facebook sure has improved the communication for me, and my circle. If it doesn't improve your life or anyone you care about, there are people who feel it does. Frankly, your subjective, continuous attacks on Mark Zuckerberg and Facebook ma
915.
▲
by
irahul
15y ago
> "start an new OS business" Is that "an new" an error or some obscure rule I don't know about.
916.
▲
by
irahul
15y ago
Oh, thanks. The earlier version of the man page had output stream in the description(if my memory isn't failing me). I searched for fflush C99 and based on absence of any credible link, I assumed nothing has changed in C99(and nothing reall
917.
▲
by
irahul
15y ago
Click on the link of the comment you want to forward: http://news.ycombinator.com/item?id=2782258
918.
▲
Ask HN: When did fflush got defined for stdin as well?
1 points
by
irahul
15y ago
|
2 comments
919.
▲
by
irahul
15y ago
And C# programmers have F# to go to if they want to sample ML. I do not primarily program in C#, and I have done decent amount of Java. As far as languages are concerned, I find C# 4.0 a superior language to Java 6. I took a look at both Sc
920.
▲
by
irahul
15y ago
May be this helps http://blip.tv/pycon-us-videos-2009-2010-2011/pycon-2010-pyt...
921.
▲
by
irahul
15y ago
I stand corrected - I was skimming and didn't notice. The example is correct - I was wrong.
922.
▲
by
irahul
15y ago
>>> Foo = type("Foo", (FooBase,), {'bar' : 42}) is not equivalent to what the blog post says it is to. FooBase should be defined before running this, and the blog post's equivalent make it look like this statement defines FooBas
923.
▲
by
irahul
15y ago
Too lazy to find the link but the article which popped up a day or 2 back(the one which mentioned Larry Page - If we can't win on quality, we shouldn't win) said he was laid off.
924.
▲
by
irahul
15y ago
> Yeah, that's a terrible tutorial. That's not a tutorial. Neither the question, nor his answer was about a tutorial. > He argues against magic (IDE's, build tools), Because they are learning impediments most of the times. > and
925.
▲
by
irahul
15y ago
> In pre Python 3, the closed over value isn't mutable unless it's a reference to a mutable object. > Proper closures were added in Python 2.2 (which is quite old at this point), not Python 3. x is a reference to a mutable object(li
926.
▲
by
irahul
15y ago
> then I realized that Ruby isn't quite like them either. I am curious. How does Ruby's closure differ from Scheme's?
927.
▲
by
irahul
15y ago
> I think he may not understand them. I won't think so. He codes a lot, in general, and in Python. I have read some of his posts and code, and he has a deep understanding of Python and programming in general. His complain was about @foo
928.
▲
by
irahul
15y ago
Java's closures are a pain as they need inner classes to emulate closures - Python's are a lot easier, hands down. Java needs the local variables to be final for it to close over them. Python doesn't but you can't directly mutate it. Won't
929.
▲
by
irahul
15y ago
> I have only a trivial amount of experience experience with Scheme, could you explain how its closures are different from Python's? In pre Python 3, the closed over value isn't mutable unless it's a reference to a mutable object.
930.
▲
by
irahul
15y ago
> You asked what the difference was. I told you. I didn't ask what the difference was. I asked what difference it makes what difference the name makes in context of knowing the difference between tmux and iterm2 - what is terminal emula
More ›