Simple Highway Simulator

Learning and science

traffic simulation

SHOW HN2016

219points
44comments
#117of 2,264 in 2016
Top 6%of 2016 by points

How HN took it

MixedNo clear lean

8 positive, 11 neutral or asking, 1 mixed, 5 critical, out of 25 comments about the project. Thread score +0.18.

Idea: 6 for, 0 againstPerformance: 2 for, 3 againstExecution: 0 for, 2 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Fun to play with and shows traffic dynamics

    From 3 comments
    • Interesting project! I had fun playing with it. I wanted to test the theory (which I saw in an article posted here on HN a few weeks ago) that a single car slowing right down on…
      cyberferret on HN
    • Some bugs (cars not always breaking when another is standing still ahead; cars crashing at the beginning if you hit launch too quickly), but overall a fun toy to play with. I…
      lucb1e on HN
    • Here's something fun and counter-intuitive: From default settings, set speed variance to 50%, launch frequency to 120 cars/minute, and reaction time to 500ms. Unsurprisingly,…
      jtolmar on HN
  • Possible uses for queues, traffic agencies and education

    From 3 comments
    • Its principles also hold up for drivers in China. Guess the chinese love copying american things right down to driving just as badly :-D Anyway, jokes aside, this has a lot more…
      zoom6628 on HN
    • Really cool project. I wonder if transportation agencies would want to use something like this for studying traffic.
      hacker314159 on HN
    • Simple Highway Collision Simulator. Could be a great little game with an educational bent. Personally I set reaction time to 0 and jacked everything else to max. Then I spammed…
      mpnordland on HN

Objections

  • Reaction time default of 200ms is unrealistically fast

    From 2 comments
    • The 200ms default reaction time in the simulation is wildly optimistic. I remember 1500ms from rider training and http://www.visualexpert.com/Resources/reactiontime.html seems to…
      mabcat on HN
    • Some bugs (cars not always breaking when another is standing still ahead; cars crashing at the beginning if you hit launch too quickly), but overall a fun toy to play with. I…
      lucb1e on HN
  • Braking and acceleration model is unrealistic

    From 2 comments
    • also braking: it looks like the cars can only brake as fast as they accelerate. seems like this should be a different slider.
      novaleaf on HN
    • Lots of cars do 15 km/h/s (that's a 0-60 mph time of ~6 seconds). A basic Honda Civic will be around 9 or 10 seconds, which is roughly 10 km/h/s. 5 km/h/s would feel pretty…
      maxerickson on HN
  • Bugs such as crashes when launching cars quickly

    From 3 comments
    • Some bugs (cars not always breaking when another is standing still ahead; cars crashing at the beginning if you hit launch too quickly), but overall a fun toy to play with. I…
      lucb1e on HN
    • If you launch new cars too quickly, they start blowing up. :)
      cpeterso on HN
    • This might depend on your screen size, on my screen the crashes occur on the right edge of the road.
      netsharc on HN

Requests

  • Add lane discipline and left or right lane preference

    From 4 comments
    • What I'm missing is right lane preference, that would control how much people obey the rule that you shouldn't be on the leftmost lane unless you are faster then the cars in the…
      scotty79 on HN
    • Or indeed left-lane preference, for British and Japanese users. But yes a more sophisticated simulation would use > 2 lanes, and have various controls for lane discipline,…
      tragomaskhalos on HN
    • It'd be interesting to implement lane discipline and see how one bad driver effects the rest.
      shocks on HN
    • Yes, please! I suspect lack of lane discipline to be the single biggest disadvantage US freeways have to American's. I would love to test that at least via simulation. I would…
      ajmurmann on HN
  • Add merges, ramps and more than two lanes

    From 2 comments
    • Something this sim doesn't model that plays a large role in real accidents is the speed differentials during merges. If an offramp moves too slowly and gets fully congested, it…
      buzzybee on HN
    • Or indeed left-lane preference, for British and Japanese users. But yes a more sophisticated simulation would use > 2 lanes, and have various controls for lane discipline,…
      tragomaskhalos on HN
  • Carpool lane modelling

    From 1 comment
    • Nice. I've wanted to do something like this, as I have a theory about the car pool lanes being worse for traffic. When traffic is bad, car pool lanes are just as backed up…
      legohead on HN

Questions

  • What are realistic reaction time and acceleration values?

    From 2 comments
    • Some bugs (cars not always breaking when another is standing still ahead; cars crashing at the beginning if you hit launch too quickly), but overall a fun toy to play with. I…
      lucb1e on HN
    • Lots of cars do 15 km/h/s (that's a 0-60 mph time of ~6 seconds). A basic Honda Civic will be around 9 or 10 seconds, which is roughly 10 km/h/s. 5 km/h/s would feel pretty…
      maxerickson on HN

Alternatives named

  • traffic-simulation.de

    From 1 comment
    • Glad to see my first post on HN to receive such positive feedback. I guess I'll post my vacation projects regularly if they are appreciated :-) If you want to see a more…
      Silvanm on HN
  • trafficwaves.org traffic hobbyist site

    From 1 comment
    • No post on traffic is complete without a reference to the original "traffic hobbyist": http://trafficwaves.org/ from Jan 1998.
      mwexler on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/12782881)