Needed 1+1, built a functional programming language

(hereticpleb.vercel.app)

20 points | by birdculture 9 hours ago

2 comments

  • gnarlouse 1 hour ago
    This reminds me of decades ago when ...wait, I was still writing code like three years ago.
  • ancientstraits 47 minutes ago
    The "how to implement a hash table" article https://benhoyt.com/writings/hash-table-in-c/ was really helpful for me. I thought that hash tables were something that were basically impossible to make in C, but this showed that it was simpler.
    • dprkh 34 minutes ago
      Arrays are hash tables. You can implement a very simple hash table from a tutorial, but can you implement a sophisticated one? What about a concurrent hash table?
      • saghm 17 minutes ago
        Yeah, I'm pretty sure we made hash tables in the first C class I took in college in my second semester freshman year. If you can make a linked list, and then make an array of them, and a function to map keys to array indexes, you have a hash table. Whether it's actually performant is entirely a separate question, but a naive hash table is still a hash table.