neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기FoundationDB Ecosystem for Go.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Go port of Apple's FoundationDB Record Layer. Wire-compatible with Java Record Layer 4.12.11.0 — Go and Java applications can read and write the same data on a shared FDB cluster. Pre-1.0. Not yet declared production-ready — pin a commit and run the suites below before relying on it. Maturity varies by layer: Before production use: pin a commit, run the conformance + differential + stress suites against your workload, and review PRODUCTION_READINESS.md / TODO-production.md for the current gap list. Report issues per SECURITY.md. For running it — connecting, trans [README 설치·사용 부분 발췌] UsageREADME 전문 보기 ↗
A native FoundationDB client, a testcontainer, the Record Layer and an embedded SQL engine for Go, without cgo. Requires a FoundationDB 7.3 cluster.
go get fdb.dev@master
Or run the examples from a clone, against a disposable cluster in Docker.
Install the frl CLI:
curl -fsSL https://fdb.dev/install.sh | sh
Then:
export FDB_CLUSTER_FILE=$(frl fdb up)
go run ./example/sql
go run ./example
frl fdb down removes the cluster.
Pre-1.0; expect API changes. Status and known gaps. Independent project, not affiliated with Apple or the FoundationDB project.
fdb.dev/pkg/fdbgo/fdb implements FoundationDB's 7.3 client
protocol without cgo or libfdb_c, with an API modeled on Apple's Go binding.
Differential tests compare results, stored bytes and error codes
against libfdb_c 7.3.77 on every pull request.
import "fdb.dev/pkg/fdbgo/fdb"
fdb.MustAPIVersion(730)
db, err := fdb.OpenDatabase(clusterFile)
if err != nil {
return err
}
defer db.Close()
v, err := db.Transact(func(tx fdb.WritableTransaction) (any, error) {
tx.Set(fdb.Key("hello"), []byte("world"))
return tx.Get(fdb.Key("hello")).Get()
})
Transact retries retryable errors; keep external side effects outside its callback. Supported options.
One transaction per operation, Go client vs. Apple's binding over libfdb_c, same process and cluster:
| Operation | Go | CGo + libfdb_c | Go allocs/op |
|---|---|---|---|
| Get, 100 B value | 117 µs | 207 µs | 73 |
| Get, 10 KB value | 140 µs | 224 µs | 73 |
| GetRange, 10 keys | 156 µs | 248 µs | 86 |
| GetRange, 100 keys | 251 µs | 339 µs | 122 |
| Set 100 B + commit | 1.25 ms | 1.02 ms | 105 |
Median of 5, master 9a9a448, Ryzen 9 3900X, single-node FDB 7.3.77 (ssd engine) in
local Docker. Allocation counts cover the Go heap only, not libfdb_c's.
Raw results and commands. An
earlier, larger comparison
measured an older client revision.
fdb.dev/pkg/testcontainers/foundationdb starts
FoundationDB in Docker and returns a configured, ready cluster. Single node or
several (RunCluster); storage engine,
redundancy and knobs are options; Pause simulates an unreachable cluster.
import foundationdbtc "fdb.dev/pkg/testcontainers/foundationdb"
func TestThing(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
defer cancel()
c, err := foundationdbtc.Run(ctx, "") // foundationdb/foundationdb:7.3.77
if err != nil {
t.Fatal(err)
}
t.Cleanup(func() { c.Terminate(context.Background()) })
clusterFile, err := c.ClusterFilePath(ctx)
if err != nil {
t.Fatal(err)
}
fdb.MustAPIVersion(730)
db, err := fdb.OpenDatabase(clusterFile)
// ...
}
Run returns a usable database in 4.6 s (median of 5, image already pulled, same
machine). Raw results.
A Go port of FoundationDB's Record Layer: protobuf records, secondary indexes, schema evolution and resumable cursors. Go and Java Record Layer 4.14.2.0 can share record stores in the supported formats; see compatibility and the Java conformance tests.
fdb.dev/pkg/recordlayer. Records are your protobuf messages;
as in Java, a union message lists the record types:
message Order {
optional int64 order_id = 1;
optional int32 price = 2;
}
message RecordTypeUnion {
option (com.apple.foundationdb.record.record).usage = UNION;
optional Order _Order = 1;
}
builder := recordlayer.NewRecordMetaDataBuilder().SetRecords(shoppb.File_shop_proto)
builder.GetRecordType("Order").SetPrimaryKey(recordlayer.Field("order_id"))
builder.AddIndex("Order", recordlayer.NewIndex("price_idx", recordlayer.Field("price")))
metadata, err := builder.Build()
if err != nil {
return err
}
rdb := recordlayer.NewFDBDatabase(db)
_, err = rdb.Run(ctx, func(rtx *recordlayer.FDBRecordContext) (any, error) {
store, err := recordlayer.NewStoreBuilder().
SetContext(rtx).
SetMetaDataProvider(metadata).
SetSubspace(subspace.FromBytes([]byte("app"))).
CreateOrOpen()
if err != nil {
return nil, err
}
if _, err := store.SaveRecord(&shoppb.Order{OrderId: proto.Int64(1), Price: proto.Int32(25)}); err != nil {
return nil, err
}
orders, err := recordlayer.GetTypedRecordStore[*shoppb.Order](store, "Order")
if err != nil {
return nil, err
}
return orders.LoadRecord(tuple.Tuple{int64(1)})
})
Runnable example · operations guide (online index builds, schema evolution).
| Operation, one transaction each | Time | Allocs/op |
|---|---|---|
| Load record by primary key | 210 µs | 180 |
| Save record + commit | 1.01 ms | 289 |
| Save record with one index + commit | 1.01 ms | 359 |
| Scan 1,000 records through an index, pipelined | 23.6 ms | 47,378 |
| Same scan, loading records one at a time | 57.8 ms | 41,221 |
Median of 5, same machine, FDB memory engine. Raw results.
fdb.dev/pkg/relational/sqldriver is an embedded
database/sql driver over Record Layer stores. It uses Java Relational's SQL dialect
and a port of its Cascades planner. Not PostgreSQL-compatible;
differences from Java.
import (
"database/sql"
"net/url"
"fdb.dev/pkg/relational/sqldriver"
)
sqldriver.RegisterDomainIfNotExists("FRL")
db, err := sql.Open("fdbsql", "fdbsql:///FRL/SHOP?schema=APP&cluster_file="+url.QueryEscape(clusterFile))
if err != nil {
return err
}
defer db.Close()
rows, err := db.QueryContext(ctx,
"SELECT customer, SUM(amount) FROM orders GROUP BY customer ORDER BY customer")
if err != nil {
return err
}
defer rows.Close()
Complete example, including creating the database, schema and table.
| Statement, autocommit | Time | Allocs/op |
|---|---|---|
| Point select by primary key | 788 µs | 1,477 |
| Index range scan, 50 of 100 rows | 2.37 ms | 5,153 |
| Single-row insert | 2.53 ms | 4,169 |
Median of 5, same machine, FDB memory engine. The selects reuse a cached plan; the
insert is planned on every execution. Raw results.
LLMs were used heavily in the development and maintenance of this project. Credit goes to the original authors of FoundationDB and the FoundationDB Record Layer.
Contributing · Test report · Security · Support · Apache-2.0 (NOTICE)