Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 4y ago · link · parent

Not to be that person, but Anatolia and Mesopotamia were not “dry” even if they approach that description today.

They had milder weather than Germany to be sure, but I don’t know if you can definitively say they saw less precipitation.

comment 4y ago · link · parent

TFA itself talks about this, but not to disparage the hunter-gatherer aspect but rather to claim that there was an actual, ~permanently inhabited city here, that was still nevertheless pre-agrarian. That’s part of the mystery and importance of these sites: they upend what we thought we knew.

comment 4y ago · link · parent

I forgot about the RPi train - good point. Fwiw, I hope this gets fixed too, and quickly. Unlike the other commenter, I don't think there's anything wrong with asking for updates all the time and hopefully this will get the attention it needs. Cheers, friend!

2284.

US Congress to hold first public UFO panel in 50 years(aljazeera.com ↗)

4 points · by ComputerGuru · 4y ago · discuss

comment 4y ago · link · parent

An additional (and more important) constraint to being on Linux and creating a single file is that this assumes you are the one creating the file, which is oftentimes not the case. e.g. in my rust ffmpeg wrapper, I have pipelines that invoke ffmpeg and through it create multiple intermediate files that need to be cleaned up at the end of the run in all cases (success and failure).

comment 4y ago · link · parent

I guess I could have phrased that part of my answer in a more directly applicable manner: if the majority of FreeBSD users are on desktop/servers and specifically not on mobile, then the majority of dev attention is also going to be focused in a similar fashion. The shortage for a project of this magnitude and nature isn't going to be lack of hardware, it's going to be lack of time and the opportunity cost for the few that could hack on this to stop hacking away on something else.

Basically, the incentives don't align because you're using FreeBSD in a way that most users/devs aren't. That's not to say that you're in the wrong (not one bit, in fact, you should be commended for your dedication) but just to highlight that there's a fundamental impedance mismatch between the needs of laptop FreeBSD users and the overall priorities of the community. It took an insane amount of time and effort to get Linux KPI going for graphics card support (something that affected both laptop and desktop users), you can infer from that the odds of getting something only for laptop use to become a priority.

That said, you should also look at the current release log as an indication of things to come. The effort to get Linux KPI going is very much a step in the right direction: whatever time/money/effort was going into porting or writing new drivers for wi-fi hardware can now be spent on doing things like improving the crypto and/or protocol support to get things like WPA3 and WiFi 6 going.

But the reason I highlighted the above section of the release notes is strictly because the bulk of the work to get 802.11ac support is purely in writing the drivers since it doesn't fundamentally change the requirements in the rest of the stack (no new crypto required, etc) so I don't see how highlighting that isn't already an answer to your question.

comment 4y ago · link · parent

I've been running a FreeBSD-based network at home, at work, and at several other sites - one with hundreds of APs. The software infrastructure isn't (even remotely) there to run the entire WiFi backend off of FreeBSD and lack of 802.11ac or WiFi 6 isn't the biggest problem; the right solution is to deploy separate WiFi infra (sans any dhcp/routing/firewall/etc) hanging off the FreeBSD-powered LAN.

comment 4y ago · link · parent

Also, for IPv6 users:

> The -i flag is now added to rtsol(8) and rtsold(8) by default in /etc/defaults/rc.conf. a0fc5094bf4c

> ...

> The -i option has been added to rtsol(8) and rtsold(8) to disable the random delay between zero and one seconds, speeding up the boot process. 8056b73ea163

comment 4y ago · link · parent

What do you consider to be minimal? The base installation is slim enough that people have been using an install-per-jail for a long time. There are just a few problematic ports that need to pull in huge dependencies, but if you're not installing a web browser, the dependencies aren't usually a huge issue.

comment 4y ago · link · parent

FreeBSD isn't really the most suitable choice for a laptop, which should be the only place you need to deal with wi-fi (and I say this as someone that's been using FreeBSD on the desktop and on servers for longer than I care to remember).

Anyway, if you read the release notes this release uses the new/recent linux KPI infrastructure to use the Linux wi-fi drivers and stack via a shim, so presumably this will take care of all your kernel-resident problems (userland support is still a question mark)! See man pages below:

