Hacker News

Disturbing Rumor – PBS NewsHour (Brooks / Capehart)

Hacker News - 20 hours 24 min ago

Not sure why my link directly to the YouTube video was flagged, since this is valid news from a legitimate (centrist) news source PBS NewsHour.

The rumor is apparently becoming more widespread among politicians and people who work in government. That the Trump administration is probing for ways to create the conditions for invoking the Insurrection Act. Both the left of center and right of center commentators are both in agreement that the Trump administration is trying to do everything that it can to be as unproductive as possible in the loudest most obnoxious ways.

Please look this up for yourself if curious, and search for the video titled: "Capehart and Ponnuru on the politics of Israel's attack and Iran's response"

Comments URL: https://news.ycombinator.com/item?id=44280901

Points: 4

# Comments: 0

Categories: Hacker News

Show HN: Shields.rs – a Rust badge engine 10x faster than Node.js

Hacker News - 20 hours 44 min ago

Hi HN,

I've been working on a project I'd love to share: shields.rs, a high-performance badge rendering engine written in Rust.

The goal was to build something incredibly fast and reliable for services that need to generate a lot of badges. The result is an engine that can render a badge in about 4.5 microseconds, which is over 10 times faster than the popular badge-maker library for Node.js.

A key feature is that the output is bitwise-identical to shields.io. This means you get 100% compatible and consistent SVGs every time. It supports all the styles you'd expect (flat, flat-square, plastic, etc.) and makes it easy to add logos from Simple Icons or your own custom SVG.

The API is designed to be simple and chainable. Here's a quick peek:

``` let badge = Badge::plastic() .label("version") .message("1.0.0") .message_color("#4c1") .build(); ```

I wrote this because I wanted a more performant and type-safe solution for badge generation. It was a fun challenge to optimize the rendering pipeline and SVG generation logic in Rust.

You can check out the source code and benchmarks on GitHub: https://github.com/Jannchie/shields

And the full documentation is on docs.rs: https://docs.rs/shields

I would be grateful for any feedback or questions. What do you think?

Comments URL: https://news.ycombinator.com/item?id=44280842

Points: 1

# Comments: 0

Categories: Hacker News

Pages