This document discusses writing PHP extensions in Go using cgo. It explains how to build a Go package as a shared library, export functions so they can be called from C, and register the extension in PHP. Some constraints of calling C from Go like lack of function-like macros and union member access are also noted. The document provides code examples and links to a sample GitHub project for building a PHP extension in Go. It raises that segmentation faults may occasionally occur during PHP shutdown, which could indicate an issue in the Go runtime.
This document discusses writing PHP extensions in Go using cgo. It explains how to build a Go package as a shared library, export functions so they can be called from C, and register the extension in PHP. Some constraints of calling C from Go like lack of function-like macros and union member access are also noted. The document provides code examples and links to a sample GitHub project for building a PHP extension in Go. It raises that segmentation faults may occasionally occur during PHP shutdown, which could indicate an issue in the Go runtime.
The document discusses upcoming changes and improvements to the PHP programming language. Some new features will include better support for scalar type declarations, union types, and return type covariance and contravariance. These changes aim to make PHP code more readable, reusable, and reduce potential bugs by catching type errors.
This document discusses PHP file includes and requires and how the PHP opcode cache handles them. It covers how PHP resolves include paths, checks if a file has already been included, and validates file timestamps when revalidating paths. It also discusses using the opcode cache status to view cache metrics and how to invalidate files from the cache.
This document summarizes a presentation about MySQL and PHP. It discusses the mysqlnd extension in PHP and how it differs from using the libmysql client library. Key points include that mysqlnd is bundled with PHP by default now, has some additional features like asynchronous queries, but is still less mature than libmysql. The document also demonstrates how mysqlnd and libmysql return different data types from MySQL queries and how this impacts memory usage when fetching result sets.
This document appears to be notes from a talk given at the Tokyo Ruby Kaigi 10 conference on January 25, 2013. The speaker, do_aki, discusses various text editors for programming like vim and emacs. They note that Excel is not actually an editor but an image viewer, and provide a demo. The talk briefly mentions Ruby and PHP.
asm.js x emscripten: The foundation of the next level Web gamesNoritada Shimizu
?
Game requires high performance to its run times. asm.js brings Web browsers high performance JavaScript processing and allows us to build heavy games on the top of Web browsers. In this talk, we can see 1 )the background of asm.js 2) asm.js details and 3) overview of emscripten, a compiler which emits asm.js formatted JavaScript code from C/C++.
asm.js の詳細と emscripten の簡単な使い方について解説します。
I'm learning elasticsearch now.
This slide is old, new version is here. -> http://blog.johtani.info/blog/2013/08/30/hold-first-elasticsearch-meetup-in-japan/
This document discusses N:1 replication, which allows multiple master databases to replicate to a single slave database. It describes how N:1 replication works and some limitations, like inability to keep up with schema changes or restarting easily. The document then introduces MHA (Master High Availability), a tool that can automate failover between masters. While N:1 replication and MHA have similar mechanisms for switching masters, N:1 replication requires specifying the exact binlog position, so it does not support automatic failover when a master completely fails like MHA can.
This document discusses randomization functions in PHP like shuffle() and str_shuffle(). It examines how the implementations have changed over time in PHP versions. Specifically, it finds that earlier versions of shuffle() and str_shuffle() did not produce truly random results due to issues with the random number generation. The current implementations in recent PHP versions do properly randomize the values, but the document proposes reimplementing shuffle() to use mt_rand() for improved consistency across environments.
This document discusses PHP and Ruby extensions that allow running Ruby scripts within PHP and PHP scripts within Ruby. It introduces php-extension ruby, which enables running Ruby code from PHP, and php_embed gem, which enables running PHP code from Ruby. It provides sample code for using these extensions and discusses challenges in implementing web applications that utilize both languages.