1,909 karma · joined Sep 24, 2012 (14y ago) · 1,011 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
Setting that aside, this is the exact purpose of speed limits, not one-way streets. One-way streets do not prevent pedestrians from popping out behind "bends, turns, hills/humps, or other obstructions", or children, or debris, or potholes, or stopped or malfunctioning cars, or construction, or sudden road ends...
Edit: If you can't stop in time for a bicycle, you can't stop in time for anything, and you need to drive slower. Unfortunately, many American drivers seem to believe that they own the road, and if dumb children run out onto the road and get flattened, that's their own fault for breaking the law.
comment 4y ago · link · parent
How is this claim different from the oft-heard claim that "not stopping at stop signs is obviously dangerous", ignoring TFA and the substantial evidence therein regarding cyclists and stop signs? I have presented arguments for my proposition that one-way signs are not appropriate in the vast majority of circumstances for cyclists. As far as I can tell, you have presented no arguments in favor of your position except 1) assertions that it is "obvious", 2) claims that anybody that disagrees with you should not be allowed to cycle, and 3) vague insinuations that running over cyclists is appropriate retribution for traffic violations.
comment 4y ago · link · parent
comment 4y ago · link · parent
which direction is that, exactly? any cyclists or pedestrians coming the wrong way down the street will be in front of the vehicle. are you saying that drivers will exclusively look behind their vehicle while driving down a one-way street, and only very occasionally look in front?
comment 4y ago · link · parent
why should cyclists be required to follow one-way signs? the point of one-way streets is that the street can be narrowed to a single car width; cars are too wide to pass in narrow streets, so a single direction of travel must be shown on both ends, otherwise cars will be stuck in the middle and have to reverse to get out. bicycles don't have this problem. the only justification for one-way cycling is high-traffic streets with danger of collision, but in such high-traffic scenarios I think 99.99% of cyclists will self-organize into reasonably consistent traffic flows, no sign required.
comment 4y ago · link · parent
int foo(void) { return 42; }
int bar(void) { return foo() + foo(); }
If the whole file is compiled as -O0, foo and bar must be compiled as-is. If the whole file is compiled as -O2, bar will be optimized to "return 84;". But what if foo is compiled as -O0 and bar is compiled as -O2? Can bar still be optimized to "return 84;"? What about "return 42+42;"? Can it do "int x = foo(); return x+x;"? What about "int x = foo(); if (x == 42) return 84; else return x+x;"? All of these are permitted in -O2 if gcc thinks it's a good idea, but in our "mixed mode" the semantics are unclear. It might be theoretically possible to come up with a consistent definition; it might start with "functions specified as -O0 cannot be inlined or have other functions inlined into them", but there are still more things to consider, like the behavior of global memory, thread-local storage, floating-point environment, and so on (what if one or more functions is static inline or __attribute__((always_inline))?).The real solution with current gcc is to simply compile different files ("translation units") with different optimization flags if you want. This has always been supported. Unfortunately, it comes with a potentially significant performance penalty; the whole point of LTO is to avoid this performance penalty, but this once again returns the issue of the semantics of mixing functions with different optimization levels.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
funnily enough, though, Red Hat failed with LSB, but systemd is, for better or worse, accomplishing much of the same goals, causing many of the same issues of poor extensibility and customizability.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
this can't be true in solid archive mode, which should almost always be used (otherwise you might as well use zip). also:
$ tee {1..10} <<< 1
1
$ seq 1 1000000 > 11
$ time 7z a x.7z {1..11}; rm x.7z
7-Zip (z) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
64-bit locale=en_US.UTF-8 Threads:12, ASM
Scanning the drive:
11 files, 78888917 bytes (76 MiB)
Creating archive: x.7z
Add new data to archive: 11 files, 78888917 bytes (76 MiB)
Files read from disk: 11
Archive size: 2680630 bytes (2618 KiB)
Everything is Ok
7z a x.7z {1..11} 19.89s user 0.09s system 205% cpu 9.733 total
$ time 7z a -mmt=1 x.7z {1..11}; rm x.7z
7-Zip (z) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
64-bit locale=en_US.UTF-8 Threads:12, ASM
Scanning the drive:
11 files, 78888917 bytes (76 MiB)
Creating archive: x.7z
Add new data to archive: 11 files, 78888917 bytes (76 MiB)
Files read from disk: 11
Archive size: 2779833 bytes (2715 KiB)
Everything is Ok
7z a -mmt=1 x.7z {1..11} 21.88s user 0.05s system 99% cpu 21.943 totalcomment 4y ago · link · parent
comment 4y ago · link · parent
this isn't true in the vast majority of cases on Linux and most other Unix-like operating systems; Linux has ARG_MAX=2097152, macOS =262144, and Solaris 10 =1048320. this problem does often arise with globstar, but! that is actually an argument towards having the shell expand arguments, not each command; if each command had to implement globstar, it would be effectively useless.
> - Unix tools cannot discriminate between * and the list of arguments it expands to. Consequently, rm cannot know whether you typed a single * or the specific list it expands into, so it cannot silently accept the latter and ask ‘are you sure’ for the former.
zsh comes with a function to check "rm" arguments and issue a warning if rm * is supplied. this doesn't work for arbitrary commands, but few commands actually require such treatment. a comparison could be made to tab completion functions, which are also shell-specific.
> - “cat foo* > foos” or “grep -r foo * > foos” fill up your disk.
I am almost certain that the implied premise is incorrect. According to https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V..., the shell performs word expansion before redirection.
> - tools that don’t want to accept file names as input have to do all kinds of escaping to prevent it. For example, you can’t have a calculator that can be invoked with
this is a bad example; it is simple to write "calc '3 * 4 + 5'", or of course more reasonably "calc '3*4+5'". in fact, this program already exists, and is called expr.
> I think a system library function to do the globbing, etc. would have been the better choice.
that would be terrible. it would be impossible to innovate globbing extensions like ksh or zsh; the system administrator would dictate for all users a major component of their experience. in modern terms, it would be like only being able to install Gnome or KDE, not both at the same time.
comment 4y ago · link · parent