dymokomi/luce-browser-foundation
The foundations of the luce-browser port of Ladybird: the AK subset, LibGC, the LibUnicode pieces LibWeb uses, LibTextCodec, LibURL and the WHATWG Infra helpers, in luce-base.
A library written in luce-base. Latest release 0.6.1.
Install#
luc add dymokomi/luce-browser-foundationDocumentation#
luce-browser-foundation
The foundations of the luce-browser port of Ladybird: the AK subset, LibGC, the LibUnicode pieces LibWeb uses, LibTextCodec, LibURL and the WHATWG Infra helpers, in luce-base.
Part of the luce-browser family, a faithful port of Ladybird's LibWeb to luce-base; the design every porter follows is DESIGN.md.
| Module | Contents |
|---|---|
ak | the AK subset LibWeb uses |
gc | LibGC |
web_unicode | the LibUnicode pieces LibWeb uses |
text_codec | LibTextCodec |
web_url | LibURL |
web_infra | WHATWG Infra helpers |
Depends on: luce-std.
Status
Skeleton: every type of the phase-1 closure is declared and every function has its generated signature and a trap("unported: ...") body, grouped by region (docs/regions.tsv). Regions replace their stub fragments with ported code (DESIGN.md ยง4.5). docs/namemap.tsv maps every C++ name to its Luce name; docs/gc_fields.tsv lists the GC pointer fields each cell must visit.
The skeleton is generated from Ladybird at 47c82b38d0 (see PIN) by a local tool that is not part of this repository.
Testing
luc test runs the unit tests of every module and two programs: tests/suites runs the test packages under tests/ (they use the package as a dependent does), and tests/generated regenerates webunicode's tables with `tools/genucd` and compares them with the committed ones. The tests are ported from Tests/AK, Tests/LibGC, Tests/LibURL, Tests/LibTextCodec, Tests/LibUnicode and Tests/LibWeb, with focused cases pinned to the reference build. tools/check.sh is the lint: formatting and -W.
License
BSD-2-Clause, as Ladybird; see LICENSE.
Dependencies#
| Package | Version |
|---|---|
| dymokomi/luce-regex | newest |
| dymokomi/luce-std | newest |
Versions#
0.6.1
Browse source · pack · commit 317374b88072
SHA-256 81546931f463a73595c84d0c274fce50de462afd81387e017cb1a6766eeef042
luce-browser-foundation 0.6.1: batch release
0.6.0
Browse source · pack · commit 5b36da6b8c6f
SHA-256 f5a033fcd5b5a2f86b2d01f40ab68a5f44c68ff5143c6938c00443649a15375b
statics that outlive a VM; web_unicode locales in the C heap; collections.Buffer; byte spans compare with ==; dependencies name no version