HNHacker News
TopNewBestAskShowJobs

pavelludiq

2,130 karma · joined June 6, 2008

Nerd from Bulgaria. Im lazy, inpatient and excessively proud of my self.
submissionscomments
pavelludiq··on Impressive Workspaces
http://i.gizmodo.com/photogallery/impressiveworkspaces/10078... this one is pretty sweet :D

and this one is just hilarious http://i.gizmodo.com/photogallery/impressiveworkspaces/10078...

pavelludiq··on Ask HN: What blew your mind?
My mind is like a war zone, i blow it up very often. Most recently it was my realization that is math easier(and much more fun) if you approach it as a mystery to be solved, rather than a sport, like they teach you in school. Yes, they do teach it like a sport: learn the skills, and then apply them to 4 problems in 40 minutes, each problem is harder than the previous, and if you succeed, you get rewarded with a better grade. This is the most boring sport ever! This is mind-blowing to a 19 year-old who spend 12 years in pointless training of a sport that isn't fun, to get rewarded with something he doesn't care about. Man, i feel cheated.

Other examples of recent mind explosions include:

when i "got" recursion last summer.

when i "got"(sort of)pointers in C.

when i "got" what trigonometry really is, now all i have to do is "get" it itself.

when i found hacker news :D

pavelludiq··on Ask HN: What reading material would you provide to a visiting alien being?
How about philosophy. It would be hard for them to get the other stuff(excluding math and science). I don't know if they could get our philosophy either, since the way we think and see the world is very tightly coupled with our psychology, but we can assume that if they got our language(lets call it blubish) they either understand humans to some degree, or are themselves similar to us(or similar enough to understand us).
pavelludiq··on Python’s lambda is broken
How is a 5 line class with 2 underscore methods more pythonic than a nested lambda?
pavelludiq··on Python’s lambda is broken
Thanks for the clarification. I didn't know that until i started messing with them just now for my post.

Heres a a clearer example(you could deduce this from my previous post): >>> x=((lambda n: i + n) for i in range(10)) >>> y=((lambda i: lambda n: i + n)(i) for i in range(10)) >>> [f for f in x]==[i for i in y] True

this is with generators.

with list comprehensions it becomes: >>> x=[(lambda n: i + n) for i in range(10)] >>> y=[(lambda i: lambda n: i + n)(i) for i in range(10)] >>> [f for f in x]==[i for i in y] False

pavelludiq··on Python’s lambda is broken
heres what i did:

  >>> [i(4) for i in [(lambda n: i + n) for i in range(10)]]
and i got this:

  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "<stdin>", line 1, in <lambda>
  TypeError: unsupported operand type(s) for +: 'function' and 'int'
Apparently the outer and inter "i"s got confused. when i change the outer 'i' to 'f':

  [f(4) for f in [(lambda n: i + n) for i in range(10)]]
i get this:

  [13, 13, 13, 13, 13, 13, 13, 13, 13, 13]
