Better HN
topnewbestaskshowjobs
Log inSign up

papsosouid

2,420 karma · joined Apr 9, 2012 (14y ago) · 1,199 submissions

Submissions

comment 13y ago · link · parent

>but the execution model is efficient

It is quite the opposite. It is incredibly inefficient, running hundreds of copies of the exact same code, building up an entire framework of objects to use for a single request, then trashing them all to do it again from scratch on the next request. It is easy for beginners, which is why it is so popular. But that is not the same as being efficient.

comment 13y ago · link · parent

If you think common lisp is complex, you have no idea what the words complex and simple mean. I know you have to know monads. That does not make haskell complex. Just like needing to know hash tables doesn't make C complex.

comment 13y ago · link · parent

Unfortunately, it certainly seems like there are a lot of them. "Types are pointless because you have unit tests" is a common refrain from the dynamic language camp.

comment 13y ago · link · parent

TLS is not a feature, it is a problem. It was added because of the very problems that started this thread. Modern linux software expect stupid crap like that, so NetBSD eventually feels forced to add it. The entire point is that BSDs try to avoid adding unnecessary complexity like that.

The dragonfly benchmark doesn't give us any real info, so it is impossible to say what exactly the problem is. Clearly something is wrong though, given we already know netbsd made performance and scalability a major focus of the 5.0 release, and nobody has reported any regressions in 6.0:

http://www.netbsd.org/~ad/50/img13.html

comment 13y ago · link · parent

Nothing you said even addresses my point. The entire pile of blathering nonsense about mongrel and RoR has literally nothing to do with licensing. The article is about why he uses the GPL now. He uses mongrel as an example, despite the fact that nothing he says about mongrel even tangentially relates to licensing in any way.

Read the paragraphs you quoted. Which one of them is a reason to use the GPL? The answer (quite obviously) is none of them, which is my point.

comment 13y ago · link · parent

You are simply making shit up at this point. You absolutely do not, ever, under any circumstances, need to learn or use GADTs or functional dependencies. That is complete and total bullshit. Using a library that uses those features does not require you to learn them, that is the entire point of a library, to hide that from the user of the library. And yes, common lisp is a simple language.

comment 13y ago · link · parent

>My entire point was wanting blogs about language and tools for fucks sake.

So go read them instead of making nonsense posts?

>Since I said that the levels of documentation on hackage are much lower than the equivalent for every other language

Bullshit. Go look at the docs for random 3rd party modules in any language. Tons of modules are totally undocumented.

Again, nothing you said is in any way reasonable. Everything you said applies equally to any other language, and would be rightfully downvoted in that context. It is sad that HN lets your turds float.

comment 13y ago · link · parent

Why does this crap always get posted, and always manage to float instead of being downvoted? You know what other programming language community blogs about their language and tools? ALL OF THEM. Why do people suddenly insist it is a problem that haskell users do the same things everyone else does?

If every time something about ruby showed up on HN someone piped up to say "stop talking about ruby and actually build things people want" they would be rightly downvoted to shit.

The rest of your post is the same sort of nonsense. Some open source code has no documentation?! What a shocker, I'm sure no other programming language has ever had any undocumented modules released in it before. The bitching about iteratees is particularly disingenuous. You don't need to use any of the competing solutions, other languages have no similar library at all, and the entire thing is very new. "Hurry up and standardize your cutting edge libraries that you just wrote and are still exploring" is both insulting and stupid.

comment 13y ago · link · parent

Actually, your examples serve to counter your argument. All of the things you mentioned are very simple, and are in fact implemented in terms of the core language semantics. They are also non-standard extensions, not part of haskell. You do not need to know them or use them at all.

Your final part is just plain nonsense. That is like claiming C is complex because you need to learn things like hash tables and linked lists and binary trees.

comment 13y ago · link · parent

There's plenty of useful software written in haskell. Why is this particular nonsense so commonly repeated with haskell? Just because you don't bother looking at the software written in haskell, doesn't mean it doesn't exist.

comment 13y ago · link · parent

