Comments (3)
from slice.
@grv87 Can you describe the problem you are having? I ask because one of the points of Slice is to normalize the access to arrays of different types, so I'm not sure this aligns with the purpose of Slice. Actually, if you know the type of the underlying data ahead of time, you can just use Java VarHandles.
from slice.
I'm porting some code from Go. Go have built-in slices.
If there would be slices implemented in Java then I could port code without significant changes.
Groovy has slice syntax, but it doesn't actually slice, it creates a copy. Copying is inefficient.
I'm porting not just algorithms, but built-in Go packages too. If there would be slices implemented in Java then resulted API would be simpler and more familiar for Go users.
I had a thought that your library could help with that.
But now I see that I could wrap a primitive array in class doing reindexing, and that would be enough.
from slice.
Related Issues (10)
- sun.misc.Unsafe is no longer available in JDK11 HOT 5
- is there comparisiong for slice vs netty ByteBuf vs nio ByteBuffer ? HOT 2
- Add FNV hash functions HOT 2
- jol-core is GPL HOT 7
- Missing negative array size check in `Slice#allocate`
- Why the size of OptoinalXxx.emty() is zero๏ผ
- Document using ByteBuffer.slice() for wrappedBuffer() HOT 1
- Documentation? HOT 2
- remove usage of openjdk HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slice.