Coder Social home page Coder Social logo

docs's People

Contributors

jaredpar avatar

Watchers

 avatar  avatar  avatar

docs's Issues

Before we build the protype, we should at least document the costs and benfits (and alternatives)

In reference to https://github.com/jaredpar/docs/blob/master/slices/prototype.md

I am very concerned that we are launching into a prototype which seems at least moderately expensive (changing the underlying representation of an array, adding new JIT optimizations to overcome the perf loss from that new representation, dealing with the breaking nature of the change etc), without being clear about the benefit and the alternatives.

In particular, the proposal suggest that we simply make arrays have slice capabilities. However there is a very reasonable alternative (which by the way is used by Swift), that makes Slice a type distinct from arrays.

This solution is significantly cheaper (no runtime changes are needed and thus no breaking changes or need to depend on particular versions of the runtime).

We need to articulate that solution as well as indicate when the two solutions differ and have an discussions/evaluation on the value of that difference.

Proceeding with prototype without first making clear what the BENEFIT of that prototype's ADVANTAGES of that prototype is over the other very reasonable alternatives is premature.

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.