Better HN
topnewbestaskshowjobs
Log inSign up

sjakobi

66 karma · joined Oct 3, 2016 (10y ago) · 46 submissions

Submissions

comment 2mo ago · link · parent

In many cases it's possible to write Haskell that runs as fast as a given C implementation. However the result will usually not be idiomatic Haskell.

comment 9mo ago · link · parent

Wrong link?!

comment 4y ago · link · parent

Hmm, that bike looks very much like Swapfiets' "Deluxe 7" model, which has a 7-gear hub, so not a single speed! The gears also explain why there are three wires leading to the handlebar (2 for the brakes + 1 for the gears).

Nevertheless, the lowest gear on that bike is still not much help on a steep ascend like this.

comment 5y ago · link · parent

How does Lebanon lose from this project?

comment 6y ago · link · parent

http://hackage.haskell.org/package/brick is popular in the Haskell world.

comment 6y ago · link · parent

Discussion on r/haskell: https://www.reddit.com/r/haskell/comments/gtm3w0/on_marketin...

comment 6y ago · link · parent

There a several companies who benefit massively from using Haskell, not least by attracting talent!

The most recent instance is probably Juspay: https://github.com/juspay

comment 6y ago · link · parent

jdh30, the author of both comments, is a massive OCaml fanboy and Haskell hater. I've seen him try to take Haskell performance numbers and interpret them using the wrong units to make them look worse. I'd take anything that he says about Haskell with a big, big grain of salt!

comment 6y ago · link · parent

Regarding build tools for C, you might find this one interesting:

https://github.com/vmchale/cpkg

comment 6y ago · link · parent

> Hughes' pretty printer works really well for pretty-printing Haskell code, but Wadler's is more flexible for pretty-printing C-style languages where there is a dedented closing brace at the end of scopes.

That's very interesting! So far I've only used Wadler-Leijen-style prettyprinters.

Are Hughes-style pretty printers "better" in some way for Haskell-like documents? If so, why?

comment 6y ago · link · parent

There's a similar blog post by Gabriel Gonzalez which focuses on the incentives set in Haskell:

http://www.haskellforall.com/2016/04/worst-practices-should-...

12.

Version 8.10.1 of the Glasgow Haskell Compiler has been released(reddit.com ↗)

4 points · by sjakobi · 6y ago · discuss

comment 6y ago · link · parent

Thanks for mentioning BR Heimat! I didn't know I needed this! :)

comment 6y ago · link · parent

FYI OP: I posted your review on r/haskell where it got several comments: https://www.reddit.com/r/haskell/comments/ewjnf4/a_pythonist...

comment 6y ago · link · parent

Doctests are often useful to briefly demonstrate how something works: http://hackage.haskell.org/package/doctest

They are a bit finicky to set up though.

Another good resource: http://yannesposito.com/Scratch/en/blog/Haskell-Tutorials--a...

comment 6y ago · link · parent

Hm, I'm afraid to say that I can't find a good resource on how to write and build docs for Haskell libraries. Maybe that's a tutorial you could write once you've figured it out?! ;)

Here are a few links though:

* https://ndmitchell.com/downloads/slides-drive-by_haskell_con...

* https://haskell-haddock.readthedocs.io/en/latest/markup.html

* https://docs.haskellstack.org/en/stable/build_command/#synon...

Also, maybe join the #haskell-beginners channel on Slack: https://fpchat-invite.herokuapp.com/

There are other platforms too though, e.g. https://www.reddit.com/r/haskellquestions/, https://discourse.haskell.org/

comment 6y ago · link · parent

This sounds similar to the process used for some parts of Cardano. Duncan Coutts talked about this in this video:

https://www.youtube.com/watch?v=TZGVgNsJSnA

18.

Dhall – Year in review (2019-2020)(haskellforall.com ↗)

2 points · by sjakobi · 6y ago · discuss

comment 7y ago · link · parent

> Even Haskell doesn't get it right: there are no exhaustiveness checks on pattern matches

Just enable -Wincomplete-patterns or -Wall!

comment 7y ago · link · parent

What are modular implicits?

comment 7y ago · link · parent

What kind of compiler is it? What does it compile?

Are you the only person who has worked on it?

comment 7y ago · link · parent

This appears to be the building that contained the machines:

https://www.google.de/maps/@49.4431182,11.0857279,3a,75y,31....

I found it via the "GlaserExpress" trailer that appears in a few pictures. I used to live nearby a decade ago.

comment 7y ago · link · parent

How can you tell?

24.

An Antique Land – Minitel: Welcome to the Internet(inference-review.com ↗)

1 points · by sjakobi · 8y ago · discuss

comment 8y ago · link · parent

In the article about non-Turing-complete languages, I kind of expected to find a mention of Dhall which is a fancy new programmable configuration language:

https://github.com/dhall-lang/dhall-lang

comment 8y ago · link · parent

Oh, I had never heard of that command before. Does it work well, i.e. does it improve your workflow?

comment 8y ago · link · parent

I'm not sure what that statement was based on. The stack project certainly still uses haddock to document its code.

At least some of the projects he cites also use readthedocs for user guides etc.

> How do I get (I mean, build in stack) my useful documentation?

Try

    stack haddock --open <packagename>

comment 9y ago · link · parent

https://github.com/hmemcpy/milewski-ctfp-pdf appears to have quite a few fans.

29.

Drive-by Haskell Contributions [pdf](ndmitchell.com ↗)

2 points · by sjakobi · 9y ago · discuss

comment 9y ago · link · parent

See my reply to a similar comment: https://news.ycombinator.com/item?id=13786992
12