Recent submissions

Comment · 1 year ago
Comment · 2 years ago
Comment · 2 years ago
Comment · 2 years ago
Python is great for API discovery. `dir()` and `help()` are builtins. Use the REPL.
Comment · 2 years ago
Comment · 2 years ago
As the Hissp author/maintainer, I'd be interested in hearing about your take on Hissp's practicality (or lack thereof) in more detail.
Comment · 3 years ago
Not accurate as worded. Python caches module imports in `sys.modules`, so all imports get the same one. A `reload()` will reuse the same dict object that was being used as the module's namespace, so everything with a reference to the module object will see the same namespace and get the updates.
Comment · 3 years ago
What? Yes you can. I do it all the time.

    import code; code.interact(local=vars(foo))
where `foo` is the module object you want to set as current. This launches a subREPL in that module's namespace. (EOF kills the subREPL and returns to main.)

Python has a debugger in the standard library that can also do post-mortem inspections.

Comment · 3 years ago
Comment · 3 years ago
Comment · 3 years ago
A class of old-school AIs: https://en.wikipedia.org/wiki/Expert_system

I made a small one that classified dinosaurs in school.

Comment · 3 years ago
Comment · 3 years ago
I didn't really like "Learn You a Haskell". "Haskell Programming from First Principles" or "Haskell from the Very Beginning" might be more accessible.
Comment · 3 years ago
Comment · 3 years ago
Clojure has had pretty remarkable stability over the years. Maybe Common Lisp even more so, since it's based on a standard that hasn't been updated.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton