Skip to content

Instantly share code, notes, and snippets.

View Xuanwo's full-sized avatar
🔥
RBIR: Rewrite Bigdata In Rust

Xuanwo Xuanwo

🔥
RBIR: Rewrite Bigdata In Rust
View GitHub Profile
@Xuanwo
Xuanwo / gist:164d54b5430b9f105742f6575028d541
Last active December 7, 2025 16:29
Follow the pattern used by OpenDAL

You are modernizing a Rust core library with a Python binding.

Goal

Use OpenDAL (cloned at /path/to/opendal) as a high-quality reference for project structure and Rust↔Python bridging. However, our repository already uses several toolchains; you must evaluate the current setup first, THEN decide which OpenDAL practices should be adopted or not. We only need Python bindings—ignore other languages.

Your responsibilities

  1. Scan the current repository:
    • Identify existing Rust toolchains (cargo config, clippy, fmt, build workflow).
  • Identify existing Python toolchains (pyproject layout, test/lint tools, maturin/pyo3 setup).
@Xuanwo
Xuanwo / Dockerfile
Created June 26, 2025 03:14
xuanwo's dev container
FROM archlinux:latest
# Update system and install base dependencies
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm \
base-devel \
git \
curl \
wget \
vim \
@Xuanwo
Xuanwo / README.md
Last active October 14, 2025 03:56
他现在运行的是linux我想在上面安装windows.txt
@Xuanwo
Xuanwo / docker-compose.yml
Created February 8, 2025 16:08
docker compose for hive 4 on hdfs with postgres as external metastore
version: '3.8'
services:
namenode:
image: bde2020/hadoop-namenode:2.0.0-hadoop3.2.1-java8
container_name: namenode
hostname: namenode.local
environment:
- CLUSTER_NAME=hive-cluster
error: taken reference of right operand
--> src/actions.rs:66:53
|
66 | prev_pushed_box_position = Some(player_position + &action.direction().into());
| ^^^^^^^^^^^^^^^^^^--------------------------
| |
| help: use the right value directly: `action.direction().into()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `-D clippy::op-ref` implied by `-D warnings`
error: digits grouped inconsistently by underscores
--> src/solver/state.rs:74:51
|
74 | instance.movements.move_count() * 10000_0000
| ^^^^^^^^^^ help: consider: `100_000_000`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping
= note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::inconsistent_digit_grouping)]`
@Xuanwo
Xuanwo / Highlight
Last active February 1, 2023 07:22
Readwise Logseq Output
> {{ highlight_text }}
date:: [[{{highlight_date}}]] \
{% if highlight_location_url %}location:: {{highlight_location_url}}{% elif highlight_location %}location:: {{highlight_location}}{% endif %} \
{% if highlight_note %}
{{ highlight_note }}
{% endif %}
---
➜ tidb archlinuxcn-x86_64-build
:: Synchronizing package databases...
archlinuxcn is up to date
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
there is nothing to do
==> Building in chroot for [archlinuxcn] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/archlinuxcn-x86_64/root] -> [xuanwo]...done
@Xuanwo
Xuanwo / closure.s
Last active March 28, 2019 06:46
Recover logic
"".main STEXT size=112 args=0x0 locals=0x18
0x0000 00000 (main.go:3) TEXT "".main(SB), ABIInternal, $24-0
0x0000 00000 (main.go:3) MOVQ (TLS), CX
0x0009 00009 (main.go:3) CMPQ SP, 16(CX)
0x000d 00013 (main.go:3) JLS 105
0x000f 00015 (main.go:3) SUBQ $24, SP
0x0013 00019 (main.go:3) MOVQ BP, 16(SP)
0x0018 00024 (main.go:3) LEAQ 16(SP), BP
0x001d 00029 (main.go:3) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x001d 00029 (main.go:3) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
:) diff `which phpstorm` `which goland`
4c4
< # PhpStorm startup script.
---
> # GoLand startup script.
10c10
< TITLE="Cannot start PhpStorm"
---
> TITLE="Cannot start GoLand"
60c60