r/Protos • • 2h ago

Compile callbacks ahead of time or on first use? A measurable runtime trade-off

1 Upvotes

Moving callback compilation out of runtime execution changes an interesting performance trade-off.

Selected callback execution plans are now prepared during compilation, while Closure creation and captured bindings remain deferred until needed.

A targeted JVM benchmark with 128 samples per scenario showed:

  • 28.4% lower first-execution latency for custom callback receivers.
  • 8.0% lower first-execution latency for canonical Boolean receivers.
  • Higher retained memory when prepared callback code remains unused.

Specialized inline execution paths remain intact, and all local regression tests pass.

The interesting question is where to draw the line between eager code preparation, lazy materialization and memory retention.

Website: https://protoslang.com

Source code: https://github.com/guillermomolina/protos


r/Protos • • 3h ago

When a temporary variable makes bytecode execution more efficient: fixing the underlying compiler path

1 Upvotes

Should these two expressions need different execution strategies?

body.add(source[index])

octet: source[index]
body.add(octet)

The latest Protos compiler update addresses unnecessary dispatch and primitive value materialization when specialized bytecode operations are composed.

Indexed reads and numeric expressions now compose directly with existing specialized unary calls. Standard Bytes reads also deliver unsigned octets directly as primitive long carriers.

The optimization preserves dynamic method selection, mutable slots, evaluation order and suspension without replay.

No new Java classes. No new Bytecode DSL operations. No application-specific shortcuts.

761 regression tests reported, with zero failures or errors.

An interesting compiler design question: how much intermediate value transport can be eliminated while preserving fully dynamic message semantics?

Website: https://protoslang.com

Source code: https://github.com/guillermomolina/protos


r/Protos • • 4h ago

Optimizing byte-level method dispatch: faster HTTP and TLS without sacrificing dynamic behavior

1 Upvotes

Sometimes the biggest networking bottleneck isn't the network itself, but the language runtime.

The Protos website migration exposed expensive method selection during byte-oriented processing. Earlier diagnostic runs observed a 1.4 MB HTTPS exchange dropping from 6.76 seconds to 2.26 seconds, although these were not controlled benchmark runs.

The latest development snapshot introduces specialized Bytes method-selection caches while preserving dynamic method redefinition, prototype delegation and receiver isolation.

No HTTP-specific shortcuts. No API changes. All local tests pass.

The next optimization target is the composition of specialized bytecode operations and primitive-value transport.

How much networking performance can be recovered by optimizing the language runtime rather than the networking library?

Website: https://protoslang.com

Source: https://github.com/guillermomolina/protos


r/Protos • • 7h ago

Pass-by-value without copying every element: 115× faster isolated array transfers

1 Upvotes

Does pass-by-value really require physically copying every element?

The latest Protos runtime optimization separates logical isolation from physical storage using protected primitive backing arrays and copy-on-write.

For round trips involving 65,536 integers, the measured improvements are:

  • Actor transfers: 44.22x faster on JVM and 103.75x on Native Image.
  • Isolated parallel execution: 55.94x and 115.29x, respectively.
  • Even when the destination immediately modifies the array, transfers remain up to 23x faster.

Large binary payloads also benefit from eliminating redundant copies, with improvements of up to 2.80x.

No new ownership API. No shared mutable guest state. Existing snapshot semantics remain intact.

These are workload-specific before/after benchmarks, not general runtime speedups.

How much of the cost of isolated concurrency comes from unnecessary physical copying rather than isolation itself?

Website: https://protoslang.com

Source: https://github.com/guillermomolina/protos


r/Protos • • 8h ago

Cutting JSON parsing time by 36.2% without changing the runtime

1 Upvotes

A real website workload exposed an expensive JSON parsing path: 21.567 seconds to process a 1.42 MB repository tree.

The parser has now been redesigned around indexed token scanning, replacing per-byte dispatch, redundant numeric traversals and recursive array accumulation.

Measured on the same host, Native executable and input:

  • JSON parsing: 21.567 → 13.769 seconds
  • Parsing throughput: 1.57x
  • Total measured catalog processing time: 29.5% lower
  • All 106 JSON conformance tests passing
  • No runtime implementation changes

Exact decimal arithmetic, Unicode handling, ordered object members and deeply nested structures remain supported.

The remaining parsing cost is still substantial. The interesting question is how much further a standard library parser can be optimized without moving its implementation into the runtime.

Website: https://www.protoslang.com/

