dart-lang / dart-lang/language

Proposal: support unboxed type.

Open
#873 2 comments 1 reaction 0 assignees View on GitHub
feature
Dominant language
TeX
Stars
2.9k
Forks
239
Avg merge
2d 18h
Merged PRs (30d)
14

Description

Now dart is a real statically typed language(beginning from Dart 2.0) and being used for develop mobile apps. Flutter is a native performance cross-platform framework. To better complete with native apps(written in java/kotlin/swift), high performance is important.

So, this feature request intends to support unboxed type(something like [ java value type, inline classes](https://cr.openjdk.java.net/~briangoetz/valhalla/sov/01-background.html)[1], value types without object identity) to further improve performance and reduce memory usage.

_[1]State of Valhalla. The Road to Valhalla(https://cr.openjdk.java.net/~briangoetz/valhalla/sov/01-background.html)_

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked State of Valhalla background on Java value types and inline classes. Then define how Dart would support unboxed types without object identity, including the performance and memory goals stated in the issue. The issue does not name files, tests, entry points, or acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.