With generator expressions it worked as expected:

  >>> [i(4) for i in ((lambda n: i + n) for i in range(10))]
  [4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
Meanwhile:

  [i(4) for i in map(lambda i: lambda n:i+n, range(10))]
Also works as expected.

This obviously has nothing to do with the lambda in python and everything to do with the way loops work.

Python has a few quirks of this kind, this one i didn't know about. I didn't know that list comprehensions and generator expressions differ in any other way than the thing they return. I should have known better, they are very different things.

edit: looks like this also works:

  [i(4) for i in [(lambda i: lambda n:i+n)(i) for i in range(10)]]
Its all about scope I guess.
pavelludiq··on Ask HN: What would you love to pay for if it was available?
starcraft 2. I hope its not ridiculously expensive when it comes out(im sort of used to not paying for stuff).
pavelludiq··on Ask HN: What Programming Book would you buy right now (if it existed)
"How to/not to become a religious zealot of your favorite language"
pavelludiq··on Lisp's reputation is so bad that many people don't even take a look at Lisp
Before i learned scheme(I don't know CL), i didn't know how to write python. I knew how to write python syntax, but had no idea how to write code that doesn't suck. I still write bad code, but at least i know when its bad and i need to change it. Scheme thought me how to spot ugly code. I still use for and while loops(recursion is expensive in python, and you shouldn't write scheme in python) but i learned to write small and simple functions and combine them in smart ways(list comprehensions, maps, filters, decorators...). I guess i knew that from reading about the unix philosophy, but it took me to see it in code to understand it. So learning scheme might help you to be a better programmer, or it might screw you up and you end up writing stuff like this http://www.pick.ucam.org/~ptc24/yvfc.html

p.s. I've never written anything longer than a textbook exercise in scheme, so i don't know if you can actually write real stuff in this(or how hard it is) but playing with it is really fun, you should to it just for that.

pavelludiq··on Good hacker essays?
Eric Raymond is a good start. I also like Steve Yegge's blog posts. Also Zed Shaw's essays are a good read, this one is my favorite: http://www.zedshaw.com/essays/master_and_expert.html

Surely theres a better list, but these are the first names that came to my mind.

pavelludiq··on Erlang Doesn’t Fit The JVM
I barely know Clojure, but from what i know it has a workaround for the lack of TCO: http://clojure.org/special_forms#toc10
pavelludiq··on The Ugly American Programmer
http://en.wikipedia.org/wiki/Non-English-based_programming_l... I guess the most famous ones are Brainfuck and the Perl module that lets you write Perl in Latin http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata....
pavelludiq··on The Fallacy of High Level Languages
I like C, and I love Python. Python programmers already found a good solution to this conflict, rewrite slow code in C, write the rest in Python. And they do this not because they are not macho enough to write it all in C, but because that way they can have all the advantages of fast code and useful abstractions. C is just as useful as Python, just not for the same things.
pavelludiq··on PLT Scheme Blog: PLT Scheme v4.1.5
I wonder why people don't use PLT that much. It has libraries, docs and tools, and its scheme(maybe thats the problem?). Its a cool environment, I like it very much.
pavelludiq··on Ask HN: If we woke up tomorrow and...
At first i would be concerned with not freezing to death and finding food, I'll leave technological advancement for the better days.

You see, we started to develop technologies only after we had people who could afford not to have to kill their own food, so they had some free time to make now tools or have new ideas. cave men weren't stupid, they just didn't have any spare time to waste.

pavelludiq··on On the use of frameworks and, more specifically, why I choose Django.
Not that i don't agree with you, but being an ass on HN is not cool man.
pavelludiq··on [dead]
Im currently reducing my smoking. I'll probably quit eventually. Im not a heavy smoker, so that won't be that hard(i hope).
pavelludiq··on Rails is a Ghetto (retracted)
At first I thought he was serious about the "so fucking awesome" bit. After observing people like Linus Torvalds(and his "masturbating monkeys" rant) I didn't feel at all that it might be a fake persona, it was over the top, but i didn't think it was that much, when compared with all the other colourful personalities in the software world. I want to thank Zed for reminding me that although some ego in not bad, its not the thing to look for in a hacker, you have to look beyond his "persona".

The "neon strippers" Zed Shaw was fucking awesome because he said "fuck" all the time.

The "real" Zed Shaw is fucking awesome because he plays guitar, writes code, does electronics, and is a nice person(sort of).

I knew this since I was a child, but I needed Zed to show me that "masturbating monkeys" is not that cool, Kernel hacking is.

pavelludiq··on [dead]
i can choose the rotation direction. Its not that hard really, its not a real test, you are not physiologically bound to one perception or the other(at least im not, but since this was in wikipedia, then i guess others can change direction too).
pavelludiq··on Linux and open source developer tools you should not overlook

    GDB isn’t really a developer tool,
How is gdb "not really a dev tool"? The article is just a bad list of IDE's and html editors with gcc,make and gdb mixed in, not very useful or insightful. I was hopeing to learn about some cool unix tools and stuff. GCC, make and gdb are cool, but im sure there are better articles about them.
pavelludiq··on Ask HN: Is it necessary to learn maths to enter into programming?
Math is important, but not the main thing in programming. If by "good at math" you mean "I can get perfect score on my exams", well then, i suck! Number crunching is what computers are for, high school math treats you like a computer, don't ever let them convince you that math is about solving equations on paper.
pavelludiq··on Ask HN: For a simple forum, should I use bbPress or is there a HN/reddit style one?
both reddit and HN are open source http://code.reddit.com/ http://arclanguage.org/install (news.arc is included in the arc source).
pavelludiq··on What Do You Tell People You Are?
Its worst with relatives, I just can't say "no" to my dad. Anybody else i can either tell to call me later(if he is my friend), or to get lost(depending on my mood, I may say this politely).
pavelludiq··on HN: 33K visitors = 32,500 random tire kickers. But it also = 500 new hackers
The day i realised i had started to read the comments before the actual articles was the day I realised this. Sometimes the comments are of greater value.
pavelludiq··on Ask HN: How many of you (coders) use marijuana?
The comments here are interesting. Weed seems to have different effects on different people(not enough data to make definite conclusions though). I've experimented with it when i was 15-16, then i stopped, and its been 3 years now and i've had maybe 4-5 joints since then. I don't know what the effects it has on programming would be, but i could guess that i would be in a more relaxed/lazy mood, and in that mood im usually very creative, but not concentrated enough to actually be productive. Im usually relaxed/lazy, so i probably wont be less productive if i start smoking again.
pavelludiq··on Your Cool Technology is Worthless... If You Don't Know How to Sell
Your cool technology is worthless if you can't get people to use it. Selling it is only one way to do that.
pavelludiq··on Ask HN: What does motivate you to down-vote a comment?
redditness

p.s. I would totally downvote my comment since it is stupid, on the other hand it is the most correct answer to your question.

pavelludiq··on How To: Hackintosh a Dell Mini 9 Into the Ultimate OS X Netbook
Last time I had a debate with you, I forgot to tell you that you were crazy :D That's a good thing. I'm crazy too.

I can understand all that you have said

But still, if we look at macs as pieces of art, and get a 40 years old soviet radio, make it in to a pc box, stuff it with hardware, install OSX on it, that would still kick ass. Is that equal to taking the Mona Lisa, writing a graffiti tag on it, and hanging it upside down in your living room, using duck tape? Probably, but its still awesome! You see, chaos is sometimes also an art, not as good art as perfection, but still its pretty cool.

ps. http://www.kaldata.com/articles.php?action=show&showarti... It runs windows, but it's still super awesome.(Bulgarian language)

pavelludiq··on I Love Pair-Programming
The vi analogy was really stupid. If you know Vim(not Vi) well enough, you probably won't need an IDE to be effective(unless you are using an IDE dependant language, which is bad). And yes, your IDE is bloated.
pavelludiq··on How To: Hackintosh a Dell Mini 9 Into the Ultimate OS X Netbook
Anything mac fans say about this might be true, but irrelevant. OS X is better on macs than on pc's, macs are better computers, they feel better, they look better, this IS illegal, etc. But the problem is with choice. Choice is good. And some of us LIKE Dells, imagine that.
← PreviousPage 12 of 22Next →