> The iwlwifi(4) driver along with a LinuxKPI 802.11 compatibility layer was added to supplement iwm(4) for newer Intel Wireless chipsets. (Sponsored by The FreeBSD Foundation)

https://www.freebsd.org/cgi/man.cgi?query=iwlwifi&apropos=0&...

https://www.freebsd.org/cgi/man.cgi?query=iwm&apropos=0&sekt...

comment 4y ago · link · parent

Note that since FreeBSD 13, FreeBSD has been rebased and now uses ZFS on Linux rather than its own, separately developed and maintained ZFS stack. FreeBSD 13.1 upgrades to a newer release of ZoL, which is very important to note since the version that shipped with FreeBSD 13 had some notorious corruption bugs surrounding some of the newer ZoL features when sending/receiving snapshots with unmatched ZFS dataset record sizes or with native ZFS encryption (previously altogether unavailable for FreeBSD ZFS users) in use.

ZoL is still ironing out the remaining corruption bugs in these features, but the snapshot in FreeBSD 13.1 is a much more reliable option than the one that shipped with v13.

Note that users are not locked into the version that FreeBSD shipped with; you can actually installing rolling ZoL releases via ports/pkg and even use them for the system volume but that requires some reconfiguration (installing the port/pkg plus a minor conf file change to load the desired version of the ZFS kernel module) - but since most users don't do that, this should be a welcome upgrade.

comment 4y ago · link · parent

Note that it’s not really a supported option and was supposed to be removed from the installer for the latest release but that was cancelled because there wasn’t enough time to do so before the freeze. It’s certain to be dropped in the next release.

So by all means, play with it but don’t consider it to be stable.

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1966...

https://code.launchpad.net/~ubuntu-installer/ubiquity/+git/u...

Edit: fixed link.

comment 4y ago · link · parent

That’s normal DBA for SQLite - you can’t even rename columns without dropping the table. So not such an obstacle.

comment 4y ago · link · parent

> have the utility RAII class own both the object and the closure

Yeah, but the ergonomics suck. Especially for random cleanup tasks that aren’t necessarily one-object, one-task.

The temp file thing was just an example, actual use case was more domain-specific.

comment 4y ago · link · parent

Is there a reason black holes only rotate in one plane? I would naively have expected a 3D rotation to result from their formation.

comment 4y ago · link · parent

This is only technically true, in practice GC languages have workarounds. C# is almost entirely GC but has the IDisposable pattern and using statements to make up for this.

comment 4y ago · link · parent

This actually brings me to one of the few (current?) limitations of rust that drive me nuts! In all the other modern languages I work with, my big projects end up with a utility RAII class that wraps a closure to execute when the scope expires. It’s great for cleaning up logical operations as opposed to what is traditionally done by RAII destructors in oop languages.

Eg if I’m creating a temporary file or directory in a function to handle some IO logic, I’ll create a RAII wrapper around a closure that deletes that folder when the scope expires - this might be a one-off thing so instead of creating an actual RAII “TemporaryFolder” object that wraps around a path, creates the folder in its constructor, and deletes the folder and its contents in the destructor (and have to reference the inner path instead of the object itself when needing it, etc), I can just stick a closure to delete the folder in my wrapper and call it a day.

You can’t really do that in rust because you’d have to give ownership of the file/folder/whatever to the closure - meaning you can’t use it yourself afterwards! Technically the compiler just has to guarantee that the object persists to the end of scope (isn’t destroyed or moved out earlier) and then there would be no borrow conflicts (since it’s only run after everything else has finished and can’t be used for anything else in the RAII wrapper) but it can’t really know that, so you’re disallowed from sharing it between your actual code and the cleanup closure.

comment 4y ago · link · parent

I’ve long wanted to write a proxy server that would translate MySQL ddl/sql to PostgreSQL using the actual logic/code stripped from both engines. Iirc, when I looked into it the Postgres syntax was available more or less as an OSS standalone module but the MySQL backed was trickier to isolate so I gave up on that. That would let me move the PHP parts of our website (WordPress, vB/XenForo, etc) to match our custom appliances all running on postgres.

Amazon did this in reverse; if I’m not misremembering their Postgres support is actually a shim that translates pgsql queries to those compatible with their Aurora db, a MySQL derivative. I don’t know if they only support the subset of operations that can be translated one-to-one or if they also added some core features to support Postgres-specific functionality.

