Better HN
topnewbestaskshowjobs
Log inSign up

dabreegster

409 karma · joined Dec 12, 2019 (6y ago) · 80 submissions

Working on abstreet.org

meet.hn/city/gb-London

Socials: - github.com/dabreegster - x.com/CarlinoDustin

Interests: Climate Tech, Climbing, Cycling, Hiking, Open Source, Programming, Social Impact

---

Submissions

comment 10mo ago · link · parent

Quite cool to see this space being explored! https://github.com/headwaymaps/headway is another related project.

comment 1y ago · link · parent

This is incredible. I remember failing to hunt some down earlier, but does anyone know of really detailed plans or 3D models?

comment 1y ago · link · parent

I stayed there about a year ago, and wrote a bit about it with some photos. Just search this page for "Chungking": https://dabreegster.github.io/prose/dec2023/pt1_hk.html

comment 1y ago · link · parent

Just want to plug Pantheon as a TV series exploring this idea with excellent storytelling. (https://en.wikipedia.org/wiki/Pantheon_(TV_series))

comment 2y ago · link · parent

This is super cool, thank you for building it! Two small UX ideas:

- a scrollbar and search for the Online Library would be helpful

- switching difficulty levels in the middle of reading could be helpful. Or if you keep that on a separate page, returning automatically to the last open position. (I was floating between beginner levels to find the right amount of challenge)

comment 3y ago · link · parent

Super awesome! I like how you just color roads to show time. When you calculate polygons to try and cover the whole area in some 5-10 minute bucket, you can wind up with all sorts of odd holes far away from roads. Keep it simple.

https://github.com/a-b-street/abstreet/pull/1075

comment 3y ago · link · parent

Hi! https://a-b-street.github.io/docs/project/history/retrospect... has a summary of where the project went. The original scope of the traffic simulation was too grandiose, and it was hard to influence real decision-making with something so complex and buggy. A/B Street morphed into several simpler tools focused on specific problems (removing through-traffic through an area, estimating uptake of new cycle lanes). I'm focused more on web-based tools for gov use these days, but will get back to simulation someday!

comment 3y ago · link · parent

I love this series. It also reminds me a bit of https://unsongbook.com -- another beautiful work of creative writing combining technology and magic.

comment 3y ago · link · parent

Market pressures from the open source world ;)

comment 3y ago · link · parent

One of the authors of https://github.com/a-b-street/osm2streets here. If you're interested in improving the quality of the lane rendering, please get in touch on the repo! https://a-b-street.github.io/docs/tech/map/geometry/index.ht... is an older, but still relevant, deep-dive into how the geometry is calculated.

comment 4y ago · link · parent

We're working on rendering more detail about roads for high-zoom cases: https://github.com/a-b-street/osm2streets. Try https://a-b-street.github.io/osm2streets/?test=st_georges_cy... and press "Generate details"

comment 4y ago · link · parent

https://protomaps.com/ by u/bdon might be relevant

comment 4y ago · link · parent

In my experience, the published paper is super vague on the approach, and implementing it without further references is really hard. I'm not necessarily arguing that papers should get longer and more detailed to counter this; expressing the details that matter in code seems like a more natural way to communicate anyway.

Why trust results if you can't see the methodology in detail and apply the approach to your own data? I once knew somebody who built a fuzz tester for a compilers project, got ahold of a previous project's compiler code that won best paper awards, and discovered a bunch of implementation bugs that completely invalidated the results.

Why is the peer review process limited to a handful of people who probably don't have access to the code and data? If your work is on Github, anybody can come along and peer review it, probably in much more detail. And as a researcher, you don't get just one chance to respond to their feedback -- you can actually start a dialogue, which other people are free to join in.

As long as a project's README makes any sort of quality / maintenance expectations clear upfront, why not publish your code?

comment 5y ago · link · parent

abstreet.org has an offline import process that combines data from OpenStreetMap, city-specific GIS datasets, and elevation into a single file. The process has to be deterministic, given the same input and code, and calling out to an external API is a non-starter. We use https://github.com/eldang/elevation_lookups, a Python library that downloads missing LIDAR or SRTM data and uses GDAL to handle batch queries. Two issues with it are having too many dependencies (so we run it in Docker) and not being able to parallelize lookups without blowing up memory, due to some GDAL caching internals.

comment 5y ago · link · parent