Source: https://github.com/guillermomolina/protos


r/Protos • • 9h ago

Protos adds 25 filesystem and Path operations: a capability-oriented approach to I/O

1 Upvotes

The Protos Standard Library gains 25 new operations across std:io/files and std:io/paths.

  • Portable path manipulation.
  • Directory creation and metadata inspection.
  • Bounded streaming file and tree copying.
  • Recursive traversal and glob matching.
  • Temporary files and directories.
  • Exact nanosecond timestamps.

The implementation separates filesystem authority from path representation, keeps most algorithms in Protos itself, and introduces no new public Core operations.

Validated on both JVM and GraalVM Native Image.

One interesting design question: should a filesystem API make access authority explicit, rather than treating a path as sufficient permission?

Documentation and examples: https://protoslang.com


r/Protos • • 10h ago

How Protos cut its GraalVM Native Image CI job by 44% without sacrificing test coverage

1 Upvotes

Building a programming language on GraalVM and Truffle is an interesting challenge, especially when the language and its Standard Library keep growing.

Protos, a prototype-based language inspired by Self and Smalltalk, has just consolidated its Native Image validation pipeline.

The results:

  • Native Image validation: 16m 19s → 9m 02s.
  • Combined native validation runner time reduced by 32%.
  • One redundant analysis build eliminated.
  • All 38 native TLS tests preserved.
  • All 20 CI jobs passing.

The production executable still uses O2, while the dedicated native JUnit image uses GraalVM's quick-build optimization.

Interestingly, the overall CI still takes around 20 minutes. The bottleneck has shifted to Standard Library testing.

I'm curious how other language implementations, particularly GraalPy, TruffleRuby and other Truffle-based projects, approach this problem as their test suites grow.

Source: https://github.com/guillermomolina/protos

Website: https://protoslang.com


r/Protos • • 12h ago

Can a dynamic language keep message semantics without paying for every message? Protos compiler update on GraalVM

1 Upvotes

One of the most interesting challenges in implementing a dynamic programming language is preserving its semantics without paying the runtime cost of every abstraction.

Protos, a prototype-based language built on GraalVM Truffle, has just improved its compiler in two areas:

  • Nested control flow and indexed reads can execute inside the enclosing method without unnecessary closure activations.
  • Standard Integer and Float negation now uses a specialized Bytecode DSL operation.

Dynamic dispatch, custom behavior, lexical captures, exact integer arithmetic and suspension semantics remain intact.

The implementation draws on techniques used in GraalPy while addressing Protos's own execution model.

25 new regression tests pass, and the final Protos validation reported 1,564 passing tests.

For developers interested in Smalltalk, Self, Io, Python, GraalVM or dynamic language implementation: how would you approach eliminating these abstraction costs while preserving observable behavior?

Source code: https://github.com/guillermomolina/protos

Website: https://protoslang.com


r/Protos • • 12h ago

Announcement What happens when a programming language grows enough to build its own website? Protos 0.4.272

0 Upvotes

Building a programming language is one thing. Making it capable of building its own ecosystem is another.

Protos is an experimental prototype-based language built on GraalVM and Truffle, exploring ideas familiar to users of Self, Smalltalk and Io.

For the past few releases, I've been working toward a concrete goal: replacing the Node.js, Astro/Starlight and NGINX/njs application stack behind the official Protos website with Protos itself.

That goal has pushed the language considerably further than isolated examples and benchmarks.

With Protos 0.4.272, the building blocks are now available in a single public release:

  • HTTP hosting, networking and TLS.
  • Structured HTML and social metadata.
  • Markdown and XML processing.
  • Monotonic timing and asynchronous deadlines.
  • A lexer, syntax highlighter and parser written in Protos itself.
  • SHA-256 compression implemented in Protos.
  • Native execution without an external JVM.

The new website implementation has already passed local technical acceptance. Production migration is the next milestone.

It's an interesting stage in language development: instead of inventing features in isolation, a real application is driving the evolution of the language and its Standard Library.

For those working with GraalVM, Smalltalk, Self, Io or experimental programming languages: how would you approach building a language's ecosystem using the language itself?

Source and downloads:

https://github.com/guillermomolina/protos/releases/tag/v0.4.272

https://protoslang.com/


r/Protos • • 12h ago

What if Unix-style pipelines were implemented entirely in the programming language itself? Protos takes that approach

1 Upvotes

I've been developing Protos, an experimental prototype-based programming language running on GraalVM and Truffle.

