HNHacker News
TopNewBestAskShowJobs

needusername

553 karma · joined July 2, 2014

submissionscomments
needusername··on Linux eliminates the strncpy API after six years of work, 360 patches
Doesn‘t he hack the ship and confuse the Unix epoch with the moon landing?
needusername··on SQLite Date and Time Functions (2007)
Ignoring time zones, the Boris Johnson approach to time zones.
needusername··on MySQL at Uber
> 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··on JEP Draft: Deprecate memory-access methods in sun.misc.unsafe for removal
You forgot that the deployment also got more complicated.
needusername··on A Year in Review of 0-days Exploited In-the-Wild in 2022
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··on The secret life of fsync
That or ASM devices. To my knowledge io_submit and io_getevents only really work with raw partitions anyway.
needusername··on The secret life of fsync
> - Temp files.

O_TMPFILE should do this.

> - Unit files.

O_TMPFILE together with renameat2 and RENAME_EXCHANGE should do this.

needusername··on Coding Mistake Made Intel GPUs 100X Slower in Ray Tracing
It’s my general impression that software is not one of Intel´s strengths.
needusername··on Psychic Signatures in Java
Looks like you’re correct and I was wrong.
needusername··on Psychic Signatures in Java
> 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··on Psychic Signatures in Java
I believe Oracle 11 is affected.
needusername··on Converting integers to decimal strings faster with AVX-512
> now because I don't know why they disabled it when it was there

E-cores (Gracemont) don't support AVX-512, only P-cores (Golden Cove) support AVX-512

needusername··on Show HN: MemSafeCrypto, Java cryptography primitives using DirectByteBuffer
memfd_secret is probably what you want
needusername··on Log4jscanner
No. The JAR could be inside a WAR inside an EAR.
needusername··on Fast Counting with PostgreSQL and Haskell
Did I misunderstand the approach or is it sort of risky as it uses escaping instead of bind parameters to create the query to be explained, potentially opening itself to SQLi?
needusername··on Xcode 13.2 contains Log4j vulnerability
Note that they are on JDK 14.0.2. An old, unsupported version of Java which doesn't get any security patches anymore. Being on a non-LTS version of Java forces them to upgrade to a new major version of Java every six months to get security patches, which they apparently don't do.
needusername··on Which version of JDK should I use?
Getting Java through apt-get gives you more or less the worst quality builds https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-May/0...

You get mystery bits that haven't been put through the TCK.

needusername··on Why Python 4.0 might never arrive, according to its creator
Why did it take projects and Google so long to migrate?
needusername··on Why Python 4.0 might never arrive, according to its creator
> The GIL.

How does the the GIL prevent interleaving? My understanding is that if an "operation" takes several steps, eg. reading from a dict then IO or a C extension and finally writing to a dict the GIL will not make this atomic.

needusername··on Why Python 4.0 might never arrive, according to its creator
> For example, in CPython multiple threads can append to a list without a lock or insert items into a dict without a lock, and the data structure will never become corrupted.

How is this achieved?

> Though it is worth pointing out that Java has a well-defined memory model, and Python doesn't.

Wouldn't you have to at least issue an mfence when a thread enters / exists the GIL?

needusername··on Why Python 4.0 might never arrive, according to its creator
> Currently Python only allows certain thread interleavings, because those are the points where the GIL is released.

How is this currently avoided? My understanding is that anything that accepts a callback / lambda is potentially subject to interleavings as the code can call a C extension which releases the GIL. Moving code to C extensions is often recommended when Python performance is brought up. Am I misunderstanding something?

> It's also unclear how tractable it is to retain current garbage collection semantics without a GIL

Why is it important to retain current garbage collection semantics? Why does Python prescribe a certain garbage collection implementation and does not allow for others like Java?

needusername··on Why Python 4.0 might never arrive, according to its creator
Where is the connection to locking and the GIL?
needusername··on Why Python 4.0 might never arrive, according to its creator
> Multithreaded Python currently does not

How do you prevent interleaving of different threads then?

> and must remain that way to maintain compatibility.

Why? Python 3 broke a whole lot of applications and libraries.

needusername··on Why Python 4.0 might never arrive, according to its creator
Why? Which different semantics cause a problem?
needusername··on Why Python 4.0 might never arrive, according to its creator
Why? Java has no GIL and runs faster than Python.
needusername··on The Death of Java (Packages)
Good. I don't think anybody should use them and I hope nobody actually uses them.

If over a decade of doing Java on Linux has taught me anything then it is to avoid using anything Java related from any Linux distribution and instead "install" (unzip or untar) what you need yourself.

I don't see why Fedora needs to build their own versions of JARs instead of using the ones the projects builds. The only answer I heard is "this is how we roll". It seems like they have this one process built for C system libraries and try to use it for everything whether it makes sense or not.

The only exception I can think of is if you're on RHEL and want to use the RHEL Java because of the support contract.

needusername··on IntelliJ Idea 2020.3.1 Is Out with Apple Silicon Support
> perhaps they just have it all compiled for M1

That won't work because of the missing W^X support in upstream releases. You need to backport patches.

needusername··on IntelliJ Idea 2020.3.1 Is Out with Apple Silicon Support
Officially there is no upstream release of Java that supports macOS on ARM64 due to the lack of W^X support. You have to manually backport the patches or build from master.
needusername··on Standalone Nashorn 15.0 is out
> Hasn't Nashorn been superseded by GraalJS?

It depends, do you want support for your JVM? If so:

* Graal CE has no support

* Graal EE requires either running on Oracle Cloud or calling Oracle Sales for a custom quote. These are non-starters for many.

* JVMCI requires `-XX:+UnlockExperimentalVMOptions` which often voids support.

* I believe Mandrel is supported but requires RHEL

needusername··on Zheap – Reinvented PostgreSQL Storage
> emulate most of Oracle database functionality

What is the basis for this statement?

* MATCH_RECOGNIZE isn't supported

* reference partitions aren't supported

* TIMESTAMP is incompatible and the default compile options are comically bad

These are the first three things that came to mind and none of them are supported so I stopped looking further.

Page 1 of 13Next →