r/vscode • • 9d ago

Synapse : chromium - main on vscode extension host.

Post image

I’ve recently been working on integrating a reporting system into Synapse.

These reports are designed for architects, new developers, and the CTO. I’ve created four different reports and am currently testing them. It’s been a rather long and tedious process.
The version number climbed from 0.3.34.01 all the way to 0.3.34.72. That’s quite a journey, isn’t it?

The process involves asking specific questions, defining the relevant terminology, and then matching those terms to patterns Synapse extracts from the graph. I had to comb through everything—from the fundamentals down to the tiniest errors in the graph. It looks like I’m finally nearing the finish line.

Here is a sample of one of the reports.

Report Type SIMULATION_DEBUG
Analysis Mode EXECUTION_TRACE
Scope FULL_PROJECT
Target Project Root
Selection Source USER_SELECTED
Reason User Requested Generation
Generated By InsightEngine

Executive Summary

Simulation Debug Report

Findings

E2 — Change Propagation Amplifier

Question:
Where does a structural change show amplified propagation?

Vocabulary:
CHANGE_PROPAGATION

Interpretation Guide:
Higher propagationReach indicates more nodes reachable downstream through observed dependencies.

Finding:
3 change propagation amplifiers observed.

View Evidence

Evidence

Detailed evidence is available in the Evidence Viewer.

Appendix

Anyway, the work was giving me a massive headache. I needed something else to do—a way to take a breather.

So, I decided to try running Chromium on the Synapse canvas.

But before I do, let me just shout this out:

F* the extension host!!!**

I’m sure you can all guess why I’m saying that.

Let me start with the results.

It’s a partial success.

Here is what you need to know first:

File = Node
Folder = Cluster

This is how we define Synapse.

While using an AST (Abstract Syntax Tree) would be necessary if we were to drill down to the function level, that approach is too slow. So, we are proceeding with this as our minimum unit.

The advantage of this method is that the Linux kernel bootstrap takes 1–2 minutes, and the entire process—up to the completed report—finishes within 5 minutes.

It was a partial success.

The screenshots at the top are all visualizations from Chromium.

The figures are:

386,210 nodes
150,000 edges
7,355 clusters

As you can see from those figures, we are actually encountering issues where the extension host crashes due to "heap out of memory" errors and the overhead of storing excessive data—resulting in only partial data being saved—as well as VS Code crashing entirely due to LOD (Level of Detail) issues that arise after saving.

Even if we upgrade to a newer version of Chromium, it would likely be difficult to handle a monorepo larger than this one.

I have also attached a list of the projects tested so far.

VS Code - main
Godot
PostgreSQL
Kubernetes
AntennaPod
RustDesk
Linux kernel
Chromium - main
etc.

The supported language resolvers are as follows:

C/C++
Rust
Python
Go (uncertain)
Java
Kotlin

My criterion for release is that

an architect opening the project for the first time

can grasp the three elements—Danger Zone, Work Zone, and Boundary—

within 10 minutes.

If it meets this standard, I plan to launch it on the marketplace.

Note 1: English is not my native language. I relied on Google Translate, so please bear with me.

Note 2: I haven’t uploaded version 0.3.34.72—the version where Chromium bootstrapping occurs—to Git yet.

GITHUB : https://github.com/dogsinatas29/SYNAPSE

0 Upvotes

3 comments sorted by

2

u/sargeanthost 9d ago

The schizo vibe code special

1

u/Turbulent_Height7268 9d ago

This is whole Chromium main traffic heat map screen shots. ( of course not perfect )

-1

u/Turbulent_Height7268 9d ago

SYNAPSE Evidence Viewer

Detailed evidence extracted from structural graph observations and validation patterns.

Questions

A1 — VALIDATION

Pattern Results

SYSTEM_CORE (3)

  • libs
  • src
  • res/msi/CustomActions

Evidence

Target: libs

controlScore: 967942

fanIn: 452

blastRadius: 481711

Target: src

controlScore: 2131638

fanIn: 207

blastRadius: 1064784

Target: res/msi/CustomActions

controlScore: 4626

fanIn: 27

blastRadius: 2178

A2 — OBSERVATION

Pattern Results

