GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove Int and Double boxing · Issue #113 · googleapis/google-cloud-node

Remove Int and Double boxing #113

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove Int and Double boxing#113
Copy link
Assignees
rakyll
Labels
🚨This issue needs some love.coretriage meI really want to be triaged.
Milestone
Core Stable

Description

@rakyll
rakyll
opened on Aug 15, 2014
Issue body actions

We don't seem to need to provide boxing to be more precise. Current way of detecting double numbers seem to be working fine. I want to remove Int and Double custom types for cleanup.

Does it sound good?

Activity

Next
  1. rakyll
    added this to the This milestone has been deleted milestone on Aug 15, 2014
  2. silvolu commented on Aug 15, 2014

    @silvolu
    silvolu
    on Aug 15, 2014
    Contributor
    More actions

    SGTM.

  3. stephenplusplus commented on Aug 15, 2014

    @stephenplusplus
    stephenplusplus
    on Aug 15, 2014
    Contributor
    More actions

    Isn't boxing them the only way we do the detection? https://github.com/GoogleCloudPlatform/gcloud-node/blob/master/lib/datastore/entity.js#L208-215:

    if (v instanceof Int) {
      p.integerValue = v.get();
      return p;
    }
    if (v instanceof Double) {
      p.doubleValue = v.get();
      return p;
    }

    If we remove them, how would a user specify they want a double?

  4. rakyll commented on Aug 15, 2014

    @rakyll
    rakyll
    on Aug 15, 2014
    ContributorAuthor
    More actions

    There would be no explicit way to force a field to be double. If it's not a floating point number, we will persist it as uint64 in the backend.

    I'm wondering about the impact it has to the backend and indexing. cc/ @pcostell

  5. pcostell commented on Aug 15, 2014

    @pcostell
    pcostell
    on Aug 15, 2014
    Contributor
    More actions

    Unfortunately indexing uses property type to determine order: https://developers.google.com/appengine/docs/java/datastore/indexes#Java_Properties_with_mixed_value_types

    When two entities have properties of the same name but different value types, an index of the property sorts the entities first by value type and then by a secondary ordering appropriate to each type. For example, if two entities each have a property named age, one with an integer value and one with a string value, the entity with the integer value always precedes the one with the string value when sorted by the age property, regardless of the property values themselves.

  6. rakyll commented on Aug 15, 2014

    @rakyll
    rakyll
    on Aug 15, 2014
    ContributorAuthor
    More actions

    Ah, an immediate WONTFIX then. Thanks.

  7. rakyll
    closed this as completedon Aug 15, 2014
  8. jgeewax
    added
    core
    on Feb 2, 2015
  9. jgeewax
    modified the milestones: This milestone has been deleted, Core Stable on Feb 2, 2015
  10. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  11. JustinBeckwith
    assigned
    rakyll
    on Feb 1, 2021
  12. 57 remaining items

  13. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    chore: the ultimate fix for repo-tools EPERM (#113)

    8f0560d
  14. sofisl
    added 4 commits that reference this issue on Mar 5, 2026

    chore: Jsdoc fresh migration (#48)

    6d29935

    chore(deps): update dependency tar to v7.5.1 (#113)

    603841d

    chore(deps): update dependency gts to ^0.9.0 (#113)

    13cbbe5

    chore(deps): update dependency sinon to v8 (#113)

    3d6936b
  15. codyoss
    added 3 commits that reference this issue on Mar 9, 2026

    update to .nycrc with --all enabled (#113)

    0a9a0f3

    update to .nycrc with --all enabled (#113)

    6a41992

    build: do not fail builds on codecov errors (#528) (#113)

    98dfab2
  16. GautamSharda
    added 2 commits that reference this issue on Mar 12, 2026

    build: patch Windows container, fixing Node 10 (#113)

    8442cac

    build: patch Windows container, fixing Node 10 (#113)

    2841b68
  17. sofisl
    added a commit that references this issue on Mar 17, 2026

    chore!: upgrade to node 18 (#113)

    4e9a14a
  18. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    Pass rules when autocreating a family. (#113)

    8835992

    Pass rules when autocreating a family. (#113)

    c467e27
  19. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    Pass rules when autocreating a family. (#113)

    c26ef72
  20. thiyaguk09
    added a commit that references this issue on May 5, 2026

    Pass rules when autocreating a family. (googleapis#113)

    081ed0f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rakyll
    rakyll

Labels

🚨This issue needs some love.coretriage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    • Core Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.