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 Ask HN: Python or Scheme?
Lisp is one of them.

Fortunately this isn't true. I'm living proof. People go to lisp for various reasons when they are ready, you don't need a university for that. In fact, teaching scheme badly to people who are not ready for it is probably a bad idea, and is the prime reason why some people actively avoid lisp later in their career.

pavelludiq··on Ask HN: Python or Scheme?
I wouldn't worry about it. My school starts of with C++ (ugh), and the experience has taught me that its the teachers that matter more than the language.
pavelludiq··on The German School of Lisp ("Fluchtpunkt Lisps")
Actually theres soo much in common lisp besides macros that i miss in addition to them when i have to work with python, like CLOS, the condition system, format, the lisp reader/printer(using JSON is only half a solution), good performance, and with paredit mode for emacs i can edit code a lot easier than with python.

Also your summary, python and ruby's libraries are not free, because you have to use python or ruby instead of common lisp. That is a cost of some kind, a trade off, is it not?

pavelludiq··on The German School of Lisp ("Fluchtpunkt Lisps")
Many people ask the same question(about lisps advantages), expecting a big list of features that will magically make their life instantly easier, i have no such list, but many people claim to do, and you can find them with some googling(i think theres one clojure specific on their site :).

Instead I'll just give you a few words about what value I've gained by learning scheme, clojure and common lisp. This is personal, and specific to me :)

Scheme taught me the basics of CS, It is an exceptionally good teaching language, when ESR said that lisp was worth learning because of the enlightenment, he probably meant(or should have) scheme. I've never actually used scheme for anything, so i won't talk about how actually useful it is.

After scheme i got into clojure, about the time 1.0 came out(i think?). For me, theres a lot to love and a lot to hate in clojure. I loved this language, It took the stuff scheme taught me, and showed me how to actually use them well. It made me think, it made me learn, and it made me get better. It didn't make me better, i made myself better inspired by it(same is true of all lisp i know actually). I ultimately concluded that clojure and i are headed in different directions, so we parted, but I'm sure our paths will cross again, when are both better.

Now common lisp is something special. Everything i said about clojure applies to common lisp. The languages are very different, but the end goal is the same: good software. Common lisp taught me how much of what i took for granted was just contemporary fashion trends, it showed me that theres value in knowing the history of lisp well, it showed me that i had accepted the front page of HN as what reality was like, and freed me of this world view. It showed me that software truly CAN be good if I put in the effort to make it that way.

I no longer blame my tools for my failures, because it is I who chose them, and I who used them. This attitude is maybe the most valuable thing i got from learning lisp, just fucking do it, because you can. And it pisses me off when people claim lisp can make you more productive, it won't unless you learn it well and use it wisely.

pavelludiq··on Magic in software development
But i do want to learn more about how my car works, theres very little technology at home that i haven't seen disassembled(washing machine, microwave oven, tv, pc, mp3 player, cell phone). I've at least skimmed over parts of the source of a lot of software i use daily(emacs, slime, sbcl, HN). Even though i barely understand the electronics in my tv, and even though I've barely scratched the surface of emacs, i still prefer a more hands-on approach to the things i use in my daily life. I've been like this since a very young age, apparently i didn't have any toys that weren't destroyed by my curiosity :) I had the impression that this was true for a lot of people on this site.
pavelludiq··on Lispy - Code-as-data in Ruby, without the metaprogramming madness.
Yes, finding the time and motivation to educate ourselves is sometimes hard, especially when we have to deal with other crap, I've been meaning to look into smalltalk for ages now, myself.

If you want an example of something cool you can do with lisp, in principal the common lisp object system is built with macros on top of the non-object oriented lisp. Could i use Lispy to add a CLOS style object system on top of ruby? What about a prototype based one? This isn't a rhetorical question, I'm actually curious if ruby can do these kinds of things.

