Hacker News new | past | comments | ask | show | jobs | submit | X6MW3aQrZU5VKkz's comments login

As the cheesy saying goes

> If you're the smartest person in the room, you're in the wrong room

I'm definitely not in the wrong room when meeting others in the Haskell community.


Compromise: Vim!


Vi


Please remember that every time you cat a file and pipe it to grep an innocent process dies. Have you no compassion?


Its OK, an innocent process is born too.

And the address space gets recycled.


Absolutely love both of these, thank you so much. My only nitpick would be that when you have text typed, say '$ vim' and go up, finding '$vim somefile', then going down again should bring you back to what you originally typed. This is also the behaviour in vim, I believe.

Any other tips? These two were brilliant!


I would be very interested in seeing a tutorial detailing how to implement Prolog in Haskell!


Not really a tutorial and not really Prolog, but here's an interpreter for a logic programming language written in Haskell: https://github.com/rikusalminen/slolog

I wrote it as a project work in an Artificial Intelligence class. It very closely resembles the logic programming language implemented in "Structure and Interpretation of Computer Programs".

I'm sorry there isn't any documentation for it.

Here's a little example of what it looks like, from examples/royalfamily.slo:

(siblings ?x ?y) <- (parent ?x ?parent) & (parent ?y ?parent)

(grandparent ?x ?y) <- (parent ?x ?z) & (parent ?z ?y)

(cousins ?x ?y) <- (grandparent ?x ?gp) & (grandparent ?y ?gp) & !(siblings ?x ?y)


I hope you realise the distribution need not be symmetric for the average value to be in the middle.


Yes, but elchief's point is obviously that if the data has a positive or negative skew, the median is going to be more helpful than the mean.


^v is to have a single key pass through and then return to normal mode, ^z actually enters pass through mode until you hit esc.


Good catch, meant ^z


That's exactly how I feel about this as well. I can actually confirm that my bash config does each of these things other than some of the globbing features (* * for instance does work though).

edit: should be two asterix characters with no whitespace in between, but if I do this they're not displayed. Any advice on how to get that working?


Restrictive in scope? Enable the mouse, press i and as long as you don't press escape it will be the simplest text editor you could want.


You're right! Why complicate things by saving?


I cannot recommend this book enough. I know it's not for everyone, but if you're one of those do like it you'll probably never forget it. I'm not sure I agree with everything in it, but damn that book made me think ;)


I'm not sure GEB is intended to be agreed or disagreed with.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: