~/articles

Articles

Explore Marat Mamyashev's blog for expert articles on programming, software development, and DevOps. Dive into practical guides on JavaScript, C++, mobile app development, neural networks, and more to enhance your tech skills.

Benchmarking llama.cpp and MLX with Qwen 3.8 27B on a 24 GB MacBook Pro

I tested how fast llama.cpp and MLX run Qwen 3.8 27B on a 24 GB MacBook Pro. MLX generated about 10% more tokens per second at both prompt lengths. On the roughly 3,100-token prompt, it started streaming about two seconds earlier and finished about four seconds earlier. The first MLX run froze the Mac. I recorded these timings on a later run with memory limits.

Automate X Posts with Playwright and Node.js

This repository ships a single script, tweet.js, that opens X (Twitter) in Playwright, logs in automatically (or with your help), and publishes a post. It can run headless for fully automated flows or visible for the first manual login. Auth state is persisted to twitter-auth.json so you do not have to sign in on every run.

Python Script for Extracting K-Line Candles Data from Binance: Enhancing Crypto Market Analysis

This Python script is designed for extracting K-line (candlestick) data from the Binance cryptocurrency exchange. It retrieves data for specified timeframes within a given date range, for a particular trading pair (e.g., BTC/USDT). The script utilizes the requests library to interact with the Binance API, handles pagination to fetch all available data, and includes a delay to avoid exceeding API rate limits. The retrieved data is saved into CSV files, each corresponding to a specific timeframe. This tool is especially useful for traders and analysts needing historical data for market analysis or strategy development.

The Issue with the Scope of Variable for lambdas in Structured Binding Declarations

This article delves into the issue of capturing structured bindings in C++ lambdas, discussing the scope and limitations of variables declared using structured bindings. It highlights the inability to capture structured bindings by reference in lambdas and offers a solution by utilizing individual auto variables. By following the suggested approach, developers can effectively work with structured bindings in lambdas, overcoming the limitations of the language feature.

Converting TensorFlow.js Models to ONNX with Python

The provided text describes a Python script used to convert TensorFlow.js models into ONNX format, facilitating interoperability between different machine learning frameworks. The script uses the Python libraries tf2onnx and tensorflowjs. tf2onnx is used to convert TensorFlow models into ONNX format, while tensorflowjs is used to load TensorFlow models. The script also handles model directory management, serialization, and storing of the converted ONNX models.