GithubHelp home page GithubHelp logo

Comments (5)

jayschwa avatar jayschwa commented on September 26, 2024

Julia defines Vector and Matrix, so I think the package should try to follow that:

Vector2
Vector3
Matrix2x2
Matrix3x4

As the package matures, I will be using it for OpenGL and create typealiases to match GLSL types:

typealias Vec3 Vector3{Float32}

I'm currently defining my own vector types right now: https://gist.github.com/jayschwa/5239689
In my opinion, the package doesn't need to define any typealiases itself. If the user wants one (as it will be in my case), they can define them on their own.

from oldimmutablearrays.jl.

twadleigh avatar twadleigh commented on September 26, 2024

I think I can be convinced that it is best to leave the aliases out and avoid abbreviation.

from oldimmutablearrays.jl.

jayschwa avatar jayschwa commented on September 26, 2024

While the current typealias for matrices is nice and simple, I think the usefulness of sub-typing AbstractMatrix will make the extra code worth it. Perhaps much of the duplication can even by avoided through use of macros or meta-programming?

from oldimmutablearrays.jl.

twadleigh avatar twadleigh commented on September 26, 2024

I figured we'd eventually have to go down the metaprogramming path. Maybe sooner rather than later. I've opened #9.

from oldimmutablearrays.jl.

twadleigh avatar twadleigh commented on September 26, 2024

I've gone with Vector2, etc., and will go with Matrix2x2, etc., when we get to autogenerating matrices (soon).

from oldimmutablearrays.jl.

Related Issues (20)

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.