frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Generate HTTP and Jsonrpc from IDL

https://github.com/xidl/xidl
2•battery8318•2h ago

Comments

battery8318•2h ago
I've extended the functionality of (OMG DDS)IDL and written a code generator. It can generate C/C++/Rust/Rust HTTP/Rust JsonRPC/OpenAPI/OpenRPC code from IDL.

Of course, the Rust HTTP/Rust JsonRPC/OpenAPI/OpenRPC generation is currently more mature.

I previously used utoipa to generate OpenAPI from code, but I quickly grew tired of the endless boilerplate code. So I made this!!!

Simply put, you use IDL to describe an HTTP service, and I'll generate an interface, a Service. If you implement an interface for a given interface, I can generate routes for you. It works like this...

```rust

use xidlc_examples::hello_world::HelloWorld;

use xidlc_examples::hello_world::HelloWorldSayHelloRequest;

use xidlc_examples::hello_world::HelloWorldServer;

struct HelloWorldImpl;

#[async_trait::async_trait]

impl HelloWorld for HelloWorldImpl {

    async fn sayHello(

        &self,

        req: 
xidl_rust_axum::Request<HelloWorldSayHelloRequest>,

    ) -> Result<(), xidl_rust_axum::Error> {

        let HelloWorldSayHelloRequest { name } = req.data;

        println!("Hello, {}!", name);

        Ok(())
    }
}

#[tokio::main]

async fn main() -> Result<(), Box<dyn std::error::Error>> {

    let addr = "127.0.0.1:3000";

    println!("axum hello_world server listening on {addr}");


    xidl_rust_axum::Server::builder()
        .with_service(HelloWorldServer::new(HelloWorldImpl))
        .serve(addr)
        .await?;

    Ok(())
} ```

Currently, support for streaming (HTTP/JsonRPC) is still quite basic. It's defined at https://github.com/xidl/xidl/tree/master/docs/rfc

Besides that, I've used HTTP/OpenAPI in my project, and I think it currently meets my overall needs.

Furthermore, xidlc provides simple interfaces for extension. I find xidlc's design truly fascinating.

I've added some snapshot tests to avoid regression issues.

I used Google Translate to translate this post, so I'm not sure if it conforms to English grammar. I sincerely hope to receive any feedback, thank you.

No leap second will be introduced at the end of June 2026

https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/P6D36VZSZBUSSTSMZKFXKF4T4IXWN23P/
1•speckx•1m ago•0 comments

Show HN: Kairos, real-time AI who cross-verifies (Python, 100KB)

1•joshuaveliyath•2m ago•0 comments

Ageless Linux – Software for Humans of Indeterminate Age

https://agelesslinux.org/
1•speckx•3m ago•0 comments

K-Shaped AI Adoption

https://www.jeremyg.dev/k-shaped-ai-adoption/
1•christophetd•3m ago•0 comments

Show HN: I built a clipboard mgr with crypto address swap attack detection

https://yankput.app
1•revastas•3m ago•0 comments

Azure AI Search vs. Manticore Search

https://manticoresearch.com/blog/azure-ai-search-vs-manticore/
1•snikolaev•4m ago•0 comments

Notes on writing a voxel game in Dyalog APL

https://homewithinnowhere.com/blog/voxel_game/
1•rak1507•8m ago•0 comments

Show HN: Bother – model your project as it exists in reality

https://bother.now/orbit?demo=true
1•kalturnbull•8m ago•0 comments

A CEO's Guide on Data Readiness for AI on Scaling AI Initiatives

https://www.kellton.com/kellton-tech-blog/ceo-guide-data-readiness-ai-scaling-initiatives
2•johandoc•9m ago•1 comments

Show HN: VibeCheck – Know if your vibe code is safe to ship

https://www.vibecheck.expert
2•travistotz•12m ago•1 comments

Bridging the Operational AI Gap

https://www.technologyreview.com/2026/03/04/1133642/bridging-the-operational-ai-gap/
1•joozio•14m ago•0 comments

The Pilgrim Age: On walking, silence, and the age of seeking

https://pilgrima.ge/p/the-pilgrim-age
1•momentmaker•14m ago•0 comments

How Brembo Redesigned F1 Brakes for the 2026 Power Unit Revolution

https://www.thedrive.com/news/how-brembo-redesigned-f1-brakes-for-the-2026-power-unit-revolution
2•breve•17m ago•0 comments

Rights of Nature: A Reading List

https://daily.jstor.org/rights-of-nature-a-reading-list/
1•mooreds•17m ago•0 comments

Orwell's Happy Ending (2025)

https://juliansanchez.substack.com/p/orwells-happy-ending
1•mooreds•18m ago•0 comments

Data centers in Indy will impact your health and environment

https://mirrorindy.org/data-center-health-pollution-environment-impacts-indianapolis-marion-county/
1•mooreds•18m ago•0 comments

Billionaires Are Swaying Elections in All Corners of America

https://www.nytimes.com/2026/03/09/us/billionaires-federal-election-campaign-contributions.html
1•duxup•20m ago•1 comments

Show HN: Portable RAG (Open Source)

2•cepstrum9•20m ago•0 comments

Exploitation? Bruce Springsteen ticket prices $400 to $1,200, up to $3k?

https://www.foxnews.com/entertainment/bruce-springsteen-faces-growing-criticism-over-sky-high-tic...
1•DivingForGold•21m ago•2 comments

A novel technique for creating ergonomic and tree-shakable TypeScript libraries

https://softwaremill.com/a-novel-technique-for-creating-ergonomic-and-tree-shakable-typescript-li...
1•pmoati•21m ago•0 comments

Trump Sons Back New Drone Company Targeting Pentagon Sales

https://www.wsj.com/politics/national-security/trump-sons-back-new-drone-company-targeting-pentag...
3•doener•21m ago•0 comments

PayByFace is a nominee in Romania Startup Awards

https://strawpoll.com/05ZdzP64Qn6
1•paybyface•23m ago•1 comments

Work just became easier for data analysts

https://analyst-bbqe.onrender.com/
1•Sechele•23m ago•0 comments

Scientists engineer unsinkable metal tubes by nano etching the interior

https://www.rochester.edu/newscenter/unsinkable-metal-tubes-superhydrophobic-surfaces-691642/
1•giuliomagnifico•24m ago•0 comments

Grok sparks outrage after chatbot makes offensive jibes about football disasters

https://www.theregister.com/2026/03/09/grok_football_controvery/
2•beardyw•25m ago•1 comments

Show HN: Skills RCE – Code execution server for AI agent skills

https://github.com/muxi-ai/skills-rce
1•muxidev•26m ago•0 comments

UK eyes powers to regulate tech without parliamentary scrutiny

https://www.politico.eu/article/uk-eyes-sweeping-powers-to-regulate-tech-without-parliamentary-sc...
1•calcifer•26m ago•0 comments

Middle Managers Feel the Least Psychological Safety at Work (2025)

https://hbr.org/2025/10/middle-managers-feel-the-least-psychological-safety-at-work
1•lucidplot•27m ago•0 comments

Show HN: I built a geocoding orchestrator tool to cut geocoding API costs

https://coordable.co/
1•s-p-w_•28m ago•1 comments

Warchalking

https://en.wikipedia.org/wiki/Warchalking
3•admp•28m ago•0 comments