Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zedshaw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
721.
▲
by
zedshaw
16y ago
It was users complaining, not me. I had no problem with Python, but all of the non-python users (the users of one of the 9 other languages Mongrel2 supports) hated Python for these reasons.
722.
▲
by
zedshaw
16y ago
"Big"? You keep using that word. I do not think it means what you think it means: $ rm src/parser.c src/cli.c src/lexer.c src/linenoise.c $ wc -l src/*.c src/*.rl 148 src/ast.c 646 src/commands.c 267 src/config_file.c 93 src/
723.
▲
by
zedshaw
16y ago
It was a fairly small chunk of Ubunutus that had problems with Python versions. I made sure m2sh-py worked with 2.5 (since I had an OSX around with 2.5) and I ran into a couple people with what was a recent Ubuntu, but with a 2.4 Python.
724.
▲
by
zedshaw
16y ago
People who don't do Python won't/can't use virtualenv. Also, you don't think that's a nasty workaround for something that should just be a non-issue? That's like you telling me to use NetBSD pkgsrc just to get around some ancient linux (w
725.
▲
by
zedshaw
16y ago
pip and virtualenv don't work for a program like m2sh that has to be in the PATH all the time so you can run it from anywhere. Another thing is that non-python programmers wouldn't even bother to use virtualenv. Really only Python programm
726.
▲
by
zedshaw
16y ago
I thought about something like that, but wanted to duplicate the existing config file format so that people's configs would keep working (mostly). It actually had some cool advantages, like a nice psuedo variable system letting you setup v
727.
▲
by
zedshaw
16y ago
Yes, pip/virtualenv works for installing things like Django. It totally fails for something like m2sh which has to live in the system PATH so that you can run it from wherever you have your configs. But you know, I wonder if the various dis
728.
▲
by
zedshaw
16y ago
Some people do that. It actually was used in jruby, and I think a couple projects generated the raw ruby rather than the C version. Uhm, I want to say Rubinius?
729.
▲
by
zedshaw
16y ago
Apache's architecture is such that it's very bound to "files" and a strict request/response message pattern. That makes things like long polling, async sockets, and even streaming say ICY (check our mp3stream demo) really difficult. In Mong
730.
▲
by
zedshaw
16y ago
Thanks man. Can't wait to get to the next level with it.
731.
▲
by
zedshaw
16y ago
As long as you don't get into the algorithms it's pretty simple. A hand written http parser is kind of like writing a "white-list" of what the server rejects. Since there's no algorithm backing it the only thing you can do is list out all
732.
▲
by
zedshaw
16y ago
There's no pipelining, there's keep-alives though. It turns out pipelining is really bad for servers that talk to backend applications because it allows clients to a large number of requests to be handled and then close the connection. The
733.
▲
by
zedshaw
16y ago
I'm a firm believer that if it ain't broke don't fix it. If you've got multiple sites working with Apache and you know how to keep that going smooth, then stick with that. Especially if you're doing small to medium sites in say PHP. PHP
734.
▲
by
zedshaw
16y ago
Thanks. Let me know what you do and shoot me bug reports on anything you find.
735.
▲
by
zedshaw
16y ago
Hmm, I'll think about that one too. Truth is, I just built it, so kind of a cobbler's shoes problem in that I've had little time to actually use it other than to run mongrel2.org with it. So far the people who are playing with it talk a
736.
▲
by
zedshaw
16y ago
We should revist this. It's mostly for convenience since lots of people just put the m2sh stuff wherever everything else goes. Problem is that screws up virtualenv folks. Any ideas on it other than disabling?
737.
▲
by
zedshaw
16y ago
Actually there's already a few git mirrors I'll pull from if people tell me to. I then have a few branches from the fossil repo that have the git stuff in them. Works pretty easily actually. But, I really should just follow this so I can
738.
▲
by
zedshaw
16y ago
If you mean for the proxying, not yet. For the 0MQ handlers it definitely does, but some folks also want to do blocking before sending to the backends. We've basically laid down the core features and then we'll start planning things like t
739.
▲
by
zedshaw
16y ago
Almost forgot, for people who have questions about how Mongrel2 works or criticism of the design, make sure to check out our soon to be released 50 page manual: http://mongrel2.org/doc/tip/docs/manual/book.wiki Covering everything that 1.
740.
▲
by
zedshaw
16y ago
Awesome. I posted a whole bunch more lessons, so not sure when you stopped reading LPTHW but try grabbing it again. Learning Python is a great book, and it's huge so you'll have tons of things to work on. I haven't heard of python 4 fun
741.
▲
by
zedshaw
16y ago
He emailed me more details. Basically, he's a system administrator who learned Python through my book, and actually just an early version of it. He hadn't been able to learn programming before. He then wrote some software at his company
742.
▲
by
zedshaw
16y ago
You know, I think it's difficult to have students who pay you these days. Even at a university I think students aren't interested in doing the work and just want to get their degree. It's kind of sad because I'd love to just train the nex
743.
▲
by
zedshaw
16y ago
I'm only actively against you because you are consistently obsessed with me, the things I write, and "proving" me wrong. You have some obvious hidden agenda that I can't grasp, and I absolutely hate trolls with a hidden agenda. I treat nic
744.
▲
by
zedshaw
16y ago
Well that'd be no fun.
745.
▲
by
zedshaw
16y ago
I've been working professionally for a long time and have seen way too many programmers with these issues. I haven't met someone with all of them at once, but I have met plenty of people who have had one or more during their life. I've
746.
▲
by
zedshaw
16y ago
It's not the coffee, it's the fact that many people drink everything _but_ water. Coffee's got a lot but you can't drink that much of it, so if that's all you drink, then you get dehydrated. People also drink too much soda which doesn't h
747.
▲
by
zedshaw
16y ago
Don't let them know. You aren't a factory worker. You can sit there with your eyes closed for a few minutes once in a while.
748.
▲
by
zedshaw
16y ago
Try this real quick: 1. Get a friend and ask them to help you. Take your index and thumb and touch them together tight as you can then have your friend try to slowly pry them open. Try to remember how weak or strong your hands were. Try
749.
▲
by
zedshaw
16y ago
I may mention those, but I think people with mental health problems tend to take them more personally than with physical health issues. It's very difficult to talk to someone who is depressed, has schizophrenia, has manic episodes, or is a
750.
▲
by
zedshaw
16y ago
I agree, it is psychosomatic, although that's usually a term used by bad doctors to wave away real problems with people. I think a better way to explain it is that your body is controlled by your brain, and if you control it wrong you can
More ›