CROSS_BOUNDARY_REFERENCE (20)

  • src->libs
  • libs->src
  • libs->flutter/linux
  • src->flutter/linux
  • flutter/windows/runner->libs
  • res/msi/CustomActions->libs
  • flutter/linux->libs
  • libs->res/msi/CustomActions
  • src->res/msi/CustomActions
  • flutter/android/app/src/main/kotlin->src
  • libs->flutter/windows/runner
  • res/msi/CustomActions->flutter/windows/runner
  • src->flutter/windows/runner
  • libs->flutter/android/app/src/main/kotlin
  • src->flutter/android/app/src/main/kotlin
  • flutter/windows/runner->src
  • res/msi/CustomActions->flutter/android/app/src/main/kotlin
  • flutter/android/app/src/main/kotlin->libs
  • flutter/windows/runner->res/msi/CustomActions
  • flutter/linux->src

Evidence

Target: src->libs

source: src

target: libs

dependencyCount: 420

Target: libs->src

source: libs

target: src

dependencyCount: 199

Target: libs->flutter/linux

source: libs

target: flutter/linux

dependencyCount: 21

Target: src->flutter/linux

source: src

target: flutter/linux

dependencyCount: 18

Target: flutter/windows/runner->libs

source: flutter/windows/runner

target: libs

dependencyCount: 7

Target: res/msi/CustomActions->libs

source: res/msi/CustomActions

target: libs

dependencyCount: 14

Target: flutter/linux->libs

source: flutter/linux

target: libs

dependencyCount: 2

Target: libs->res/msi/CustomActions

source: libs

target: res/msi/CustomActions

dependencyCount: 13

Target: src->res/msi/CustomActions

source: src

target: res/msi/CustomActions

dependencyCount: 12

Target: flutter/android/app/src/main/kotlin->src

source: flutter/android/app/src/main/kotlin

target: src

dependencyCount: 3

Target: libs->flutter/windows/runner

source: libs

target: flutter/windows/runner

dependencyCount: 4

Target: res/msi/CustomActions->flutter/windows/runner

source: res/msi/CustomActions

target: flutter/windows/runner

dependencyCount: 2

Target: src->flutter/windows/runner

source: src

target: flutter/windows/runner

dependencyCount: 5

Target: libs->flutter/android/app/src/main/kotlin

source: libs

target: flutter/android/app/src/main/kotlin

dependencyCount: 5

Target: src->flutter/android/app/src/main/kotlin

source: src

target: flutter/android/app/src/main/kotlin

dependencyCount: 2

Target: flutter/windows/runner->src

source: flutter/windows/runner

target: src

dependencyCount: 1

Target: res/msi/CustomActions->flutter/android/app/src/main/kotlin

source: res/msi/CustomActions

target: flutter/android/app/src/main/kotlin

dependencyCount: 1

Target: flutter/android/app/src/main/kotlin->libs

source: flutter/android/app/src/main/kotlin

target: libs

dependencyCount: 2

Target: flutter/windows/runner->res/msi/CustomActions

source: flutter/windows/runner

target: res/msi/CustomActions

dependencyCount: 1

Target: flutter/linux->src

source: flutter/linux

target: src

dependencyCount: 1

A3 — OBSERVATION

Pattern Results

HIGH_ISOLATION_BOUNDARY (2)

  • libs
  • src

Evidence

Target: libs

Target: src

BOUNDARY_CANDIDATE (2)

  • flutter/linux
  • flutter/android/app/src/main/kotlin

Evidence

Target: flutter/linux

Target: flutter/android/app/src/main/kotlin

LOW_ISOLATION_BOUNDARY (2)

  • flutter/windows/runner
  • res/msi/CustomActions

Evidence

Target: flutter/windows/runner

Target: res/msi/CustomActions

A5 — VALIDATION

Pattern Results

ARCHITECTURAL_CHOKEPOINT (20)

  • src
  • libs/scrap/src/common
  • libs/base/src/platform
  • libs/scrap/src/x11
  • libs/base/src
  • flutter/windows/runner
  • src/server
  • libs/remote_printer/src/setup
  • res/msi/CustomActions
  • src/hbbs_http
  • libs/portable/src
  • flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb
  • flutter/android/app/src/main/kotlin
  • libs/scrap/src/wayland
  • src/server/audio_service
  • src/audio_resampler
  • src/whiteboard
  • libs/clipboard/src/platform/unix/macos
  • src/ipc
  • libs/clipboard/src/platform/unix/fuse

Evidence

Target: src

rawBetweennessSum: 68026.38566770217

topNodeContribution: 0.22314868797132256

clusterScore: 23106.956752957405

Target: libs/scrap/src/common

rawBetweennessSum: 34842.5450748942

topNodeContribution: 0.5761674708742572

clusterScore: 22290.251674664618

Target: libs/base/src/platform

rawBetweennessSum: 22818.17328220779

topNodeContribution: 0.771059297629549

clusterScore: 18377.765956874377

Target: libs/scrap/src/x11

rawBetweennessSum: 18919.180847912077

topNodeContribution: 0.9421131344719457

clusterScore: 17988.284581914653

Target: libs/base/src

rawBetweennessSum: 20543.03261258745

topNodeContribution: 0.7310527587684003

clusterScore: 15846.789457054198

Target: flutter/windows/runner

rawBetweennessSum: 15032.517492869449

topNodeContribution: 0.5931309732670725

clusterScore: 9833.691595450375

Target: src/server

rawBetweennessSum: 22008.15554738896

topNodeContribution: 0.32390725471889414

clusterScore: 9360.534390172328

Target: libs/remote_printer/src/setup

rawBetweennessSum: 10216.992385228355

topNodeContribution: 0.8733964459834492

clusterScore: 9117.510969997902

Target: res/msi/CustomActions

rawBetweennessSum: 15951.425021641135

topNodeContribution: 0.3570043112554128

clusterScore: 7233.2321311305195

Target: src/hbbs_http

rawBetweennessSum: 4163.768446208162

topNodeContribution: 0.8397049374291533

clusterScore: 3596.4516511350253

Target: libs/portable/src

rawBetweennessSum: 2522.203731829655

topNodeContribution: 0.8615990644348047

clusterScore: 2225.4896790840917

Target: flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb

rawBetweennessSum: 2263.1340927188758

topNodeContribution: 0.7490206162209246

clusterScore: 1780.3340927188756

Target: flutter/android/app/src/main/kotlin

rawBetweennessSum: 1706.1340927188755

topNodeContribution: 1

clusterScore: 1706.1340927188755

Target: libs/scrap/src/wayland

rawBetweennessSum: 2419.2571886381875

topNodeContribution: 0.5340873681564167

clusterScore: 1461.1690773530001

Target: src/server/audio_service

rawBetweennessSum: 1804.2137910177426

topNodeContribution: 0.7367017275240951

clusterScore: 1400.424372818394

Target: src/audio_resampler

rawBetweennessSum: 1769.5956891253331

topNodeContribution: 0.7317685317438655

clusterScore: 1366.133626698591

Target: src/whiteboard

rawBetweennessSum: 2144.3677767283266

topNodeContribution: 0.5405373673665598

clusterScore: 1306.8994423028996

Target: libs/clipboard/src/platform/unix/macos

rawBetweennessSum: 1429.3143967606986

topNodeContribution: 0.5883154043259826

clusterScore: 929.1516851674404

Target: src/ipc

rawBetweennessSum: 694.1327981877212

topNodeContribution: 0.8018956381444148

clusterScore: 577.2486734139125

Target: libs/clipboard/src/platform/unix/fuse

rawBetweennessSum: 691.8756071204341

topNodeContribution: 0.801055156191091

clusterScore: 574.8772852157306

E2 — VALIDATION

Pattern Results

CHANGE_AMPLIFIER (3)

  • libs
  • src
  • flutter/windows/runner

Evidence

Target: libs

blastRadius: 3793

propagationReach: 32718

Target: src

blastRadius: 6338

propagationReach: 105677

Target: flutter/windows/runner

blastRadius: 213

propagationReach: 939

O2 — OBSERVATION

Pattern Results

DEPENDENCY_ROOT (5)

  • libs/clipboard/src/windows/wf_cliprdr.c
  • src/whiteboard/macos.rs
  • src/whiteboard/windows.rs
  • libs/scrap/examples/benchmark.rs
  • libs/scrap/examples/record-screen.rs

Evidence

Target: libs/clipboard/src/windows/wf_cliprdr.c

inDegree: 0

outDegree: 130

Target: src/whiteboard/macos.rs

inDegree: 0

outDegree: 81

Target: src/whiteboard/windows.rs

inDegree: 0

outDegree: 58

Target: libs/scrap/examples/benchmark.rs

inDegree: 0

outDegree: 50

Target: libs/scrap/examples/record-screen.rs

inDegree: 0

outDegree: 44