Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codygman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
241.
▲
by
codygman
10y ago
Picture map, filter, and fold as for loops with annotations that restrict what they can do. This helps both the source code reader (you and I) and the source code compiler more easily understand what's going on. For the compiler this m
242.
▲
by
codygman
10y ago
> The Go standard library is full of things that do exactly what you want them to, whereas in other languages you have to manually do it yourself. No. Python: toCheck.startswith(prefix) JavaScript: toCheck.startsWith(prefix) Haskell: pre
243.
▲
by
codygman
10y ago
For me the compile time and runtime distinctions are more important.
244.
▲
by
codygman
10y ago
Go is more from the typed world than Python where I came from. It will tell you at compile time you are using a string rather than an int (unless you use interface{}).
245.
▲
by
codygman
10y ago
One thing I can credit Go for is leading me from the untyped world to the typed one. I soon found the holes in the Go type system, and went looking for a stronger type system. I now generally prefer Haskell.
246.
▲
by
codygman
10y ago
Go doesn't make real world programming easier. It makes you work hard for pointless things. Most of its problems are from a lack of generics.
247.
▲
by
codygman
10y ago
As someone who writes Go every day for work, I can't agree that Go is simple. Using a language for analytics without generics can be quite painful and error prone. Go is a language that pushes remembering corner cases and failure condi
248.
▲
by
codygman
10y ago
inshell "ls" would do what you are talking about, unless your bar for simple is just typing ls.
249.
▲
by
codygman
10y ago
> I think it doesn't include simply calling external commands proc and inshell. Did you check out the built-in tutorial? http://hackage.haskell.org/package/turtle-1.0.0/docs/Turtle-...
250.
▲
by
codygman
10y ago
The authors encourages anyone that can't afford the book to contact them through their support link on the Haskellbook.com site to work something fair out.
251.
▲
by
codygman
10y ago
I think it's the most used by non haskeller's. I'd say most used and most famous is the ghc Haskell compiler.
252.
▲
by
codygman
10y ago
> The difference between this and the typical Haskell library where you need to be mathematically sophisticated to even know what problem it solves is pretty stark. I'm a Haskell developer and the most math I know is algebra 2. I al
253.
▲
by
codygman
10y ago
> Haskell devs spent the time talking how intellectually superior the are and got nothing done. I could give a recap of Haskell development that's happened while Scala.js has been developed to debunk this silly accusation, but it wo
254.
▲
by
codygman
10y ago
I'm not sure if Scala.js is production ready, but both Purescript and Elm have been used in production for a few years.
255.
▲
by
codygman
10y ago
> * NonEmptyList - I never came across a palce where I needed NonEmptyList?! Do you ever check the length of a list before applying a computation or dispatch based on a result list?
256.
▲
by
codygman
10y ago
Purescript?
257.
▲
by
codygman
10y ago
Can you give some examples of abstractions that leak which the community doesn't want (or hasn't wanted) to address?
258.
▲
by
codygman
10y ago
> hindley-milner style type checking is nice, but once you admit that things like arrays exist How are these related? Haskell has arrays. Arrays can be represented as algebraic data types as well. What is it you think Haskell has trouble
259.
▲
by
codygman
10y ago
I think the real magic here is you can drop down (fly up?) to writing Haskell code alongside this bash like DSL and have sane flow control.
260.
▲
by
codygman
10y ago
This too was wrong and the real problem was me putting "monads-tf" in my build dependencies instead of "mtl". I got bit by using a macro on that list of "try adding X dependency". In any case, the original post
261.
▲
by
codygman
10y ago
The actual solution isn't modifying the cabal file here at all, it is adding "extra-dep: true" to stack.yaml when we start using the cassandra-cql dependency from GitHub. I'll be updating the post again soon.
262.
▲
by
codygman
10y ago
I also use BazQux and bought their lifetime subscription. Their site is written in Ur/Web[0] though, not Haskell. 0: http://www.impredicative.com/ur/
263.
▲
by
codygman
10y ago
It is now updated.
264.
▲
by
codygman
10y ago
They are both the same, you need to remove: MonadCatchIO-transformers, monads-tf, bytestring, text, uuid, I'm testi
265.
▲
Real World Haskell – Cassandra Part 1 – Connecting to Cassandra
(codygman.github.io)
2 points
by
codygman
10y ago
|
5 comments
266.
▲
by
codygman
10y ago
I also want to say wreq for http and persistent/esqueleto for SQL alchemy equivalent.
267.
▲
by
codygman
10y ago
I only know of two somewhat comprehensive studies on this. One says Haskell had far fewer bugs and the other has a conclusion like yours. You make it sound like there are numerous studies supporting your conclusion, can you link a few of th
268.
▲
by
codygman
10y ago
> Go is one recent exception of a popular language whose main implementation is completely self hosted. Though, Go doesn't host other popular languages. It wasn't self-hosted in the beginning, only since version 1.5 IIRC.
269.
▲
by
codygman
10y ago
Trying to get to computer to do exactly this.
270.
▲
by
codygman
10y ago
> The real value in Haskell, to me, seems to be for learning functional programming, since it forces you to use that paradigm. Beyond that, it's just a hobby language. There's nothing wrong with that, but it's not worthy o
More ›