I haven't given any love to the poor tutorial mode in ages, so I'm not surprised you found a bug. Please file an issue (https://github.com/dabreegster/abstreet/issues) and describe how to reproduce the problem. If you can open the browser developer console (Ctrl+shift+I in firefox), often the last part will be really helpful.

comment 5y ago · link · parent

Hmm, I guess I never checked satellite for that example. Part of the motivation there was improving the simulation. While vehicles are moving through the intersection, they grab a lock and prevent conflicting movements. A huge intersection takes longer to cross and was causing unrealistic backups here. But that was only because of the wacky lane-changing model (can only change between those 4 northbound lanes in an intersection, where conflicts are modeled) and poor lane placement at the time. Some of that's been fixed, worth revisiting the shape.

comment 5y ago · link · parent

Thank you for the industry insight! I'm definitely not trying to match the degree of realism and calibration with the professional stuff -- there's no way I could, without way more resources. A/B Street's simulation is more for visualization than getting meaningful results -- although I am quite proud of the dataviz we've baked in.

From talking to planners, reaching for these tools is a huge time and money commitment, even assuming they have a license and somebody trained to use it. Some ideas don't even get off the ground, and some projects take community feedback after spending months building the initial models. I think there's a huge missing space for rapid prototyping. The fact that I see planning agencies regularly include graphics from streetmix.net is evidence of this -- it's a quick way to communicate, so often how a conversation starts. I'd simply like to expand that space.

comment 5y ago · link · parent

Right, from https://supaplexosm.github.io/strassenraumkarte-neukoelln/po... (translation https://translate.google.com/translate?sl=auto&tl=en&u=https...), there was an extra curb data-set used. I've actually found a few of these (https://a-b-street.github.io/docs/tech/map/geometry/index.ht...), so the approach is maybe repeatable.

Regardless, the design choices and color scheme are something I would love to adapt.

comment 5y ago · link · parent

Just this morning I came across new work from the Berlin OSM community: https://supaplexosm.github.io/strassenraumkarte-neukoelln/?m... The end-game isn't in sight. We (data consumers of OSM) are just getting started.

comment 5y ago · link · parent

And in case you're interested how the traffic simulation part works in detail, but missed yesterday's post: https://news.ycombinator.com/item?id=28553654

comment 5y ago · link · parent

A/B Street is an open-source traffic simulator that lets you edit roads and intersections, based on OpenStreetMap data. But to even do that, first we have to geometrically represent the transportation network in great detail. This is a second deep-dive into how things work.

22.

Transforming OpenStreetMap into thick roads and intersections(a-b-street.github.io ↗)

417 points · by dabreegster · 5y ago · 33 comments

comment 5y ago · link · parent

Thanks for reading! I think rendering vehicles following each other would still require asking the simulation for positions, unless you replicate the logic in the "Exact positions" section. How would multiplayer synchronization factor in? That's an issue when multiple different clients in a network are all sending input to move something. Here we just have a single thread on one machine running the simulation. The simulation state could be broadcast over a network and rendered elsewhere, and there's still not any synchronization problems, because there's one source of truth.

comment 5y ago · link · parent

Have you ever wondered how a traffic simulator like A/B Street works? Simulating thousands of trips through a city faster than real-time can't be done in 0.1 second increments. This article explains how to model vehicles and pedestrians using discrete event simulation instead.

This is the first deep-dive article into how A/B Street works. More coming soon!

25.

Discrete event traffic simulation, laggy heads, and ghosts(a-b-street.github.io ↗)

23 points · by dabreegster · 5y ago · 4 comments

comment 5y ago · link · parent

Does anybody have working instructions to build a patched perf for Ubuntu 20.04? I built from kernel.org following https://michcioperz.com/post/slow-perf-script/, but somehow flamegraph pointed at the new build breaks totally -- after exiting the app, there's no "perf record: Woken up 181 times to write data" message; it just hangs.

comment 5y ago · link · parent

I haven't browsed the Brass Goggles forums since ~2009, but lives up to my nostalgia. Plenty of ideas for crafts / building steampunk stuff. http://brassgoggles.co.uk/forum/index.php

One particular project I remember discovering through here was an epic keyboard: https://steampunkworkshop.com/keyboard-shtml/

comment 5y ago · link · parent

Especially if you're trying to clip your entire map to some boundary, rendering the ocean is hard. https://github.com/a-b-street/abstreet/issues/32 has some examples of "flooded" maps when the heuristics get the inversion wrong. https://github.com/a-b-street/abstreet/blob/9761373c4b215485... is my incomplete attempt to deal with these partial multipolygons.

comment 5y ago · link · parent

The A/B Street team has just published our first article advocating for a change to make Seattle a little nicer and safer for walking and biking. We're experimenting with a traditional blog format including diagrams and animations from the simulator, but we're also interested in embedding parts of the simulator (which runs in the browser via WASM) as more of an "explorable explanation" style.

Previous A/B Street discussion: https://news.ycombinator.com/item?id=23605048

30.

Using a Rust traffic simulator to create shortcuts(a-b-street.github.io ↗)

3 points · by dabreegster · 5y ago · 1 comment

123