Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codygman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
481.
▲
by
codygman
11y ago
I saw this and it made me very happy. I was going to mention it in my original comment but I couldn't remember the link. I'm going to put this in my "tutorial TODO" list, it looks like a lot of fun! Thanks :)
482.
▲
by
codygman
11y ago
If you've had problems with cabal hell in the past and quit using Haskell, this might be your solution!
483.
▲
by
codygman
11y ago
Theoretically you may be right, but in practice not so much. source: I've been writing production Haskell code for a little while now and haven't had any weird performance issues yet.
484.
▲
by
codygman
11y ago
> there is plenty of imperative stateful code written in Haskell. Yep. For instance here's a program that logs into paypal to check your balance in Haskell using screen scraping: https://github.com/codygman/hs-s
485.
▲
by
codygman
11y ago
>> It may not be a race horse, but if you ported those improvements into something like C, you'll have a high-performance rocket. Code that could possibly automatically refactor itself into more efficient, more general components
486.
▲
by
codygman
11y ago
Oh? I haven't seen those! I definitely need to look into it more.
487.
▲
by
codygman
11y ago
Re: why racket isn't used more Last time I did some json parsing it was poetry slow. I've also heard the continuation based webserver was slow and uses a lot of memory. I'll have to benchmark again to be sure. I hope I'm
488.
▲
by
codygman
11y ago
As I understand it in the Haskell community right now. 1. Pipes | Conduit 2. io-streams (perhaps not in 1 only because of a lack of popularity and it is new) 3. Iteratees (have some issue Pipes/Conduit do not which I can't recall)
489.
▲
by
codygman
11y ago
> Perhaps one of javascript's derivative languages could come up with some syntax to make using this more intuitive You might want to checkout purescript, which I'm pretty sure uses Monads to make stream interaction intuitive.
490.
▲
by
codygman
11y ago
I was in a bit of a hurry, so thanks!
491.
▲
by
codygman
11y ago
Why the down votes?
492.
▲
by
codygman
11y ago
> Brainfuck, Haskell, Lisp, Assembly, and a slew of other impractical My argument: Haskell and Lisp are just as practical as Python, Java, C#, or C++ for r/dailyprogrammer problems. Brainfuck is impractical, I can agree with that. H
493.
▲
by
codygman
11y ago
Instead of JS -> Haskell I think I'd recommend JS -> Purescript[0][1] 0: http://www.purescript.org/ 1: https://leanpub.com/purescript/read
494.
▲
by
codygman
11y ago
With Go you have less type safety and no generics though.
495.
▲
by
codygman
11y ago
> I think you'll find some people who wouldn't say that Haskell is overall simple, or at least as simple as Go can be. You'll also find some people who say the opposite. We need to qualify what kind of simple we are talki
496.
▲
by
codygman
11y ago
> program in Haskell for fun. What about the people who program in Haskell for work? > Go is for people who have a job to do. People use Go for fun.
497.
▲
by
codygman
11y ago
LOL, and I spent all that time getting it to compile. Do you know if this compiles with GHC 7.8?
498.
▲
by
codygman
11y ago
I've gotten it compiling! Though I'm not as excited after just now noticing salamynder's comment: https://raw.githubusercontent.com/gentoo-haskell/gentoo-hask... I basically have the same modifications
499.
▲
by
codygman
11y ago
Whoa... I'm surprised this is building (using ghc 7.8.3). I just did: darcs get http://code.haskell.org/frag cabal sandbox init cabal install It's still building right now. I'm expecting some f
500.
▲
by
codygman
11y ago
I'm guessing it still runs on GHC 6.8, maybe GHC 7.6.3? It uses HOpenGL-2.0 and the current version is OpenGL-2.12.0.1 (with a name change apparently). I'll try to compile it.
501.
▲
by
codygman
11y ago
I know, I was just adding on that I am sometimes jealous of you being able to say "Go is a pleasure to work in" when it isn't so much of a pleasure for me anymore.
502.
▲
by
codygman
11y ago
> Go is a pleasure to work in. Java, less. Sometimes I wish I'd stopped at Go instead of then exploring Racket, Ocaml, Clojure, Haskell, and Scala so I could continue to hold your opinion. The end result still matters the most to me
503.
▲
by
codygman
11y ago
Perhaps unsurprisingly, I'm very fond of the Haskell mongoDB package. Here's an example: import Database.MongoDB import Control.Monad.Trans (liftIO) main = do pipe <- connect (host "127.0.0.1"
504.
▲
by
codygman
11y ago
Disclaimer: Not an expert, just someone who has some "Real World" (dayjob) Haskell experience. Like Go using say warp[0] and async[1] likely with similar performance numbers but with less code, more static typing guarantees, and s
505.
▲
by
codygman
11y ago
> The automatic parallelization opportunities of HOFs don't happen in practice nearly as often as you'd expect. Sorry, but it's true. Haskell's "map" doesn't parallelize automatically. It's just a
506.
▲
by
codygman
11y ago
> Now you are comparing Apples and Oranges here, as Ada is a systems programming language. Perhaps comparing ATS and Ada would be more interesting.
507.
▲
by
codygman
11y ago
> I'm hoping that we can find a GHCJS-based FRP solution at some point soon. Have you tried Reflex (also there is a try-reflex[1])? Purescript generates really concise javascript code, have you checked out Thermite[2]? 0: https:&#x
508.
▲
by
codygman
11y ago
You would probably also be interested in my answer to another Haskell skeptic: https://news.ycombinator.com/item?id=9686845
509.
▲
by
codygman
11y ago
> The haskellverse is jammed packed with popular packages that won't build and run properly on your platform This tool is aimed at fixing that, ironically the GP used cabal in an attempt to install a tool fixing cabals problems. >
510.
▲
by
codygman
11y ago
> Let's say that I have a function x that returns a Foo, a function y that takes a Foo and returns a Bar, and a function z that takes a Bar and returns a Baz. This is perfect: we just call z(y(x)). update: I created an interactive t
More ›