The latest milestone is a Standard Library for external commands and streaming byte pipelines, implemented entirely in Protos using its existing execution capabilities, objects, closures, Tasks and Futures.

No new production Java code was needed.

The library supports:

  • Immutable, reusable command descriptions.
  • Bounded binary streaming with backpressure.
  • Independent stderr streams.
  • Structured cancellation and resource cleanup.
  • Explicit execution capabilities.
  • Detailed per-stage results.

Python's subprocess, Rust's std::process, Go's os/exec and Unix shells were interesting reference points when designing this library.

I'm particularly interested in how far a language can go toward implementing its own system-programming abstractions before introducing dedicated runtime machinery or syntax.

This is also a foundation for exploring a more expressive alternative to traditional shell programming.

What would you like to see in a modern programming language designed for both system scripting and general-purpose programming?

Website: https://protoslang.com

Source: https://github.com/guillermomolina/protos


r/Protos • • 1d ago

Optimizing SHA-256 in a prototype-based language without moving the algorithm to Java: lessons from GraalPy and Truffle

1 Upvotes

While developing a website written entirely in Protos, I encountered an unexpected performance bottleneck: hashing a 1.55 MB asset exceeded a 30-second end-to-end timeout.

Instead of replacing the SHA-256 implementation with a Java library, I worked on two complementary improvements:

  • Rewriting the compression algorithm using scalar variables, iterative loops and a reusable message schedule.
  • Specializing Integer bitwise operations through the Truffle Bytecode DSL, following established implementation patterns from GraalPy.

The SHA-256 algorithm remains written in Protos.

New Native digest measurements using GraalVM:

InputFirst sampleSubsequent sample
6,932 bytes50 ms68 ms
65,536 bytes512 ms310 ms
1,550,857 bytes2.274 s2.074 s

All six digests matched independent reference values.

The original timeout included process startup and file reading, so this is not a controlled speedup comparison.

What interests me most is how much performance can be recovered in a dynamic language by improving its general execution machinery rather than replacing individual algorithms with native implementations.

For developers working with GraalPy, TruffleRuby, GraalJS, Smalltalk or other dynamic languages: where do you draw the boundary between guest-language libraries and runtime primitives?

Source: https://github.com/guillermomolina/protos

Implementation and measurements: https://github.com/guillermomolina/protos/issues/1262


r/Protos • • 1d ago

What does modern prototype-based programming look like? Protos adds new tutorials and runnable examples

1 Upvotes

If you find languages like Self, Io or Smalltalk interesting, you might enjoy exploring Protos, an experimental prototype-based programming language running on GraalVM.

I've just completed a major expansion of its programming guide, tutorials and runnable examples.

The new material covers:

  • JSON, TOML, CSV and URI processing.
  • Structured HTML, Markdown and XML.
  • Lossless lexing, syntax highlighting and parsing written in Protos itself.
  • Reflective object slots and Closure return semantics.
  • Actors, Futures and monotonic deadlines.
  • Networking, structured logging, regular expressions and application libraries.

The update adds 37 Protos source files. All 36 affected standalone programs and 177 focused regression tests passed locally.

What interests me most is how much practical functionality can emerge from a small language model based on objects, delegation and Closures, without introducing classes.

The new material is available on main, with availability notes for features that require a newer runtime than the current distribution.

Tutorials: https://github.com/guillermomolina/protos/tree/main/protos/tutorials

Examples: https://github.com/guillermomolina/protos/tree/main/protos/examples

I'm particularly interested in feedback from people familiar with prototype-based languages: which programming patterns would you like to see demonstrated next?


r/Protos • • 1d ago

Building a programming language on GraalVM: Protos now generates Open Graph and Twitter Cards using its own Standard Library

1 Upvotes

Another step towards building the Protos website entirely in Protos itself.

The structured HTML Standard Library now supports 14 Open Graph and Twitter Card metadata fields, including page titles, descriptions, images, dimensions and URLs.

Html: import("std:html")

Html.render(Html.meta(%{
    "property": "og:title"
    "content": "Protos"
}))

The interesting part is not the metadata itself, but how it was implemented:

  • 100% written in Protos.
  • Zero Java changes.
  • No additional runtime primitives.
  • Reuse of the existing URI parser, escaping and HTML serializer.
  • All 127 HTML conformance tests passing locally.

Protos is an experimental prototype-based language built on GraalVM and Truffle, exploring ideas relevant to Smalltalk, Self, JavaScript and other dynamic languages.

