Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Eventually, some of your code will make a call to IO: reading from or writing to disk, responding to a web query, updating a DB, drawing something on the screen, etc, etc.

For example, you could put up a web server written entirely in Scheme or some other dialect. This would process and respond to queries entirely in Scheme, including some sort of engine for generating and serving html. Hacker News itself is an example of this: it's written in a lisp dialect called Arc.

Incidentally, Haskell is functional, but it isn't a lisp.



Yeah, I know that about Haskell, but my question was about FP in general. I didn't know that about HN. I'll just have to keep looking I guess.


> I could still use Java or C# for the entry point and call into an FP block of code for calculations and processing.

If you post an example of this to Github (or similar) I can help you replace the Java or C# entry point with a Clojure or F# entry point.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: