Better HN
topnewbestaskshowjobs
Log inSign up

codys

1,284 karma · joined Oct 6, 2011 (15y ago) · 430 submissions

podcast-again-1k@icloud.com
Submissions

comment 9y ago · link · parent

> maintain my own kernel updates

Not really: zfs is available in aur as a dkms package. Pacman automatically rebuilds dkms modules when it updates the kernel. All you'd need to do is modify mkinitcpio.conf to include "zfs" in the HOOKS at the appropriate stage.

So: more complicated that just using ext4, but not "maintain my own kernel" level of difficulty.

comment 9y ago · link · parent

On btrfs causing latency: I've got a few systems with btrfs as the rootfs (on top of lvm, on top of dm-crypt, on a SSD).

I recently started using `snapper` to create snapshots on a schedule on them. I enabled quota support in btrfs so I could see how much space snapshots were using.

I noticed that filesystem wide latency tended to spike when removing snapshots (several minutes of all fs access stalling).

Balancing with quotas enabled is even worse: my systems were hung for multiple days, until I forcibly restarted them and disabled quotas. Then the fs hangs were much smaller (a few seconds) and not to noticeable. Balancing finished in something on the order of an hour.

While I had quotas enabled, I was constantly having btrfs tell me the data was bad and needed rescanning (rescanning quotas would also induce fs wide latency).

The thing is, ZFS has snapshot space usage info, and doesn't have awful latency (it also doesn't have a "balance" operation, but I'm not sure how relevant that is).

Given my experience with both btrfs & ZFS, I'll likely consider using ZFS as my rootfs in the future.

comment 9y ago · link · parent

MA (near Boston), NH, CT.

comment 9y ago · link · parent

I have not seen this while interviewing in the Northeast US.

comment 9y ago · link · parent

To be fair, all the safety briefings I've seen tell you not to do that. ("Do not inflate while inside the airplane" is the line, I believe).

comment 9y ago · link · parent

So is the FAA required to return money given to them for the registration?

And what happens to the registration database?

comment 9y ago · link · parent

Yep, just not allowing (directly) user controlled file names seems ideal. Maybe just hash the crate names and use the hash as a file name? No more silly restrictions due to platforms. Eliminates issues with some file systems having a length limit too.

comment 9y ago · link · parent

