Commuting WTF Thread
-
@dkf said in Commuting WTF Thread:
@pie_flavor said in Commuting WTF Thread:
-Wall -Werror -pedantic
There's a whole load more warnings beyond those… (
-Wextra
, etc…)Paging @LB_.
-
@AlexMedia said in Commuting WTF Thread:
The Dutch road safety board advise to always maintain a following distance of at least 2 seconds.
Same here, but that's probably allowing for the fact that people take quite a while to respond to a changing situation; their attention can wander for short periods of time without them realising it, etc.
(My adaptive cruise lets me vary how close it will come to the vehicle in front, from over 2 seconds — very comfy, for when roads are nice and quiet — to somewhere close to that 0.8 seconds — when I want to be aggressively close in heavy traffic.)
-
@AlexMedia said in Commuting WTF Thread:
Autonomous cars won't get you to your destination any quicker though, it will only make it possible for you to do something else while the car brings you there.
You could take an Uber. Then you'll notice it isn't that useful, because doing anything in a moving car sucks.
-
@dkf said in Commuting WTF Thread:
@pie_flavor said in Commuting WTF Thread:
-Wall -Werror -pedantic
There's a whole load more warnings beyond those… (
-Wextra
, etc…)We decided to drop
-pedantic
because one of the main warnings it enabled is about string literals longer than 509 characters, and several of our hardcoded SQL queries are longer.But yeah
-Wall -Wextra
is a bare minimum and failing-Werror
should be treated as a test failure. We've got a couple of others turned on and there's more I wouldn't mind enabling if the amount of work needed to do it wasn't so large.
-
@PleegWat said in Commuting WTF Thread:
there's more I wouldn't mind enabling if the amount of work needed to do it wasn't so large
We turn off a few because we know absolutely the architecture we're deploying to (which is an advantage of working with custom hardware, I guess) but otherwise we're really aggressive on that front. And we apply style-checking rules too. (It's a shame that's there's so few decent style checkers for C and C++; the tools mostly seem to be oriented towards changing the source to match the style and not just reporting the problems.)
-
@dkf said in Commuting WTF Thread:
We turn off a few because we know absolutely the architecture we're deploying to
Even when your code is intended to run on a single, well-known architecture, C is a minefield. The compiler is allowed to generate nonsense when anything involving undefined behavior happens, even if the underlying architecture has a well-defined behavior for that case (and there are real-life examples of compilers generating truly perverse code in that situation).
Implementation-defined behavior should be safe, but there's always the possibility that a future release of the compiler will change it.
Relying on anything not explicitly documented in the C standard and the compiler's manual is playing with fire. (And I won't even talk about the bad compilers you can encounter in embedded software, which will happily generate bad code from valid source.)
-
@Zerosquare said in Commuting WTF Thread:
Relying on anything not explicitly documented in the C standard and the compiler's manual is playing with fire.
We just lock the exact supported version of the compiler for users, and write key bits in assembler (which lets us make hugely better code by knowing that we can use registers and unusual instructions much more aggressively). We also use some things that are very much outside the subset described in the main C standard, but since we're very aware of what compiler is in use, that's not a problem: we're using a definite dialect.
In short, we have precisely quantified levels of fire being played with here. Sticking to the core standard would result in code that cannot do what we do.
-
I know exactly what your mean. Writing "clean" code with some embedded compilers is a great way to end up with something that's too big to fit in memory, too slow to be useful, and often both. Which means the only solution is what you're describing ("dirty" C and/or ASM).
Fortunately, unless you're targeting niche stuff (security-hardened microcontrollers, for example) or supporting old hardware, this is less common that it used to be.
-
@Zerosquare said in Commuting WTF Thread:
unless you're targeting niche stuff
We're using our own chip designs, running our own custom OS over our own custom comms fabric to run a custom app suite. Is that niche enough?
-
@dkf
Oh, so you work for Samsung?
-
@izzion said in Commuting WTF Thread:
Oh, so you work for Samsung?
WTF-U is not Samsung! We've built a supercomputer out of what are effectively embedded processors.
-
@AlexMedia said in Commuting WTF Thread:
What AV's wont fix is congestion. A road can only support X vehicles per hour per direction, if more vehicles want to use that road this will inevitably lead to traffic jams. After all, cars (autonomous or not) will have to leave some space so another car can merge onto a highway, which leads to the car behind it having to decelerate, etc.
Furthermore, it wouldn't surprise me if safety envelopes around AV's lead to a decrease in road capacity. An AV is likely to keep a bigger distance to the car directly in front of it than a human driver would.
No, it will keep the correct distance to the car in front of it. It will neither hump your rear bumper like some human drivers like to do nor will it fall half a kilometer behind because it slowed down a bit due to a small incline.
-
@Benjamin-Hall said in Commuting WTF Thread:
@AlexMedia Or morons seeing a gap of 1 + epsilon car lengths and thinking they can shave a millisecond or so off their commute by squeezing into it.
Salty? Who, me? Never.
You can skip the +epsilon if you make sure the car at the end of the gap has to hit the brakes.
-
@topspin said in Commuting WTF Thread:
@Benjamin-Hall said in Commuting WTF Thread:
@AlexMedia Or morons seeing a gap of 1 + epsilon car lengths and thinking they can shave a millisecond or so off their commute by squeezing into it.
Salty? Who, me? Never.
You can skip the +epsilon if you make sure the car at the end of the gap has to hit the brakes.
That's what usually happens. In fact, they blindly jump into a gap much smaller than required, trusting that the other car will back off and let them in. Which causes waves of congestion as people slam on their brakes. Morons.
-
-
@boomzilla That also worked at my former University town. They had so many bus stops (usually in clear sight of each other, like 200 to 300 m apart) that it was faster riding by bike.
Consequently, when we students were to vote on whether we wanted a "use all trains in Lower Saxony" or a "use all trains in Lower Saxony and all bus lines in Göttingen" semester ticket, the overwhelming majority voted for the former.
-
@Rhywden There's nothing more infuriating than bus stops 100m apart, where the first one leaving the bus could just run to the next stop to enter it again.
-
-
-
@Rhywden said in Commuting WTF Thread:
Göttingen
I've been there once for a conference years ago and the two things I remember are the African restaurant that serves Zebra meat and the slow bus lines.
Nice city, though, from what I've seen.
-
How do you serve a slow bus line?
-
@Zerosquare With slow buses, presumably.
-
@dfdub said in Commuting WTF Thread:
@Rhywden said in Commuting WTF Thread:
Göttingen
I've been there once for a conference years ago
Did you get any math done?
-
@topspin said in Commuting WTF Thread:
@dfdub said in Commuting WTF Thread:
@Rhywden said in Commuting WTF Thread:
Göttingen
I've been there once for a conference years ago
Did you get any math done?
Still waiting for my Fields Medal. And for another source of zebra meat, because they are delicious.
-
@topspin said in Commuting WTF Thread:
@dkf said in Commuting WTF Thread:
@pie_flavor said in Commuting WTF Thread:
-Wall -Werror -pedantic
There's a whole load more warnings beyond those… (
-Wextra
, etc…)Paging @LB_.
Hello yes I received your page. Not sure what commuting has to do with me since I... wait, oh, you're talking about GCC's warning flags? Oh dear, I'm so sorry, but that's a road I don't like to go down anymore. If you want my recommendation just use someone else's recommendation. If their recommendation is also to use someone else's recommendation, then make your own recommendation. My forum signature is not legal advice and I am not a language lawyer.
-
@Zerosquare
Using half-duplex asynchronous ticket-ring bus?
-
-
@Luhmann And with a slice of lime.
-
-
@dkf
Don't forget a few mint leaves as garnish, it really isn't the same without
-
@dfdub said in Commuting WTF Thread:
And for another source of zebra meat
One of the local grocery stores has a freezer with exotic meats, like zebra, crocodile, ostrich and so. Tempting to cook, but on finding recipes.
-
@Atazhaia said in Commuting WTF Thread:
@dfdub said in Commuting WTF Thread:
And for another source of zebra meat
One of the local grocery stores has a freezer with exotic meats, like zebra, crocodile, ostrich and so. Tempting to cook, but on finding recipes.
Antelope (Springbok) is really, really good if you simply bbq it with a bit of oil and salt and pepper. I didn't get on with ostrich, the flavour is incredibly strong. I like gamey meats like venison but ostrich was just overpowering. I'd like to try one of the eggs though.
-
@LB_ said in Commuting WTF Thread:
Hello yes I received your page. Not sure what commuting has to do with me since I... wait, oh, you're talking about GCC's warning flags? Oh dear, I'm so sorry, but that's a road I don't like to go down anymore. If you want my recommendation just use someone else's recommendation. If their recommendation is also to use someone else's recommendation, then make your own recommendation. My forum signature is not legal advice and I am not a language lawyer.
-Wall -Werror -fstack-protector-all
-
-Wall -Wextra -ffreestanding -std=gnu99
-
@Atazhaia said in Commuting WTF Thread:
One of the local grocery stores has a freezer with exotic meats, like zebra, crocodile, ostrich and so. Tempting to cook, but on finding recipes.
I'm guessing they're expensive, so I'd be scared of screwing them up as well. But Zebra steak should be easy to make - I don't think the preparation would be too different from regular steak.
-
@dfdub pretty much the same as for horse
-
@dkf said in Commuting WTF Thread:
@izzion said in Commuting WTF Thread:
Oh, so you work for Samsung?
WTF-U is not Samsung! We've built a supercomputer out of what are effectively embedded processors.
A friend of mine did something like that with PlayStations once. I was visiting while they were still setting it all up so there was a giant pile of yet-to-be-opened consoles just sitting in a hallway.
-
@Parody said in Commuting WTF Thread:
giant pile
Part of our “giant pile” looks like this:
Don't have an official photo of the full system yet. ;)
-
@dkf said in Commuting WTF Thread:
@Parody said in Commuting WTF Thread:
giant pile
Part of our “giant pile” looks like this:
At the time most of them were still in their boxes, so that hallway looked like the storage area of a Best Buy.
-
-
Life is full of happiness when you set your expectations low enough.
-
Wrong kind of encouraging, I think...
Discouraging.
-
-
@boomzilla Those damn deers blocking our commutes! Although last time I saw one during my commute was when a poor thing had ended up on the wrong side of the fence, desperately trying to get back into the forest by jumping at the fence.
-
@boomzilla At least it isn't a moose. (Nör is it biting yøür sïster.)
-
Today in commuting fun: Shitty weather with rain and wind. And ofc there's an asshole who's not renewed his bus pass ahead of time and did it on the bus, with no consideration to wait until everyone else was on forcing several people to stand in the rain while he was sorting that.
Also, the bus found it fit to break down so it ended up standing still in a busy junction during the morning rush hour. Luckily the bus after could pick everyone up so I didn't end up too late to work. Although I did get a comment of "Oh, was that your bus being nicely parked there?" But still, looking at the rush hour traffic just makes me more happy I'm not driving to work.
-
@Atazhaia
What we really need is BusCare for All, so that nobody will ever be forced to suffer through the embarrassment of holding up a line in shitty weather to try to renew the evil capitalist symbol known as the bus pass.
-
@izzion You're joking, but some people here want to have free public transport for everyone (and some small cities actually already do it)...
-
@Atazhaia said in Commuting WTF Thread:
and did it on the bus,
I think we can renew in San Francisco and San Jose. Otherwise, it has to be on the internet. If you get on the train without tagging, ... well, don't. (actually, they usually just kick you off and make you tag - unless it's a bad day, then you get a hefty ticket)
-