I'm increasingly using Protos to implement the infrastructure that the language itself needs.

For those building their own programming languages: how early do you start implementing your Standard Library in the language itself?

GitHub: https://github.com/guillermomolina/protos

Website: https://www.protoslang.com/


r/Protos • • 1d ago

Building a programming language's website in itself exposed an interesting closure semantics bug

1 Upvotes

One of the most interesting aspects of building Protos, a prototype-based programming language running on GraalVM and Truffle, is discovering subtle language implementation problems through real application development.

While migrating the Protos website to Protos itself, I encountered an unexpected interaction between object factories, methods, lexical closures and non-local returns.

This simple example exposed the problem:

make: () => {
    {
        value: () => { ^42 }
    }
}
obj: make()
print(obj.value())

A method invocation must establish its own return home, rather than reuse the return home of the factory that created its Closure.

However, extracting that Closure and invoking it as an ordinary function must preserve its lexical return semantics.

The fix is now published in Protos 0.4.268-SNAPSHOT, with 205 targeted tests passing and the complete local test suite green.

The implementation preserves the existing Truffle specialization infrastructure without introducing new production Java classes or changing the language specification.

For developers familiar with Self, Smalltalk, Ruby, JavaScript or GraalVM: how do you approach the distinction between lexical closures and dynamically invoked methods in your language implementations?

Source code: https://github.com/guillermomolina/protos

Community: r/ProtosLang


r/Protos • • 1d ago

What happens when a programming language exposes its own parser as a standard library?

1 Upvotes

Protos, an experimental prototype-based programming language running on GraalVM and Truffle, now exposes its own Protos-written lexer, highlighter and parser directly through its standard library.

Lexer: import("std:source/lexer")
Highlight: import("std:source/highlight")
Parser: import("std:source/parser")

Inspired by the reflective traditions of Smalltalk, Self and Lisp, I'm interested in making language implementation facilities accessible to ordinary applications rather than hiding them inside the compiler.

The source-analysis library provides:

  • Lossless tokenization with Unicode 17 support.
  • Syntax highlighting with error recovery.
  • Parsing into a source-level AST.
  • Exact source positions and configurable resource limits.
  • Analysis without executing the input code.

All 149 conformance tests pass, with no new production Java code.

The next milestone is replacing the existing Java frontend with the Protos-written implementation.

For those working on programming languages: do you think lexers and parsers should be standard library facilities?

https://github.com/guillermomolina/protos


r/Protos • • 2d ago

A Maven cache hit can still fail before JUnit runs: what we learned building Protos on GraalVM

1 Upvotes

While developing Protos, a programming language built on GraalVM and Truffle, we encountered an interesting CI reliability problem.

GitHub Actions reported an exact Maven dependency cache hit, yet Java tests sometimes failed before executing a single test.

The reason? Maven Surefire dynamically resolves its JUnit Platform provider when tests actually run. Compiling tests and packaging with tests skipped wasn't enough to prepare the complete dependency cache.

Our solution:

  • Resolve the actual provider through an existing lightweight test.
  • Verify dependency availability offline before saving the cache.
  • Run prepared Java test shards offline after an exact cache hit.
  • Enforce the new contract through regression checks.

All local tests pass, and remote CI acceptance is underway. No dependency upgrades, skipped validation gates or changes to the language runtime were required.

This may be relevant to developers working with Maven, JUnit, GraalVM, GraalPy, TruffleRuby, or other JVM-based language implementations.

How do you ensure that your CI dependency cache is actually complete?

Project: https://github.com/guillermomolina/protos


r/Protos • • 2d ago

Debugging a rare actor termination race in Protos, a programming language built on GraalVM and Truffle

1 Upvotes

One of the most interesting challenges in implementing an actor-based programming language is ensuring that suspended computations are correctly released when an actor terminates.

Protos, an experimental prototype-based language built on GraalVM and Truffle, recently encountered an intermittent initialization failure during parallel testing.

Instead of increasing timeouts or reducing concurrency, we created a controlled regression that reproduced the underlying scheduler race.

Two cleanup ordering issues were corrected using the existing runtime infrastructure.

  • No new production Java classes.
  • No additional scheduling mechanisms.
  • No changes to the execution hot path.
  • 145 focused tests passed, followed by the complete local test suite.

For developers working with Erlang, Elixir, Pony, Smalltalk, GraalPy or other Truffle languages: how do your runtimes handle termination while an initialization continuation is suspended?

