r/AIprogrammingLanguage • • 1d ago

Protos 0.4.192: Native FFM, persistent SQLite, and a leaner Truffle runtime

I've released Protos v0.4.192, an experimental, class-free, prototype-based programming language built on Truffle/GraalVM. Protos uses objects, delegation, messages, closures, Futures, and Actors rather than a class hierarchy.

Since the previous public release (v0.4.158), the main changes are:

Native FFM: The standalone Linux executable now includes the generic foreign-function provider. A host can explicitly authorize an OS-supplied C library (for example, --allow-library sqlite3=libsqlite3.so.0), which is loaded lazily. No JDK or separate provider JAR is needed for this Native build.

Persistent SQLite: std:sqlite now supports file-backed databases, read-only/read-write modes, explicit transactions, rollback, busy timeouts, and recovery/WAL examples.

External processes: An opt-in --allow-execution capability adds direct child-process launching, bounded byte streams, and explicit lifecycle management, without implicitly invoking a shell.

Bytecode DSL work: Further specialization of calls, closures, lexical bindings, Arrays, control flow, and Range iteration, while retaining ordinary message dispatch when specialization is not valid.

Language and tooling: New String.each, Vector.each, and Matrix.each traversal, more useful F12 definition navigation, an explicit Resolver permission, and a reorganized programming guide.

An important distinction: native libraries run as trusted in-process code, not sandboxed guest code. The Native FFM path currently admits a finite set of C signatures; Linux x86-64/glibc is the published Native target. Native child-process execution is not yet verified as a supported capability.

Protos remains an experimental prerelease, with Core specification revision 0.1.507.

Release and downloads:
https://github.com/guillermomolina/protos/releases/tag/v0.4.192

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

4 Upvotes

0 comments sorted by