
Data engineering consultant. I help teams build a strong data engineering culture and data they can trust. Creator of Flow PHP. Free 30-min call: https://www.nitter.cf/t.co/yOQ142k7RQ
Internet
Joined July 2012
- Tweets3K
- Following661
- Followers1.1K
- Likes2.1K
Sorting a CSV file in PHP with memory_limit 128M: a million rows, 62Mb. fgetcsv and usort need 624Mb and end with a fatal error.
Flow sorts the same file in 98Mb. It keeps in memory what the limit allows and moves the rest to disk.
Read a large CSV file in PHP without running out of memory: flow-php.com/guides/read-lar…
2
154
Have you ever heard of Parquet?
It’s a columnar, binary, self-descriptive (with schema) data format with built-in efficient encoding and compression.
No worries, our latest guide shows how in a few quick steps to read and write a Parquet file in #PHP
flow-php.com/guides/read-and…
We need your help with a decision.
Flow PHP is dropping PHP 8.3, and we are not sure if the next minimum should be 8.4 or 8.5.
What would work for you?
github.com/flow-php/flow/dis…
#PHP
2
368
I closed PR's in Flow #PHP, from now only contributors can open pull requests.
Why? Not because Flow is bombarded with PR's (it's not). It's because Flow is complicated, 55 packages in total, I don't want anyone to waste hours of work to find out that it can't be merged
👇
github.com/flow-php/flow/dis… - more details here
1
159
Since when we have a higher programming abstraction? "claude build me hello world app" is not a higher abstraction, its at best automated copy paste, that might or might not be correct.
using --make-no-mistakes flag, doesnt make it better
1
133
I started writing guides about how to use Flow in certain data processing / moving scenarios
flow-php.com/guides/
benchmarks.flow-php.com/ I have run Flow PHP benchmarks over night on Vanilla PHP.
It's still really cheap from memory perspective, but timing is huh, not the best.
I will get optimized, eventually
Flow #PHP 0.48.0 is out.
- Pulse Protocol, a heartbeat for long running pipelines
- PHP 8.5 pipe operator support
- Parquet engine in flow_php, no arrow needed
- memory budgets per operation
10 GB of CSV to JSON in 10 s and 0.5 GiB of memory.
benchmarks.flow-php.com
Long running processes might die or get killed, one of the ways to monitor them is through heartbeats. Flow #PHP in next release will let you define frequency and hook into heartbeats.
That progression UI is a component built on top of Flow Pulse protocol
Flow #PHP now supports pipe operator!
You can even play with it in our web playground:
flow-php.com/playground/?sni…
4
171
What do you think about Flow #PHP pipelines in piped operator style?
1
179
benchmarks.flow-php.com/ - first results of @flowphp benchmarks against DuckDb 2.0 / Spark 4.0 / Polars 2.1
PHP is not the most spectacular, but it's not far behind other and in some places even beats them 💪
How about we first figure out the economy around token generators before we assassinate software development foundations?
At this moment, the situation resembles repairing the aircraft while it is airborne.
If you're a developer, pay attention to what Sam says below. 👇
Coding agents are changing local and global maxima.
In the extreme, frameworks & paradigms that were 'bad' before because 'boilerplate' / 'unfamiliar' can now dominate completely.
Unlearn what you have learned.
130
whats being removed is inefficient data format 😅 Just simply converting csv to parquet will give you that.
And if you by any chance work with #php you should check @flowphp which can convert 80mlns csv rows with schema inference into parquet in few seconds 😏










