2,420 karma · joined Apr 9, 2012 (14y ago) · 1,199 submissions
comment 13y ago · link · parent
Compiler speed is not some minor difference, it is absolutely massive. Build times of 30 seconds vs 2 seconds, and that is without counting the 10 seconds of cabal resolving dependencies.
>Go comes with a complete set of documentation available from the command line
GHC does not come with command line docs.
>All Go code is statically compiled so deployment is trivial
GHC links in C libs dynamically, and as far as I can figure there is no way to get static linking working, so I have to have all the same C libs installed on my production servers as my build server. With go you can just upload your binary to a bare bones server and it works.
>but it also has a tool to clean up code: gofmt
GHC has nothing like this.
>And there's also go fix which can automatically convert Go code designed for earlier versions to newer versions
Or this.
Haskell is a great language, but it does not match go's toolchain.
comment 13y ago · link · parent
No.
>Shouldn't technology be bending to our will? Not our will to technology?
It has nothing to do with technology, it is about user experience. Pushing a crappy font on me because you think it is pretty does two things. It makes you feel good about yourself, and makes it harder for me to read your site. This is the same narcissistic designer syndrome that gave use flash intros back in the day.
comment 13y ago · link · parent
comment 13y ago · link · parent
No, they are very important to sociologists who also happen to be into women's studies. Pretending all sociologists go along with that is dishonest.
>and were coined in large part by sociologists looking for a way to describe social phenomenon that they'd observed.
No they were not, see the rest of the thread.
>but when sociologists and academics use them
Which is relevant to lay-persons using them here on this forum and then being told they are wrong when they are not wrong?
>I'm sad to see that steveklabnik has been downvoted so much on this board for saying something that is so very correct.
I suspect the downvotes were more due to the way he told people their correct use of a term is incorrect, simply because there is a second correct use of that term.
comment 13y ago · link · parent
No, we are not. That is the entire point. We are not in a women's studies department. We are not women's studies majors. We are not talking about women's studies. So the terminology of women's studies is not relevant.
>Within all of these fields, sexism is a technical term that means (with slight variations between fields) exactly what steveklabnik above summarised it as.
No, it is not. History and philosophy do not use sexism that way. Only a minority of sociologists do. The only example you listed that is actually correct is women's studies.
comment 13y ago · link · parent
comment 13y ago · link · parent
Yes. I even understood it, which appears to be what's bothering you. The quotes you refer to, once again, does not support the claim. The statement "sexism has been used to do X" does not mean "the definition of sexism is X". Paint has been used to cover walls. That does not mean the definition of paint is "stuff that covers walls".
comment 13y ago · link · parent
Also, you appear to be deliberately misrepresenting a small subset of sociologists as being representative of the entire field. That redefinition of sexism isn't even universally accepted in women's studies and feminism, much less sociology. It is in fact a clique that uses those terms that way, not a branch of science.
comment 13y ago · link · parent
comment 13y ago · link · parent
Don't make the mistake of assuming that asking harder and harder questions must mean I am trying to deflate your ego. I am trying to hire people who are smarter than me, and know more than me, and can bring something I am lacking to the team. I need to ask harder and harder questions to find those people.
comment 13y ago · link · parent
Then why are they bothering to sign in with facebook at all? It is now a more involved process than simply signing up with email/password, which is what facebook logins are supposed to be for avoiding.
comment 13y ago · link · parent
It is? The facebook userbase is entirely and completely unwilling to sign up with a password? Putting a facebook login button on your site doesn't tap into facebook's userbase. If you want to try to tap into their userbase, you need actual integration with facebook, which can be done even though you had them sign up using a password. That way they can still use your site when facebook fucks up, and only the "automatically spam my friends" stuff stops working.
comment 13y ago · link · parent
comment 13y ago · link · parent
I only see that for the online version of a brochure. "This is us, buy our thing". There can't really be much of a user interface for those, since there's not much to do, and currently they are all identical ugly bootstrap things with obnoxious javascript scrolling instead of pages.
But actual web apps, where there has to be a user interface to let you interact with things I see mostly a "throw everything on there and who cares if it is usable" approach.
comment 13y ago · link · parent
comment 13y ago · link · parent
This is the biggest problem with the current fad in web design. Designers are designing for their own sense of "look what I can do" instead of for users. People need to stop designing UIs for the sake of seeing how much crap they can stuff in front of my face and start designing UIs to be used.
comment 13y ago · link · parent
We're talking about green threads, remember?
>Async or green threads have a smaller overhead of switching, but any CPU based concurrency is usually missing
The point is that async and green threads are the same thing, just one has a better interface. Of course they both have the same downside.
comment 13y ago · link · parent
comment 13y ago · link · parent
I have no idea why you are talking about pixie dust. My point was that explicitly using event loops instead of abstracting it into a green thread library is dumb, and we need to start having higher expectations from languages rather than accepting backwards shit like node. Not "green threads are magic".
comment 13y ago · link · parent
Most languages make it very hard to reason about state in general. Haskell provides STM, so ensuring correct access to shared state is as simple as using an MVar. I absolutely agree that this is an important part of languages making concurrency a priority, they can't just add green threads and pretend that is good enough.
comment 13y ago · link · parent
comment 13y ago · link · parent
No.
>Who gets to choose the concurrency strategy?
The person writing code?
>Clients are the clients of the API I'm talking about, which is a hypothetical "lightweight thread" based API where everything just works as per original post.
In that context, I am the client. Here's how it works:
forkIO myFunction
That's it. Very simple, scales to millions of "threads", and if compiled with -threaded, those millions of "threads" are spread over a set of OS threads so I also get parallelism.>The really cynical part of my mind is going "please tell me about this magical solution to integrating different event loops and concurrency models" and the less cynical part is open to your suggestions.
The key is just in the "demanding better from languages" part. You don't have to worry about a dozen incompatible green thread libraries if it is built into the language.
comment 13y ago · link · parent
This is why my original post suggested that people need to start demanding better of their languages. This is a total non-issue in haskell because the "event driven framework" (that's really over-stating it, they are just relatively simple libs) is part of the language runtime. So everything uses it. I get concurrency and parallelism with the scalability of an event loop just by doing:
forkIO myFunctioncomment 13y ago · link · parent
Is identical.
>And the best solution was a solution based on a select/epoll/kpoll loop
But the underlying mechanism does not need to dictate what interface is exposed to be used.
>And it turns out that in most practical application userland threading is actually built on an asynchronous IO select-like call.
That is precisely the point. Presenting it as though the only options are "use native threads" and "use callbacks and event loops" is the myth. Use userland threads, you get the same performance and scalability as an event driven style, as it uses the exact same async calls under the hood, but you get a programming style that is readable and maintainable.
Using an event loop is like rolling your own while loop out of setjmp/longjmp. Yes, the underlying mechanism of a loop is the same, but abstraction is pretty nice.
>For that you need Erlang
Why?
comment 13y ago · link · parent
I don't understand. Who are "clients" in this context? You need to know what calls will block and what calls won't regardless of style (event vs thread) unless you are using OS threads or processes.
>Threading sucks.
Why?
>Which ones do you think are good?
The one that comes with ghc.
comment 13y ago · link · parent
That depends on the library in question. Generally the event/callback style code people are writing are only "yielding" at calls to the non-blocking version of otherwise blocking functions, like read type functions, or accept. Most userland threading libs I've seen make the assumption that you want that, and so you don't need to yield yourself. If you did want that level of control, it is still simpler than the event style of achieving the same result.
>Also you will lost some of the scalability advantages because you have to store context for all of the idle fibers.
The overhead is small, especially if you know you don't need much stack and set the thread stack size lower.