and this one is just hilarious http://i.gizmodo.com/photogallery/impressiveworkspaces/10078...
2,130 karma · joined June 6, 2008
and this one is just hilarious http://i.gizmodo.com/photogallery/impressiveworkspaces/10078...
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
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
>>> [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.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.
Surely theres a better list, but these are the first names that came to my mind.
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.
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.
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.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.
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)