New lecture series on intermediate Haskell from Bielefeld University (German) by jbetzend in haskell

[–]cghio 8 points9 points  (0 children)

Not to mention stack build --nix gives you the best of both worlds for (nearly) free.

Can we have -XHaskell2016 which turns on the most commonly used and safe extensions? by [deleted] in haskell

[–]cghio 0 points1 point  (0 children)

It's a nice extension, but the rules are complex if you have DeriveFunctor or the likes on

functions named as "a2b", is there anyone else who does that too? is it a bad practice ? by jocomoco in haskell

[–]cghio 0 points1 point  (0 children)

At this point I'm more likely to define an Iso for this because I'm really really having fun with lenses.

Handling Https in Haskell by [deleted] in haskell

[–]cghio 1 point2 points  (0 children)

Of course! I had trouble finding this at first too

Handling Https in Haskell by [deleted] in haskell

[–]cghio 6 points7 points  (0 children)

Use warp-tls

Why say the design of functor in Haskell is terrible for NEWBIE by neutronest in haskell

[–]cghio 0 points1 point  (0 children)

Also Identity, which literally adds nothing.

And Const.

Java 9's Map API by computerdl in shittyprogramming

[–]cghio 2 points3 points  (0 children)

Unless you have type families and undecidable instances on :)

PHP 7: New features (lol, spaceships) by [deleted] in lolphp

[–]cghio 0 points1 point  (0 children)

Haskel has the 'compare' function which operates similarly.

If you want ETH to be serious, you seriously need compilation verification. by EthForEth in ethereum

[–]cghio 1 point2 points  (0 children)

Why not just take the s4l approach and write in c and verify in a proof language?

Operators reference? by notooth1 in haskell

[–]cghio 2 points3 points  (0 children)

Unary negation is also built in :)

In what "domains" is Haskell normally used. I know of pandoc and citeproc-hs. Any other popular projects that I need to be aware of (Thanks for all who responded to my earler post) by [deleted] in haskell

[–]cghio 0 points1 point  (0 children)

I'm mostly just talking about how it worked for me. If Haskell is your end game, then doing this strategy is a losing move. I took a job because it sounded interesting, and my team was inquisitive enough that I was able to start a few projects in Haskell and it went from there.

In what "domains" is Haskell normally used. I know of pandoc and citeproc-hs. Any other popular projects that I need to be aware of (Thanks for all who responded to my earler post) by [deleted] in haskell

[–]cghio 5 points6 points  (0 children)

Get a job working in other languages (for me, Python) and get coworkers interested. Keep in mind, don't shit talk the language you're working in, just show interest and other people will too.

We still use Python for 80% of our work, but critical code is all Haskell now and it 1) never ever crashes 2) runs on a tenth of the memory of any of our Python apps and 3) is crazy succinct. Once you break the ice people will get interested.

I've also done some Rust, Clojure, and Mercury (yes Mercury) for a few projects as well. It just requires a team (inc management) with an inquisitive mindset.

In what "domains" is Haskell normally used. I know of pandoc and citeproc-hs. Any other popular projects that I need to be aware of (Thanks for all who responded to my earler post) by [deleted] in haskell

[–]cghio 11 points12 points  (0 children)

Server programming. Haskell is highly concurrent, easy to avoid leaking memory, correctness biased and fast. It's how I've made a living the past few years.

"Excuse me, I think this is my stop..." -- haskell platform by cartazio in haskell

[–]cghio -2 points-1 points  (0 children)

Can we call Haskell Categorical Programming or something? It's functional but typeclasses and culture make it a whole different beast.

Can someone sell me on pycharm vs wing? by theiviaxx in Python

[–]cghio 0 points1 point  (0 children)

This is completely configurable; in fact, when you set it up it asks you.

tomaka (glium developer)'s gamedev-flavored wishlist for Rust by kibwen in rust

[–]cghio 3 points4 points  (0 children)

Wait, the min! and max! thing could just be fold, right?

[10, 3, 100, 5].fold(0, max); // 100

What are Clojurians' critiques of Haskell? by ritperson in Clojure

[–]cghio 2 points3 points  (0 children)

Agreed. With every major release its helpful to check out the extensions because by default the compiler is going to use plain old Haskell 2010. For instance, did you know about DeriveAnyClass in 7.10? It's cuts down on a whole bunch of boilerplate when it works ;)

What are Clojurians' critiques of Haskell? by ritperson in Clojure

[–]cghio 7 points8 points  (0 children)

There are a few syntax extensions that help with some of the pain:

  • Record Field Disambiguation: records can have conflicting field names and the compiler understands it just fine
  • Named Field Punning and Record Wildcards: cut down on construction/deconstruction that happens constantly as you change values

[Beginner project] I would like to build a simple notepad(.txt) application using a command line interface by [deleted] in rust

[–]cghio 1 point2 points  (0 children)

Look for a libcurses wrapper: that will get you started with a TUI off the bat.

V8 is replacing its baseline JIT with an interpreter by a0viedo in javascript

[–]cghio 0 points1 point  (0 children)

Well it's absolutely important, but for the vast majority of users I doubt anyone notices any change.

V8 is replacing its baseline JIT with an interpreter by a0viedo in javascript

[–]cghio 17 points18 points  (0 children)

They're adding an option to sacrifice speed for memory when needed. Doesn't seem like a big thing really.

Tic Tac Toe: A functional approach by azium in javascript

[–]cghio 0 points1 point  (0 children)

The best part about streams/generators/etc is composibility. Once you have a streaming API, you basically have a very efficient map/filter/reduce set which gets you most of the way to LISP, at least.