Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_kst_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
481.
▲
by
_kst_
10y ago
> Everything was disposed of after use, even Spacelab which had a very short life and completed a specific programme of missions and then burned up. Skylab, not Spacelab.
482.
▲
by
_kst_
10y ago
Before it landed, the most likely scenario was that the rocket was going to crash into the deck and be destroyed. (That's happened several times before.) If they can deal with that, they can deal with the rocket landing safely and then
483.
▲
by
_kst_
10y ago
Perhaps it isn't really a brown dwarf. According to http://www.slate.com/blogs/bad_astronomy/2016/05/03/three_ea... : > TRAPPIST-1 is an M8 dwarf, only 0.08 times the mass of the Sun; just
484.
▲
by
_kst_
10y ago
It's odd that the article doesn't mention the phrase "brown dwarf", which is what 2MASS J23062928-0502285 is. (See http://simbad.u-strasbg.fr/simbad/sim-id?Ident=2MASS+J230629... , linked from the ar
485.
▲
by
_kst_
10y ago
No, on my system they're three distinct executables; check the sizes shown in my previous comment. Ubuntu 14.04 uses GNU grep 2.16. When I install it from source (grep-2.16.tar.xz), I get the three distinct executables. When I install
486.
▲
by
_kst_
10y ago
> For example, grep and egrep are two commands that perform very similar functions and are therefore implemented as a single program. Not everywhere: $ ls -li /bin/grep /bin/egrep /bin/fgrep 377487
487.
▲
by
_kst_
10y ago
You can easily install MATE or Cinnamon (or any of several other desktop environments) on either Ubuntu or Linux Mint.
488.
▲
by
_kst_
11y ago
From an episode of Star Trek: The Next Generation: "I presume your handprint will open this door whether you are conscious or not."
489.
▲
by
_kst_
11y ago
Another dangerous command is `crontab` with no arguments. It reads a new crontab from standard input. If you type Ctrl-C, it will abort and leave your existing crontab in place. If you type Ctrl-D, you've just created a new empty cront
490.
▲
by
_kst_
11y ago
> The problem isn't that you can't represent dates; it's that there is no standard way to do it. ISO 8601?
491.
▲
by
_kst_
11y ago
A less drastic change that would achieve the same purpose would be to require braces in selection and iteration statements, and to add an "elseif" or "elsif" keyword to replace "else if" chains. That's wha
492.
▲
by
_kst_
11y ago
/ # uname -n ucbvax / # cat /proc/cpuinfo CPU info: PUNT! / # Amusing.
493.
▲
by
_kst_
11y ago
Many Windows commands use "/" to introduce options (much like most Unix commands use "-"). Since the default command shell doesn't require whitespace after the command name and permits options to follow other a
494.
▲
by
_kst_
11y ago
Some might argue that that coherent subset is called "C". (I wouldn't, but some might.)
495.
▲
by
_kst_
11y ago
The size has now been corrected.
496.
▲
by
_kst_
11y ago
The first line in the table on http://advancedlinuxprogramming.com/alp-folder/ is a link to the PDF of the full book. http://advancedlinuxprogramming.com/alp-folder/advanced-linu... (The size in t
497.
▲
by
_kst_
11y ago
The number of bits in a byte is specified by the CHAR_BIT macro, which is required to be at least 8. It's commonly larger than 8 on C compilers for some DSPs, but almost universally 8 for hosted implementations. POSIX specifically requ
498.
▲
by
_kst_
11y ago
And "0b11001001" constants.
499.
▲
by
_kst_
11y ago
Existing code that does "auto x = 3;" is already broken; the "implicit int" rule was removed in C99. But "auto int x = 3;" is valid (and the "auto" keyword is useless in that context).
500.
▲
by
_kst_
11y ago
Fixed-point and floating-point types have very different behavior. I can't think of a case where I'd want to let the compiler decide which one to use.
501.
▲
by
_kst_
11y ago
As far as I can tell, a programmer can't specify the number of fractional bits. The type "unsigned short _Fract", for example, has a number of fraction bits determined by the implementation within limits imposed by the standa
502.
▲
by
_kst_
11y ago
Not really. "Undefined behavior" is behavior that is not defined by the language standard . A given implementation is free to define the behavior as it likes.
503.
▲
by
_kst_
11y ago
Consider a system where an address consists of a segment identifier combined with a byte offset within the segment. The relationship between different segments is unspecified. Pointer equality has to consider both parts of the address, but
504.
▲
by
_kst_
11y ago
Yes, but that could have been addressed by making them optional for freestanding implementations but mandatory for hosted implementations. Are there any hosted systems (systems that can support the standard library) on which VLAs are diffic
505.
▲
by
_kst_
11y ago
Expanding on the above, if you create a VLA with an unchecked size derived from user input, you've got problems. If the user provides a size bigger than you can allocate, your program could crash if you're lucky . (If you're
506.
▲
by
_kst_
11y ago
True, but none of the 14 listed principles is absolute. C2x compilers probably would (and could be encouraged to) accept old-style declarations and definitions in some non-conforming mode. They could even be accepted in conforming mode as l
507.
▲
by
_kst_
11y ago
Exactly the same thing applies to fixed-size arrays. If you define a local array of N elements, there's no defined way to signal an allocation failure whether N is a compile-time constant or not.
508.
▲
by
_kst_
11y ago
Old-style (non-prototype) function declarations and definitions have been officially "obsolescent" since 1989. Perhaps C2x can finally get rid of them.
509.
▲
by
_kst_
11y ago
Sounds like a clumsy attempt to guard against HTML injection.
510.
▲
by
_kst_
11y ago
Why is it terrible? Certainly a passphrase consisting of 4 English words is going to be easier to attack than a password consisting of a similar number of random letters. But as long as you judge a password or passphrase by its information
More ›