Hacker Newsnew | past | comments | ask | show | jobs | submit | jg23's commentslogin

I have a related question to this, if you’re storing [“hello”] as one chunk, what happens when you perform an edit to say adding an extra [“e”] after the [“e”]? In the unoptimised structure I know you can just add the new [“e”] as a child of the original [“e”]. So here would you then delete the chunk [“hello”] and split it into two halves like [“he”] and [“llo”]?


Yes exactly. You replace the chunk with “he” and “llo” then insert the extra item in the middle. The result is [“he”, “e”, “llo”]. The code to do all this inline in a b-tree is pretty hairy but it works pretty well!


Shameless plug for Mac users:

https://apps.apple.com/app/tidycards/id1285199566

I've been developing this app for the last 3 years.


Got to say that Kite is amazing, and it generates Swift code as well!


Honest question - do you find generated code to be useful? I've always had a very strong bias against it, due to the fact that implementation details can vary so widely.


Hey thanks, yes I think if this app does gain some users I would definitely work on an iOS version with cloud kit syncing.


Hi everyone, I am an indie iOS/Mac developer (4 years!), I made this Mac app originally to help myself keep track of all my projects. The aim is to keep tasks organised as well as files and emails (you can link messages from Mail.app as well as gmail links). I know there are various web based solutions, but I travel a lot so don’t always have a good connection.

Feedback greatly appreciated, thank you! :-D


I wonder why don't more places do this. I mean surely the actual carriage of the train can be reused, but with just the engine refitted.


Until recently, Buenos Aires' A line still used original rolling stock from the 1910's. https://en.wikipedia.org/wiki/Buenos_Aires_Underground#Natio...

(photo: https://upload.wikimedia.org/wikipedia/commons/d/d4/Coche_La... )


The Market Street Railway [0] in San Francisco has a fleet of restored streetcars from around the world that run regular service on two trolley lines.

[0] http://www.streetcar.org/streetcars/


Rust and metal fatigue will wear out the chassis eventually.

If repairs become too frequent, fewer trains are available for use on any given day, which means not all services can be run.

Old carriages might not meet modern expectations of crashworthiness or fire resistance.


Also noise and ride comfort. In Warsaw we have some really old Soviet subway cars and a mix of western/homegrown ones

While the bumpy ride is just a nuissance, the noise of those old junkers probably should require everyone to wear heavy hearing protection, if one had to adhere to workplace regulation.

When their crooked boogies start to screech and grind in turns, the noise is physically painful


> Old carriages might not meet modern expectations of crashworthiness or fire resistance.

Since we're talking about Berlin, the new airport had a similar problem: Because of all the delays and problems, the construction permit expired. And it could not just be reissued for the same plans because safety and energy conservation regulations had become tighter in the meantime. As far as I know, parliament extended the construction permit manually to avoid the replanning costs.


Absolutely. In many places though, there isn't enough old-train stock left over. NYC did this http://67.media.tumblr.com/tumblr_lhpj7eRuPN1qzt7h7o1_1280.j...


Melbourne did this a few years back; they bought back (for a princely sum) some carriages sold for a pittance a few years earlier to cover a shortage in rolling stock.


> I mean surely the actual carriage of the train can be reused, but with just the engine refitted.

Vivarail (http://www.vivarail.co.uk/) are doing almost exactly this in the UK with late-70s London Underground trains, fitting modern electronics and Ford truck engines as generators for the electric motors. I think it's a solid idea.


Have Vivarail managed to find any customers yet? From an engineering point of view what they knocked together looked quite good, but for the UK market right now it's just a disaster. You can't spend billions upgrading London trains, and then suggest knocking together some franken-pacer out of London's scraps to replace the terrible units in the north and west-country.


Typically you'd also have to refit the train control system that communicates with the trackside equipment and the odometry system. On older trains you might run into problems because the brakes don't prevent locking and mess up the odometry so you'd have to refit those as well.

Nevertheless, there are plenty of really old trains still running. Service times of fourty years and more are the rule, not the exception.


> Service times of fourty years and more are the rule, not the exception.

Is this different between trains and trams? In Dresden, our rolling stock of trams is between 10 and 20 years old (with half a dozen older trains reserved to cover high load situations), and the tram operator is already loudly thinking about ordering the next generation.


Lighter vehicles tend to have less durable construction. When it comes to low floor trams/railcars, the lack of space is another engineering problem. Plus, with a high-floor vehicle, you have lots of space during rebuilds to install newer power electronics and auxiliary equipment, in order to extend the service life. Regular heavy-rail, high floor metro EMUs can go for over half a century.


I wonder if these trains have air conditioning. Berlin might not need it, but if you had a subway train without air conditioning in NYC for example, the passengers would boil. So that might explain it.


They don't. I wouldn't say that people boil in the Berlin subway, but 40 degrees Celsius is often reached in the underground on hot summer days.


Being stuck in 40C in an enclosed space, with humidity... is crazy.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: