Skip to content

Conversation

@Frotty
Copy link
Member

@Frotty Frotty commented Oct 13, 2025

This PR adds the new language feature "static generic class variables" which allows such a construct for new generics:

class List<T:>
    static T array storage

Which then creates one array-variable per uniquely used type of T and resolves it correctly.

This PR also adds:

  • Safety checks against combining new generics with old generics. With the move to new generics come some limitations but also much better performance and safety.
  • (WIP) Bundle native, minimal JREs for the compiler so we no longer require the user to install java manually. This can be problematic on Mac though.

Frotty and others added 30 commits September 24, 2025 19:36
…tion/WurstValidator.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Also "an other" typo fix and use Arrays.hashCode
…ation/imtranslation/ImPrinter.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ation/imtranslation/ImPrinter.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ediatelang/optimizer/FunctionSplitter.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ation/imtranslation/StackTraceInjector2.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Frotty Frotty merged commit 803fb5d into master Oct 18, 2025
3 checks passed
@Frotty Frotty deleted the static-generic-member branch October 18, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants