HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dinosaurdynasty

no profile record

comments

dinosaurdynasty
·الشهر الماضي·discuss
I bought one because as far as I could find it is basically one of two 2-in-1's on the market that officially support Linux. (It replaced an old Android tablet and one of the original FW13's, both of which were getting old.)
dinosaurdynasty
·قبل 5 أشهر·discuss
Conservation laws result from continuous symmetries in the laws of physics, as proven by Noether's theorem.
dinosaurdynasty
·قبل 6 أشهر·discuss
That's mainly for historical reasons (select syscall can only handle fds<1024), modern programs can just set their soft limit to their hard limit and not worry about it anymore: https://0pointer.net/blog/file-descriptor-limits.html
dinosaurdynasty
·قبل 6 أشهر·discuss
Leads to really fun statements like "there exists a proof that all reals are equal to themselves" and "there does not exist a proof for every real number that it is equal to itself" (because `x=x`, for most real numbers, can't even be written down, there are more numbers than proofs).
dinosaurdynasty
·قبل 7 أشهر·discuss
https://system76.com/search.php?search_query=battery

If I search for battery stuff shows up, but they only ship bare batteries to the 48 states and Canada.

Contacting support should be able to help you too.
dinosaurdynasty
·قبل 7 أشهر·discuss
AMD Strix Halo (a consumer mobile processor) has theoretical support for 256GB/s of memory bandwidth (quad-channel, 8000 MT/s LPDDR5X, must be soldered, supports 128GB at most).
dinosaurdynasty
·قبل 10 أشهر·discuss
Not only that, there's also a DLC with 4 new planets.
dinosaurdynasty
·السنة الماضية·discuss
The chatbot leaderboard seems to be very affected by things other than capability, like "how nice is it to talk to" and "how likely is it to refuse requests" and "how fast does it respond" etc. Flash is literally one of Google's faster models, definitely not their smartest.

Not that the leaderboard isn't useful, I think "is in the top 10" says a lot more than the exact position in the top 10.
dinosaurdynasty
·قبل سنتين·discuss
It's because the nature of typing has changed drastically over the last decade or so, in well known languages, going from C++/Java's `FancyObject *fancyObject = new FancyObject()` (which was definitely annoying to type, and was seen as a way to "tell the compiler how to arrange memory" as opposed to "how do we ensure constraints hold?") to modern TypeScript, where large well-typed programs can be written with barely a type annotation in sight.

There's also a larger understanding that as programs get larger and larger, they get harder to maintain and more importantly refactor, and good types help with this much more than brittle unit tests do. (You can also eliminate a lot of busywork tests with types.)
dinosaurdynasty
·قبل سنتين·discuss
The performance problem with D-Bus is the increased number of context switches over Varlink, not serialization.
dinosaurdynasty
·قبل 4 سنوات·discuss
Using a server language with GC will break that.

Using any kind of network that isn't hardwired to the server will break that. (Cellular, WiFi, roommate starts downloading an update over DSL, etc)

Even just having other services on the server spike in usage can break that.

Also I'm talking about "100% of requests finish in 100ms", which is damn near impossible, vs "99.9% of requests finish in 100ms", which is very doable and having a couple seconds a day you don't respond isn't going to break that.
dinosaurdynasty
·قبل 4 سنوات·discuss
They've never done tmpdir per process... There's a PrivateTmp option for services, but that has to be enabled explicitly
dinosaurdynasty
·قبل 4 سنوات·discuss
The arch wiki has really good documentation on them.

And they are so much more debuggable than cron it's insane, they are a lot easier for anything non-trivial.
dinosaurdynasty
·قبل 4 سنوات·discuss
It's zero downtime in that at no point does the kernel not respond to a TCP SYN packet and all those connections eventually get seen by the daemon. (Really useful for updating local services on Unix sockets.)

It's also much simpler than redundant instances, and applications are updated much more commonly than hardware failures so it's a cheap way to increase availability in practice.

And if your app can restart in a couple seconds... It might as well be zero downtime, and if not responding for a second is an issue, you have bigger issues.
dinosaurdynasty
·قبل 4 سنوات·discuss
Yeah that's not great
dinosaurdynasty
·قبل 4 سنوات·discuss
Redis has the same limitation (only one transaction at a time) and is used a lot for webapps. It solves this by requiring full transactions up front. The ideal case for sqlite for performance is to have only a single process/thread directly interacting with the database and having other process/threads send messages to and from the database process.
dinosaurdynasty
·قبل 4 سنوات·discuss
If you can treat sqlite transactions like redis transactions (send the entire transaction up front) it can work.
dinosaurdynasty
·قبل 4 سنوات·discuss
If you can have one "database" thread and 63 "worker" threads, send messages back and forth, and don't hold open transactions, this would probably work with sqlite. Aka treat sqlite like redis.
dinosaurdynasty
·قبل 4 سنوات·discuss
https://www.sqlite.org/atomiccommit.html

sqlite is as good at durability as any non-replicated database, though you can configure it to be non-durable (most other databases too tbf).

https://www.sqlite.org/pragma.html#pragma_synchronous

By default WAL mode can rollback committed transactions in cases of power failure, but you can do `PRAGMA synchronous = FULL` to trade speed for durability.