So that is true as long as all the bloat is contiguous. If it is spread out throughout the file (in such a way that bloat doesn't fill an entire page) it will still end up loaded. Or even if it is "unused", that doesn't mean something isn't scanning over it byte-by-byte.

In the happy case, yes, virtual memory will save us. But there are a lot of ways we could still end up loading the junk into ram.

Also, there are potential runtime costs to it being larger just on disk (need to seek over it, etc).

comment 9y ago · link · parent

I mean, you could add some indirection & some sort of directory data, if desired to allow hard links & get directory listing perf reasonable.

This was mainly an example to show that "paths" in some sense are (or could be) handled by file systems, not an actual design I'd aspire to :)

comment 9y ago · link · parent

The typical (generalized) setup is paths -> inodes (called "refers to data" or ""something"" in my other comments to avoid using the weird terminology we've somehow adapted for naming file system things) and inodes -> actual data on the disk. Whether you actually have that setup on disk is up to the fs format, but regardless of the format it is typically useful (and as you note, generic file system interfaces like the one in linux do require this) to have this extra indirection when tracking things on the software side (ie: not necessarily the storage side, though many file systems do have this type of indirection because it is also useful on the storage side).

> Your hypothetical driver would need to keep a double-mapping: from inodes to paths, and then from paths to whatever else.

As I've noted in another comment, inodes (`struct inode` in linux) typically contain a lot of information. No additional mapping would be required.

comment 9y ago · link · parent

Yep, this is misleading.

"file descriptors" taken _literally_ don't exist (they are just the interface exposed to user space programs). Linux uses `struct file` internally as the generic file tracking, and multiple file descriptors can refer to a single `struct file`. `struct file` in turn refers to a `struct inode`, which represents an actual "something" on disk. Each file system driver stores a bunch of info in the `struct inode`.

In addition to that tracking, there is generally a bunch of fs-specific data structures to handle lookup of names (in the typical case, these are essentially cached versions of what is stored on disk).

comment 9y ago · link · parent

One of the things filesystems provide is a mapping from paths to data (files, directories, etc). How they provide this varies (tree of path elements, etc), but saying they don't think about paths (and implying they only think about path elements) is misleading. Nothing prevents a file system from simply putting all it's path to data mappings into a hash table (except the slight difficulty in implementing some common filesystem operations).

comment 9y ago · link · parent

Note that lazy-static does not "statically allocate a buffer" for all definitions of "statically allocate": lazy-static computes it's value on first use, and must use dynamic alloc space (ie: malloc/box)

Also, lazy-static has been around for a long time. Releases first occurred in 2014! I'd be surprised if it had not been considered.

comment 9y ago · link · parent

That isn't true.

Nothing about open source requires that they in any way stabilize their web-side APIs, the process they would follow could be the same as their binary releases, just with open source code released at the same time.

comment 9y ago · link · parent

> All of this costs something like $20K at the minimum.

So they only need to be cheaper by $20K over a couple of years for it to be worth it?

That seems like a fairly small cost to overcome.

And if there isn't very much demand for H1Bs, even with "bidding" we'd expect the cost to companies to stay the same.

It isn't clear to me why prioritizing the value of an employee (as measured by how much they are paid) would not be an effective way of prioritizing H1B visas.

comment 9y ago · link · parent

> Metrics are key to good management

This doesn't follow from the GP's comment. All we know from that comment is that Metrics + some managers = bad.

comment 9y ago · link · parent

> one of two things Google can push an update for [...] without any dialog or concent

One of the two things Google _chooses_ to do this for. Nothing prevents them from doing the same thing for other pieces of software, except, perhaps, their own policy.

comment 9y ago · link · parent

Folks aren't necessarily complaining about the release, rather, the issue was with the title which previously incorrectly called the release "open source". HN admins have since changed the title, see comments further down.

comment 9y ago · link · parent

Note that this issue references another (not yet public) issue which is apparently for LastPass on firefox. I expect we'll see a LastPass + Firefox issue in the near future.

> (Please note, issue 1188 which affects LastPass on firefox is not fixed, and still works)

comment 9y ago · link · parent

> Apache 2.0 license includes the same language

No, Apache-2.0's language around patents is more restricted, as others in this thread have noted.

comment 9y ago · link · parent

> eliminates very many correct programs

While this is also true (there are certainly correct programs that aren't writable in rust without unsafe{}), in this context I'm guessing you mean "incorrect programs".

comment 9y ago · link · parent

> millions of refugees that change the social fabric altogether

Note that there were slightly over 1 million applications for asylum in Europe in 2015 [1]. I can't find numbers for totals in 2016, but [2] has some raw statistics & charts. Note that these numbers don't account for migrants that don't apply for asylum (which could be a very small or a very large percentage, but is likely non-zero).

I can't speak for the "changing the social fabric" bit though.

[1]: http://www.bbc.com/news/world-europe-34131911

[2]: http://ec.europa.eu/eurostat/statistics-explained/index.php/...

[cache of 2]: http://webcache.googleusercontent.com/search?q=cache:ki9SPSv...

comment 9y ago · link · parent

> You don't buy a developer kit in mass intending to resell as an end product

Beaglebone black-like system boards are used for both development & production. I almost shipped a system like this personally. With the BBB, you can get slightly modified versions, in bulk, and with enough availability to satisfy purchasing. Even if you couldn't, the SoC on the BBB can be bought from TI. I imagine there are similar things for more modern, powerful SoCs. Many companies like isolating the complicated timing sensitive board design (as needed for NAND and off chip memory) from the rest of their design, and don't necessarily have the skills in house to do that type of layout. Pre-made boards like the BBB provide a lower cost option than a completely custom board.

With the RPis, you can't even buy the SoC. I'm not aware of anyone you can buy slightly modified (ie: unneeded components pulled) boards from in bulk.

comment 9y ago · link · parent

The concept of segwit is fine. The problem is that the implementation of it as a soft fork is questionable, and trying to position it as a capacity increase is even more questionable.

comment 9y ago · link · parent

If you browse from windows, that page only shows Microsoft's special "Download Program".

If you browse from linux, it shows links to directly download the ISO files.

I'm not sure what it does if you browse from MacOS.

Maybe try changing your browser's useragent? Frankly, it is a bit annoying that Microsoft tries to push their download tool.

comment 9y ago · link · parent

Sure, I don't think the two are incompatible. One could want to cross compile and not want to require internet access.

comment 9y ago · link · parent

In that case, it may also make sense to consider using the cross compilation capabilities in rust rather than building on the actual device.

comment 9y ago · link · parent

In this context, it's interesting to note that the US Vice President was originally not a running mate to the President, but the runner-up (2nd most electoral college votes).

This theoretically allows more proportional representation by, essentially, preventing 1 group from electing their representatives of choice to (in this case) 2 positions (ignoring an overwhelming majority & certainty of it)

I'd be interested to see how effective a "runner-up-selection" methodology would be if applied in a more general case.

comment 9y ago · link · parent

AF_UNIX on linux supports SOCK_DGRAM and SOCK_SEQPACKET in addition to SOCK_STREAM, so having message based interfaces won't be much of a change for some users.

SOCK_DGRAM at least appears to be widely supported (FreeBSD & Illumos & OpenBSD). SOCK_SEQPACKET is at least supported by OpenBSD (I'm going by what's in various docs/man pages).

1
101112
15