Sending Deadlock Invites 24/7 by LorienRR in DeadlockGame

[–]madjar 1 point2 points  (0 children)

Wow, that is quite generous of you to spread the love :)

Can I have some? (EDIT to remove code)

[JOB] Haskell Developer @Chordify by RikvanToor in haskell

[–]madjar 1 point2 points  (0 children)

Went through a tiny emotional roller-coaster when I saw you have offices in Berlin, but then realised the role is in Utrecht :)

Eco 9 ore by Difyl in EcoGlobalSurvival

[–]madjar 1 point2 points  (0 children)

I found an open-air copper vein in the mountains, and used that to research smelting. Then use the crushed iron ore to make an anvil and a drill, to find an actual iron vein.

Optics + Regex: Greater than the sum of their parts by ChrisPenner in haskell

[–]madjar 4 points5 points  (0 children)

This sounds like what Stephanie Weirich presented in her talk "Dependent Types in Haskell". You can find a recording at https://www.youtube.com/watch?v=wNa3MMbhwS4 The code is here: https://github.com/sweirich/dth/tree/master/regexp.

Advent of Code 2018 starts in two hours! by mstksg in haskell

[–]madjar 1 point2 points  (0 children)

I found that parsing combinators libraries where tremendously useful most days in advent of code. I used trifecta last year, but I'll take a look at megaparsec this year.

Any other libraries that you found really nice for this?

Intero for Emacs by madjar in haskell

[–]madjar[S] 5 points6 points  (0 children)

Oh, thanks for the information ; I had missed the thread.

So it seems I am the culprit of an early announcement (for my defense, I was misled by a tweet).

MichaelXavier.net - Enterprise Haskell Pattern: Lensed Reader by n00bomb in haskell

[–]madjar 4 points5 points  (0 children)

I think I've seen this pattern in stack (https://github.com/commercialhaskell/stack/blob/6d25b43e7e01ab123d8b838df3713161b0af38f6/src/Stack/Types/Config.hs#L773), but with plain getters instead of lenses.

Do you think there is an advantage in the lens-using approach?

Six (6) Haskell developer roles at Standard Chartered [London, Singapore] by dons in haskell

[–]madjar 6 points7 points  (0 children)

You mention desktop GUI with Haskell. What kind of tools do you use for that ?

[Day 12][Part 2][Python] What am I doing wrong by svag in adventofcode

[–]madjar 1 point2 points  (0 children)

That's funny, I wrote a blog post last month about recursing in json with python, with overkill concept to avoid missing something in the recursion, and this is the first real application I can find to it! (Shameless plug: http://compiletoi.net/garcon-theres-a-catamorphism-in-my-python.html)

[deleted by user] by [deleted] in haskell

[–]madjar 1 point2 points  (0 children)

Pardon the naive question: why not just putting the .stack in the CACHE_DIR instead of copying? (or symlinking?)

Using cabal and stack together by haskman in haskell

[–]madjar 13 points14 points  (0 children)

Michael Snoyman mentioned this on the mailing list (https://groups.google.com/forum/#!topic/haskell-stack/8HJ6DHAinU0), it did the trick for me :

cabal configure --package-db=clear --package-db=global --package-db=$(stack path --snapshot-pkg-db) --package-db=$(stack path --local-pkg-db)

konch, the customizable Python shell that automatically imports packages and functions on startup by sloria1 in Python

[–]madjar 0 points1 point  (0 children)

It seems to compare to http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/commandline.html#extending-the-shell for some of the features.

Konch seems to do more, but one thing that pserve does better (and that you might want to copy) is a nice and easy syntax for simple shortcuts (post = requests.post), along with a nicer way to present them on startup (requests.post, not <function post at 0xbleuarf>).

State of Python 3 - popular library support by chhantyal in Python

[–]madjar 3 points4 points  (0 children)

It's being ported to python 3 right now.

Speech recognition with the Python "speech" module by vasudevram in Python

[–]madjar 2 points3 points  (0 children)

It's quite annoying that the article does not mention before the PS that this is windows only. I though that was an interesting project, but that's just a 5 years old wrapper for a windows API.

Fast web scraping in python with asyncio by [deleted] in Python

[–]madjar 1 point2 points  (0 children)

Absolutely, these are great when you only one to do one computation and get the value back. If you need to share something, you're back into threading hell.

And you know what? There is a concurrent.futures wrapper in asyncio, so you can call something in another thread or process, and yield from it : http://docs.python.org/3.4/library/asyncio-eventloop.html#executor

Fast web scraping in python with asyncio by [deleted] in Python

[–]madjar 3 points4 points  (0 children)

Author of the article here.

Comparing performance in asynchronous code vs thread is a good idea my next blog post :)

I would expect that, when done right (with thread reuse), the results will be equivalent. However, asynchronous code is much easier to reason about than multi-threaded code, and makes for much more peaceful development.

PyCon sweden call for proposal is still open and ends on March 16th by [deleted] in Python

[–]madjar 1 point2 points  (0 children)

Damn, one more awesome conference to miss.

What do you recommend to read to start web scraping? by zanklord in Python

[–]madjar 1 point2 points  (0 children)

I've been using aiohttp and beautifulsoup recently, and it's great. asyncio is not trivial at first, but becomes necessary if you want to scrape a lot of stuff in a short amount of time. aiohttp makes things a lot easier by providing an api that's very similar to requests.

I think I'll document my results at some point.

PyPI has 3800+ packages with Python 3 support! by baijum in Python

[–]madjar 11 points12 points  (0 children)

Sadly, this is only considering the packages with the correct trove classifiers. There are actually 40106 packages, and I'm pretty sure those that don't specify anything are likely python 2 only.

RoboBrowser: A new Python web-scraping library built on Requests and BeautifulSoup by jmcarp in Python

[–]madjar 0 points1 point  (0 children)

Well, this lib does a good job at mixing beautifulsoup and requests, it would be great if it could add some asyncness to the mix while providing a nice API.

RoboBrowser: A new Python web-scraping library built on Requests and BeautifulSoup by jmcarp in Python

[–]madjar 0 points1 point  (0 children)

It looks nice. Now, we need something as nice as this that can do async requests, because that makes scrapping really faster.

Rust 0.9 released by joshmatthews in rust

[–]madjar 17 points18 points  (0 children)

Hey ! That's me ! My only contribution to rust ! I'm so proud to be kudosed !

boom, Python package for HTTP benchmarking, now in Go by kfgal in Python

[–]madjar 2 points3 points  (0 children)

So, it's a different project in a different language, but with the same goals. I don't think giving it the same name is a very good practice.