Top Tweets for #typephp
โ๏ธ #TypePHP by #Swoole is an ahead-of-time compiler that turns #PHP source into C++17 and then native machine code. No interpreter, no OPcache, no JIT warm-up #opensource #compiler
๐ The compiler is written entirely in PHP and fully self-hosting: the tpc binary is built by compiling its own PHP source with TypePHP
๐ฆ Three build modes from one codebase: a standalone native executable (bin), a loadable PHP extension (ext) or a shared library with generated .stub.php (lib)
๐ Targets Linux, macOS and Windows on x64 and ARM64, plus #WebAssembly via WASI 0.2 and browser output
๐ข With "use native_types", int, float and bool map to C++ int64_t, double and bool. Strongly-typed std::vector, std::map and std::ordered_map containers run up to 10ร faster than PHP arrays
๐งฎ High-precision numerics built in: bigInt (GMP), decimal (libmpdec) and bigFloat (MPFR) with typed operators and method APIs
๐งฉ Universal methods on primitives like $s->upper() or $arr->contains() resolve at compile time into direct C++ calls. Performance-critical kernels can be written in #cpp and called from PHP via stub files
๐ท๏ธ Compile-time code generation via attributes: #[Getter], #[Setter], #[With], #[Constructor], #[Printer] and #[Arrayable]. #[Immutable] and #[ArrayDef] add compile-time contracts with zero runtime cost
๐ php-src benchmarks at -O3: bench.php drops from 5.03 s to 0.60 s (~8ร), micro_bench.php from 13.05 s to 2.02 s (~6.5ร)
โ ๏ธ Supports PHP 8.4โ8.5 including property hooks and asymmetric visibility. It intentionally compiles a defined subset of PHP, so highly dynamic code may need changes. GPL-3.0 licensed
๐ https://t.co/bZtyPF0PaJ
![michabbb's tweet photo. โ๏ธ #TypePHP by #Swoole is an ahead-of-time compiler that turns #PHP source into C++17 and then native machine code. No interpreter, no OPcache, no JIT warm-up #opensource #compiler
๐ The compiler is written entirely in PHP and fully self-hosting: the tpc binary is built by compiling its own PHP source with TypePHP
๐ฆ Three build modes from one codebase: a standalone native executable (bin), a loadable PHP extension (ext) or a shared library with generated .stub.php (lib)
๐ Targets Linux, macOS and Windows on x64 and ARM64, plus #WebAssembly via WASI 0.2 and browser output
๐ข With "use native_types", int, float and bool map to C++ int64_t, double and bool. Strongly-typed std::vector, std::map and std::ordered_map containers run up to 10ร faster than PHP arrays
๐งฎ High-precision numerics built in: bigInt (GMP), decimal (libmpdec) and bigFloat (MPFR) with typed operators and method APIs
๐งฉ Universal methods on primitives like $s->upper() or $arr->contains() resolve at compile time into direct C++ calls. Performance-critical kernels can be written in #cpp and called from PHP via stub files
๐ท๏ธ Compile-time code generation via attributes: #[Getter], #[Setter], #[With], #[Constructor], #[Printer] and #[Arrayable]. #[Immutable] and #[ArrayDef] add compile-time contracts with zero runtime cost
๐ php-src benchmarks at -O3: bench.php drops from 5.03 s to 0.60 s (~8ร), micro_bench.php from 13.05 s to 2.02 s (~6.5ร)
โ ๏ธ Supports PHP 8.4โ8.5 including property hooks and asymmetric visibility. It intentionally compiles a defined subset of PHP, so highly dynamic code may need changes. GPL-3.0 licensed
๐ https://t.co/bZtyPF0PaJ](https://pbs.twimg.com/media/HSTU7_Xa0AAfdpQ.jpg)
Meet TypePHP, an open-source native AOT (Ahead-of-Time) compiler created by the Swoole team that translates your PHP source code into pure C++ before compiling it into machine binaries.
#PHP #TypePHP #Swoole #WebDevelopment #Programming #DevOps #Compiler

Last Seen Hashtags on Sotwe
brosis filter:videos
Seen from France
prank brondong ngocok
Seen from Indonesia
intellectualterriost
Seen from United States
codeii
Seen from Venezuela
trustedvirtualassistant
Seen from Turkey
LETSTAlKREPARATIONS
Seen from United States
anxiouspanda(******)***** filter:native_video
Seen from Japan
somno(***)*** filter:videos
Seen from United States
desi threesome
Seen from Singapore
edit #porn
Seen from Norway
Most Popular Users

Elon Musk 
@elonmusk
241.6M followers

Barack Obama 
@barackobama
119M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.8M followers

Narendra Modi 
@narendramodi
107.2M followers

Rihanna 
@rihanna
98.7M followers

NASA 
@nasa
92.4M followers

Justin Bieber 
@justinbieber
91.8M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.8M followers

Lady Gaga 
@ladygaga
75.3M followers

Virat Kohli 
@imvkohli
73.2M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.8M followers

Neymar Jr 
@neymarjr
66.2M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.3M followers

CNN 
@cnn
61.8M followers

X 
@x
60.7M followers


