Readit News logoReadit News
needusername commented on SQLite Date and Time Functions (2007)   www2.sqlite.org/cvstrac/w... · Posted by u/1vuio0pswjnm7
needusername · 3 months ago
Ignoring time zones, the Boris Johnson approach to time zones.
needusername commented on MySQL at Uber   uber.com/blog/mysql-at-ub... · Posted by u/Brysonbw
needusername · 7 months ago
> using the JDBC™ protocol

JDBC is not a protocol, JDBC is an API, hence the need for a different JDBC driver per RDBMS. I doubt the author is a developer, I see this misunderstanding often with architects who don’t code.

needusername commented on JEP Draft: Deprecate memory-access methods in sun.misc.unsafe for removal   openjdk.org/jeps/8323072... · Posted by u/mfiguiere
bitcharmer · 2 years ago
You mean expedite whole chunks of logic to a different language, then make your build process much more complicated by having to maintain a completely new ecosystem and compiler infrastructure and make testing more cumbersome?

Sorry, but this is just a bad advice.

needusername · 2 years ago
You forgot that the deployment also got more complicated.
needusername commented on A Year in Review of 0-days Exploited In-the-Wild in 2022   security.googleblog.com/2... · Posted by u/arkadiyt
doubled112 · 2 years ago
I was annoyed when the announced 1st gen Ryzen isn't supported in Windows 11.
needusername · 2 years ago
You can’t expect part time open source contributors to work for free for you. Instead volunteer to take over maintenance by reviewing PRs and traiging user bug reports.
needusername commented on The secret life of fsync   puzpuzpuz.dev/the-secret-... · Posted by u/todsacerdoti
icedchai · 2 years ago
~15 years ago, the last time I used Oracle in production, that was still standard practice. I'd be interested to hear from someone who's used it recently.
needusername · 2 years ago
That or ASM devices. To my knowledge io_submit and io_getevents only really work with raw partitions anyway.
needusername commented on The secret life of fsync   puzpuzpuz.dev/the-secret-... · Posted by u/todsacerdoti
Animats · 2 years ago
File system semantics need a rethink. Here's what I've proposed. This is not original with me; these are all things implemented in some non-UNIX-based systems.

Files should come in several kinds:

- Unit files. They're immutable, but replaceable. This is the normal case. You create them with "creat", write them, and when closed, they replace any previous version with the same name. Any program which opens one for reading sees a complete file. On a crash before close, the new file is dropped and the old version remains. If a program aborts, that also happens. An explicit close commits the file update.

- Log files. These are append only. On a crash, you are guaranteed that the file will be intact to some point ending at a write boundary. The last transactions may be lost, but the file must not tail off into junk. For journals, log files, etc.

- Temp files. These disappear on a crash.

- Managed files. These are for databases. They can do everything files can do.

Along with this, you need async I/O. This is primarily for log files and managed files. When you do a write, you get two callbacks, one when the buffer has been copied, and one when the data has been committed to permanent storage and will survive a crash. It is the job of the OS, drivers, and devices to not send the data-committed completion until the data is safe. Only a few programs need that, but they're the important ones - database managers.

This turns the fsync problem around. Instead of doing an fsync to force write-out, databases wait for a completion before considering the data committed. It's not a flush-everything; it's a commit-complete for a single write. So if you have multiple I/O operations pending on a single file, a normal event in database land, there's no big stall for a cache flush.

There's also no incentive for drive manufacturers to send commit-completes early. The only people who use them are the ones who will notice if someone cheats. Most bulk I/O is on unit files, where something is being copied.

(There are mainframe systems that had this sort of thing half a century ago.)

needusername · 2 years ago
> - Temp files.

O_TMPFILE should do this.

> - Unit files.

O_TMPFILE together with renameat2 and RENAME_EXCHANGE should do this.

needusername commented on Coding Mistake Made Intel GPUs 100X Slower in Ray Tracing   tomshardware.com/news/int... · Posted by u/sizzle
Heston · 3 years ago
How does a massive company like Intel who's work heavily involves code/compiler optimization not profile their drivers for something this simple?
needusername · 3 years ago
It’s my general impression that software is not one of Intel´s strengths.
needusername commented on Psychic Signatures in Java   neilmadden.blog/2022/04/1... · Posted by u/19870213
stolsvik · 3 years ago
I do not believe so. The "affected list" which includes 11 is for the complete set of the "CPU" - Critical Patch Update.

This specific one was introduced with the rewriting of these parts of the code from C++ to Java, and that happened with Java 15.

needusername · 3 years ago
Looks like you’re correct and I was wrong.
needusername commented on Psychic Signatures in Java   neilmadden.blog/2022/04/1... · Posted by u/19870213
gunnarmorling · 3 years ago
For folks on RHEL, the java-17-openjdk package for RHEL 8 has been updated: https://access.redhat.com/errata/RHSA-2022:1445.

> The official OpenJDK project lists the planned release date of 17.0.3 as April 19th, still the latest available GA release is 17.0.2

> (https://wiki.openjdk.java.net/display/JDKUpdates/JDK+17u).

I don't think there 17.0.3 ever will be available from openjdk.java.net; there's no LTS for upstream builds, and since Java 18 is out already, no further builds of 17 should be expected there. IMO, this warrants some clarification on that site though.

needusername · 3 years ago
> I don't think there 17.0.3 ever will be available from openjdk.java.net

https://adoptopenjdk.net/upstream.html

These are the official upstream builds by the updates project built by Red Hat. Not to be confused by Red Hat Java, not to be confused by the AdoptOpenJDK/Adoptium builds. These can‘t be hosted on openjdk.java.net because they host only builds done by Oracle, not to be confused by Oracle JDK.

needusername commented on Psychic Signatures in Java   neilmadden.blog/2022/04/1... · Posted by u/19870213
lobstey · 3 years ago
Not that a lot of companies are using the Java 15+. People generally stick to 8 or 11.
needusername · 3 years ago
I believe Oracle 11 is affected.

u/needusername

KarmaCake day553July 2, 2014View Original