0%

厭倦了時序資料庫?讓我們聊聊如何為數據建立一個「時間宇宙」

我們身處一個數據以秒、毫秒甚至奈秒為單位不斷產生的時代。從物聯網感測器到金融市場的每一次脈動,我們試圖用資料庫捕捉這個世界的節奏

InfluxDB 讓我們用標籤(tags)和欄位(fields)來度量世界

TimescaleDB 則巧妙地將時間維度嫁接到關聯式數據的巨人——PostgreSQL 的肩膀上

它們都非常出色,但在某些時刻,您是否也曾感到一絲侷限?

當我們不僅想記錄「指標」,還想捕捉指標背後的整個系統狀態時;當我們不僅想追溯「時間」,還想探尋數據之間的因果鏈時

當我們希望數據不僅是唯讀的紀錄,而是能像 Git 一樣開枝散葉、進行版本控制時……我們需要的,可能不再是另一個時序資料庫 (Time-Series Database),而是一個全新的思維典範

今天,我想與您分享一個名為「TimeSpace DB」的專案構想

這不僅是一個資料庫,更是一個用來建模、追溯、甚至模擬複雜世界的引擎

閱讀全文 »

Edge Computing System Under Wafer Manufacture Network

In the semiconductor manufacturing industry, the design and implementation of edge computing systems is critical

Since most modern systems are based on public clouds, the challenges and designs faced in a semiconductor manufacturing network built in an environment will be different

This article intends to discuss how we can design a ground-side edge computing system for environmental construction

邊緣計算系統在半導體製造網絡中的設計

在半導體製造業中,邊緣計算系統的設計和實施是至關重要的

相較於現代大多數基於公有雲的系統,在一個環境受限的半導體製造網絡中,所受到的挑戰與設計將截然不同

本文打算探討,我們可能如何能設計一套運用在環境受限的地端邊緣計算系統

閱讀全文 »

Preface: Is the way we record time no longer keeping up with the times?

As the Internet of Things (IoT), Digital Twins, and AI are sweeping across the world, we are generating massive amounts of time-series data every day. From sensor data in smart factories to environmental perception in autonomous driving, our recording of time has reached unprecedented accuracy.

However, I often feel a sense of dissatisfaction.

閱讀全文 »

Realm、ProcessObject、ChildProcess、MessageChannel 與 WorkerThread

Node.js 作為一個基於 Chrome V8 JavaScript 引擎的執行環境,其強大的異步處理能力、並行機制以及系統交互功能,離不開一系列精心設計的核心組件。

對於已經深入 Node.js 原始碼的開發者而言,理解這些組件——特別是 Realm::RunBootstrapping 的啟動角色、全域 ProcessObject 的橋接作用、ChildProcess 的隔離執行模型(及其與 Realm、Process 和 V8 快照的關聯)、MessageChannel 的通信機制以及 WorkerThread 的並行實現——之間精確的相互關係與運作方式至關重要。

本文旨在深入剖析這些關鍵組件,闡明它們在 Node.js 執行環境中的具體職責、初始化流程、與 V8 核心概念(如 Isolate、Context、Realm 和 Snapshot)的內在聯繫,以及它們之間進行通信和交互的底層機制。

鑑於使用者對原始碼層面的關注,本分析將著重於這些組件的內部實現原理,力求清晰地展現 JavaScript 可見行為(例如 process.env 或 child_process.fork())與其 C++ 及 V8 底層實現之間的緊密聯繫。

這些組件共同構成了 Node.js 高效能與高並行特性的基石,理解它們的協同工作模式,是掌握 Node.js 核心架構的關鍵。

閱讀全文 »

簡介 Intro

來介紹一下如何使用Electron開發框架,並且結合TypeScript與Angular設定

並且最終使用Electron-Forge打包成桌面應用程式。

  1. Type-Safe IPC: Eliminates runtime errors by enforcing a strict contract for IPC channels, payloads, and return types between the main process and renderer processes.
  2. Simplified Utility Process Management: Provides a straightforward wrapper for creating, communicating with, and managing Electron’s utilityProcess.
  3. Angular-Friendly Service: Includes an example of an injectable Angular service (IPCRendererService) that wraps IPC calls in an RxJS-friendly way.
閱讀全文 »

前言

相信很多開發者都有過需要撰寫文件的需求

而使用 JSDoc , Swagger , YUIDoc….等自動化生產API文件的場景肯定屢見不顯

今天則是想簡單紀錄一下,在2021台北工業自動化展覽後,由於公司需求,需要產出API Document。

使用的正式JSDoc ,但長年被JavaScript養壞的語法, 以及雜亂的結構導致文件撰寫困難的血淚史…

閱讀全文 »

簡介 Intro

相信在這個年代(2021)大多數的後端開發者對於分散式系統開發及加速都有不少心得

其中非常知名的快取應用,就包含了Memory Storage類型的NoSQL,比如RedisMemcached

今天寫的文章主要介紹在GCP上開發分散式系統,Redis的簡單應用

閱讀全文 »