Pike: To Exit or Not to Exit
63 points by dnw 4 days ago | 30 comments

sharkjacobs 16 hours ago
My phone is littered with apps like these, which seem well designed to address a very specific problem which I don't have very often. The problem is remembering the app's there 3 or 6 or 9 or 18 months later when it would actually be useful to me.
reply
Affric 15 hours ago
I always think that the goal of apps like these is build userbase and then get acquired, like darksky or waze: the big providers realise they have missed a trick and then it becomes the default.
reply
tbyehl 9 hours ago
"Needed tens of dollars of rental compute" isn't much of a moat to get acquired instead of copied.

I loath Waze. Its idea of shortcuts are terrible, its search routinely suggests things hundreds of mile away ahead of the match that's nearby, and sometimes I go through an area of intermittent service where it just decides to stop routing without giving a heads-up.

But Waze is so much better at accurately alerting me to police than my Valentine 1 was that I never even bothered mounting it in my latest car. Google supposedly integrates that data for years now but every time I try it comes up short. Google and Apple Maps are better in every other way, but for me at least, that one feature of Waze is a massive moat.

reply
kelvinjps10 9 hours ago
Why they police alerting feature it's so important for you? Google maps it's almost as good I find anyways.
reply
projektfu 5 hours ago
His car burns cannabis while blasting "Fuck Tha Police" at 10,000W.
reply
jonathaneunice 5 hours ago
Love this!

Have wanted to work on a "better situational awareness while traveling" app, but haven't yet had the chance. Reachability of a POI is a great place to start, and I _feel_ that "it's a lot harder than it at first looks" aspect.

It would also be cool to:

* Become aware of local attractions. Esp. good restaurants, shops, views, hotels, hiking trails, etc. A lot of rating systems seem to give every fast food venue 3 or 4+ stars. Impossible to sift out the truly good and local / unique from the chaff.

* Become aware of time-limited events. Fairs, art shows, VFD chicken BBQs or fish fries, ... all the little "I wish I knew that was happening, I would have stopped by!" I constantly search for the local, the offbeat, the not-yet-another-corporate-outpost. But again, the chaff!

* Be able to navigate on backroads and scenic roads. Mapping apps are so hyper-focused on getting you there fast. They're not good at "get me there happy"—at least not for those of us that value the path less traveled far more than the highest-speed highway.

reply
tjohnell 5 hours ago
I'm also interested in your second bullet. The likelihood that you're passing by a cool outdoor event while blazing down the interstate is a lot higher than if you're staying in town. The data would be very difficult to source.

Thanks for the ideas though. Give Pike a try and let me know what you think.

reply
vmilner 12 hours ago
I thought this was going to be an article by Rob Pike on control flow in golang...
reply
jhbadger 11 hours ago
Or the (mostly forgotten) scripting language Pike (derived from the internal language of a MUD) https://en.wikipedia.org/wiki/Pike_(programming_language)
reply
cestith 8 hours ago
I was prepared for a debate on calling _exit() vs exit() vs no explicit exit in Pike. This app is pretty interesting, too though.
reply
em-bee 7 hours ago
there is also the use of return from main(), in particular return -1; which doesn't exit.

i was debating whether i should post this discussion on the pike language discord, but now i will. you two made my day!

reply
cestith 5 hours ago
I don’t program regularly in Pike. I’ve played with some of the examples from various benchmark and language comparison sites for the most part, but given additional free time it’s a language I’d like to actually use sometimes.

I therefore wasn’t even aware of returning -1 from main() doing that. It’s an interesting thing. I’d like to read about that, but maybe not enough to join the language discord.

reply
kper1337 10 hours ago
As an european (Austria) that never have been in the US, can someone please explain to me what exit left and exit right mean?

In Austria, you have usually one exit. Alternatively, there might be a roundabout.

reply
Pyrodogg 9 hours ago
If unspecified, 'exit' would mean 'exit right' to the right side of the traffic flow. In dense urban areas it might make sense for geography or cost reasons to put it on the left in which case youll see "Exit Left" to make sure people know to be in the 'fast lane' in preparation to leave the highway since it departs the highway exceptionally on the left

