Needed 1+1, built a functional programming language

(hereticpleb.vercel.app)

21 points | by birdculture 9 hours ago ago

4 comments

  • gnarlouse an hour ago

    This reminds me of decades ago when ...wait, I was still writing code like three years ago.

  • ancientstraits an hour 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 43 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 25 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.