pavelludiq··on Lispy - Code-as-data in Ruby, without the metaprogramming madness.
OT: I'm very tempted to be an asshole smug lisp weenie, and make some Greenspun's rule joke, but instead I'm going to try to be helpful. Ruby hackers pride themselves for being early adopters of new and cool technology, learning new skills, and libraries. What I've failed to notice is any interest in the old technologies, from which ruby got most of its good ideas(lisp, smalltalk). There is tremendous value in learning from the past(a lot of really good ideas didn't make it to the "cool kids languages" of today). This isn't specific to ruby, but its a good example. So my attempt at useful advice is: do learn lisp, instead of reinventing the wheel badly.

Anyway, I've been thinking about this kind of stuff, and it seemed like a good opportunity to mention it.

pavelludiq··on Ask HN: Snap v Nitrogen v Lift v Compojure
Of the listed frameworks I only have (limited) experience with compojure, but here is my advice. I love functional programming, but i think that we've over-hyped it a little. As you know(i hope), there are no silver bullets. I wouldn't worry about a language being impure, purity is over hyped as well, clojure is also impure. What I used to do with clojure was to take a bunch of components(compojure, sandbar, hiccup etc.) and glue them together to make an app. I haven't been following the clojure scene for a while, but i believe thats the idiomatic way to write web apps, not the full stack style of rails or django, where you just fill in the blanks.
pavelludiq··on Lisp Isn’t Really a Programming Language
I agree in general, it is better to inform your readers, your type system and yourself in a few weeks of your intentions. But in simple cases, if your testing out something, it might be better to use lists and cons cells, at least initially(for example plists or alists instead of hash tables). But like a lot of things in common lisp, this requires good judgment.
pavelludiq··on The bare essential guide to Emacs
I came to emacs from Vim, and at first i tried Viper mode, but i gave up and just went with learning emacs as it is. It payed of in the long term.
pavelludiq··on Can you take programmers seriously if they don't know C?
Not knowing C is fine, but not having an understanding of the machine you use to make a living, well, you can get away with it, but before i started learning C and reading about low-level issues, i felt like I was cheating.
pavelludiq··on Common Lisp - Myths and Legends
Your comment didn't indicate to me that you needed help. I'll try to be helpful, but i can't do anything about the pompousness, sorry. :D

So, how can I help you?

pavelludiq··on Common Lisp - Myths and Legends
Sure, common lisp is not the best language for "connect the dots" style web development, but people are using it to write webapps. If you don't know the language, and you're ignorant of the options and tools, you will not be spoon-fed. If you need a way to glue a bunch of ready made components without spending too much time learning your tools and environment, python|ruby IS the better choice.

But of course web development might not be a sufficiently hard problem for CL to yield a significant benefit over python. Also, combining them is also an option, write your hard stuff in CL, let your less experienced programmers write the web interface in Django. Its a matter of what works for you, i guess.

pavelludiq··on Lisp: a cult I almost joined (2005)
You seem to misunderstand lisp programmers greatly, allow me to attempt to exlain:

they don't let anything new in their language.

Common Lisp is a standard, changing it requires tremendous resources, and provide little actual value, if you have some language extension you want added to the language, put it in a library, it will be much cheaper and much more useful that way.

they stick to s-expressions like they are the holy grail. We stick to s-expressions because they provide tremendous value. They are just more useful than traditional syntax.

they stick to the funny function names as if they were given by god. Common lisp has over a thousand symbols, and only a handful of them i would consider funny, and you are complaining about them? And you accuse us of nitpicking?

The rest of your rant is more of the same bullshit. How can you say you like lisp, and then continue to talk uninformed ignorant bullshit?

pavelludiq··on Lisp: a cult I almost joined (2005)
See Dylan.
pavelludiq··on Lisp: a cult I almost joined (2005)
People keep saying that but i don't get it. Can you give me an example of the cruft you are talking about? Its one of those other myths i keep hearing about our cult.

p.s. Arc is more pleasing to use to you, I would certainly not choose it over common lisp or clojure, but maybe over scheme.

pavelludiq··on Lisp: a cult I almost joined (2005)
Taking yourself too seriously and being in a cult are two very different things. I agree that _some_ lisp people(even me at times) do in fact take lisp a tad too seriously, but i can't see how that makes you into a dangerous religious nut.

P.S. Im starting my own lisp cult, called the cult of the mythical lisp cult, our goal will be to find the holly grail of programming language flame wars: evidence of the mythical lisp cult. See, a joke about lisp, and its recursive too :D

pavelludiq··on Lisp: a cult I almost joined (2005)
Lisp(and specifically common lisp) is one of the top languages people who don't know it like to criticize. That wouldn't be a bad thing if the criticism was any good. Every time i see a blog post about some "problem" with lisp the chances that it has something valuable to say are low. And calling a language community a cult is beyond offensive.
pavelludiq··on Best programming language to learn starting from scratch?
There is no such language. "Best" is pretty badly defined. But there are a few "Good enougth" languages. People already suggested Python and Ruby, im a python fan myself, at least for begginers. My suggestion is to find someone who already knows how to code, to help you out with whatever language he knows, if you have no such friend, python would be my choice.
pavelludiq··on Why we are choosing Clojure as our main programming language
I did this too, last year i corrected that mistake by learning common lisp and now clojure is my second favorite language :D
pavelludiq··on Learn lisp in 5 steps
Why do you need rationale? I use lisp because its the language that gives me the most joy, you can spend a decade giving me rationale about how language X is better, but unless it can give me more joy i won't switch. But if you insist: common lisp is designed to write software. That is its sole purpose in existence. Its purpose is not to be object oriented, procedural, functional, declarative, low-level, high-level, big, small, pretty, cool, modern, fashionable, popular, or anything else, its common lisp, a language for people to write software in. For certain types of software and for certain types of people it is the best language, for other combinations, it is not so good.
pavelludiq··on Lisp vs Python
Others already pointed out the AI winter. Reading about the history of lisp is very interesting, it almost feels like you are reading about a lost civilization, so ahead of its time. On the other hand, the AI winter is in the past, why isn't lisp used NOW? I think its getting better, the scheme people are working on sorting out their issues, and of course theres Racket, which is awesome. You have the clojure people attracting a lot of java and ruby developers(among others) to at least give lisp a chance. And even the Common Lisp world is on the rise. The biggest problem IMHO is that there are too many non lisp programmers with strong opinions on lisp that spread FUD, even though all their lisp experience can be summarized as "read a scheme tutorial, and wrote a recursive factorial function".
pavelludiq··on Lisp vs Python
Do you have any data(even if anecdotal) to back up your claim? My experience is that macros don't obfuscate code at all(unless misused, I'm talking about idiomatic use of course). If i have the code loaded i just type (documentation 'macro-or-function-name 'function) to get its docstring. Slime can also show me its documentation and its argument list. Not to mention that a good macro(like any other well written code) is obvious. On the internet Lisp is the most unmaintainable language, in practice its pretty maintainable.
pavelludiq··on Zen and the Art of Motorcycle Maintenance
I loved this book when i read it. I liked it mostly because it was able to explain to me what i already "knew" but couldn't explain. I now had the vocabulary and a road map to figure myself out. Its not so much that the ideas in the book were life changing, they were interesting to think about, but what i got out of it is that the book sparked a process in my mind to turn myself from a depressed cynical high-schooler, into a pragmatic adult, who enjoys his work, his studies, and his art, yet is not blinded by idealism or plagued by cynicism.