David Miller is better known for spewing crap than he is for writing code, with good reason. When you feel the need to stir up shit by posting stuff like "durr netbsd is doing stuff I did a decade ago" while ignoring the fact that netbsd also did it a decade ago and is just updating their implementation (just like linux does), you stop being someone worth listening to.

It is pretty unfortunate that the dragonflybsd camp still insist on pushing deliberately misleading benchmarks, I must admit. They have a great OS and there is simply no need for them to be doing that shit. Refusing to adjust the default limits when you know full well netbsd and openbsd ship with conservative limits to prevent accidentally DoSing yourself on low end hardware is just plain stupid. "Oh look, netbsd mysteriously stops working right when we hit the default resource limits!"

comment 13y ago · link · parent

Lisp isn't a language, it is a whole bunch of languages. Lumping half a dozen languages together obviously moves it up the list. Being old is working in its favour, not against it. Older languages have more written about them purely because of the time they've existed. Pick a specific lisp and try your comparison again.

comment 13y ago · link · parent

It doesn't sound like you actually did learn haskell. Haskell does not in any way make any attempt to eliminate state, and the idea that it does is absurd. Why would the language ship with a module called "State" if it were trying to eliminate state?

comment 13y ago · link · parent

>It is an issue of the language's qualities if it does not really make it easier to reason about code.

The primary point of haskell is making it easier to reason about your code.

>I find reason to question the simplicity of something which is widely acknowledged to take a lot of time to learn, to be mind-bending, and which seems to be impossible to explain simply

It takes a long time to learn any programming language. You create an invalid comparison when you compare learning language X++ after already learning X to learning language Y++ without having learned language Y. Haskell only takes longer to learn if you compare it to learning a language that is virtually identical semantically to a language you already know. And I don't know why you think it is impossible to explain haskell simply, there's a reason everyone points to learnyouahaskell.com when people ask how to learn haskell.

>The virtues of survivors like C and LISP are not all "social issues".

How is lisp a "survivor" exactly? Haskell is more widely used than any lisp is.

comment 13y ago · link · parent

That just seems like a poor attempt at trolling. "I have to figure out what server I need" is a problem with amazon? I just double checked, and the process is literally identical between amazon and rackspace:

1. pick an instance 2. see the hourly price 3. multiply it by 24 x 30

Which part of this is a problem, and why is it only a problem for you with amazon?

comment 13y ago · link · parent

My point is not "it is fixable". My point is you didn't look at the error and just decided "shit's broken". Your problem is with 99.999999% certainty a simple problem that is unrelated to cabal. The fact that it is possible to see an error does not indicate that there is some uncertainty about whether or not you will be able to install lib x.

comment 13y ago · link · parent

>Doesn't mean things don't break, though.

Right. The issue is that cabal has unfairly developed a reputation as being broken. People always say stuff like "every other language has this sorted out, why is haskell so bad at it?". When the reality is that the problems you get with cabal are the same ones you get with cpan or pip or anything else.

comment 13y ago · link · parent

I don't know if anyone else feels that way, but when I looked at pricing amazon was cheaper period. Not cheaper if you do X and Y and Z, just cheaper always no matter what. Rackspace was insanely expensive in comparison.

comment 13y ago · link · parent

You have to scroll back to see the actual error. That could be anything from missing C libraries to a permission problem.

comment 13y ago · link · parent

Your response makes it sound like you just had a simple problem like you get with any language, and followed bad advice on solving it based on the assumption that "cabal is just bad and you have to do this". The big give away is that you didn't need to delete your .cabal directory, advice to do so is coming from someone who doesn't know the basics of how cabal works. It is just storing downloaded sources, all deleting it accomplishes is making you re-download stuff for no reason. The installed packages are in your .ghc directory. Cabal is no more broken than cpan.

comment 13y ago · link · parent

>I see parallels with Haskell

You are seeing things.

>I'm not saying this is wrong. What I am saying is that the gap between making something 99% consistent and 100% consistent is often huge in terms of complexity.

