Retreats are rather group focused (and even if it’s just two people — it can’t be regular and long enough; especially in the beginning) and a hackathon is, well, a hackathon. One has logistics challenge and another has logistics as well as intimacy challenge (or maybe we are talking about different kind of hackathons).
I’d rather suggest activities which are regular and repeated. That’s how I have made friends after college ended and I started working. Sports has worked for me in this regard.
For the on-athletic amongst us, regularly volunteering can help you to meet more people and find friends, but as with all "work friends" bridging the gap between "work buddy" and "friend" can be difficult. I imagine it's easier if you can get a gig helping out with something you're both passionate about since it can help give common ground quickly.
I have a close friend that I've known since we started graduate school 20 years ago. For 4 months we trained for a marathon together, and the majority of my understanding of his deeper thoughts comes from those hours in that short period of time. In fact, I'll claim that anyone I go on regular long runs with will be someone I end up having a far deeper relationship with overall.
I may be a thirty-something loner and introvert, but these guys are my bass music battle buddies. Highly recommended.
edit- To answer your question directly, it took a few years to really feel that these guys were more than just party friends. I think the catalyst here was us, as a group, navigating through shared tragedy. The 'family' was already formed when I joined, and it definitely took a while to feel like I was someone more than just a guy in the periphery. Gifting is big in my scene, and if you want to speed up the process that is probably the best way to start -- art, food, whatever you can provide that other people might want or need.
edit2- It just occurred to me that gifting is a great lifehack in general for ingratiating yourself into a new group. The key is that it has to be something they genuinely want. For example, I went to visit a friend of mine in Chile and filled up about half of my luggage with candy, alcohol, and some other things that I knew my friend would appreciate. She was so happy and told all her friends, and in an instant I had a whole group of people to hang out with -- who very specifically told me that they appreciated the gifts -- while I was visiting.
This is a good one. I really like camping, so being out in the backcountry for a week or ly helps you understand if you really get along with someone. Planning a trip, dividing up who brings what etc let’s you see how the other person approaches things.
So instead of a meetup once a month, go to a week-long retreat or an all weekend hackathon.
Or if there’s someone you’d like to get closer to as a friend, instead of just inviting them to hang out once in awhile, invite them to go on a trip somewhere.
Once you reach the tipping point of enough shared time/context by fast-forwarding in this way, it’s easier to then settle into a more ordinary rhythm where you see people periodically but still feel they are real friends.