HNHacker News
TopNewBestAskShowJobs

fbouvier

287 karma · joined September 6, 2022

submissionscomments
fbouvier··on Show HN: Lightpanda, an open-source headless browser in Zig
We have also considered JavaScriptCore (used by Bun) and QuickJS. We did choose v8 because it's state of the art, quite well documented and easy to embed.

The code is made to support others JS engine in the future. We do want to add a lightweight alternative like QuickJS or Kiesel https://kiesel.dev/

fbouvier··on Show HN: Lightpanda, an open-source headless browser in Zig
Author here. The browser is made from scratch (not based on Chromium/Webkit), in Zig, using v8 as a JS engine.

Our idea is to build a lightweight browser optimized for AI use cases like LLM training and agent workflows. And more generally any type of web automation.

It's a work in progress, there are hundreds of Web APIs, and for now we just support some of them (DOM, XHR, Fetch). So expect most websites to fail or crash. The plan is to increase coverage over time.

Happy to answer any questions.

fbouvier··on Lightpanda – The Headless Browser
Author here. The browser is made from scratch (not based on Chromium/Webkit), in Zig, using v8 as a JS engine and Netsurf HTML5 parser.

It's a work in progress, there are hundreds of Web APIs, and for now we just support some of them. So expect most websites to fail or crash. The plan is to increase coverage over time.

Happy to answer any questions.

fbouvier··on Show HN: Stagehand – an open source browser automation framework powered by AI
You're absolutely right, the 'most websites will fail' note is there because we're still in development, and the browser doesn't yet handle the long tail of web APIs.

That said, the architecture's coming together and the performance gains we're seeing make us excited about what's possible as we keep building. Feedback is very welcome, especially on what APIs you'd like to see us prioritize for specific workflows and use cases.

fbouvier··on Show HN: Stagehand – an open source browser automation framework powered by AI
Hey Anirudh, Stagehand looks awesome, congrats. Really love the focus on making browser automations more resilient to DOM changes. The act, extract, and observe methods are super clean.

You might want to check out Lightpanda (https://github.com/lightpanda-io/browser). It's an open-source, lightweight headless browser built from scratch for AI and web automation. It's focused on skipping graphical rendering to make it faster and lighter than Chrome headless.

fbouvier··on Zig: The Modern Alternative to C
Coming from a Go background I found it quite easy to use Zig, as the language is small and you can be proficient in few days.

Of course you have more to handle by yourself in Zig. For example a simple string concatenation will need more work as there is no implicit heap allocation.

For interoperability with Go it's quite the same than C<>Go through Cgo: doable but not ideal.

However the Zig toolchain can be used to improve the build system of Go projects with Cgo dependancies. That's what Uber is doing https://jakstys.lt/2022/how-uber-uses-zig/

fbouvier··on Zig: The Modern Alternative to C
As said by @laserbeam there is no implementation of concurrency built-in Zig language, just primitives.

There is one event loop in the stdlib, but it has some limitations and there is some discussion to change it or remove it https://github.com/ziglang/zig/issues/8224

Some Zig libraries implementing an event loop:

- libxev by Mitchell Hashimoto https://github.com/mitchellh/libxev

- one from the Tigerbeetle DB https://github.com/tigerbeetledb/tigerbeetle/tree/main/src/i...

They both use kernel concurrency features (io_uring/epool on Linux, kqueue on MacOS). They are quite low level and do not implement a lightweight threading model comparable to Go concurrency.

fbouvier··on TigerBeetle raises $6.4M to power the future of financial accounting infra
They have done great contribution for async I/O in the Zig community:

- io_uring support on the std lib

https://github.com/ziglang/zig/pull/6356

- a cross-platform io_uring based event loop

https://github.com/tigerbeetledb/tigerbeetle/tree/main/src/i...

https://tigerbeetle.com/blog/a-friendly-abstraction-over-iou...

Thanks team

fbouvier··on Ask HN: What Next After Ubuntu?
75 6 de j'y
← PreviousPage 2 of 2