Giter VIP home page Giter VIP logo

Comments (3)

electrum avatar electrum commented on August 10, 2024

from slice.

dain avatar dain commented on August 10, 2024

@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.

grv87 avatar grv87 commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.