Source and technical details:
https://github.com/guillermomolina/protos/issues/1243

Project:
https://github.com/guillermomolina/protos


r/Protos • • 2d ago

Protos, a prototype-based language on GraalVM/Truffle, now has a complete parser written in itself

1 Upvotes

Another milestone toward self-hosting: Protos now has both a lossless lexer and a complete language parser written in Protos itself.

Protos is an experimental classless, prototype-based language built around objects, delegation, messages, closures, Futures and Actors, running on GraalVM and Truffle.

The new parser provides:

  • Source-aware ASTs with Unicode scalar positions.
  • Optional lossless source retention.
  • Strict syntax diagnostics and structural resource limits.
  • No new production Java code.

Validation compared 1,301 inputs against the existing Java parser, including the parser's own sources and code extracted from Markdown documentation. All 34 required own-source inputs were accepted, and JVM/Native structural parity passed.

The production Java frontend remains unchanged for now. The next architectural challenge is bootstrapping the Protos-written lexer and parser without maintaining two permanent frontend implementations.

For anyone interested in Self, Smalltalk, GraalPy, GraalJS or language implementation: how would you approach this bootstrap problem on a Truffle-based runtime?

Source code: https://github.com/guillermomolina/protos


r/Protos • • 2d ago

Building a self-hosted parser exposed 11 discrepancies in the original Java parser of Protos

1 Upvotes

One interesting benefit of building a programming language parser in its own language is discovering inconsistencies in the original implementation.

While developing the Protos-written parser, differential testing revealed 11 structural discrepancies in the existing Java frontend.

The problem involved contextual keywords, reserved member names, mutation targets and significant newlines.

Instead of adapting the new parser to reproduce the original behavior, the existing frontend was corrected to follow the language specification.

The result:

  • All 11 discrepancies resolved.
  • 37 focused regression tests passing.
  • Integrated local tests passing.
  • No new Java classes or runtime infrastructure.

Projects such as CPython, GraalPy and GraalJS offer interesting perspectives on parser architecture and contextual syntax recognition.

Protos is taking incremental steps toward a self-hosted frontend while preserving its GraalVM and Truffle execution architecture.

What parsing strategy would you choose when moving a language toward self-hosting: handwritten recursive descent, PEG, or a generated parser?

https://github.com/guillermomolina/protos


r/Protos • • 2d ago

What if a timeout didn't cancel the underlying work? Protos adds explicit monotonic deadlines on GraalVM

1 Upvotes

Timeouts and cancellation are closely related in asynchronous programming, but they don't have to be the same operation.

Protos, a prototype-based language built on GraalVM and Truffle, now provides an explicitly authorized monotonic Timing capability.

deadline: timing.monotonicNanoseconds() + 1000000000
outcome: timing.observeUntil(work, deadline)

The observation returns an independent Future. If the original Future becomes terminal before the deadline, its outcome is preserved. Otherwise, the observation reports DeadlineExceeded, without cancelling the underlying work.

Some interesting design choices:

  • Exact Integer nanosecond coordinates.
  • One-shot timers represented by ordinary Futures.
  • Deadline ordering determined by the source's terminal transition, not callback execution.
  • Explicit authority and Actor isolation.
  • No implicit cancellation or generic Future race.

Relative delays, retries and periodic policies can be composed in ordinary Protos code.

For developers familiar with Python asyncio, Rust Tokio, JavaScript Promises or Erlang's Actor model: should deadline observation and cancellation be separate operations, or should timeout APIs combine them?

Source: https://github.com/guillermomolina/protos

Specification: https://github.com/guillermomolina/protos/blob/main/spec/io/TIMING.md


r/Protos • • 2d ago

Building a self-hosted test tool for Protos: one source of truth for library ownership

1 Upvotes

Protos is an experimental prototype-based programming language built on GraalVM and Truffle, exploring ideas familiar to users of Self and Smalltalk.

Its bundled Test Tool now derives progress groups directly from canonical Standard Library ownership, removing a separate, manually maintained classification system.

HTML, JSON, XML, TOML, Markdown and other libraries receive meaningful progress labels while preserving test identity, parallel execution and sharding.

The entire production change is implemented in Protos itself, without adding Java runtime code.

It's another small step towards keeping language tooling inside the language rather than accumulating host-language infrastructure.

How do other language projects organize their growing conformance suites without duplicating metadata across their tooling?

GitHub: https://github.com/guillermomolina/protos

Project community: r/ProtosLang


r/Protos • • 2d ago

HTML without templates: building a structured HTML library entirely in a prototype-based programming language

1 Upvotes

Protos, a prototype-based programming language running on GraalVM, now includes a structured HTML generation library written entirely in Protos itself.

The approach is comparable to Python's Dominate, Haskell's Lucid and Swift HTML libraries: compose HTML using ordinary language constructs rather than a separate template language.

Html: import("std:html")

div: Html.div
h1: Html.h1
p: Html.p

Html.render(
    div(
        h1("Hello, Protos!"),
        p("HTML as ordinary data")
    )
)

The library provides:

  • 58 HTML tag constructors.
  • Reusable components through ordinary closures.
  • Automatic contextual escaping.
  • Deterministic serialization and resource limits.
  • Ordinary structured objects instead of a privileged HTML value type.
  • Zero new production Java code.

All 110 HTML conformance tests pass locally.

The interesting question is how much of a programming language's standard library can be implemented in the language itself without introducing additional runtime primitives.

For developers familiar with Python, Ruby, Haskell or Smalltalk: which approach to programmatic HTML generation do you prefer, and why?

Source: https://github.com/guillermomolina/protos

More language development updates in r/ProtosLang.


r/Protos • • 2d ago

A programming language starts parsing itself: Protos now has a lexer written entirely in Protos

1 Upvotes

Protos, an experimental prototype-based programming language built on GraalVM and Truffle, has reached a new milestone toward self-hosting.

Its new lossless lexer and syntax-highlighting package are implemented entirely in Protos, without adding any production Java code.

The implementation includes:

  • Unicode 17 identifier recognition and NFC validation.
  • Lossless tokenization and exact source reconstruction.
  • Strict and recovering lexical analysis.
  • Independent syntax-highlighting classification.
  • 100,182 successful NFC conformance checks.
  • Differential validation against the existing Java lexer.
  • Successful JVM and Native Image validation.

Unlike languages that pursue self-hosting by replacing their entire compiler infrastructure, Protos is exploring an incremental approach while retaining the GraalVM and Truffle execution backend.

The next milestone is a parser written in Protos.

For developers interested in language implementation, compiler design, GraalVM, Python, Ruby and self-hosting: what bootstrap strategy would you choose for replacing the original frontend?

Source code: https://github.com/guillermomolina/protos

Project community: r/ProtosLang


r/Protos • • 2d ago

How Protos is improving developer feedback without sacrificing test coverage on GraalVM

1 Upvotes

As a programming language grows, its test suite can become a bottleneck for everyday development.

Protos, a programming language built on GraalVM and Truffle, now separates Java Core and Standard Library validation and introduces a dedicated smoke gate.

  • make test-smoke — 40 selected JUnit methods plus the complete Protos Core suite.
  • make test-java-core — complete Java Core validation.
  • make test-java-libs — 65 Standard Library test classes.
  • make test-java — the original complete Java suite.

The approach follows the philosophy of selective testing found in GraalPy, GraalJS and other Truffle-based languages.

No new Java classes, duplicated tests or testing frameworks. Full CI coverage remains unchanged.

How do other programming language projects balance fast developer feedback with comprehensive compiler and runtime validation?

GitHub: https://github.com/guillermomolina/protos

Community: r/ProtosLang


r/Protos • • 4d ago

When a language's test suite becomes the bottleneck: optimizing Protos on GraalVM and Truffle

1 Upvotes

One integration test in Protos was taking more than 555 seconds in CI.

The problem wasn't necessarily GraalVM performance. Much of the cost came from repeated corpus discovery, JVM initialization, Core bootstrap and redundant integration workloads.

The latest Protos changes address these costs without modifying production Java, increasing timeouts or skipping tests.

Some previous CI timings compared with current local results:

  • Repository scope integration: 504.9s vs 48.8s
  • Formatter bootstrap: 80.4s vs 21.5s
  • Logging facility: 67.7s vs 10.1s
  • Regex semantic transfer: 32.1s vs 9.7s

These aren't controlled benchmarks; comparable CI results are still pending.

The interesting part is how much redundant work can be removed while preserving actual integration coverage.

How do other language implementations, particularly GraalPy, GraalJS and other Truffle languages, manage expensive integration suites?

Technical details: https://github.com/guillermomolina/protos/issues/1227

Project: https://www.protoslang.com

More development updates at r/ProtosLang.