Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
LukeShu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
93 ms
·
931.
▲
by
LukeShu
9y ago
Indeed, in the past there was "use strict"; to enable language improvements in ES5. This type of string-command is a no-op command if the implementation doesn't recognize the string as special; you put the string-co
932.
▲
by
LukeShu
9y ago
From the article: > Update: it was [an accident][1], which Linus responded to in his usual fashion. > [1]: http://lkml.iu.edu/hypermail/linux/kernel/1603.2/01926.html Those who only know Linus
933.
▲
by
LukeShu
9y ago
There's also Wikinews, which is run by the Wikimedia foundation (Wikipedia). https://en.wikinews.org/
934.
▲
by
LukeShu
9y ago
> holds us to a C-based API/ABI This shows a bit of a misunderstanding about what POSIX is. It isn't about operating systems, it (IEEE 1003.1) is about source-code compatibility for 2 languages: C99, and Shell. POSIX doesn&
935.
▲
by
LukeShu
9y ago
To clarify, these are very early revisions of Unix we're discussing, prior to Research Unix v1. By the time v1 happened, fork existed, and `chdir` was a shell builtin.
936.
▲
by
LukeShu
9y ago
That didn't sound right to me, but I looked it up, and you're right. The scripts we're discussing were written in 2002 [1], so the time-appropriate version is POSIX-2001 (Issue 6). [1]: https://github.com/free
937.
▲
by
LukeShu
9y ago
The `tr` bit isn't actually in the FreeBSD version of the script[1], so I'm assuming it's a macOS HFS thing. https://github.com/freebsd/freebsd/blob/master/usr.bin/alias...
938.
▲
by
LukeShu
9y ago
Thanks for digging that up! But for scripts written for FreeBSD in 2002 [1], I have to wonder which non-POSIX-y shells they were worried about. [1]: https://github.com/freebsd/freebsd/commit/55d0b8395514ae405
939.
▲
by
LukeShu
9y ago
Not to be negative, but for learning: There are a few "problems" with this snippet of the article: ---- $ which cd /usr/bin/cd $ cat /usr/bin/cd #!/bin/sh # $FreeBSD: s
940.
▲
by
LukeShu
9y ago
As a distro packager, Autotools may be a mess, but debugging a package that won't build is fairly straight-forward. If the package uses CMake though, and there's a weird build issue, debugging that can be a nightmare! Everything
941.
▲
by
LukeShu
9y ago
(I'm making a separate comment from the INTERMEDIATE explanation) I'm a big fan of Make, but appreciated your detailed criticism, and found myself nodding in agreement. #3: I like to stick MAKEFLAGS += --no-builtin-rules in my Mak
942.
▲
by
LukeShu
9y ago
> I have read the description of what INTERMEDIATE does at least a dozen times and I still don't really get it. It took many reads, but I think I get it. As a toy example, consider the dependency chain: foo <- foo.o <-
943.
▲
by
LukeShu
9y ago
> There is a metric crap-ton of the design of Make that is solely for the purpose of compiling and linking and document processing. Not really. The bit being pointed out here certainly isn't. It's not any special design goi
944.
▲
by
LukeShu
9y ago
Not quite: it does declare "foo" as the default target. Without the Makefile, it would be necessary to type `make foo` instead of just `make`.
945.
▲
by
LukeShu
9y ago
To clarify that a bit: The CDDL is a per-file copyleft; you must provide the sources of the CDDL-licensed source files. The GPL is a per-program copyleft; you must provide the sources of the entire program if it contains GPL-licensed code;
946.
▲
by
LukeShu
9y ago
They didn't conclude that the licenses were not incompatible, they concluded that ZFS for Linux is not sufficiently based on the Linux kernel for the licenses to interact.
947.
▲
by
LukeShu
9y ago
OpenZFS is a fork of the Oracle code. The (many) contributions to it since the fork are not owned by Oracle, but a good chunk of the code is.
948.
▲
by
LukeShu
9y ago
Hence my remark, > saying all applications should set it to SystemLookAndFeel would be wrong
949.
▲
by
LukeShu
9y ago
That's what `SystemLookAndFeel` is, which is not the default Look and Feel in the JRE; `MetalLookAndFeel` is, which is what people think of when they think of Java applications. (1) Most Java applications don't set the LAF, (
950.
▲
by
LukeShu
9y ago
As that page notes, C-a and C-e are not just Emacs bindings; and are even in Vi. However, the other bindings mentioned are Emacs bindings; and macOS textareas do support Emacs keybindings (on ctrl, not cmd), and that includes C-a and C-e
951.
▲
by
LukeShu
9y ago
That page is quite outdated (2007), a better reference for about:config referrer options is https://wiki.mozilla.org/Security/Referrer (which is linked to at the bottom of the blog post about FF59 being discussed). It
952.
▲
by
LukeShu
9y ago
It has long been the case that FSF-endorsed distros could not use the Debian kernel, even though it contains only free software. It had always been my understanding that the intention is that the messages the Debian kernel displays looks li
953.
▲
by
LukeShu
9y ago
> I'm very confused by your analogy. In the same way that I can hold onto a binary for /bin/bash, I can do the same for gcc-4.7 or whatever. If your software depends on a very specific version to remain compatible, you jus
954.
▲
by
LukeShu
9y ago
As I've said many times before: "Free Software" and "Open Source Software" refer to almost the same sets of software; but the "Free Software" movement/ideology and the "Open Source" movement
955.
▲
by
LukeShu
9y ago
The last time an OSH article was posted, the top comment was that someone should submit a patch to Bash that makes it refuse to work for scripts longer than 50 lines. It's a strong sentiment that keeps getting repeated (I don't a
956.
▲
by
LukeShu
9y ago
Why do people care about "COMPATIBILITY" so much w.r.t. C compilers? It's so easy to use other compilers to build your program. > CC=gcc make And if your program is written with gcc in mind, put that in the Makefile: >
957.
▲
by
LukeShu
9y ago
Your response of linking the GNU Make manual comes of as even more self-impressed and coy than the parent. The parent suggests removing the makefile entirely and running `make main`, and observing the result. That would be a learning exper
958.
▲
by
LukeShu
9y ago
I had to add `#include <algorithm>` to get it to compile.
959.
▲
by
LukeShu
9y ago
Race detection is totally disabled for production binaries, because it does slow down the code. The question is: For debug builds that explicitly have the "-race" flag passed to the compiler, why would you want to disable race det
960.
▲
by
LukeShu
9y ago
I wanted to argue that POSIX didn't define this behavior. But, reading the spec: I agree with you, Bash is non-compliant there. According to POSIX (2016 edition) date&>F should be equivalent to date & (ex
More ›