size_t to dynamic

Open
#1,280 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
backend

Research direction

Start by locating the hxcpp runtime code that boxes numeric types and the implementation of the View type. Compare how existing numeric types report their type, then determine how size_t should be represented across 4-byte and 8-byte platforms; done means documented behavior and appropriate support for both architectures.

Written by the indexing model from the issue text.

Description

Depending on the OS, architecture, and compiler used size_t can sometimes be boxed into dynamic. Would be nice to add proper support for boxing size_t as it would make more sense for the View type to use it. Might be a bit tricker than the existing numeric types though as the size of size_t will vary between 4 and 8 bytes, so what should it report it's type as?

Dominant language
C++
Stars
330
Forks
237
Avg merge
1d 3h
Merged PRs (30d)
20

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HaxeFoundation/hxcpp

All issues in HaxeFoundation/hxcpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.