Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
bos on wreq: a capable new HTTP client library - http://www.reddit.com/r...
"You don't need to apologize, and I didn't take anything as ungrateful. You're entitled to feel however you like about my choice to use lens, and I certainly knew ahead of time that it would be a controversial thing to do." - Bryan O'Sullivan
bos on wreq: a capable new HTTP client library - http://www.reddit.com/r...
"`wreq` certainly does *not* use lazy IO: it uses *eager* IO, and provides (a currently incomplete set of) simple left folds if you need to stream responses." - Bryan O'Sullivan
bos on wreq: a capable new HTTP client library - http://www.reddit.com/r...
"I haven't done any benchmarking, and I may not do any in the future, as the library is just a thin(ish) layer atop http-client. As for pronk, I haven't really given any thought to using wreq with it. It would probably be an easier building block to craft custom benchmarks with (e.g. "POST this body"), which is interesting." - Bryan O'Sullivan
bos on wreq: a capable new HTTP client library - http://www.reddit.com/r...
"Because [`FormValue` handles type conversions for you](http://hackage.haskell.org/package...). How is this not obvious? I'd like to improve the docs so that questions like this are not necessary." - Bryan O'Sullivan
bos on wreq: a capable new HTTP client library - http://www.reddit.com/r...
"That's happening because wreq depends on a newer version of http-client than http-conduit is built on. If you reinstall http-conduit at the same time, the problem will go away." - Bryan O'Sullivan
bos on wreq: a capable new HTTP client library - http://www.reddit.com/r...
"That was where I started, but `lens-family-core` simply isn't powerful enough to express some of the ideas that you get "out of the box" with `lens`. I switched to `lens` once I ran into one roadblock too many. The nice thing about `lens-family-core` is that it's completely compatible, so you can start smallish if you like, and delay the move to `lens` for some time—perhaps indefinitely." - Bryan O'Sullivan
bos on wreq: a capable new HTTP client library - http://www.reddit.com/r...
"So `_String` gives useful default values (thanks to `mempty`) regardless of whether you use `^.`, `^?`, or `^..`. It's super handy. Is there something specific you're reacting to?" - Bryan O'Sullivan
bos on wreq: a capable new HTTP client library - http://www.reddit.com/r...
"Hmm, I just built a library on top of http-client, and it was fine. The `Manager` exists precisely to abstract away connection management, so I haven't found myself wanting a different connection pooling mechanism. I've used http-client for years, and Michael has always been very helpful and responsive to questions and bug reports. (In fact, he added the `Manager` feature in response to a request of mine.) So yeah, it has been used for years. And finally, your snotty tone and use of scare quotes brings some of the worst of reddit concern trolling to a community that I generally like. Knock that crap off." - Bryan O'Sullivan
bos on wreq: a capable new HTTP client library - http://www.reddit.com/r...
"Not yet, as they weren't necessary to get a 0.1 release out the door. Obviously caching support would be rather nice to have, and I plan to work on it soon." - Bryan O'Sullivan
bos on The Haskell Big Integer Experiment - http://www.reddit.com/r...
"Hmm, nice cup of tea before hitting "send" when the old emotions are high, anyone?" - Bryan O'Sullivan
bos on Heartbleed aftermath: should Haskell web frameworks allow using a pure Haskell SSL library instead of OpenSSL? - http://www.reddit.com/r...
"Handling TLS via a proxy is a good approach, as the consequences of a successful attack if the TLS stack and the app share an address space are dramatically worse." - Bryan O'Sullivan
bos on Heartbleed aftermath: should Haskell web frameworks allow using a pure Haskell SSL library instead of OpenSSL? - http://www.reddit.com/r...
"As far as I know, this is what the tls package tries to do. There's a lot of clueless hand waving about lazy evaluation in the thread on HN, which is a good first- order filter for "I have heard about Haskell but don't know what I am talking about"." - Bryan O'Sullivan
"There's a huge family of small functions out there that are interesting to someone, and each comes with costs in learning and maintenance. I don't think that a function that is so trivially defined comes close to paying those costs." - Bryan O'Sullivan
"Please don't, you can be fairly sure it will be rejected." - Bryan O'Sullivan
bos on Why is this algorithm so much slower in Haskell than in C? - http://www.reddit.com/r...
"Don't use System.Random, as it is both very slow and of poor quality. You should use the `mwc-random` package if you need speed, or `tf-random` if you need that pure splittable API." - Bryan O'Sullivan
bos on Branching strategy used by Facebook and Phabricator to develop software - http://www.reddit.com/r...
"Facebook dev here. What tibbe observes is correct; you have to make an effort to go back and remove the code that's no longer relevant once its successor has shipped, and that can be overlooked. And regarding use of #ifdef for this kind of work, that tends to be a reliable foot-shooting instrument, and I would never recommend it. It has three huge problems. The first is that it's too easy for code on either side of the #ifdef to fall out of sync, breaking the build. The second is the combinatorial explosion of builds you need to avoid the first problem, which is closely related to the "rat's nest of #ifdefs" problem. And the third is that you have a terribly heavyweight way of switching between code paths, namely either a rebuild or a reinstall. Just don't do it, kids! (Obviously there are exceptions where it actually makes sense. Please don't be That Commenter who shows up to crow that my argument is invalid because you've found a tiny crack in it for your one narrow case.)" - Bryan O'Sullivan
bos on Can GHC do loop unrolling in idiomatic Haskell like in this C++ example? - http://www.reddit.com/r...
"It negatively affects compilation time (which is already slow), and has no noticeable effect on a large body of code, so not for the foreseeable future." - Bryan O'Sullivan
bos on Adventures in Hoogling: adding hoogle to your workflow - http://www.reddit.com/r...
"That is one clunky workflow. Thank you for having the patience to figure it out and the courtesy to document it for the rest of us. In my dreams, this would serve as impetus for someone in the community to do something less janky that we could roll into Emacs, vim, and whatnot." - Bryan O'Sullivan
bos on Facebook introduces Hack: a new programming language for HHVM - http://www.reddit.com/r...
"Yes; we have rather a good team." - Bryan O'Sullivan
bos on Facebook introduces a type annotated PHP derivative with lots FP/Haskell inspiration - http://www.reddit.com/r...
"Nope." - Bryan O'Sullivan
bos on Facebook introduces Hack: a new programming language for HHVM - http://www.reddit.com/r...
"“It's tough to make predictions, especially about the future.” We expect to be investing in Hack, PHP, and HHVM for a long time to come. Every piece of work we do in this realm pays itself off manyfold; that's one of the pleasures of working on a core technology." - Bryan O'Sullivan
bos on Facebook introduces Hack: a new programming language for HHVM - http://www.reddit.com/r...
"These are brilliant suggestions. If we hire you, can you please plan to have them all completed by the end of Q3?" - Bryan O'Sullivan
bos on Facebook introduces Hack: a new programming language for HHVM - http://www.reddit.com/r...
"It can, and that's something we hope to do quite extensively, but we're just beginning that journey." - Bryan O'Sullivan
bos on Facebook introduces Hack: a new programming language for HHVM - http://www.reddit.com/r...
"What makes you think that I don't do that, too? :-)" - Bryan O'Sullivan
bos on Facebook introduces Hack: a new programming language for HHVM - http://www.reddit.com/r...
"I'm the manager of the team that developed Hack, and I'm sitting here with some of the language designers. Happy to answer your questions." - Bryan O'Sullivan
bos on Book review: Parallel and Concurrent Programming in Haskell - http://www.reddit.com/r...
"Well now's your chance to review the first half of the book. Between us, we can construct a Voltron-like giant mecha-review that will defeat its weaker review enemies!" - Bryan O'Sullivan
bos on Parsing massive clicklogs, an approach to parallel Python - http://www.reddit.com/r...
"The post is a particularly bad example of a dictum that is nevertheless often true. The OP never seems to state the speedup achieved through all their effort, but at the end they say they're parsing at a rate of about 27MB/sec *across 8 cores*, which is dismal. Assuming the OP was using a language that was high-level, compiled to fast code, had decent multicore support, and had decent libraries, it's reasonable to estimate that they could have produced a program that was a further 30 times faster, with comparable effort, and with *fewer compromises* around difficulty of development. Python is an awkward choice for an application like this, as it's good enough to get by when a data set is small, but you struggle through increasingly large contortions to keep up with larger sizes." - Bryan O'Sullivan
bos on Automatic package uploading from GitHub? - http://www.reddit.com/r...
"Nope, this is definitely your imagination at work." - Bryan O'Sullivan
bos on A Minimal JSON Parser & Printer for Haskell - http://www.reddit.com/r...
"The intent behind `read` and `show` is that they render Haskell types using Haskell conventions, so abusing them in this way is a bit icky." - Bryan O'Sullivan
bos on The problem with Integer. - http://www.reddit.com/r...
"Not only that, gmp has had a few decades of work put into it, and its author knows the domain exceedingly well. The OP's desire is laudable, but the wording sounds like he's setting himself up for a fall by vastly underestimating the domain." - Bryan O'Sullivan
Other ways to read this feed:Feed readerFacebook