Our great sponsors
JDK main-line development https://openjdk.org/projects/jdk
In this case you have some binary data represented as a byte array and you want to treat it as an array of longs (or an array of any of the primitives.) SIMD here is over complicating it, as all you really need is to know what offset to use and if you need to re-interpret the bits. That's what the MethodHandles.byteArrayViewVarHandle is doing. In order to do this you need to use the Unsafe class. The code for all of this is generated from this template if you're interested.
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Writing a Profiler in 240 lines of pure Java
2 projects | news.ycombinator.com | 29 Mar 2023
How does an ArrayList remove an element from an array?
2 projects | reddit.com/r/javahelp | 15 Mar 2023
Don't Share Java FileChannels
2 projects | news.ycombinator.com | 12 Mar 2023
Make JDK source code UTF-8
3 projects | news.ycombinator.com | 28 Feb 2023
ByteArrayOutputStream rookie question
1 project | reddit.com/r/learnjava | 23 Feb 2023