I guess its a lot about timing, had i read it at any other point in my life, i might have not liked it.

pavelludiq··on Starting with Lisp: A collection of beginner pointers
A few tips from another aspiring lisper, who's only a little bit ahead down the road:

- Read a lot of code. Its essential to learn to read and understand common lisp code with little effort. In many cases, a lot of libraries have incomplete or outdated documentation, so the source code is the best documentation available.

- You'll have to learn to piece together a lot of incomplete information, scattered around in blogs, documentation, wikies, and source code.

- Prefer portable libraries rather than implementation specific extensions, if possible.

- Learn emacs.

- I would suggest also learning a bit about the history of lisp, a lot of weird things in lisp make a lot more sense if you consider the historical context in which many design decisions were made.

- Don't whine or complain, be a doer. My favorite quote from "The bipolar lisp programmer" is at the end: "Lisp is, like life, what you make of it." You have to take matters into your own hands in order for things to get better. Even though I've only been using common lisp for a few months, i like to think of myself as personally responsible for the state of the Lisp ecosystem, because im not writing libraries or documentation, nobody is going to do this stuff for you. There simply aren't enough of us.

- Avoid the "Smug lisp weenie" mentality, its not helping. Sure, lisp is better than java(by some criteria), but feeling smug about this isn't helping at all. It only drives people away.

Im currently compiling a larger list of such tips and opinions. I hope to be able to publish it soon, so more experienced lispers can help me with it.

pavelludiq··on Real world examples using homoiconicity?
Ok then, check out this awesome DSL example screencast in common lisp: http://lispm.dyndns.org/news?ID=NEWS-2005-07-08-1

I don't know how much common lisp you know, but you asked for a real example.

Also check out this awesome talk by Shriram Krishnamurthi: http://www.cs.brown.edu/~sk/Publications/Talks/SwineBeforePe... (audio and slides). It uses scheme. There are many more examples, but these are just off the top of my head.

pavelludiq··on Real world examples using homoiconicity?
I only know lisp, so I'll use it as an example, but there are other homoiconic languages out there.

In lisp i can do this:

  (eval (cons '+ '(1 2 3)))
What i did was that i added the symbol + to the front of the list (1 2 3) to get (+ 1 2 3) which is a valid lisp expression, and i eval-ed it resulting in 6.

i can do other such things:

  (eval (reverse '(3 2 1 +)))
I take the list (3 2 1 +) which is an invalid lisp expression, and i reverse it, giving me (+ 1 2 3).

See what we did here? We took a datastructure and we transformed it into something the lisp compiler can recognize as a valid form. We can do this because lisp code is expressed as lisp datastructures(thats what homoiconic means).

pavelludiq··on Ask HN: How do you cope with loneliness?
Coping with loneliness is a temporary fix(speaking from experience here), you have to get rid of it.

Im not sure exactly how, but during the last 6-7 years(im 21) I've slowly transformed from the typical socially awkward super shy nerd kid, to a somewhat social friendly nerd. It didn't happen in a day, i just slowly opened up to people, I slowly learned the social rules, practiced them, and now i speak social as a second language, even though i still have a strong nerd accent. Even though i still prefer to be alone in my room on my PC, with my slime repl, i still get drunk with my friends at least once every two weeks, or go out to play pool, or hang out in coffe shops, or go to lan parties.

pavelludiq··on Haskell Researchers Announce Discovery of Industry Programmer Who Gives a Shit
I don't believe this article was meant to make fun of Haskell, more to make fun of Haskell fans lack of a sense of humor. Don't take it too seriously.
pavelludiq··on Ask HN: How important is a CS degree?
Im not saying simple web knowledge is useless, its just a very narrow and shallow view of programming. A CS curriculum(even if you don't learn that much in class) might widen your view a bit. You didn't become a journalist by learning to hack English did you?
← PreviousPage 7 of 22Next →