bigzaphod / taxi Goto Github PK
View Code? Open in Web Editor NEWThe Taxi Programming Language
The Taxi Programming Language
Here is the link if you want to try it out yourself.
It outputs 1.000000 instead of 1. Is it intentional?
First, I super don't know how to use git so I apologize if this is the improper means by which to communicate this to you. I code for fun and I think Taxi is a hoot. I've even figured out a way to call functions but, dang, it's messy. Equal's Corner is giving me trouble, though, and I yearn to see Taxi perfected that one little bit more.
I use TIO to write Taxi code and have found a point of confusion when heading north from Equal's Corner and then turning left. I asked Dennis about it and he said that TIO uses the official interpreter and linked to this repository. Here's my original question to him:
I think there's an error in the Taxi map. At the very least, it doesn't seem to match the map posted on bigzaphod.github.io/Taxi . Specifically, TIO does not seem to include the first left turn when heading north from Equal's Corner. Here's a quick test program that errors out with "cannot drive in that direction":
https://tio.run/##lY6xDsIwDET3fsVtbJXK2BUhJhASX2CVKLUIcXEStXx9KI0YKjHAYlu@092LNHHODThgJI7sLSjiEkm7nt0Vp3Q3Kk7ss65@cx0EUb5q7YgGDlvossvt6urM3S0NIAwUgvHWKKy8O@ac/SOR2wTsRL3R/7yFZP0tDB9tnkdR0/oFJOcX
Contrast to this program which errors out with being fired for not returning to the garage:
https://tio.run/##lU4xDsIwENv7Cm9slcrYFSEmEBIvOJUoPRFy5ZKo5fWhNGKoxADL@WRbtiNNnHMDDhiJI3sLirhE0q5nd8Up3Y2KE/usq99cB0GUr1o7ooHDFrpg@V1dnbm7pQGEgUIw3hqFlXfHnLN/JHKbgJ2oN/qftyxZs2XDR5vvUdS0fiFzfgE
I realize you are not responsible for how TIO runs but I was hoping you could help as I think I have identified the cause of my confusion: the first left turn to the north of Equal's Corner (the continuation of the road for Starchild Numerology) does not count as a turn because there are no nodes in that direction. As such, it's as if the road doesn't exist insofar as the interpreter is concerned. However, it very much exists on the graphical map.
As far as I can tell, there are no other valid paths where you pass a dead-end, empty road and then later turn in the same direction as that empty road. Rounder's Pub has such a road on the left but you have to turn right for it to be a valid path. This may be the only instance where this is a problem.
Can you confirm that this is an issue? If it is, can you open that repo you haven't touched in 6 years (except for Dennis's pull request from TIO) and correct it? I imagine the easiest way would be to modify the graphical map to drop the dead road.
If you're still reading this, then I appreciate your time.
The ability to "Switch to plan" based on the value contained in a passenger would simplify computed goto and gosub/return functionality thereby significantly reducing the size of programs by making code reuse easier.
Technically you can already do this by writing a branch handler, so it's not strictly necessary. I just thought it might add more "taxi flavour" to a reading of the code.
The fact that most passengers that request destinations will, instead, be dumped off the Riverview Bridge could also be seen as mildly humorous.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.