Hacker Newsnew | past | comments | ask | show | jobs | submit | KMag's commentslogin

Though, if your compiler generates stack maps to facilitate pointer moving at runtime, one could have a system that used a bump allocator and compaction of a GC without running the trace portion of GC. It could also use a per-thread list of freed objects to batch up the freeing. Then we get into a semantic argument as to whether compile-time GC is really GC.

I'm not sure what you mean exactly because there can be pointers in the heap (although work on compile-time GC based on arena-like "regions" has been around for decades), but there are plenty more optimisations that generational moving collectors can do, and we're working on them. But no matter what you do, once you can move objects you need an FFI layer between the "movable stack" and the hardware/OS, which is not something you want in a low-level language (because once you need an FFI layer, you might as well use a more high level language for the parts above it).

> GC work is proportional to live data, not dead data.

This is true of your basic moving collectors. It's generally not true of reference-counting collectors (including Bacon-style cycle detecting collectors). It's also not true of tracing collectors that have a step of sweeping all live and dead objects, such as mark-sweep or mark-compact.


QEMU used a copy-and-patch JIT, at least in the early versions. I've stopped following its developments.

I believe Wirth and Franz's JITs for Oberon were of the template/copy-and-patch variety, and I believe they were able to intertwine caching of expanded templates inside their bytecode decompressor, allowing it to JIT compressed bytecode off of disk into memory faster than reading native binaries from disk. Though, that was largely due to the ratio of CPU speed to disk read speeds on the workstations at ETH Zurich.


I'm not very tasty to mosquitos to begin with. I used to have the usual reaction to mosquito bites (slight bump, itching). I grew up near a wetland in Minnesota, so I was no stranger to mosquitos, but after getting absolutely mobbed by mosquitos when I took my wilderness survival merit badge course at scout camp, I stopped reacting to mosquito bites.

Though, the downside is that I do have less incentive to protect myself if I'm in malaria/dengue/etc. areas.


I'm pretty sure they were trying to avoid that exact spoiler by hiding the fact they were talking about the null set.

Spoiler alert: do not read parent comment.


Ah, but where were the survivors buried?


Apologies - feeling quite dim now.


It's psychoactive, but not euphoric. Promoting wakefulness is a psychoactive property.


> .. women reaching out against their abusive male partners. Which IS an issue and IS statistically more likely.

Be careful about your phrasing there. I hope the implied subject on both sides of the "and" is different. Women being victims is an issue, and women reaching out is significantly more likely.

Women reaching out is (obviously) not an issue, but is statistically more likely. Alternately, women being victims is an issue, but the statistical likelihood of women being victims is unknown, and we have good reason to believe there is significant reporting bias.


Does your parent need to graduate to be considered a legacy?

My dad went to 3 different undergraduate colleges each of his 3 years of undergrad, kicked the MCAT's teeth in, and got into med school without having graduated, went to two different med schools. (A long long time ago, probably not possible now.) Apparently the Mayo Clinic didn't mind his crazy academic record, and once he finished his residency at the Mayo, nobody else cared.

Mom went to one college, so maybe I would have been a legacy at 6 different institutions.


Vastly under-estimating the magnitude of the task is how the crazy things get done.

Christopher Columbus wasn't unique in believing the world was round, he was rather unique in his vast under-estimation of the distance to Asia. The only reason he survived is dumb luck that the Americas were about where he thought Asia was. All of his doubters were correct that he would die before reaching Asia.

Of course, this way, way far down the list of reasons not to take Christopher Columbus as a role model.


How are the memory overheads of ZFS these days? In the old days, I remember balking at the extra memory required to run ZFS on the little ARM board I was using for a NAS.


That was always FUD more or less. ZFS uses RAM as its primary cache…like every other filesystem, so it if you have very little RAM for caching the performance will degrade…like every other filesystem.


But if you have a single board computer with 1 GB of RAM and several TB of ZFS, will it just be slow, or actually not run? Granted, my use case was abnormal, and I was evaluating in the early days when there were both license and quality concerns with ZFS on Linux. However, my understanding at the time was that it wouldn't actually work to have several TB in a ZFS pool with 1 GB of RAM.

My understanding is that ZFS has its own cache apart from the page cache, and the minimum cache size scales with the storage size. Did I misundertand/is my information outdated?


> will it just be slow

This. I use it on a tiny backup server with only 1 GB of RAM and a 4 TB HDD pool, it's fine. Only one machine backs up to that server at a time, and they do that at network speed (which is admittedly only 100 Mb/s, but it should go somewhat higher if it had faster network). Restore also runs ok.


Thanks for this. I initially went with xfs back when there were license and quality concerns with zfs on Linux before btrfs was a thing, and moved to btrfs after btrfs was created and matured a bit.

These days, I think I would be happier with zfs and one RAID-Z pool across all of the disks instead of individual btrfs partitions or btrfs on RAID 5.


I would think ZFS would suck on a 1GB machine due to likely being a 32 bit machine. If you had a 1GB in a 64 bit rig it should be fine.

ZFS does have its own cache (influenced by being Solaris native) but it’s very fast to evict pages.


> That was always FUD more or less.

To give some context. ZFS support de-duplication, and until fairly recently, the de-duplication data structures had to be resident in memory.

So if you used de-duplication earlier, then yes, you absolutely did need a certain amount of memory per byte stored.

However, there is absolutely no requirement to use de-duplication, and without it the memory requirements are just a small, fairly fixed amount.

It'll store writes in memory until it commits them in a so-called transaction group, so you need to have room for that. But the limits on a transaction group is configurable, so you can lower the defaults.


I don’t think I came across anyone suggesting zfs dedupe without insisting that it was effectively broken except for very specific workloads.


>That was always FUD more or less

Thank you thank you, exactly this! And additionally that cache is compressed. In the day's of 4GB machines ZFS was overkill but today...no problem.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: