SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Noughtmare@programming.dev to Haskell@programming.devEnglish · 2 months ago

Search Index in 150 Lines of Haskell

entropicthoughts.com

external-link
message-square
4
fedilink
8
external-link

Search Index in 150 Lines of Haskell

entropicthoughts.com

Noughtmare@programming.dev to Haskell@programming.devEnglish · 2 months ago
message-square
4
fedilink

I stumbled over Bart de Goede’s article on building a full-text search engine in 150 lines of Python, and was reminded of my quest to show how useful Haskell is for solving real-world problems. Python is an eminently practical language, so nobody is surprised this can be done in Python. But Haskell? The Python code spends a lot of time updating mutable dictionaries. Surely we cannot easily port this code over to Haskell.

Let’s find out.

  • Noughtmare@programming.devOP
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    2 months ago

    Not only is it convenient, it also enables parallelism:

    “How to Think about Parallel Programming: Not!” - Guy L. Steele Jr. (Strange Loop 2010)

    • gedhrel@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      Yes! Steele’s Fortress-era talks are amazing. Really thought-provoking.

    • gedhrel@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Yes! Steele’s Fortress-era talks are amazing. Really thought-provoking.

Haskell@programming.dev

haskell@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !haskell@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 7 users / week
  • 18 users / month
  • 95 users / 6 months
  • 7 local subscribers
  • 547 subscribers
  • 131 Posts
  • 47 Comments
  • Modlog
  • mods:
  • haskman@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org