I-94 and I-35E in St. Paul, Minnesota comes to mind. You just merge left onto the other highway if you need to change.

reply
Squid_Tamer 8 hours ago
While (relatively rare) left-hand exits are a thing in the US, I don't think that's what the arrows on this app is showing. The screenshot appears to be showing a single exit.

The arrows probably tell you whether your first turn will be a left or a right immediately after leaving the interstate. Many exits have two lanes, one for left turns and one for right turns onto the connected surface street. You have to know which exit lane you want to be in.

On a road trip, gas stations and fast food to the "right" of your travel direction on the interstate are slightly preferable because you don't have to wait for any left-turn signals. The US allows you to turn right at a red traffic light as well, saving even more time.

reply
givc 9 hours ago
In US highways the exit ramp off the road is usually on the right, but is some cases the exit is on the left, especially in areas where the highway is elevated or in crammed downtowns. The left lane is also usually the “passing lane” and cars drive faster than on the right, so if there is a left exit and you’re cruising on the right line, you have to know in advance to safely move over to the left
reply
tylerflick 9 hours ago
Also High Occupancy Lanes will sometimes have their own exits on the left side.
reply
rdtsc 9 hours ago
It’s still one exit but sometimes it’s on the left side. That is, you have to get in the left lane and then exit from there.
reply
tjohnell 7 hours ago
Hi - author of Pike here. You have it right. I don't think the current UX is perfect though. Clearly it's confusing folks!
reply
rdtsc 6 hours ago
Very nice app, btw. Thank for you creating and sharing it. We have the same issue with our family, we want to stop but don't know what's coming and if we should wait for something better or not. So the non-driving person is in charge of scouting ahead on their phone on the map for restaurants and gas stations.

I think with the left vs right, it might be just a regional / cultural thing. Left exits are frowned up or just not allowed and many places (and for good reason) so people may not be familiar with them.

reply
mwillis 9 hours ago
A six-week road trip sounds amazing. A six-week road trip with lots of interstate driving does not.
reply
tjohnell 6 hours ago
Author here - I agree with you :)
reply
thiscatis 10 hours ago
I would have loved this for my road trips in the US. From the other apps it was never clear whether this was a restaurant or a gas station where it's next to the highway (a quick stop) or I had to drive a mile into a town and find it. Perhaps it has improved since then (this was 2015-ish). Congrats on building this!
reply
tjohnell 7 hours ago
Hi all - author of Pike here. Happy to answer any questions.
reply
jmx02 3 hours ago
Hi Tom, this app looks great! Would you consider making it available in App Store regions outside the US?

(I understand it's meant for US drivers but e.g. my Apple Account predates my move to the States)

reply
tjohnell 3 hours ago
Hi jmx, I hadn't considered that scenario. I'd be happy to as long as Apple doesn't have me jump through too many hoops. I don't mind a few hoops though.
reply
sbecker 7 hours ago
Hi, great write up and very cool project! I was wondering how you arrived at the idea to use OSRM and pre-computing the drive time from every exit to every POI. Was that something you learned existed along the way? Did Claude/codex point the way to this?
reply
tjohnell 7 hours ago
Hello, I appreciate the kind words. When I realized that radial search just wasn't going to be accurate (and potentially harmful given people might exit onto another interstate thinking they could grab some Wendy's), I posited to Claude: "I need to understand reachability of a POI from an exit, reachability being defined as driving time less than X amount of time". Claude then suggested two open-source projects: Valhalla & OSRM. I haven't done much research on Valhalla - Claude ultimately recommended OSRM for its "simplicity" but again, I don't honestly know if that's true. Claude can definitely be credited with my decision to choose OSRM.
reply
projektfu 5 hours ago
Not available on Android? I do notice several other apps with the same name and different purposes on the Play Store.
reply
tjohnell 5 hours ago
No Android app - however, using the current app as the spec, it would be interesting and fun to take on creating the Android version. I really don't believe it would be that hard. Stay tuned.
reply