Live data from Hacker News

Making a GTK Video Player with Haskell

lettier.github.io

11–20 of 42 posts

Re: Making a GTK Video Player with Haskell

#11

Is there any fully formed application made with Haskell out there?

https://www.quora.com/What-is-the-largest-commercial-program...

I implemented a fractal zoomer, but it might be too simple to meet your vague "fully formed": https://github.com/serprex/Fractaler

Re: Making a GTK Video Player with Haskell

#12

Is there any fully formed application made with Haskell out there?

Here are a few:

elm: https://en.wikipedia.org/wiki/Elm_(programming_language)

purescript: http://www.purescript.org/

postgREST: https://postgrest.com/en/v4.1/

Trending stuff on github: https://github.com/trending/haskell?since=monthly

Re: Making a GTK Video Player with Haskell

#13

Very nice project keep going, would love to see more haskell projects arising from this. Code related: I'm by no means an haskell expert, but your main function in Main.hs looks a bit lengthy, usually i dont see haskell methods with 50+ lines, might be better to split them up and provide names for subfunctions.

The main function would read pretty much the same in any language. Slicing it into multiple functions doesn't really do anything that couldn't be achieved by adding a few comments.

I guess Haskell just doesn't do much to solve the problem of setting up GUIs, at least when it has to interface with a framework like Gtk+.

Re: Making a GTK Video Player with Haskell

#14

Is there any fully formed application made with Haskell out there?

The examples mentioned in the other posts confirm my impression that Haskell is a good language for text processing and server applications but a pain for writing rich desktop applications.

One of the things I miss in Haskell is a way to compile to C, and a convenient declarative GUI which also compiles to C so that all code can be linked together, and distributed as a single binary. The GUI doesn't need to be native. Lisp has its own GUI (McCLIM), Smalltalk has one (Squeak), Rust has one (Conrod), why not Haskell?

Re: Making a GTK Video Player with Haskell

#15

Is there any fully formed application made with Haskell out there?

GPU Database SQream DB's (http://www.sqream.com) main component is Haskell based, in two parts:

1. The open source SQL parser - HsSqlPpp https://github.com/jakewheat/hssqlppp, 35700 LOC + 3900 LOC of tests

2. The compiler and optimizer (proprietary) is roughly 55,000 Haskell LOC

Edit: And we use Pandoc and Quickcheck internally for a bunch of different things

Re: Making a GTK Video Player with Haskell

#16
post #14

Is there any fully formed application made with Haskell out there?

The examples mentioned in the other posts confirm my impression that Haskell is a good language for text processing and server applications but a pain for writing rich desktop applications. One of the things I miss in Haskell is a way to compile to C, and a convenient declarative GUI which also compiles to C so that all code can be linked together, and distributed as a single binary. The GUI doesn't need to be native…

I think pretty much any Language is a pain to write GUIs in, a single property dialogue in photoshop is ~6k loc in C++...

Re: Making a GTK Video Player with Haskell

#17
post #14

Earlier quoted context omitted.

The examples mentioned in the other posts confirm my impression that Haskell is a good language for text processing and server applications but a pain for writing rich desktop applications. One of the things I miss in Haskell is a way to compile to C, and a convenient declarative GUI which also compiles to C so that all code can be linked together, and distributed as a single binary. The GUI doesn't need to be native…

I think pretty much any Language is a pain to write GUIs in, a single property dialogue in photoshop is ~6k loc in C++...

Pascal (Delphi, Lazarus) and Visual Basic are exact counter examples. They demonstrate how easy and convenient GUI development can be.

Re: Making a GTK Video Player with Haskell

#18

Is there any fully formed application made with Haskell out there?

People have mentioned a few here, but I'd say that Haskell's current ecosystem is much more directed towards building infrastructure than user-facing apps. Indeed, most popular Haskell programs are command-line utilities rather than "applications" in the modern sense. Most companies that use Haskell also use it to make robust infrastructure rather than, say, user-facing apps or webpages.

I think it's hard to find many modern applications (I.e. some software package with a UI) made in anything outside of a few choice languages like JS, C++, C#, or Swift.

Re: Making a GTK Video Player with Haskell

#19

Is there any fully formed application made with Haskell out there?

llpp, depending on your definition of "fully formed".

And there is/was a tiling window manager, but everyone I know who used it at some point migrated away because the configuration was Haskell as well.

Re: Making a GTK Video Player with Haskell

#20
post #19

Is there any fully formed application made with Haskell out there?

llpp, depending on your definition of "fully formed". And there is/was a tiling window manager, but everyone I know who used it at some point migrated away because the configuration was Haskell as well.

Xmonad!

Still use it with gnome and it's the only reason I can half read Haskell!

Post reply on HN