Haskell is a very simple, very consistent language. That is one of its biggest strengths.

>The answer is (again, IMHO) is that simplicity matters.

Except that lisp is not complex. Especially consider scheme, which is very simple and consistent.

>It's true functional programming does change the way you think but I think writing idiomatic Python or Ruby will get you much the same benefit at much lower cost.

Having gone from "I see the benefits of functional programming, but think a multi-paradigm language is the right way to do it" to outright revulsion when stuck using multi-paradigm languages, I think you might change your mind if you actually tried it. Ocaml and scala certainly sold me on haskell.

comment 13y ago · link · parent

LYAH is a good introduction, and is probably enough for a lot of people. Real world haskell adds more practical real world examples, and some people would benefit from reading it also.

comment 13y ago · link · parent

I'm writing 3 different web apps, plus some command line tools in haskell. I have been working on these projects for a year now, and I've never seen any cabal problems that aren't typical problems that occur with any package manager (trying to install conflicting modules).

    $ ghc-pkg list | wc -l
         182

comment 13y ago · link · parent

>Donald Knuth seems to disagree with them, anyway.

No, he does not. Read his code, it is full of single letter variables.

comment 13y ago · link · parent

>In general the Haskell community seems way too obsessed about monads

You need to understand monads to do anything beyond trivial exercises. It is something that virtually every single person coming to haskell from another language is unfamiliar with. I don't see how a focus on such a fundamental aspect of the language is a bad thing.

comment 13y ago · link · parent

>I'm not - that's how they are defined in Racket.

You are. The argument is that you should be using single letter variables for small scope, simple variables. Like the classics:

    for (i = 0; i < whatever; i++) {
        myarray[i] = something();
    }
and

    myfunction x:xs = dothing x + myfunction xs
When you decide to deliberately misrepresent that argument as "use single letter variables across modules" that is dishonest.

>Oh, on a single line? That's fine then...

Yes, of course it is.

comment 13y ago · link · parent

>I have been reading and writing code for twenty years now in about a dozen languages or so

I would strongly recommend that you stop admitting that.

>And while we're at it, how many years have you spent writing and reading code and in how many languages?

28 years, and I count 18 languages including logo and sh which you might not count.

>what's important is that you provided not even a single argument; not even one.

Yes I have. Ignoring it doesn't make it cease to exist. The vast majority of experienced programmers have already gone through writing code like you when they were beginners, and then realized it was bad and stopped. You can easily verify this yourself by noticing how the vast majority of experienced programmers tell you that you are wrong.

>You cannot expect to convince anyone without even trying.

I do not expect to convince you. You are attempting to convince others to write bad code. I am stating that you are a bad programmer, and that is why you find such resistance when you try to convince people to write bad code. The fact that you focus entirely on strawmen and demanding that other people prove you wrong rather than simply supporting your claims does not help your case.

comment 13y ago · link · parent

>Assume that `s:l`, `s:s` and `s:r` are provided from another module that you have only in a compiled form at the moment

Why are you being so deliberately dishonest, and expecting a response like "oh, your strawman has totally convinced me to write shitty code, thank you so much first year CS student!"? The entire point is that x and xs are not defined elsewhere, they are defined by you, and used on a single line.

comment 13y ago · link · parent

>The GPL does, however, prevent a company from forking your software and releasing closed versions without getting you (the copyright holder) involved

Which is relevant how? Who was releasing closed versions of mongrel again?

I know what the GPL does, that's the point. His blathering is entirely unrelated to licensing at all. He is saying "RoR was famous, and mongrel wasn't, and I don't like that", as a reason to use the GPL. Not only is that entirely nonsensical, but RoR is MIT licensed, so it wouldn't even make sense if you did hit your head and somehow think licensing determined whether or not your software was famous.

comment 13y ago · link · parent

>Well, these are probably the same people who claim that comments in code are bad.

No, they are not. Please, copy this thread into a text file and hang on to it. Spend a few years actually reading and write code. Then come back and facepalm at yourself.

1
151617
40