zonidjan

Joined 8 years ago

Karma
158
Submissions
101
Member since
Apr 7
[ my public key: https://keybase.io/dimecadmium; my proof: https://keybase.io/dimecadmium/sigs/D_XHXx7lQiaHuPENCzmAm6yzDwioT1P8nTLb1vW6r58 ]
View on Hacker News

Recent submissions

Comment · 6 years ago
"All the functions" - I guarantee you that almost any function you want in Excel is in Sheets. Just because you don't know how to use it or find it doesn't mean it doesn't exist. The only reason you know how to use Excel better is that you have past experience with it. That's, effectively, the sunken cost fallacy.

"size" - what?

"some of the external tools" - duh? But what on earth are using using "external tools" integrated to Excel for?

Comment · 6 years ago
Array destructuring: already existed, list() pseudo-function

Array spreading: already existed, array_merge

Variadic functions: are probably better implemented as a function accepting an array, especially now that there's a proper array syntax instead of a pseudo-function. Also already existed, func_get_args.

Argument unpacking: already existed, call_user_func_array

Arrow functions: are not any shorter, and are less clear, than anonymous functions.

Literally the only item on your list that was any good for the language is the null coalescing operator. The rest are just re-implementing something that PHP already had, in yet another incompatible (and often unclear) way.

Hell, good luck coming across '??' and trying to find any documentation on what it does. Searching Google for 'php ??' returns results for 'php', searching php.net for '??' returns seemingly random functions, going to php.net/?? gives you the homepage.

Comment · 6 years ago
> Fallback to HTTP reachable via port 80 on the private IP for the server.

How, exactly, is that better than using a common cert? What threat do you propose that applies to HTTPS with a shared cert, and not to HTTP?

Comment · 6 years ago
What? No. While those are meant to be reserved, nothing stops you from configuring your resolver to answer for them.
Comment · 6 years ago
This is intentional on Netgear's part, and does not in any way degrade security compared to the alternative (an untrusted cert or no HTTPS). It is neither a bug nor a security issue.
Comment · 6 years ago
Yes, I know what dosbox is, thank you. That's ... why I mentioned it ...
Comment · 6 years ago
> Is there an equivalent like that now for game development?

dosbox is your equivalent.

Comment · 6 years ago
They did not win based on their "higher standard of service", but based on their price, which was only possible due to their non-compliance with regulatory requirements.
Comment · 6 years ago
But you will never get customers without drivers and you will never get drivers without customers.

Plenty of Uber/Lyft competitors have tried and failed. Heck, a few different companies tried here in Austin once we grew a spine and banned Uber/Lyft, only to die as soon as they came back to town.

Comment · 6 years ago
> 1) A sophisticated compiler might read the length of a file before loading it, so that it can allocate a buffer of the right size. Doesn't work with /dev/stdin.

gcc does this. It appears to be why /proc files don't work. gcc sees that stat calls it a 'regular file' and 0 bytes long, and actually performs a read() syscall with a length of 0.

> 3) Furthermore, it might check whether the file is a regular file. If not, it is almost certainly not what the programmer had in mind.

gcc probably does this. (It would explain why /dev/stdin works)

Comment · 6 years ago
> Recently I saw a tweet where someone mentioned that you can include /dev/stdin in C code compiled with gcc. This is, to say the very least, surprising.

You can also call something to read from stdin in your Makefile, or read from stdin in your executable.

> But is it equally obvious that the compiler also needs to be sandboxed?

Yes. Why wouldn't it be sandboxed?!

> I even found one service that ... showed me the hash of the root password.

Wow. That's bad. Of course, that's not a compiler issue, but rather a system administration issue. /etc/shadow should not be world-readable.

> This effectively means this service is running compile tasks as root.

That's quite a leap from 'I can read /etc/shadow' to 'I am root'.

> Interestingly, including pseudo-files from /proc does not work. It seems gcc treats them like empty files.

More accurately, it seems the system treats them like empty files. gcc does a stat on the file, which returns 'regular file' and 'size=0'. gcc therefore calls read() with a length of 0 bytes.

Comment · 6 years ago
This seems great.

For someone who already knows Kotlin.

Comment · 6 years ago
It's not hard to build a ride sharing app.

It is, however, hard to get drivers and customers FOR your ride sharing app.

Comment · 6 years ago
Surprise! Now that they've mostly killed off taxi companies, their rates will be the same as taxi companies. Who could've seen that coming? Oh wait.
Comment · 6 years ago
Errrrr... dosbox?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton