HNHacker News
TopNewBestAskShowJobs

Ded7xSEoPKYNsDd

384 karma · joined September 14, 2014

submissionscomments
Ded7xSEoPKYNsDd··on Updates for older platforms to protect against potential nation-state activity
Presumably it's another case where an intelligence agency lost control of an exploit they developed, the same thing that happened with WannaCry.
Ded7xSEoPKYNsDd··on Async IO on Linux: select, poll, and epoll
What difference do you propose between "just call this function" and "just call this signal handler"?

My feeling is that nobody uses signal driven I/O because signal handling is error prone and complicated. In fact, a very common pattern is to only set a flag in the signal handler, which is checked at defined points in the main program... not completely dissimilar from doing non-blocking calls at defined points in the main program.

Ded7xSEoPKYNsDd··on Compiler Optimizations are Awesome
Besides the role of grouping a bunch of related fields, structures are also regularly used to define file formats, network protocols, or in OS development for data structures interpreted by the hardware. All these things would break without a defined memory layout.
Ded7xSEoPKYNsDd··on Uber Fires Anthony Levandowski
I don't know. If the court thinks there was a deal between Uber and Levandowski where they "fired" him for the duration of the trial, only to hire him back as soon as possible, that could lead to contempt of court charges, I feel. But IANAL either.
Ded7xSEoPKYNsDd··on Mutable vals in Kotlin
In C++, there need to be e.g. two overloaded versions of the index operator on a vector: one taking a const vector reference returning a const reference to the value, and one taking a non-const vector reference returning a non-const reference to the value.

With only the first one you couldn't modify values of a vector using nice [] syntax. With only the second one you couldn't use the same nice [] syntax on const vectors. So you need both. The implementation can be identical, but the method signature is different. You end up with such duplicate functions all the time for accessor methods.

Ded7xSEoPKYNsDd··on Helping a Million Developers Exit Vim
After pressing Ctrl-C a few times, the status bar says 'Type :quit<Enter> to exit Vim' for me. Not sure what else people try to exit vim.
Ded7xSEoPKYNsDd··on Elf Hello World
It's impossible to know how much exactly is required. (While structures are fixed size, arrays indices are not.)

Linux allows you to configure the limit at /proc/sys/vm/mmap_min_addr.

Ded7xSEoPKYNsDd··on Why Germany Still Has So Many Middle-Class Manufacturing Jobs
The English certificate translates it as "Computer Science Expert / Software Development".
Ded7xSEoPKYNsDd··on The 640 K Barrier
No, AMD64 does not ignore the upper 16 bits. They need to all equal the bit 47, otherwise the hardware raises a general protection fault (as opposed to a page fault for accesses to unmapped pages).

The problems mentioned in that article result from software that thinks this limit is set in stone. Such software encodes data in these upper bits, and then later masks it away before accessing the pointer.

