Giter VIP home page Giter VIP logo

btrdb's Introduction

Deming "Yuuza" Li 🦊

Implementing applications / services / libraries in Web languages (HTML, CSS, JavaScript/TypeScript), C# and Python.
Using Windows, Arch Linux and Debian-based Linux distributions.

Previously worked at ByteDance as an intern, making Web infra stuff.

Current Projects

Type Project Description
🎧Just for fun
(TS/C#)
MusicCloud (client, server) Music website built with webfx and ASP.NET Core
🔨Maintaining
(TS/Deno)
denodrivers/mysql MySQL driver for Deno
🚀Contributing
(JS/Node)
key-networks/ztncui Web UI for self-hosted ZeroTier controller
🧪Experimental
(TS/Deno/Node)
btrdb CoW & B+ tree database engine inspired by btrfs
🧪Experimental
(TS)
webfx Web UI framework with some utilities

Smaller experimental projects:

  • SharpRPN - (C#) Simple interpreter of an RPN programming language
  • mailservice - (C#) Self-hosted API service for sending email using SMTP
  • secure-pipe - (TS/Deno) Simple service to pipe text/binary streams over the Internet
More Useless Info

"Yuuza"

When he was asked to name the first user at Windows OOBE:

"User" (English)

-> "ユーザ" (Japanese katakana for "user")

-> "Yuuza" (Romanized)

The information here is provided by Deming himself, written by Yuuza.
Devices

Main/Power Desktop

Type Model / Spec
CPU AMD Ryzen 7 5800 (8c16t @ ~4.4 GHz)
RAM 32 GiB DDR4
SSD 2 TB
HDD 4 TB
GPU GeForce RTX 4070 (12 GiB VRAM)
Mouse Logitech G304
Keyboard NiZ X87EC (Thank VisualDust)

Main Mobile Laptop (ThinkPad T480)

Type Model / Spec
CPU Intel i5 8350U (4c8t @ ~3.3 GHz)
RAM 8 GiB
SSD 1 TB (VisualDust DIY)

Old Gaming Laptop (CLEVO)

Type Model / Spec
CPU Intel i5 8th Gen (6c6t @ ~3.8 GHz)
RAM 16 GiB DDR4
SSD 256 GB
HDD 2 TB (WD Blue, SMR, with tiered storage)
GPU GeForce GTX 1050 Ti (4 GiB VRAM)

Old Mobile Laptop (ThinkPad X230)

Type Model / Spec
CPU Intel i5 3th Gen (2c4t @ ~3.0 GHz)
RAM 12 GiB DDR3
SSD 256 GB
HDD 1 TB (Seagate, SMR, with lvmcache)

Latest update: 2024-05-27T02:44:13.950Z (by GitHub Actions).

btrdb's People

Contributors

lideming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

btrdb's Issues

byte length error when Deno upgraded to v1.31.2

Hi, for a while i'm using btrdb databeses for simple data storage in Deno. After i upgrade Deno it's last version, and try to creating table and upsert some initial datas in it I encountered this error message:

error: Uncaught Error: Expect 16 == 19 throw new Error("Expect " + r.written + " == " + len); ^ at writeValue (https://deno.land/x/[email protected]/src/utils/binval.ts:75:13) at writeValue (https://deno.land/x/[email protected]/src/utils/binval.ts:107:9) at DocumentValue.writeTo (https://deno.land/x/[email protected]/src/utils/value.ts:141:5) at InFileStorage.addData (https://deno.land/x/[email protected]/src/pages/storage.ts:325:11) at async DbDocSet._set (https://deno.land/x/[email protected]/src/database/DbDocSet.ts:150:13) at async DbDocSet.upsert (https://deno.land/x/[email protected]/src/database/DbDocSet.ts:114:5)

Here is an example code how i offently upsert data usage:

const exampleWriteCode = async (dbpath, data) => {
  const db = new Database();
  await db.openFile(dbpath);
  const tbl = await db.createSet("tbl", "doc");
  await db.commit();

  for (let i = 0; i < data.length; i++) {
    const d = data[i];
    await tbl.upsert({ ...d });
  }

  await db.forceCommit();
};

After i encountered this error, downgraded deno to 1.31.1 fix this issue. This error produced v1.31.2 or later.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.