An interesting case is going from SQLite to anything else - you can actually just create a VFS (SQLite storage abstraction plugged directly into the library/engine) to store the underlying data on a remote MySQL/PostgreSQL db altogether without translating anything. Reads and writes would continue to go through the SQLite api but end up stored on the rdbms of your choice, locally or remotely.

comment 4y ago · link · parent

From experience, upgrading a custom CMS with handwritten SQL (that had grown organically for around eight years) from SQLite to Postgres basically involved only double-quoting non-lowercase table/column names.

comment 4y ago · link · parent

GP is saying SQLite and Postgres are the ones with similar syntax.

The problem is that it’s designed so you can go from SQLite to pgsql, not the other way around - as you mention, SQLite is lean on features (and associated syntax).

comment 4y ago · link · parent

Yeah, the last part was very much tongue-in-cheek since the difficulties of mailing anonymously are definitely much more complicated than “just mail it.”

comment 4y ago · link · parent

> have it printed at different public (paid or library) sources and then cobble them together

That feels like it exposes your attack surface enormously! More witnesses, more cameras, more data to cross reference, etc.

Buy a cheap laptop and printer at Goodwill or a garage sale, print, destroy them, then mail your manifesto or whatever.

comment 4y ago · link · parent

You’re assuming extreme precision and competence. I’m guessing they have an incomplete database of GPU samples and a fuzzy result came back like “86% match to Intel 630,” and that’s what they published.

comment 4y ago · link · parent

Extremely unlikely, as uMatrix doesn't do any direct systems programming.

comment 4y ago · link · parent

> Only if the Earth's orbit were perturbed by some other body would it have a chance of joining the black hole.

Not any more meaningfully than the chance of current-Earth being put on a trajectory to crash into the sun if its orbit were perturbed. A black hole doesn't magically have a stronger (instantaneous) gravitational pull than that of any other body; the same formula for gravitational force at distance D given object masses Mi is preserved. Now the typical means of formation for a black hole generally result in masses much greater than that of our sun, which is why they are generally heavier and, accordingly, stronger (and they gain mass as they suck up things around them, hence the "instantaneous" disclaimer above).

comment 4y ago · link · parent

It's a real shame that platform native widgets had to be sacrificed for this to work. The easy way out was to switch to arbitrary app-drawn widgets across all platforms (which Firefox did for all basic DOM HTML elements); the "we'll do one better" alternative is to use app-drawn imitations of the system-native widgets (a la Qt) which Firefox is now doing for the scrollbar. But no one ever gets these widgets right (unnatural scrolling, non-identical behavior when clicking in the gapped region, different scrollable-to-nonscrollable widget ratios, colors not respecting certain subtle theming choices, etc, etc.

I wonder if there was an alternative specifically for the scrollbar here - some way of obtaining an outer "shell" (via win32k, but then basically "orphaning" it so that you can't do anything besides kill it when you're finished) that just provides the window with an empty scrollable element that is then populated by the restricted process.

That ship has really sailed though; I think the days of native widgets are quickly coming to an end.

comment 4y ago · link · parent

I should think JS itself in the UI is "fine" if it's just JS we are talking about and not the DOM or other "web" technologies (a la Electron and co). After all, V8 is faster than the Python interpreter, and quite a lot of UIs are written in Python without it being a bottleneck - it's just a layer of glue pulling together various APIs and creating some sort of pipeline and none of the actual performance-sensitive stuff is done in the interpreted language either way (except when you're doing things like calculating stuff or sorting the contents of widget in Python or JS, etc. where inefficiencies in your code and in the language you are using begin to show - but those aren't strictly required to be part of your UI markup).

comment 4y ago · link · parent

While some platforms go through the Maps app to get the location, under macOS/iOS there's the locationd daemon that provides the location independently of any app. There, Maps is just a locationd consumer just like any other app requesting a location so Maps shouldn't be invoked in the background by non-Maps stuff. But perhaps Maps has a timed trigger to background update your cached location (so it can open up to the correct startup location instead of locating you after startup) or something similar.

comment 4y ago · link · parent

I don’t think this does anything if maps isn’t running?
1
767778
277