Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codygman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
83 ms
·
811.
▲
by
codygman
12y ago
I agree with you, though I think it is because of the authors style. Check out some of Chris Done's ats code examples in a more appealing style: https://gist.github.com/chrisdone/c23251e8b975dc805876
812.
▲
by
codygman
12y ago
What advantages does Go have over Erlang?
813.
▲
by
codygman
12y ago
For 2D, I don't see how Gloss[0] isn't complete or high level (what are you comparing it to?). There's a cool example of drawing a clock[1] as well as others[2]. The package is on hackage[3] and has a website[4], but the gith
814.
▲
by
codygman
12y ago
> With linear algebra the library HMatrix is broken in more than one place, it also requires me to learn a lot of new types just to do simple matrix decomposition. What was broken about HMatrix? What library has the best API to you? Alg
815.
▲
by
codygman
12y ago
There was a help link in the top right corner that was a pdf showing all the verbs.
816.
▲
by
codygman
12y ago
Is this just compiled to javascript? Could I download it locally and have it work?
817.
▲
by
codygman
12y ago
I'm pretty sure I read about someone writing this at some point, but I couldn't find it.
818.
▲
by
codygman
12y ago
As an aside, if your interested in safer and faster I'm benchmarking some of the ATS2 code examples[0] which were created for (but not yet in[1][2]) the computer language benchmarks game. It seems to beat C and C++ in some (many?) case
819.
▲
by
codygman
12y ago
> Idris - it seems like the only one that's oriented towards practical programming Whether you like ATS or not, it's very oriented towards practical programming. Also, ATS mostly looks bad IMO because of the style the author us
820.
▲
by
codygman
12y ago
> I love Haskell, but I still don't think it occupies the same space as Rust. My opinion is that Haskell can overlap, but something that occupies the same space as rust would be Ivory[0] or ATS[1]. 0: http://hackage.haske
821.
▲
by
codygman
12y ago
> binary-trees uses artificial strictness for the sake of the benchmark Using strict evaluation when appropriate is most certainly idiomatic Haskell code. > Nine of the ten Haskell implementations are demonstrations of writing C in Ha
822.
▲
by
codygman
12y ago
I didn't see an import for unsafe or foreign in: fannkuch-redux pidigits binary-trees
823.
▲
by
codygman
12y ago
> (2) The Haskell code is nowhere near idiomatic This isn't meant as a personal attack firstly. Secondly, I've heard this said more than a few times lately and am generally curious: Do you know which Haskell examples are idioma
824.
▲
by
codygman
12y ago
Here's 2 Examples (Warning: Didn't run them and could have missed imports). One parallelizing a sudoku solver and the other making a reminder program concurrent. Both are from Parallel and Concurrent Programming In Haskell[0]. Seq
825.
▲
by
codygman
12y ago
A Haskell solution, though I'm sure someone can do better ;) Perhaps I'll clean it up using printf/format[0] later. {-# LANGUAGE OverloadedStrings #-} import Control.Monad (liftM) import qualified
826.
▲
by
codygman
12y ago
What language is php flexible compared to? If anything it seems inflexible.
827.
▲
by
codygman
12y ago
Good point. Not sure how to avoid bias or if it's even possible in this case. All I can do is let him know that the second design/attempt would have been easier in just about any language.
828.
▲
by
codygman
12y ago
What about Go or Node make it more designed around concurrency than Haskell? It sounds like you are trying to say Erlang, Go, and Node have "first class concurrency". I'd agree that Erlang does, but I'd say that Node and
829.
▲
by
codygman
12y ago
I have a friend who is using Java for some chemistry related programming that could be modeled particularly nicely with lazy evaluation and ADT's. I told him to keep sticking with Java and get something working, and then I might be abl
830.
▲
by
codygman
12y ago
No one is responding to this because it isn't worth responding to. PHP's libraries are a mess and while the documentation is pretty nice, it's not nice enough to make up for the other problems.
831.
▲
by
codygman
12y ago
> I am not a Lisp hacker. I prefer to ship. You make the two sound mutually exclusive.
832.
▲
by
codygman
12y ago
Beowulf cluster?
833.
▲
by
codygman
12y ago
> They have a very clear evaluation model, which you need to know in order to write any code. What programming languages don't require you knowing their evaluation model?
834.
▲
by
codygman
12y ago
Here you go! C ( http://rosettacode.org/wiki/N-queens_problem#C ) Program 1 (compiled with gcc -O3 c1.c -o bin/c1)[0] real 0m0.003s user 0m0.000s sys 0m0.002s Program 2: (compiled with gcc
835.
▲
by
codygman
12y ago
There are concise declarative solutions in languages such as Ocaml and Haskell.
836.
▲
by
codygman
12y ago
Oh this looks very interesting. It would be fun to read this and make Haskell versions of the programs as well as learn Ocaml at the same time!
837.
▲
by
codygman
12y ago
You could write those command line libraries/etc in Ocaml now ;)
838.
▲
by
codygman
12y ago
Great list, I'm downloading many of them now!
839.
▲
by
codygman
12y ago
Also, I'm not sure why you'd need to inherit to provide this functionality. The user could just provide a monadic type the function to run the gui is expecting and extend it however they wish.
840.
▲
by
codygman
12y ago
I asked how redundant classes and interfaces improve maintainability over time. I'll narrow down my question some more: How does duplicated code improve maintainability over time?
More ›