Ded7xSEoPKYNsDd··on Large Bitcoin Collider Is Generating Trillions of Keys and Breaking into Wallets
Every hashing algorithm has collisions, for good cryptographic ones there's just no practical way of finding them.
Ded7xSEoPKYNsDd··on Taming Undefined Behavior in LLVM
These people have done this work (and it's great!), and in their self-selected benchmarks programs they claim about 16% overhead: https://www.cis.upenn.edu/acg/softbound/

This is only memory safety, not using other optimizations related to undefined behavior will add a bunch more overhead.

Ded7xSEoPKYNsDd··on The 640 K Barrier
The 8086 also ignored high address bits, and Intel had to add workarounds for that in later CPUs: http://wiki.osdev.org/A20_Line
Ded7xSEoPKYNsDd··on FreeNAS Corral is being relegated to “technology preview” status
They are talking about Plan 9's network file system protocol. I'm not sure what they were using it for. I've seen it used as the easiest way to share a host file system with a Qemu/KVM guest OS.
Ded7xSEoPKYNsDd··on Deutsche Post expands StreetScooter production
This bike (the small one) is even designed for double that amount (60kg). As common as non-motorized post bikes are already, I guess you learn to deal with it.

1: https://windsorsradweg.files.wordpress.com/2012/01/cropped-d...

Ded7xSEoPKYNsDd··on German traffic light stays red for 28 years (2015)
The traffic light takes precedence over the static sign (which is only there as a fallback).
Ded7xSEoPKYNsDd··on The Three Ways of XOR
So your + operator implicitly casts booleans to an integer type, with false=0 and true=1?
Ded7xSEoPKYNsDd··on With the Rise of DevOps, Perl Shows Its Muscle
I feel your first example is better written like this:

    if ! ansible-playbook ... ; then 
        echo -e "\e[1;31m""Error when executing ansible!""\e[0m"
        exit 1
    fi
But generally when I need to work around errexit, I tend to add something like " || true" or " || xyz_failed=true" to the end of the command line instead of turning it off and on again.
Ded7xSEoPKYNsDd··on Ask HN: People who did coding boot camps, what did you think?
OP didn't say anyone from his cohort is actually unemployed. The job at Trader Joes may not be what that person was envisioning, but it is a job.

Even if they claim something more specific than literally any job at all, they'll probably count anyone doing something related to IT (if only for a week).

I've also read about boot camps hiring their alumni as teachers/tutors for a bit if they can't find a job. I always assumed that's mostly to be able to count those people as successfully placed.

Ded7xSEoPKYNsDd··on Let’s Encrypt 2016 in Review
Even if you wanted to, you can't really use them right now. Mozilla, Google, and Apple untrusted their (recently issued) certs.
Ded7xSEoPKYNsDd··on Woolim – Lifting the Fog on DPRK’s Latest Tablet PC [video]
The audience at CCC whistling the Jeopardy theme song during delays has been a thing for a loong time. They have a popular Hacker Jeopardy event late at night (now only every second year), where random delays can happen e.g. when the game UI crashes.
Ded7xSEoPKYNsDd··on Unsecured MongoDBs taken hostage
Pull the plug on the server and send the disks to a data recovery company? Most file contents are probably still on the disk (just marked as erased), but the longer you wait the more likely it is that random temp files overwrite more of your data.

(Note: I have no idea how exactly mongo implements deletion.)

Ded7xSEoPKYNsDd··on Be Healthy or Else: How Corporations Became Obsessed with Fitness Tracking
> Every bill from a doctor you see is a very clear short-term incentive for keeping yourself healthy -- clearly more so than a $50 discount on your monthly insurance payment.

It's also an incentive to avoid going to the doctor unless you really need to. Something that I'm not sure helps with healthcare costs in the long run.

Ded7xSEoPKYNsDd··on Show HN: IMAP-based message broker client written in Go
SMTP without queuing is called LMTP. It's not completely compatible because messages delivery success needs to be communicated for each destination address.

https://en.wikipedia.org/wiki/Local_Mail_Transfer_Protocol

Ded7xSEoPKYNsDd··on I Found Myself Accused of Stealing Code from WordPress
Pretty much, yes. That's the whole point of the GPL.
Ded7xSEoPKYNsDd··on Umask setting is ignored by npm for some directories
It works pretty well for me, to get Web DAV access to my files on my NAS.

The default ACLs make sure that any newly created files can be accessed by both users.

Ded7xSEoPKYNsDd··on Umask setting is ignored by npm for some directories
If there's really no way to run these processes as the same group at least, there's always ACLs:

    setfacl -m u:NON-OWNER:rwX,d:u:NON-ONWER:rwX,d:u:OWNER:rwX DIR
(Allows NON-OWNER to read, write, execute if already executable for anyone to that directory, and allows NON-OWNER and OWNER to do the same for newly created files.)
Ded7xSEoPKYNsDd··on Gcpp – Experimental deferred and unordered destruction library for C++
Interesting. Your link says in the portability section

> All it relies on is the assumption that the architecture uses a call stack to implement function frames.

Does this mean it will treat live objects as dead when the only reference is stored in a register?

Ded7xSEoPKYNsDd··on New Snowden leaks unravel mystery behind NSA's UK base
Snowden handed over those documents to journalists back when he was in Hong Kong. Ever since he has no direct control over what gets published (or when).
Ded7xSEoPKYNsDd··on How to steal a developer's local database
IPv6 still has the whole IPv4-mapped range at ::ffff:127.0.0.0/104
Ded7xSEoPKYNsDd··on PulseAudio has been removed from dports
PulseAudio features I have used in the past that I don't think ALSA has:

* playing audio from/to another Bluetooth device (with bluez)

* playing audio on a PulseAudio server running somewhere on the network

* transparent encoding of audio output as DTS (for surround support over SPDIF)

I also seem to remember plain ALSA having trouble with multiple applications playing sound at the same time, which is just pathetic.

I'm sure some of these could in theory be built on top of ALSA, but fact is that today's Linux distributions use PulseAudio, and for me it always worked well.

← PreviousPage 3 of 8Next →