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 Simon Peyton Jones on Mainstream Programming Languages
In LinQ we pass anything by reference and we got closures then, and closures inside the reference objects. Doesn't that break any model of using lambdas and list comprehensions?

That's ok. Sharing is fine; references are fine. If you and I point to the same string, the fact that the string says "Hello", we don't need to have 2 copies of "Hello", we can share the same copy, so long as we don't change it. It's not sharing that's the problem, it's effects. If you share references to values that are immutable, everything is cool. If you share references to mutable values and you mutate them, everything is very uncool.

I got my ass bitten in python by this a few times, i had a few objects with a few references to them, and i assumed that all of them pointed to the right objects, but i soon discovered that some of them pointed to copies of the objects from a previous time, and that they staid the same, while the other ones changed, and i assumed they all had the same value. This took a whole day to debug, and i managed to do it by writing the program in a functional way and the functions that changed the state of the objects simply returned new objects, and i got rid of the references, i just called functions, that returned the current "state" of the objects. pretty much i minimized state, that got rid of the bug and made the game easier to understand, as Mr.Jones points out, learning a functional language(scheme in my case) does make your imperative programing better :D

pavelludiq··on Ask YC: Does music help programmer concentrate better?
http://www.youtube.com/watch?v=Us5TeDK_GJk this is my favorite band, i listen to them all the time, except when im coding or reading, but they're great for jogging or just general headbanging. When i code i just listen to my PC's noise, i sleep next to it, so im sensitive to changes in its noise. Music is a great distractor, and i cant stand that techno shit, i have a few hard DnB tracks, but they are not good for coding. The best music is the one your machine plays with its fans and HD.
pavelludiq··on Why developers prefer Macs
upvoted because you're right, but still apple is evil and i don't like them, i don't know if their awesomeness comes from their evilness or despite it.
pavelludiq··on Why developers prefer Macs
Until the day i can install MacOS X on a virtual box or on my pc i remain an apple anti-fan boy. Oh and theres also that closed source thing, but i can live with it, just let me chose the hardware i want to run my software on!(and i don't mean the color of the MBP), Ill pay for it too, i promise!
pavelludiq··on 4 Languages you should learn in 2009
yeah, a good tip, but still if you know one, you should at least go through the other ones tutorial just to know what you're missing :D
pavelludiq··on 4 Languages you should learn in 2009
Chicks love rubies, but don't like snakes that much. :D

Seriously, you should probably learn both.

pavelludiq··on One Big Reason For Apple's Market Share Gains.
Are macs really that crappy?
pavelludiq··on What does an XP team room look like?
1 computer and 2 guys? Their budget must be horrible, poor people can't even afford a second pair of keyboard and a mouse so they can at least use the same machine at he same time :D
pavelludiq··on The original Macintosh: insanely great
We had that since the late 50's:

http://www.youtube.com/watch?v=UGsfwhb4-bQ

pavelludiq··on Unix Russian Roulette
Has any body tried it? Does it work correctly?
pavelludiq··on "Healthy lifestyle.."
No, not in the woods, but i tried parkour when i was 17 and it was fun for a while, but then i hurt myself and that was the end of it. I could try orienting next spring.
pavelludiq··on "Healthy lifestyle.."
I always enjoyed running around in the woods like an 8 year old. That burns most of my junk food diet, so i don't have any weight problems. Recently i started some other types of exercises, till now everything i tried, except running, got boring, but we'll see if i can actually stick to a regime or not. Apparently Linus has the same problem, but i at least found one thing that doesn't bore/frustrate me. He could try soccer, that kept my interest for the whole summer until it got boring last month.
pavelludiq··on Check how fast it takes to brute force your password
You have bad social engineering skills.
pavelludiq··on Things I wish I’d known when I was younger
I realised most of that between 15 and 17. The thing is that knowing this does not always prevent you from making mistakes, but it helps you to figure out where you screwed up quickly. You can't be prepared for everything.
pavelludiq··on Check how fast it takes to brute force your password
20 days? My password is safe for the next 1,688.24 days.
pavelludiq··on Y Combinator in Python
The Y combinator is just like python decorators, or generators, you just HAVE to blog about them, or you're not C001!
pavelludiq··on New Ubuntu is out
Kubuntu 8.04 kicks ass, but 8.10 sucks. Maybe its because of KDE 4, but i had a hard time setting up my keymaps,the new adept had random bugs in it, and i found it almost impossible to eject a CD!(i click eject and the cd ejects and GOES BACK IN!?!?!). On the other hand, since i switched back to 8.04 this morning, I've been missing folderview all day. KDE 4 has some good ideas in it, but needs more time to mature.

ps. I love kubuntu, but this time they screwed up seriously!

pavelludiq··on New Ubuntu is out
I don't know about ubuntu, but Kubuntu sucks(at least the RC did).
pavelludiq··on Guido van Rossum responds to Bruce Eckel: Why explicit self has to stay
There are two reasons why i don't mind 'self'. The first one is that python was my first language, so i didn't know anything else. I didn't find it strange, as a person with a different background might. The second reason is that i don't do that much OOP any way, so i don't get frustrated with having to type self all the time. But when i do actually write OO code, i can see how self might annoy someone writing classes and methods all day.
pavelludiq··on Second-world child - Need Advice
Im pretty poor too(and from the same region). I managed pretty well, though some money was invested in my education when i was a kid(English lessons). Poverty sucks, it either builds your character, or it sucks the humaneness out of you.

My advice to your friend is to not drop out. I have a friend who dropped out. He was also bright, and ambitious. He worked as a car mechanic for a year, i believe he went back to school.

He just needs to not give up, if he is interested in electronics, he could try and find some repairman he can help out(sort of like an apprenticeship).

pavelludiq··on Procrastibation
I've found the best way to stop my self from procrastinating is to just fullscreen my Konsole window and hide the menus, that way i just have a big black screen, and a tab bar at the bottom(which i can also hide). That only works when my work can be done in a terminal, but most of it can.
pavelludiq··on Apple responds to "I'm a PC"
Yeah, i've been using kubuntu since 7.04. Unfortunately kubuntu is less polished than the gnome version, but for the last year and a half it got better and better with every next release. Hopefully the next release will not be a disappointment because the still raw kde 4.
pavelludiq··on HOWTO Encourage Women in Linux
There are probably many women in computing, just not that much famous ones, i guess.
pavelludiq··on The world *has* changed: Why we should be afraid
yes, even more sadly, its fear it self that is mostly used for persuasion. So don't be afraid America, we, the rest of the world, can't afford to have half of the world's nukes controlled by fascists and corporate blood suckers, oh, wait..
pavelludiq··on In Defense of Piracy
The song is "futuristic sex robots - fuck the mpaa"

http://www.youtube.com/watch?v=SnLB8wysMbY

pavelludiq··on The world *has* changed: Why we should be afraid
Many people in countries with corrupt governments and crappy politicians state that, but in most cases, a government simply does, what the people allow it to do.
pavelludiq··on Poll: How many hours of sleep do you get each day?
Depends on when i go to sleep, i usually wake up in 8:00 AM, but some times i go to sleep between midnight and 3:00 am.
pavelludiq··on Ruby 1.9 and Lambda Calculus
ok, how about this one:

    ((lambda (f) (f 3))(lambda (x) (+ x 2)))
pavelludiq··on Ruby 1.9 and Lambda Calculus

    ->(f){f.(3)}.(->(x){x+2})
vs

    (lambda f: f(3))(lambda x: x+2)
the first one(ruby) requires me to press the shift key 6 times, the python version only 2, but on the other hand i have to write "lambda" twice. I say they are even :)
pavelludiq··on Inequality and the Sergey Brin Effect
Sergey Brin and Britney Spierce are in the same category? I didn't know that.
← PreviousPage 15 of 22Next →